diff --git a/CMakeLists.txt b/CMakeLists.txt index 7e7c3579e..a2aa6814c 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,56 +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. -# - -cmake_minimum_required(VERSION 3.1) - -cmake_policy(SET CMP0048 NEW) - -file(STRINGS "VERSION" version) - -project(alibabacloud-sdk VERSION ${version}) - -message(STATUS "Project version: ${PROJECT_VERSION}") - -set(TARGET_OUTPUT_NAME_PREFIX "alibabacloud-sdk-" CACHE STRING "The target's output name prefix") -option(BUILD_SHARED_LIBS "Enable shared library" ON) -option(BUILD_TESTS "Enable tests" ON) - -set(LIB_TYPE STATIC) -if(BUILD_SHARED_LIBS) - set(LIB_TYPE SHARED) - add_definitions(-DALIBABACLOUD_SHARED) -endif() - -set_property(GLOBAL - PROPERTY - USE_FOLDERS ON) - -set(CMAKE_CXX_STANDARD 11) - -include(ExternalProject) -include(GNUInstallDirs) - -add_subdirectory(3rdparty) -add_subdirectory(core) - -if(BUILD_TESTS) - enable_testing() - add_subdirectory(core-tests) -endif() +# +# Copyright 2009-2017 Alibaba Cloud All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +cmake_minimum_required(VERSION 3.1) + +cmake_policy(SET CMP0048 NEW) + +file(STRINGS "VERSION" version) + +project(alibabacloud-sdk VERSION ${version}) + +message(STATUS "Project version: ${PROJECT_VERSION}") + +set(TARGET_OUTPUT_NAME_PREFIX "alibabacloud-sdk-" CACHE STRING "The target's output name prefix") +option(BUILD_SHARED_LIBS "Enable shared library" ON) +option(BUILD_TESTS "Enable tests" ON) + +set(LIB_TYPE STATIC) +if(BUILD_SHARED_LIBS) + set(LIB_TYPE SHARED) + add_definitions(-DALIBABACLOUD_SHARED) +endif() + +set_property(GLOBAL + PROPERTY + USE_FOLDERS ON) + +set(CMAKE_CXX_STANDARD 11) + +include(ExternalProject) +include(GNUInstallDirs) + +add_subdirectory(3rdparty) +add_subdirectory(core) + +if(BUILD_TESTS) + enable_testing() + add_subdirectory(core-tests) +endif() add_subdirectory(ecs) add_subdirectory(slb) -add_subdirectory(vpc) -add_subdirectory(cdn) +add_subdirectory(vpc) +add_subdirectory(cdn) +add_subdirectory(rds) \ No newline at end of file diff --git a/rds/CMakeLists.txt b/rds/CMakeLists.txt new file mode 100644 index 000000000..1abdbc9d3 --- /dev/null +++ b/rds/CMakeLists.txt @@ -0,0 +1,754 @@ +# +# Copyright 2009-2017 Alibaba Cloud All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include) +set(rds_public_header + include/alibabacloud/rds/model/CreateMigrateTaskRequest.h + include/alibabacloud/rds/model/CreateMigrateTaskResult.h + include/alibabacloud/rds/model/CheckRecoveryConditionsRequest.h + include/alibabacloud/rds/model/CheckRecoveryConditionsResult.h + include/alibabacloud/rds/model/LoginDBInstancefromCloudDBARequest.h + include/alibabacloud/rds/model/LoginDBInstancefromCloudDBAResult.h + include/alibabacloud/rds/model/DeleteBackupRequest.h + include/alibabacloud/rds/model/DeleteBackupResult.h + include/alibabacloud/rds/model/DescribeDatabasesRequest.h + include/alibabacloud/rds/model/DescribeDatabasesResult.h + include/alibabacloud/rds/model/DescribeDBInstancesByExpireTimeRequest.h + include/alibabacloud/rds/model/DescribeDBInstancesByExpireTimeResult.h + include/alibabacloud/rds/model/SwitchDBInstanceNetTypeRequest.h + include/alibabacloud/rds/model/SwitchDBInstanceNetTypeResult.h + include/alibabacloud/rds/model/DescribeDBInstanceMonitorRequest.h + include/alibabacloud/rds/model/DescribeDBInstanceMonitorResult.h + include/alibabacloud/rds/model/CreateReadOnlyDBInstanceRequest.h + include/alibabacloud/rds/model/CreateReadOnlyDBInstanceResult.h + include/alibabacloud/rds/model/DescribeDBInstanceHAConfigRequest.h + include/alibabacloud/rds/model/DescribeDBInstanceHAConfigResult.h + include/alibabacloud/rds/model/ModifyAccountDescriptionRequest.h + include/alibabacloud/rds/model/ModifyAccountDescriptionResult.h + include/alibabacloud/rds/model/DescribeOssDownloadsRequest.h + include/alibabacloud/rds/model/DescribeOssDownloadsResult.h + include/alibabacloud/rds/model/ModifyParameterRequest.h + include/alibabacloud/rds/model/ModifyParameterResult.h + include/alibabacloud/rds/model/ReleaseReplicaRequest.h + include/alibabacloud/rds/model/ReleaseReplicaResult.h + include/alibabacloud/rds/model/UpgradeDBInstanceEngineVersionRequest.h + include/alibabacloud/rds/model/UpgradeDBInstanceEngineVersionResult.h + include/alibabacloud/rds/model/ModifyDBInstanceConnectionStringRequest.h + include/alibabacloud/rds/model/ModifyDBInstanceConnectionStringResult.h + include/alibabacloud/rds/model/StopSyncingRequest.h + include/alibabacloud/rds/model/StopSyncingResult.h + include/alibabacloud/rds/model/CheckAccountNameAvailableRequest.h + include/alibabacloud/rds/model/CheckAccountNameAvailableResult.h + include/alibabacloud/rds/model/RestartDBInstanceRequest.h + include/alibabacloud/rds/model/RestartDBInstanceResult.h + include/alibabacloud/rds/model/ImportDataForSQLServerRequest.h + include/alibabacloud/rds/model/ImportDataForSQLServerResult.h + include/alibabacloud/rds/model/DescribeLogicDBInstanceTopologyRequest.h + include/alibabacloud/rds/model/DescribeLogicDBInstanceTopologyResult.h + include/alibabacloud/rds/model/CheckResourceRequest.h + include/alibabacloud/rds/model/CheckResourceResult.h + include/alibabacloud/rds/model/DescribeTagsRequest.h + include/alibabacloud/rds/model/DescribeTagsResult.h + include/alibabacloud/rds/model/StartDBInstanceDiagnoseRequest.h + include/alibabacloud/rds/model/StartDBInstanceDiagnoseResult.h + include/alibabacloud/rds/model/DescribeCharacterSetNameRequest.h + include/alibabacloud/rds/model/DescribeCharacterSetNameResult.h + include/alibabacloud/rds/model/ImportDataFromDatabaseRequest.h + include/alibabacloud/rds/model/ImportDataFromDatabaseResult.h + include/alibabacloud/rds/model/DescribeMigrateTasksRequest.h + include/alibabacloud/rds/model/DescribeMigrateTasksResult.h + include/alibabacloud/rds/model/ModifyDBInstanceNetworkExpireTimeRequest.h + include/alibabacloud/rds/model/ModifyDBInstanceNetworkExpireTimeResult.h + include/alibabacloud/rds/model/CreateAccountRequest.h + include/alibabacloud/rds/model/CreateAccountResult.h + include/alibabacloud/rds/model/DescribeModifyParameterLogRequest.h + include/alibabacloud/rds/model/DescribeModifyParameterLogResult.h + include/alibabacloud/rds/model/DescribeOperatorPermissionRequest.h + include/alibabacloud/rds/model/DescribeOperatorPermissionResult.h + include/alibabacloud/rds/model/DescribeOptimizeAdviceOnMissIndexRequest.h + include/alibabacloud/rds/model/DescribeOptimizeAdviceOnMissIndexResult.h + include/alibabacloud/rds/model/DescribeDampPoliciesByCidRequest.h + include/alibabacloud/rds/model/DescribeDampPoliciesByCidResult.h + include/alibabacloud/rds/model/ModifyDBDescriptionRequest.h + include/alibabacloud/rds/model/ModifyDBDescriptionResult.h + include/alibabacloud/rds/model/ImportDatabaseBetweenInstancesRequest.h + include/alibabacloud/rds/model/ImportDatabaseBetweenInstancesResult.h + include/alibabacloud/rds/model/RenewInstanceRequest.h + include/alibabacloud/rds/model/RenewInstanceResult.h + include/alibabacloud/rds/model/CheckDBNameAvailableRequest.h + include/alibabacloud/rds/model/CheckDBNameAvailableResult.h + include/alibabacloud/rds/model/ModifyDBInstanceMonitorRequest.h + include/alibabacloud/rds/model/ModifyDBInstanceMonitorResult.h + include/alibabacloud/rds/model/DescribeSQLLogFilesRequest.h + include/alibabacloud/rds/model/DescribeSQLLogFilesResult.h + include/alibabacloud/rds/model/CancelImportRequest.h + include/alibabacloud/rds/model/CancelImportResult.h + include/alibabacloud/rds/model/DescribeReplicaInitializeProgressRequest.h + include/alibabacloud/rds/model/DescribeReplicaInitializeProgressResult.h + include/alibabacloud/rds/model/ModifyBackupPolicyRequest.h + include/alibabacloud/rds/model/ModifyBackupPolicyResult.h + include/alibabacloud/rds/model/ModifyReplicaDescriptionRequest.h + include/alibabacloud/rds/model/ModifyReplicaDescriptionResult.h + include/alibabacloud/rds/model/UpgradeDBInstanceNetWorkInfoRequest.h + include/alibabacloud/rds/model/UpgradeDBInstanceNetWorkInfoResult.h + include/alibabacloud/rds/model/AddTagsToResourceRequest.h + include/alibabacloud/rds/model/AddTagsToResourceResult.h + include/alibabacloud/rds/model/DescribeBinlogFilesRequest.h + include/alibabacloud/rds/model/DescribeBinlogFilesResult.h + include/alibabacloud/rds/model/DescribeBackupsForSecurityRequest.h + include/alibabacloud/rds/model/DescribeBackupsForSecurityResult.h + include/alibabacloud/rds/model/CreateDiagnosticReportRequest.h + include/alibabacloud/rds/model/CreateDiagnosticReportResult.h + include/alibabacloud/rds/model/DescribeSQLLogReportListRequest.h + include/alibabacloud/rds/model/DescribeSQLLogReportListResult.h + include/alibabacloud/rds/model/DescribeResourceDiagnosisRequest.h + include/alibabacloud/rds/model/DescribeResourceDiagnosisResult.h + include/alibabacloud/rds/model/CloneDBInstanceRequest.h + include/alibabacloud/rds/model/CloneDBInstanceResult.h + include/alibabacloud/rds/model/DescribeTasksRequest.h + include/alibabacloud/rds/model/DescribeTasksResult.h + include/alibabacloud/rds/model/CreateUploadPathForSQLServerRequest.h + include/alibabacloud/rds/model/CreateUploadPathForSQLServerResult.h + include/alibabacloud/rds/model/DescribeRenewalPriceRequest.h + include/alibabacloud/rds/model/DescribeRenewalPriceResult.h + include/alibabacloud/rds/model/AllocateInstancePublicConnectionRequest.h + include/alibabacloud/rds/model/AllocateInstancePublicConnectionResult.h + include/alibabacloud/rds/model/DescribeOptimizeAdviceOnStorageRequest.h + include/alibabacloud/rds/model/DescribeOptimizeAdviceOnStorageResult.h + include/alibabacloud/rds/model/DescribeInstanceAutoRenewAttributeRequest.h + include/alibabacloud/rds/model/DescribeInstanceAutoRenewAttributeResult.h + include/alibabacloud/rds/model/DescribeDBInstanceAttributeRequest.h + include/alibabacloud/rds/model/DescribeDBInstanceAttributeResult.h + include/alibabacloud/rds/model/DescribeDBInstanceUserRequest.h + include/alibabacloud/rds/model/DescribeDBInstanceUserResult.h + include/alibabacloud/rds/model/CreateTempDBInstanceRequest.h + include/alibabacloud/rds/model/CreateTempDBInstanceResult.h + include/alibabacloud/rds/model/DescribeImportsForSQLServerRequest.h + include/alibabacloud/rds/model/DescribeImportsForSQLServerResult.h + include/alibabacloud/rds/model/DescribeSQLCollectorPolicyRequest.h + include/alibabacloud/rds/model/DescribeSQLCollectorPolicyResult.h + include/alibabacloud/rds/model/ModifyInstanceAutoRenewalAttributeRequest.h + include/alibabacloud/rds/model/ModifyInstanceAutoRenewalAttributeResult.h + include/alibabacloud/rds/model/ModifySQLCollectorPolicyRequest.h + include/alibabacloud/rds/model/ModifySQLCollectorPolicyResult.h + include/alibabacloud/rds/model/DescribeBackupsRequest.h + include/alibabacloud/rds/model/DescribeBackupsResult.h + include/alibabacloud/rds/model/CreateDatabaseRequest.h + include/alibabacloud/rds/model/CreateDatabaseResult.h + include/alibabacloud/rds/model/DeleteDBInstanceRequest.h + include/alibabacloud/rds/model/DeleteDBInstanceResult.h + include/alibabacloud/rds/model/DescribeRealtimeDiagnosesRequest.h + include/alibabacloud/rds/model/DescribeRealtimeDiagnosesResult.h + include/alibabacloud/rds/model/DescribeSQLInjectionInfosRequest.h + include/alibabacloud/rds/model/DescribeSQLInjectionInfosResult.h + include/alibabacloud/rds/model/DescribeInstanceAutoRenewalAttributeRequest.h + include/alibabacloud/rds/model/DescribeInstanceAutoRenewalAttributeResult.h + include/alibabacloud/rds/model/AddBuDBInstanceRelationRequest.h + include/alibabacloud/rds/model/AddBuDBInstanceRelationResult.h + include/alibabacloud/rds/model/RestoreDBInstanceRequest.h + include/alibabacloud/rds/model/RestoreDBInstanceResult.h + include/alibabacloud/rds/model/RevokeOperatorPermissionRequest.h + include/alibabacloud/rds/model/RevokeOperatorPermissionResult.h + include/alibabacloud/rds/model/ModifyDBInstanceSpecRequest.h + include/alibabacloud/rds/model/ModifyDBInstanceSpecResult.h + include/alibabacloud/rds/model/DescribeDiagnosticReportListRequest.h + include/alibabacloud/rds/model/DescribeDiagnosticReportListResult.h + include/alibabacloud/rds/model/DescribeDBInstanceECSSGRelationRequest.h + include/alibabacloud/rds/model/DescribeDBInstanceECSSGRelationResult.h + include/alibabacloud/rds/model/RemoveTagsFromResourceRequest.h + include/alibabacloud/rds/model/RemoveTagsFromResourceResult.h + include/alibabacloud/rds/model/DescribeSQLLogRecordsRequest.h + include/alibabacloud/rds/model/DescribeSQLLogRecordsResult.h + include/alibabacloud/rds/model/ModifySecurityIpsRequest.h + include/alibabacloud/rds/model/ModifySecurityIpsResult.h + include/alibabacloud/rds/model/DescribeMigrateTasksForSQLServerRequest.h + include/alibabacloud/rds/model/DescribeMigrateTasksForSQLServerResult.h + include/alibabacloud/rds/model/ModifyReplicaModeRequest.h + include/alibabacloud/rds/model/ModifyReplicaModeResult.h + include/alibabacloud/rds/model/DeleteDampPolicyRequest.h + include/alibabacloud/rds/model/DeleteDampPolicyResult.h + include/alibabacloud/rds/model/GrantAccountPrivilegeRequest.h + include/alibabacloud/rds/model/GrantAccountPrivilegeResult.h + include/alibabacloud/rds/model/GrantOperatorPermissionRequest.h + include/alibabacloud/rds/model/GrantOperatorPermissionResult.h + include/alibabacloud/rds/model/ModifyPostpaidDBInstanceSpecRequest.h + include/alibabacloud/rds/model/ModifyPostpaidDBInstanceSpecResult.h + include/alibabacloud/rds/model/CreatePolicyWithSpecifiedPolicyRequest.h + include/alibabacloud/rds/model/CreatePolicyWithSpecifiedPolicyResult.h + include/alibabacloud/rds/model/ModifyDBInstanceTDERequest.h + include/alibabacloud/rds/model/ModifyDBInstanceTDEResult.h + include/alibabacloud/rds/model/DescribeDBInstancePerformanceRequest.h + include/alibabacloud/rds/model/DescribeDBInstancePerformanceResult.h + include/alibabacloud/rds/model/DescribeOptimizeAdviceOnBigTableRequest.h + include/alibabacloud/rds/model/DescribeOptimizeAdviceOnBigTableResult.h + include/alibabacloud/rds/model/DescribeVpcZoneNosRequest.h + include/alibabacloud/rds/model/DescribeVpcZoneNosResult.h + include/alibabacloud/rds/model/DescribeDampPolicyByCommentRequest.h + include/alibabacloud/rds/model/DescribeDampPolicyByCommentResult.h + include/alibabacloud/rds/model/DescribeDBInstanceExtendAttributeRequest.h + include/alibabacloud/rds/model/DescribeDBInstanceExtendAttributeResult.h + include/alibabacloud/rds/model/DescribeDBInstancesRequest.h + include/alibabacloud/rds/model/DescribeDBInstancesResult.h + include/alibabacloud/rds/model/DescribePreCheckResultsRequest.h + include/alibabacloud/rds/model/DescribePreCheckResultsResult.h + include/alibabacloud/rds/model/StartArchiveSQLLogRequest.h + include/alibabacloud/rds/model/StartArchiveSQLLogResult.h + include/alibabacloud/rds/model/CreateDBInstanceReplicaRequest.h + include/alibabacloud/rds/model/CreateDBInstanceReplicaResult.h + include/alibabacloud/rds/model/ModifyDampPolicyRequest.h + include/alibabacloud/rds/model/ModifyDampPolicyResult.h + include/alibabacloud/rds/model/AllocateInstancePrivateConnectionRequest.h + include/alibabacloud/rds/model/AllocateInstancePrivateConnectionResult.h + include/alibabacloud/rds/model/RevokeAccountPrivilegeRequest.h + include/alibabacloud/rds/model/RevokeAccountPrivilegeResult.h + include/alibabacloud/rds/model/DegradeDBInstanceSpecRequest.h + include/alibabacloud/rds/model/DegradeDBInstanceSpecResult.h + include/alibabacloud/rds/model/DescibeImportsFromDatabaseRequest.h + include/alibabacloud/rds/model/DescibeImportsFromDatabaseResult.h + include/alibabacloud/rds/model/DescribeParameterTemplatesRequest.h + include/alibabacloud/rds/model/DescribeParameterTemplatesResult.h + include/alibabacloud/rds/model/DescribeDatabaseLockDiagnosisRequest.h + include/alibabacloud/rds/model/DescribeDatabaseLockDiagnosisResult.h + include/alibabacloud/rds/model/DescribeOptimizeAdviceOnExcessIndexRequest.h + include/alibabacloud/rds/model/DescribeOptimizeAdviceOnExcessIndexResult.h + include/alibabacloud/rds/model/CopyDatabaseRequest.h + include/alibabacloud/rds/model/CopyDatabaseResult.h + include/alibabacloud/rds/model/CreateDBInstanceRequest.h + include/alibabacloud/rds/model/CreateDBInstanceResult.h + include/alibabacloud/rds/model/DescribeDBInstanceTDERequest.h + include/alibabacloud/rds/model/DescribeDBInstanceTDEResult.h + include/alibabacloud/rds/model/ModifyDBInstanceSSLRequest.h + include/alibabacloud/rds/model/ModifyDBInstanceSSLResult.h + include/alibabacloud/rds/model/DescribeSQLLogReportsRequest.h + include/alibabacloud/rds/model/DescribeSQLLogReportsResult.h + include/alibabacloud/rds/model/DescribeSQLDiagnosisListRequest.h + include/alibabacloud/rds/model/DescribeSQLDiagnosisListResult.h + include/alibabacloud/rds/model/ModifyDBInstanceConnectionModeRequest.h + include/alibabacloud/rds/model/ModifyDBInstanceConnectionModeResult.h + include/alibabacloud/rds/model/DescribeDBInstanceNetInfoRequest.h + include/alibabacloud/rds/model/DescribeDBInstanceNetInfoResult.h + include/alibabacloud/rds/model/AllocateReadWriteSplittingConnectionRequest.h + include/alibabacloud/rds/model/AllocateReadWriteSplittingConnectionResult.h + include/alibabacloud/rds/model/ReleaseInstancePublicConnectionRequest.h + include/alibabacloud/rds/model/ReleaseInstancePublicConnectionResult.h + include/alibabacloud/rds/model/CalculateDBInstanceWeightRequest.h + include/alibabacloud/rds/model/CalculateDBInstanceWeightResult.h + include/alibabacloud/rds/model/ModifyReplicaRelationRequest.h + include/alibabacloud/rds/model/ModifyReplicaRelationResult.h + include/alibabacloud/rds/model/ModifyDBInstanceNetworkTypeRequest.h + include/alibabacloud/rds/model/ModifyDBInstanceNetworkTypeResult.h + include/alibabacloud/rds/model/DescribeAbnormalDBInstancesRequest.h + include/alibabacloud/rds/model/DescribeAbnormalDBInstancesResult.h + include/alibabacloud/rds/model/DescribeDBInstanceNetworkRequest.h + include/alibabacloud/rds/model/DescribeDBInstanceNetworkResult.h + include/alibabacloud/rds/model/DescribeSlowLogsRequest.h + include/alibabacloud/rds/model/DescribeSlowLogsResult.h + include/alibabacloud/rds/model/CreateBackupRequest.h + include/alibabacloud/rds/model/CreateBackupResult.h + include/alibabacloud/rds/model/CreateSQLDiagnosisRequest.h + include/alibabacloud/rds/model/CreateSQLDiagnosisResult.h + include/alibabacloud/rds/model/DescribeReplicaUsageRequest.h + include/alibabacloud/rds/model/DescribeReplicaUsageResult.h + include/alibabacloud/rds/model/ModifyReadWriteSplittingConnectionRequest.h + include/alibabacloud/rds/model/ModifyReadWriteSplittingConnectionResult.h + include/alibabacloud/rds/model/DescribeDBInstanceNetworkDetailRequest.h + include/alibabacloud/rds/model/DescribeDBInstanceNetworkDetailResult.h + include/alibabacloud/rds/model/ModifyDBInstanceDescriptionRequest.h + include/alibabacloud/rds/model/ModifyDBInstanceDescriptionResult.h + include/alibabacloud/rds/model/ModifyDBInstanceMaintainTimeRequest.h + include/alibabacloud/rds/model/ModifyDBInstanceMaintainTimeResult.h + include/alibabacloud/rds/model/DescribeReplicaPerformanceRequest.h + include/alibabacloud/rds/model/DescribeReplicaPerformanceResult.h + include/alibabacloud/rds/model/DescribeSQLDiagnosisRequest.h + include/alibabacloud/rds/model/DescribeSQLDiagnosisResult.h + include/alibabacloud/rds/model/DescribeDampPolicyByPolicyNameRequest.h + include/alibabacloud/rds/model/DescribeDampPolicyByPolicyNameResult.h + include/alibabacloud/rds/model/ModifyResourceGroupRequest.h + include/alibabacloud/rds/model/ModifyResourceGroupResult.h + include/alibabacloud/rds/model/DescribeOssDownloadsForSQLServerRequest.h + include/alibabacloud/rds/model/DescribeOssDownloadsForSQLServerResult.h + include/alibabacloud/rds/model/RequestServiceOfCloudDBARequest.h + include/alibabacloud/rds/model/RequestServiceOfCloudDBAResult.h + include/alibabacloud/rds/model/ResetAccountRequest.h + include/alibabacloud/rds/model/ResetAccountResult.h + include/alibabacloud/rds/model/DescribeResourceUsageRequest.h + include/alibabacloud/rds/model/DescribeResourceUsageResult.h + include/alibabacloud/rds/model/PreCheckBeforeImportDataRequest.h + include/alibabacloud/rds/model/PreCheckBeforeImportDataResult.h + include/alibabacloud/rds/model/PurgeDBInstanceLogRequest.h + include/alibabacloud/rds/model/PurgeDBInstanceLogResult.h + include/alibabacloud/rds/model/DescribeTaskInfoRequest.h + include/alibabacloud/rds/model/DescribeTaskInfoResult.h + include/alibabacloud/rds/model/DescribeRegionsRequest.h + include/alibabacloud/rds/model/DescribeRegionsResult.h + include/alibabacloud/rds/model/MigrateToOtherZoneRequest.h + include/alibabacloud/rds/model/MigrateToOtherZoneResult.h + include/alibabacloud/rds/model/DeleteAccountRequest.h + include/alibabacloud/rds/model/DeleteAccountResult.h + include/alibabacloud/rds/model/DescribeOptimizeAdviceOnMissPKRequest.h + include/alibabacloud/rds/model/DescribeOptimizeAdviceOnMissPKResult.h + include/alibabacloud/rds/model/DescribeSlowLogRecordsRequest.h + include/alibabacloud/rds/model/DescribeSlowLogRecordsResult.h + include/alibabacloud/rds/model/ReleaseReadWriteSplittingConnectionRequest.h + include/alibabacloud/rds/model/ReleaseReadWriteSplittingConnectionResult.h + include/alibabacloud/rds/model/UpgradeDBInstanceNetworkRequest.h + include/alibabacloud/rds/model/UpgradeDBInstanceNetworkResult.h + include/alibabacloud/rds/model/DescribeFilesForSQLServerRequest.h + include/alibabacloud/rds/model/DescribeFilesForSQLServerResult.h + include/alibabacloud/rds/model/ModifyDBInstanceECSSGRelationRequest.h + include/alibabacloud/rds/model/ModifyDBInstanceECSSGRelationResult.h + include/alibabacloud/rds/model/DescribeErrorLogsRequest.h + include/alibabacloud/rds/model/DescribeErrorLogsResult.h + include/alibabacloud/rds/model/ModifyDBInstanceHAConfigRequest.h + include/alibabacloud/rds/model/ModifyDBInstanceHAConfigResult.h + include/alibabacloud/rds/model/DescribeDBInstancesAsCsvRequest.h + include/alibabacloud/rds/model/DescribeDBInstancesAsCsvResult.h + include/alibabacloud/rds/model/ResetAccountPasswordRequest.h + include/alibabacloud/rds/model/ResetAccountPasswordResult.h + include/alibabacloud/rds/model/DescribeAccountsRequest.h + include/alibabacloud/rds/model/DescribeAccountsResult.h + include/alibabacloud/rds/model/DescribePriceRequest.h + include/alibabacloud/rds/model/DescribePriceResult.h + include/alibabacloud/rds/model/DescribeDBInstanceByTagsRequest.h + include/alibabacloud/rds/model/DescribeDBInstanceByTagsResult.h + include/alibabacloud/rds/model/DescribeDBInstanceSSLRequest.h + include/alibabacloud/rds/model/DescribeDBInstanceSSLResult.h + include/alibabacloud/rds/model/CreateDampPolicyRequest.h + include/alibabacloud/rds/model/CreateDampPolicyResult.h + include/alibabacloud/rds/model/DescribeDBInstancesByPerformanceRequest.h + include/alibabacloud/rds/model/DescribeDBInstancesByPerformanceResult.h + include/alibabacloud/rds/model/RenewDBInstanceRequest.h + include/alibabacloud/rds/model/RenewDBInstanceResult.h + include/alibabacloud/rds/model/DescribeSQLReportsRequest.h + include/alibabacloud/rds/model/DescribeSQLReportsResult.h + include/alibabacloud/rds/model/QueryPriceForBuyRequest.h + include/alibabacloud/rds/model/QueryPriceForBuyResult.h + include/alibabacloud/rds/model/DescribeBackupTasksRequest.h + include/alibabacloud/rds/model/DescribeBackupTasksResult.h + include/alibabacloud/rds/model/DeleteDatabaseRequest.h + include/alibabacloud/rds/model/DeleteDatabaseResult.h + include/alibabacloud/rds/model/ModifyGuardDomainModeRequest.h + include/alibabacloud/rds/model/ModifyGuardDomainModeResult.h + include/alibabacloud/rds/model/DescribeBackupPolicyRequest.h + include/alibabacloud/rds/model/DescribeBackupPolicyResult.h + include/alibabacloud/rds/model/CreateMigrateTaskForSQLServerRequest.h + include/alibabacloud/rds/model/CreateMigrateTaskForSQLServerResult.h + include/alibabacloud/rds/model/DescribeDBInstanceIPArrayListRequest.h + include/alibabacloud/rds/model/DescribeDBInstanceIPArrayListResult.h + include/alibabacloud/rds/model/SwitchDBInstanceHARequest.h + include/alibabacloud/rds/model/SwitchDBInstanceHAResult.h + include/alibabacloud/rds/model/DescribeBackupSetsForSecurityRequest.h + include/alibabacloud/rds/model/DescribeBackupSetsForSecurityResult.h + include/alibabacloud/rds/model/ResetAccountForPGRequest.h + include/alibabacloud/rds/model/ResetAccountForPGResult.h + include/alibabacloud/rds/RdsClient.h + include/alibabacloud/rds/RdsExport.h + include/alibabacloud/rds/RdsRequest.h + ) + +set(rds_src + src/model/CreateMigrateTaskRequest.cc + src/model/CreateMigrateTaskResult.cc + src/model/CheckRecoveryConditionsRequest.cc + src/model/CheckRecoveryConditionsResult.cc + src/model/LoginDBInstancefromCloudDBARequest.cc + src/model/LoginDBInstancefromCloudDBAResult.cc + src/model/DeleteBackupRequest.cc + src/model/DeleteBackupResult.cc + src/model/DescribeDatabasesRequest.cc + src/model/DescribeDatabasesResult.cc + src/model/DescribeDBInstancesByExpireTimeRequest.cc + src/model/DescribeDBInstancesByExpireTimeResult.cc + src/model/SwitchDBInstanceNetTypeRequest.cc + src/model/SwitchDBInstanceNetTypeResult.cc + src/model/DescribeDBInstanceMonitorRequest.cc + src/model/DescribeDBInstanceMonitorResult.cc + src/model/CreateReadOnlyDBInstanceRequest.cc + src/model/CreateReadOnlyDBInstanceResult.cc + src/model/DescribeDBInstanceHAConfigRequest.cc + src/model/DescribeDBInstanceHAConfigResult.cc + src/model/ModifyAccountDescriptionRequest.cc + src/model/ModifyAccountDescriptionResult.cc + src/model/DescribeOssDownloadsRequest.cc + src/model/DescribeOssDownloadsResult.cc + src/model/ModifyParameterRequest.cc + src/model/ModifyParameterResult.cc + src/model/ReleaseReplicaRequest.cc + src/model/ReleaseReplicaResult.cc + src/model/UpgradeDBInstanceEngineVersionRequest.cc + src/model/UpgradeDBInstanceEngineVersionResult.cc + src/model/ModifyDBInstanceConnectionStringRequest.cc + src/model/ModifyDBInstanceConnectionStringResult.cc + src/model/StopSyncingRequest.cc + src/model/StopSyncingResult.cc + src/model/CheckAccountNameAvailableRequest.cc + src/model/CheckAccountNameAvailableResult.cc + src/model/RestartDBInstanceRequest.cc + src/model/RestartDBInstanceResult.cc + src/model/ImportDataForSQLServerRequest.cc + src/model/ImportDataForSQLServerResult.cc + src/model/DescribeLogicDBInstanceTopologyRequest.cc + src/model/DescribeLogicDBInstanceTopologyResult.cc + src/model/CheckResourceRequest.cc + src/model/CheckResourceResult.cc + src/model/DescribeTagsRequest.cc + src/model/DescribeTagsResult.cc + src/model/StartDBInstanceDiagnoseRequest.cc + src/model/StartDBInstanceDiagnoseResult.cc + src/model/DescribeCharacterSetNameRequest.cc + src/model/DescribeCharacterSetNameResult.cc + src/model/ImportDataFromDatabaseRequest.cc + src/model/ImportDataFromDatabaseResult.cc + src/model/DescribeMigrateTasksRequest.cc + src/model/DescribeMigrateTasksResult.cc + src/model/ModifyDBInstanceNetworkExpireTimeRequest.cc + src/model/ModifyDBInstanceNetworkExpireTimeResult.cc + src/model/CreateAccountRequest.cc + src/model/CreateAccountResult.cc + src/model/DescribeModifyParameterLogRequest.cc + src/model/DescribeModifyParameterLogResult.cc + src/model/DescribeOperatorPermissionRequest.cc + src/model/DescribeOperatorPermissionResult.cc + src/model/DescribeOptimizeAdviceOnMissIndexRequest.cc + src/model/DescribeOptimizeAdviceOnMissIndexResult.cc + src/model/DescribeDampPoliciesByCidRequest.cc + src/model/DescribeDampPoliciesByCidResult.cc + src/model/ModifyDBDescriptionRequest.cc + src/model/ModifyDBDescriptionResult.cc + src/model/ImportDatabaseBetweenInstancesRequest.cc + src/model/ImportDatabaseBetweenInstancesResult.cc + src/model/RenewInstanceRequest.cc + src/model/RenewInstanceResult.cc + src/model/CheckDBNameAvailableRequest.cc + src/model/CheckDBNameAvailableResult.cc + src/model/ModifyDBInstanceMonitorRequest.cc + src/model/ModifyDBInstanceMonitorResult.cc + src/model/DescribeSQLLogFilesRequest.cc + src/model/DescribeSQLLogFilesResult.cc + src/model/CancelImportRequest.cc + src/model/CancelImportResult.cc + src/model/DescribeReplicaInitializeProgressRequest.cc + src/model/DescribeReplicaInitializeProgressResult.cc + src/model/ModifyBackupPolicyRequest.cc + src/model/ModifyBackupPolicyResult.cc + src/model/ModifyReplicaDescriptionRequest.cc + src/model/ModifyReplicaDescriptionResult.cc + src/model/UpgradeDBInstanceNetWorkInfoRequest.cc + src/model/UpgradeDBInstanceNetWorkInfoResult.cc + src/model/AddTagsToResourceRequest.cc + src/model/AddTagsToResourceResult.cc + src/model/DescribeBinlogFilesRequest.cc + src/model/DescribeBinlogFilesResult.cc + src/model/DescribeBackupsForSecurityRequest.cc + src/model/DescribeBackupsForSecurityResult.cc + src/model/CreateDiagnosticReportRequest.cc + src/model/CreateDiagnosticReportResult.cc + src/model/DescribeSQLLogReportListRequest.cc + src/model/DescribeSQLLogReportListResult.cc + src/model/DescribeResourceDiagnosisRequest.cc + src/model/DescribeResourceDiagnosisResult.cc + src/model/CloneDBInstanceRequest.cc + src/model/CloneDBInstanceResult.cc + src/model/DescribeTasksRequest.cc + src/model/DescribeTasksResult.cc + src/model/CreateUploadPathForSQLServerRequest.cc + src/model/CreateUploadPathForSQLServerResult.cc + src/model/DescribeRenewalPriceRequest.cc + src/model/DescribeRenewalPriceResult.cc + src/model/AllocateInstancePublicConnectionRequest.cc + src/model/AllocateInstancePublicConnectionResult.cc + src/model/DescribeOptimizeAdviceOnStorageRequest.cc + src/model/DescribeOptimizeAdviceOnStorageResult.cc + src/model/DescribeInstanceAutoRenewAttributeRequest.cc + src/model/DescribeInstanceAutoRenewAttributeResult.cc + src/model/DescribeDBInstanceAttributeRequest.cc + src/model/DescribeDBInstanceAttributeResult.cc + src/model/DescribeDBInstanceUserRequest.cc + src/model/DescribeDBInstanceUserResult.cc + src/model/CreateTempDBInstanceRequest.cc + src/model/CreateTempDBInstanceResult.cc + src/model/DescribeImportsForSQLServerRequest.cc + src/model/DescribeImportsForSQLServerResult.cc + src/model/DescribeSQLCollectorPolicyRequest.cc + src/model/DescribeSQLCollectorPolicyResult.cc + src/model/ModifyInstanceAutoRenewalAttributeRequest.cc + src/model/ModifyInstanceAutoRenewalAttributeResult.cc + src/model/ModifySQLCollectorPolicyRequest.cc + src/model/ModifySQLCollectorPolicyResult.cc + src/model/DescribeBackupsRequest.cc + src/model/DescribeBackupsResult.cc + src/model/CreateDatabaseRequest.cc + src/model/CreateDatabaseResult.cc + src/model/DeleteDBInstanceRequest.cc + src/model/DeleteDBInstanceResult.cc + src/model/DescribeRealtimeDiagnosesRequest.cc + src/model/DescribeRealtimeDiagnosesResult.cc + src/model/DescribeSQLInjectionInfosRequest.cc + src/model/DescribeSQLInjectionInfosResult.cc + src/model/DescribeInstanceAutoRenewalAttributeRequest.cc + src/model/DescribeInstanceAutoRenewalAttributeResult.cc + src/model/AddBuDBInstanceRelationRequest.cc + src/model/AddBuDBInstanceRelationResult.cc + src/model/RestoreDBInstanceRequest.cc + src/model/RestoreDBInstanceResult.cc + src/model/RevokeOperatorPermissionRequest.cc + src/model/RevokeOperatorPermissionResult.cc + src/model/ModifyDBInstanceSpecRequest.cc + src/model/ModifyDBInstanceSpecResult.cc + src/model/DescribeDiagnosticReportListRequest.cc + src/model/DescribeDiagnosticReportListResult.cc + src/model/DescribeDBInstanceECSSGRelationRequest.cc + src/model/DescribeDBInstanceECSSGRelationResult.cc + src/model/RemoveTagsFromResourceRequest.cc + src/model/RemoveTagsFromResourceResult.cc + src/model/DescribeSQLLogRecordsRequest.cc + src/model/DescribeSQLLogRecordsResult.cc + src/model/ModifySecurityIpsRequest.cc + src/model/ModifySecurityIpsResult.cc + src/model/DescribeMigrateTasksForSQLServerRequest.cc + src/model/DescribeMigrateTasksForSQLServerResult.cc + src/model/ModifyReplicaModeRequest.cc + src/model/ModifyReplicaModeResult.cc + src/model/DeleteDampPolicyRequest.cc + src/model/DeleteDampPolicyResult.cc + src/model/GrantAccountPrivilegeRequest.cc + src/model/GrantAccountPrivilegeResult.cc + src/model/GrantOperatorPermissionRequest.cc + src/model/GrantOperatorPermissionResult.cc + src/model/ModifyPostpaidDBInstanceSpecRequest.cc + src/model/ModifyPostpaidDBInstanceSpecResult.cc + src/model/CreatePolicyWithSpecifiedPolicyRequest.cc + src/model/CreatePolicyWithSpecifiedPolicyResult.cc + src/model/ModifyDBInstanceTDERequest.cc + src/model/ModifyDBInstanceTDEResult.cc + src/model/DescribeDBInstancePerformanceRequest.cc + src/model/DescribeDBInstancePerformanceResult.cc + src/model/DescribeOptimizeAdviceOnBigTableRequest.cc + src/model/DescribeOptimizeAdviceOnBigTableResult.cc + src/model/DescribeVpcZoneNosRequest.cc + src/model/DescribeVpcZoneNosResult.cc + src/model/DescribeDampPolicyByCommentRequest.cc + src/model/DescribeDampPolicyByCommentResult.cc + src/model/DescribeDBInstanceExtendAttributeRequest.cc + src/model/DescribeDBInstanceExtendAttributeResult.cc + src/model/DescribeDBInstancesRequest.cc + src/model/DescribeDBInstancesResult.cc + src/model/DescribePreCheckResultsRequest.cc + src/model/DescribePreCheckResultsResult.cc + src/model/StartArchiveSQLLogRequest.cc + src/model/StartArchiveSQLLogResult.cc + src/model/CreateDBInstanceReplicaRequest.cc + src/model/CreateDBInstanceReplicaResult.cc + src/model/ModifyDampPolicyRequest.cc + src/model/ModifyDampPolicyResult.cc + src/model/AllocateInstancePrivateConnectionRequest.cc + src/model/AllocateInstancePrivateConnectionResult.cc + src/model/RevokeAccountPrivilegeRequest.cc + src/model/RevokeAccountPrivilegeResult.cc + src/model/DegradeDBInstanceSpecRequest.cc + src/model/DegradeDBInstanceSpecResult.cc + src/model/DescibeImportsFromDatabaseRequest.cc + src/model/DescibeImportsFromDatabaseResult.cc + src/model/DescribeParameterTemplatesRequest.cc + src/model/DescribeParameterTemplatesResult.cc + src/model/DescribeDatabaseLockDiagnosisRequest.cc + src/model/DescribeDatabaseLockDiagnosisResult.cc + src/model/DescribeOptimizeAdviceOnExcessIndexRequest.cc + src/model/DescribeOptimizeAdviceOnExcessIndexResult.cc + src/model/CopyDatabaseRequest.cc + src/model/CopyDatabaseResult.cc + src/model/CreateDBInstanceRequest.cc + src/model/CreateDBInstanceResult.cc + src/model/DescribeDBInstanceTDERequest.cc + src/model/DescribeDBInstanceTDEResult.cc + src/model/ModifyDBInstanceSSLRequest.cc + src/model/ModifyDBInstanceSSLResult.cc + src/model/DescribeSQLLogReportsRequest.cc + src/model/DescribeSQLLogReportsResult.cc + src/model/DescribeSQLDiagnosisListRequest.cc + src/model/DescribeSQLDiagnosisListResult.cc + src/model/ModifyDBInstanceConnectionModeRequest.cc + src/model/ModifyDBInstanceConnectionModeResult.cc + src/model/DescribeDBInstanceNetInfoRequest.cc + src/model/DescribeDBInstanceNetInfoResult.cc + src/model/AllocateReadWriteSplittingConnectionRequest.cc + src/model/AllocateReadWriteSplittingConnectionResult.cc + src/model/ReleaseInstancePublicConnectionRequest.cc + src/model/ReleaseInstancePublicConnectionResult.cc + src/model/CalculateDBInstanceWeightRequest.cc + src/model/CalculateDBInstanceWeightResult.cc + src/model/ModifyReplicaRelationRequest.cc + src/model/ModifyReplicaRelationResult.cc + src/model/ModifyDBInstanceNetworkTypeRequest.cc + src/model/ModifyDBInstanceNetworkTypeResult.cc + src/model/DescribeAbnormalDBInstancesRequest.cc + src/model/DescribeAbnormalDBInstancesResult.cc + src/model/DescribeDBInstanceNetworkRequest.cc + src/model/DescribeDBInstanceNetworkResult.cc + src/model/DescribeSlowLogsRequest.cc + src/model/DescribeSlowLogsResult.cc + src/model/CreateBackupRequest.cc + src/model/CreateBackupResult.cc + src/model/CreateSQLDiagnosisRequest.cc + src/model/CreateSQLDiagnosisResult.cc + src/model/DescribeReplicaUsageRequest.cc + src/model/DescribeReplicaUsageResult.cc + src/model/ModifyReadWriteSplittingConnectionRequest.cc + src/model/ModifyReadWriteSplittingConnectionResult.cc + src/model/DescribeDBInstanceNetworkDetailRequest.cc + src/model/DescribeDBInstanceNetworkDetailResult.cc + src/model/ModifyDBInstanceDescriptionRequest.cc + src/model/ModifyDBInstanceDescriptionResult.cc + src/model/ModifyDBInstanceMaintainTimeRequest.cc + src/model/ModifyDBInstanceMaintainTimeResult.cc + src/model/DescribeReplicaPerformanceRequest.cc + src/model/DescribeReplicaPerformanceResult.cc + src/model/DescribeSQLDiagnosisRequest.cc + src/model/DescribeSQLDiagnosisResult.cc + src/model/DescribeDampPolicyByPolicyNameRequest.cc + src/model/DescribeDampPolicyByPolicyNameResult.cc + src/model/ModifyResourceGroupRequest.cc + src/model/ModifyResourceGroupResult.cc + src/model/DescribeOssDownloadsForSQLServerRequest.cc + src/model/DescribeOssDownloadsForSQLServerResult.cc + src/model/RequestServiceOfCloudDBARequest.cc + src/model/RequestServiceOfCloudDBAResult.cc + src/model/ResetAccountRequest.cc + src/model/ResetAccountResult.cc + src/model/DescribeResourceUsageRequest.cc + src/model/DescribeResourceUsageResult.cc + src/model/PreCheckBeforeImportDataRequest.cc + src/model/PreCheckBeforeImportDataResult.cc + src/model/PurgeDBInstanceLogRequest.cc + src/model/PurgeDBInstanceLogResult.cc + src/model/DescribeTaskInfoRequest.cc + src/model/DescribeTaskInfoResult.cc + src/model/DescribeRegionsRequest.cc + src/model/DescribeRegionsResult.cc + src/model/MigrateToOtherZoneRequest.cc + src/model/MigrateToOtherZoneResult.cc + src/model/DeleteAccountRequest.cc + src/model/DeleteAccountResult.cc + src/model/DescribeOptimizeAdviceOnMissPKRequest.cc + src/model/DescribeOptimizeAdviceOnMissPKResult.cc + src/model/DescribeSlowLogRecordsRequest.cc + src/model/DescribeSlowLogRecordsResult.cc + src/model/ReleaseReadWriteSplittingConnectionRequest.cc + src/model/ReleaseReadWriteSplittingConnectionResult.cc + src/model/UpgradeDBInstanceNetworkRequest.cc + src/model/UpgradeDBInstanceNetworkResult.cc + src/model/DescribeFilesForSQLServerRequest.cc + src/model/DescribeFilesForSQLServerResult.cc + src/model/ModifyDBInstanceECSSGRelationRequest.cc + src/model/ModifyDBInstanceECSSGRelationResult.cc + src/model/DescribeErrorLogsRequest.cc + src/model/DescribeErrorLogsResult.cc + src/model/ModifyDBInstanceHAConfigRequest.cc + src/model/ModifyDBInstanceHAConfigResult.cc + src/model/DescribeDBInstancesAsCsvRequest.cc + src/model/DescribeDBInstancesAsCsvResult.cc + src/model/ResetAccountPasswordRequest.cc + src/model/ResetAccountPasswordResult.cc + src/model/DescribeAccountsRequest.cc + src/model/DescribeAccountsResult.cc + src/model/DescribePriceRequest.cc + src/model/DescribePriceResult.cc + src/model/DescribeDBInstanceByTagsRequest.cc + src/model/DescribeDBInstanceByTagsResult.cc + src/model/DescribeDBInstanceSSLRequest.cc + src/model/DescribeDBInstanceSSLResult.cc + src/model/CreateDampPolicyRequest.cc + src/model/CreateDampPolicyResult.cc + src/model/DescribeDBInstancesByPerformanceRequest.cc + src/model/DescribeDBInstancesByPerformanceResult.cc + src/model/RenewDBInstanceRequest.cc + src/model/RenewDBInstanceResult.cc + src/model/DescribeSQLReportsRequest.cc + src/model/DescribeSQLReportsResult.cc + src/model/QueryPriceForBuyRequest.cc + src/model/QueryPriceForBuyResult.cc + src/model/DescribeBackupTasksRequest.cc + src/model/DescribeBackupTasksResult.cc + src/model/DeleteDatabaseRequest.cc + src/model/DeleteDatabaseResult.cc + src/model/ModifyGuardDomainModeRequest.cc + src/model/ModifyGuardDomainModeResult.cc + src/model/DescribeBackupPolicyRequest.cc + src/model/DescribeBackupPolicyResult.cc + src/model/CreateMigrateTaskForSQLServerRequest.cc + src/model/CreateMigrateTaskForSQLServerResult.cc + src/model/DescribeDBInstanceIPArrayListRequest.cc + src/model/DescribeDBInstanceIPArrayListResult.cc + src/model/SwitchDBInstanceHARequest.cc + src/model/SwitchDBInstanceHAResult.cc + src/model/DescribeBackupSetsForSecurityRequest.cc + src/model/DescribeBackupSetsForSecurityResult.cc + src/model/ResetAccountForPGRequest.cc + src/model/ResetAccountForPGResult.cc + src/RdsClient.cc + src/RdsRequest.cc + ) + +add_library(rds ${LIB_TYPE} ${rds_public_header} ${rds_src}) + +set_target_properties(rds + PROPERTIES + LINKER_LANGUAGE CXX + ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib + LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib + RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin + OUTPUT_NAME ${TARGET_OUTPUT_NAME_PREFIX}rds + PUBLIC_HEADER "${rds_public_header}" + ) + +if(${LIB_TYPE} STREQUAL "SHARED") + set_target_properties(rds + PROPERTIES + DEFINE_SYMBOL ALIBABACLOUD_RDS_LIBRARY) +endif() + +target_include_directories(rds + PRIVATE include + ${CMAKE_SOURCE_DIR}/core/include + ) +target_link_libraries(rds + core) + +if(CMAKE_HOST_WIN32) + ExternalProject_Get_Property(jsoncpp INSTALL_DIR) + set(jsoncpp_install_dir ${INSTALL_DIR}) + add_dependencies(rds + jsoncpp) + target_include_directories(rds + PRIVATE ${jsoncpp_install_dir}/include) + target_link_libraries(rds + ${jsoncpp_install_dir}/lib/jsoncpp.lib) + set_target_properties(rds + PROPERTIES + COMPILE_OPTIONS "/bigobj") +else() + target_include_directories(rds + PRIVATE /usr/include/jsoncpp) + target_link_libraries(rds + jsoncpp) +endif() + +install(TARGETS rds + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/rds + ) diff --git a/rds/include/alibabacloud/rds/RdsClient.h b/rds/include/alibabacloud/rds/RdsClient.h new file mode 100644 index 000000000..0c071696a --- /dev/null +++ b/rds/include/alibabacloud/rds/RdsClient.h @@ -0,0 +1,1401 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_RDSCLIENT_H_ +#define ALIBABACLOUD_RDS_RDSCLIENT_H_ + +#include +#include +#include +#include +#include "RdsExport.h" +#include "model/CreateMigrateTaskRequest.h" +#include "model/CreateMigrateTaskResult.h" +#include "model/CheckRecoveryConditionsRequest.h" +#include "model/CheckRecoveryConditionsResult.h" +#include "model/LoginDBInstancefromCloudDBARequest.h" +#include "model/LoginDBInstancefromCloudDBAResult.h" +#include "model/DeleteBackupRequest.h" +#include "model/DeleteBackupResult.h" +#include "model/DescribeDatabasesRequest.h" +#include "model/DescribeDatabasesResult.h" +#include "model/DescribeDBInstancesByExpireTimeRequest.h" +#include "model/DescribeDBInstancesByExpireTimeResult.h" +#include "model/SwitchDBInstanceNetTypeRequest.h" +#include "model/SwitchDBInstanceNetTypeResult.h" +#include "model/DescribeDBInstanceMonitorRequest.h" +#include "model/DescribeDBInstanceMonitorResult.h" +#include "model/CreateReadOnlyDBInstanceRequest.h" +#include "model/CreateReadOnlyDBInstanceResult.h" +#include "model/DescribeDBInstanceHAConfigRequest.h" +#include "model/DescribeDBInstanceHAConfigResult.h" +#include "model/ModifyAccountDescriptionRequest.h" +#include "model/ModifyAccountDescriptionResult.h" +#include "model/DescribeOssDownloadsRequest.h" +#include "model/DescribeOssDownloadsResult.h" +#include "model/ModifyParameterRequest.h" +#include "model/ModifyParameterResult.h" +#include "model/ReleaseReplicaRequest.h" +#include "model/ReleaseReplicaResult.h" +#include "model/UpgradeDBInstanceEngineVersionRequest.h" +#include "model/UpgradeDBInstanceEngineVersionResult.h" +#include "model/ModifyDBInstanceConnectionStringRequest.h" +#include "model/ModifyDBInstanceConnectionStringResult.h" +#include "model/StopSyncingRequest.h" +#include "model/StopSyncingResult.h" +#include "model/CheckAccountNameAvailableRequest.h" +#include "model/CheckAccountNameAvailableResult.h" +#include "model/RestartDBInstanceRequest.h" +#include "model/RestartDBInstanceResult.h" +#include "model/ImportDataForSQLServerRequest.h" +#include "model/ImportDataForSQLServerResult.h" +#include "model/DescribeLogicDBInstanceTopologyRequest.h" +#include "model/DescribeLogicDBInstanceTopologyResult.h" +#include "model/CheckResourceRequest.h" +#include "model/CheckResourceResult.h" +#include "model/DescribeTagsRequest.h" +#include "model/DescribeTagsResult.h" +#include "model/StartDBInstanceDiagnoseRequest.h" +#include "model/StartDBInstanceDiagnoseResult.h" +#include "model/DescribeCharacterSetNameRequest.h" +#include "model/DescribeCharacterSetNameResult.h" +#include "model/ImportDataFromDatabaseRequest.h" +#include "model/ImportDataFromDatabaseResult.h" +#include "model/DescribeMigrateTasksRequest.h" +#include "model/DescribeMigrateTasksResult.h" +#include "model/ModifyDBInstanceNetworkExpireTimeRequest.h" +#include "model/ModifyDBInstanceNetworkExpireTimeResult.h" +#include "model/CreateAccountRequest.h" +#include "model/CreateAccountResult.h" +#include "model/DescribeModifyParameterLogRequest.h" +#include "model/DescribeModifyParameterLogResult.h" +#include "model/DescribeOperatorPermissionRequest.h" +#include "model/DescribeOperatorPermissionResult.h" +#include "model/DescribeOptimizeAdviceOnMissIndexRequest.h" +#include "model/DescribeOptimizeAdviceOnMissIndexResult.h" +#include "model/DescribeDampPoliciesByCidRequest.h" +#include "model/DescribeDampPoliciesByCidResult.h" +#include "model/ModifyDBDescriptionRequest.h" +#include "model/ModifyDBDescriptionResult.h" +#include "model/ImportDatabaseBetweenInstancesRequest.h" +#include "model/ImportDatabaseBetweenInstancesResult.h" +#include "model/RenewInstanceRequest.h" +#include "model/RenewInstanceResult.h" +#include "model/CheckDBNameAvailableRequest.h" +#include "model/CheckDBNameAvailableResult.h" +#include "model/ModifyDBInstanceMonitorRequest.h" +#include "model/ModifyDBInstanceMonitorResult.h" +#include "model/DescribeSQLLogFilesRequest.h" +#include "model/DescribeSQLLogFilesResult.h" +#include "model/CancelImportRequest.h" +#include "model/CancelImportResult.h" +#include "model/DescribeReplicaInitializeProgressRequest.h" +#include "model/DescribeReplicaInitializeProgressResult.h" +#include "model/ModifyBackupPolicyRequest.h" +#include "model/ModifyBackupPolicyResult.h" +#include "model/ModifyReplicaDescriptionRequest.h" +#include "model/ModifyReplicaDescriptionResult.h" +#include "model/UpgradeDBInstanceNetWorkInfoRequest.h" +#include "model/UpgradeDBInstanceNetWorkInfoResult.h" +#include "model/AddTagsToResourceRequest.h" +#include "model/AddTagsToResourceResult.h" +#include "model/DescribeBinlogFilesRequest.h" +#include "model/DescribeBinlogFilesResult.h" +#include "model/DescribeBackupsForSecurityRequest.h" +#include "model/DescribeBackupsForSecurityResult.h" +#include "model/CreateDiagnosticReportRequest.h" +#include "model/CreateDiagnosticReportResult.h" +#include "model/DescribeSQLLogReportListRequest.h" +#include "model/DescribeSQLLogReportListResult.h" +#include "model/DescribeResourceDiagnosisRequest.h" +#include "model/DescribeResourceDiagnosisResult.h" +#include "model/CloneDBInstanceRequest.h" +#include "model/CloneDBInstanceResult.h" +#include "model/DescribeTasksRequest.h" +#include "model/DescribeTasksResult.h" +#include "model/CreateUploadPathForSQLServerRequest.h" +#include "model/CreateUploadPathForSQLServerResult.h" +#include "model/DescribeRenewalPriceRequest.h" +#include "model/DescribeRenewalPriceResult.h" +#include "model/AllocateInstancePublicConnectionRequest.h" +#include "model/AllocateInstancePublicConnectionResult.h" +#include "model/DescribeOptimizeAdviceOnStorageRequest.h" +#include "model/DescribeOptimizeAdviceOnStorageResult.h" +#include "model/DescribeInstanceAutoRenewAttributeRequest.h" +#include "model/DescribeInstanceAutoRenewAttributeResult.h" +#include "model/DescribeDBInstanceAttributeRequest.h" +#include "model/DescribeDBInstanceAttributeResult.h" +#include "model/DescribeDBInstanceUserRequest.h" +#include "model/DescribeDBInstanceUserResult.h" +#include "model/CreateTempDBInstanceRequest.h" +#include "model/CreateTempDBInstanceResult.h" +#include "model/DescribeImportsForSQLServerRequest.h" +#include "model/DescribeImportsForSQLServerResult.h" +#include "model/DescribeSQLCollectorPolicyRequest.h" +#include "model/DescribeSQLCollectorPolicyResult.h" +#include "model/ModifyInstanceAutoRenewalAttributeRequest.h" +#include "model/ModifyInstanceAutoRenewalAttributeResult.h" +#include "model/ModifySQLCollectorPolicyRequest.h" +#include "model/ModifySQLCollectorPolicyResult.h" +#include "model/DescribeBackupsRequest.h" +#include "model/DescribeBackupsResult.h" +#include "model/CreateDatabaseRequest.h" +#include "model/CreateDatabaseResult.h" +#include "model/DeleteDBInstanceRequest.h" +#include "model/DeleteDBInstanceResult.h" +#include "model/DescribeRealtimeDiagnosesRequest.h" +#include "model/DescribeRealtimeDiagnosesResult.h" +#include "model/DescribeSQLInjectionInfosRequest.h" +#include "model/DescribeSQLInjectionInfosResult.h" +#include "model/DescribeInstanceAutoRenewalAttributeRequest.h" +#include "model/DescribeInstanceAutoRenewalAttributeResult.h" +#include "model/AddBuDBInstanceRelationRequest.h" +#include "model/AddBuDBInstanceRelationResult.h" +#include "model/RestoreDBInstanceRequest.h" +#include "model/RestoreDBInstanceResult.h" +#include "model/RevokeOperatorPermissionRequest.h" +#include "model/RevokeOperatorPermissionResult.h" +#include "model/ModifyDBInstanceSpecRequest.h" +#include "model/ModifyDBInstanceSpecResult.h" +#include "model/DescribeDiagnosticReportListRequest.h" +#include "model/DescribeDiagnosticReportListResult.h" +#include "model/DescribeDBInstanceECSSGRelationRequest.h" +#include "model/DescribeDBInstanceECSSGRelationResult.h" +#include "model/RemoveTagsFromResourceRequest.h" +#include "model/RemoveTagsFromResourceResult.h" +#include "model/DescribeSQLLogRecordsRequest.h" +#include "model/DescribeSQLLogRecordsResult.h" +#include "model/ModifySecurityIpsRequest.h" +#include "model/ModifySecurityIpsResult.h" +#include "model/DescribeMigrateTasksForSQLServerRequest.h" +#include "model/DescribeMigrateTasksForSQLServerResult.h" +#include "model/ModifyReplicaModeRequest.h" +#include "model/ModifyReplicaModeResult.h" +#include "model/DeleteDampPolicyRequest.h" +#include "model/DeleteDampPolicyResult.h" +#include "model/GrantAccountPrivilegeRequest.h" +#include "model/GrantAccountPrivilegeResult.h" +#include "model/GrantOperatorPermissionRequest.h" +#include "model/GrantOperatorPermissionResult.h" +#include "model/ModifyPostpaidDBInstanceSpecRequest.h" +#include "model/ModifyPostpaidDBInstanceSpecResult.h" +#include "model/CreatePolicyWithSpecifiedPolicyRequest.h" +#include "model/CreatePolicyWithSpecifiedPolicyResult.h" +#include "model/ModifyDBInstanceTDERequest.h" +#include "model/ModifyDBInstanceTDEResult.h" +#include "model/DescribeDBInstancePerformanceRequest.h" +#include "model/DescribeDBInstancePerformanceResult.h" +#include "model/DescribeOptimizeAdviceOnBigTableRequest.h" +#include "model/DescribeOptimizeAdviceOnBigTableResult.h" +#include "model/DescribeVpcZoneNosRequest.h" +#include "model/DescribeVpcZoneNosResult.h" +#include "model/DescribeDampPolicyByCommentRequest.h" +#include "model/DescribeDampPolicyByCommentResult.h" +#include "model/DescribeDBInstanceExtendAttributeRequest.h" +#include "model/DescribeDBInstanceExtendAttributeResult.h" +#include "model/DescribeDBInstancesRequest.h" +#include "model/DescribeDBInstancesResult.h" +#include "model/DescribePreCheckResultsRequest.h" +#include "model/DescribePreCheckResultsResult.h" +#include "model/StartArchiveSQLLogRequest.h" +#include "model/StartArchiveSQLLogResult.h" +#include "model/CreateDBInstanceReplicaRequest.h" +#include "model/CreateDBInstanceReplicaResult.h" +#include "model/ModifyDampPolicyRequest.h" +#include "model/ModifyDampPolicyResult.h" +#include "model/AllocateInstancePrivateConnectionRequest.h" +#include "model/AllocateInstancePrivateConnectionResult.h" +#include "model/RevokeAccountPrivilegeRequest.h" +#include "model/RevokeAccountPrivilegeResult.h" +#include "model/DegradeDBInstanceSpecRequest.h" +#include "model/DegradeDBInstanceSpecResult.h" +#include "model/DescibeImportsFromDatabaseRequest.h" +#include "model/DescibeImportsFromDatabaseResult.h" +#include "model/DescribeParameterTemplatesRequest.h" +#include "model/DescribeParameterTemplatesResult.h" +#include "model/DescribeDatabaseLockDiagnosisRequest.h" +#include "model/DescribeDatabaseLockDiagnosisResult.h" +#include "model/DescribeOptimizeAdviceOnExcessIndexRequest.h" +#include "model/DescribeOptimizeAdviceOnExcessIndexResult.h" +#include "model/CopyDatabaseRequest.h" +#include "model/CopyDatabaseResult.h" +#include "model/CreateDBInstanceRequest.h" +#include "model/CreateDBInstanceResult.h" +#include "model/DescribeDBInstanceTDERequest.h" +#include "model/DescribeDBInstanceTDEResult.h" +#include "model/ModifyDBInstanceSSLRequest.h" +#include "model/ModifyDBInstanceSSLResult.h" +#include "model/DescribeSQLLogReportsRequest.h" +#include "model/DescribeSQLLogReportsResult.h" +#include "model/DescribeSQLDiagnosisListRequest.h" +#include "model/DescribeSQLDiagnosisListResult.h" +#include "model/ModifyDBInstanceConnectionModeRequest.h" +#include "model/ModifyDBInstanceConnectionModeResult.h" +#include "model/DescribeDBInstanceNetInfoRequest.h" +#include "model/DescribeDBInstanceNetInfoResult.h" +#include "model/AllocateReadWriteSplittingConnectionRequest.h" +#include "model/AllocateReadWriteSplittingConnectionResult.h" +#include "model/ReleaseInstancePublicConnectionRequest.h" +#include "model/ReleaseInstancePublicConnectionResult.h" +#include "model/CalculateDBInstanceWeightRequest.h" +#include "model/CalculateDBInstanceWeightResult.h" +#include "model/ModifyReplicaRelationRequest.h" +#include "model/ModifyReplicaRelationResult.h" +#include "model/ModifyDBInstanceNetworkTypeRequest.h" +#include "model/ModifyDBInstanceNetworkTypeResult.h" +#include "model/DescribeAbnormalDBInstancesRequest.h" +#include "model/DescribeAbnormalDBInstancesResult.h" +#include "model/DescribeDBInstanceNetworkRequest.h" +#include "model/DescribeDBInstanceNetworkResult.h" +#include "model/DescribeSlowLogsRequest.h" +#include "model/DescribeSlowLogsResult.h" +#include "model/CreateBackupRequest.h" +#include "model/CreateBackupResult.h" +#include "model/CreateSQLDiagnosisRequest.h" +#include "model/CreateSQLDiagnosisResult.h" +#include "model/DescribeReplicaUsageRequest.h" +#include "model/DescribeReplicaUsageResult.h" +#include "model/ModifyReadWriteSplittingConnectionRequest.h" +#include "model/ModifyReadWriteSplittingConnectionResult.h" +#include "model/DescribeDBInstanceNetworkDetailRequest.h" +#include "model/DescribeDBInstanceNetworkDetailResult.h" +#include "model/ModifyDBInstanceDescriptionRequest.h" +#include "model/ModifyDBInstanceDescriptionResult.h" +#include "model/ModifyDBInstanceMaintainTimeRequest.h" +#include "model/ModifyDBInstanceMaintainTimeResult.h" +#include "model/DescribeReplicaPerformanceRequest.h" +#include "model/DescribeReplicaPerformanceResult.h" +#include "model/DescribeSQLDiagnosisRequest.h" +#include "model/DescribeSQLDiagnosisResult.h" +#include "model/DescribeDampPolicyByPolicyNameRequest.h" +#include "model/DescribeDampPolicyByPolicyNameResult.h" +#include "model/ModifyResourceGroupRequest.h" +#include "model/ModifyResourceGroupResult.h" +#include "model/DescribeOssDownloadsForSQLServerRequest.h" +#include "model/DescribeOssDownloadsForSQLServerResult.h" +#include "model/RequestServiceOfCloudDBARequest.h" +#include "model/RequestServiceOfCloudDBAResult.h" +#include "model/ResetAccountRequest.h" +#include "model/ResetAccountResult.h" +#include "model/DescribeResourceUsageRequest.h" +#include "model/DescribeResourceUsageResult.h" +#include "model/PreCheckBeforeImportDataRequest.h" +#include "model/PreCheckBeforeImportDataResult.h" +#include "model/PurgeDBInstanceLogRequest.h" +#include "model/PurgeDBInstanceLogResult.h" +#include "model/DescribeTaskInfoRequest.h" +#include "model/DescribeTaskInfoResult.h" +#include "model/DescribeRegionsRequest.h" +#include "model/DescribeRegionsResult.h" +#include "model/MigrateToOtherZoneRequest.h" +#include "model/MigrateToOtherZoneResult.h" +#include "model/DeleteAccountRequest.h" +#include "model/DeleteAccountResult.h" +#include "model/DescribeOptimizeAdviceOnMissPKRequest.h" +#include "model/DescribeOptimizeAdviceOnMissPKResult.h" +#include "model/DescribeSlowLogRecordsRequest.h" +#include "model/DescribeSlowLogRecordsResult.h" +#include "model/ReleaseReadWriteSplittingConnectionRequest.h" +#include "model/ReleaseReadWriteSplittingConnectionResult.h" +#include "model/UpgradeDBInstanceNetworkRequest.h" +#include "model/UpgradeDBInstanceNetworkResult.h" +#include "model/DescribeFilesForSQLServerRequest.h" +#include "model/DescribeFilesForSQLServerResult.h" +#include "model/ModifyDBInstanceECSSGRelationRequest.h" +#include "model/ModifyDBInstanceECSSGRelationResult.h" +#include "model/DescribeErrorLogsRequest.h" +#include "model/DescribeErrorLogsResult.h" +#include "model/ModifyDBInstanceHAConfigRequest.h" +#include "model/ModifyDBInstanceHAConfigResult.h" +#include "model/DescribeDBInstancesAsCsvRequest.h" +#include "model/DescribeDBInstancesAsCsvResult.h" +#include "model/ResetAccountPasswordRequest.h" +#include "model/ResetAccountPasswordResult.h" +#include "model/DescribeAccountsRequest.h" +#include "model/DescribeAccountsResult.h" +#include "model/DescribePriceRequest.h" +#include "model/DescribePriceResult.h" +#include "model/DescribeDBInstanceByTagsRequest.h" +#include "model/DescribeDBInstanceByTagsResult.h" +#include "model/DescribeDBInstanceSSLRequest.h" +#include "model/DescribeDBInstanceSSLResult.h" +#include "model/CreateDampPolicyRequest.h" +#include "model/CreateDampPolicyResult.h" +#include "model/DescribeDBInstancesByPerformanceRequest.h" +#include "model/DescribeDBInstancesByPerformanceResult.h" +#include "model/RenewDBInstanceRequest.h" +#include "model/RenewDBInstanceResult.h" +#include "model/DescribeSQLReportsRequest.h" +#include "model/DescribeSQLReportsResult.h" +#include "model/QueryPriceForBuyRequest.h" +#include "model/QueryPriceForBuyResult.h" +#include "model/DescribeBackupTasksRequest.h" +#include "model/DescribeBackupTasksResult.h" +#include "model/DeleteDatabaseRequest.h" +#include "model/DeleteDatabaseResult.h" +#include "model/ModifyGuardDomainModeRequest.h" +#include "model/ModifyGuardDomainModeResult.h" +#include "model/DescribeBackupPolicyRequest.h" +#include "model/DescribeBackupPolicyResult.h" +#include "model/CreateMigrateTaskForSQLServerRequest.h" +#include "model/CreateMigrateTaskForSQLServerResult.h" +#include "model/DescribeDBInstanceIPArrayListRequest.h" +#include "model/DescribeDBInstanceIPArrayListResult.h" +#include "model/SwitchDBInstanceHARequest.h" +#include "model/SwitchDBInstanceHAResult.h" +#include "model/DescribeBackupSetsForSecurityRequest.h" +#include "model/DescribeBackupSetsForSecurityResult.h" +#include "model/ResetAccountForPGRequest.h" +#include "model/ResetAccountForPGResult.h" + + +namespace AlibabaCloud +{ + namespace Rds + { + class ALIBABACLOUD_RDS_EXPORT RdsClient : public RpcServiceClient + { + public: + typedef Outcome CreateMigrateTaskOutcome; + typedef std::future CreateMigrateTaskOutcomeCallable; + typedef std::function&)> CreateMigrateTaskAsyncHandler; + typedef Outcome CheckRecoveryConditionsOutcome; + typedef std::future CheckRecoveryConditionsOutcomeCallable; + typedef std::function&)> CheckRecoveryConditionsAsyncHandler; + typedef Outcome LoginDBInstancefromCloudDBAOutcome; + typedef std::future LoginDBInstancefromCloudDBAOutcomeCallable; + typedef std::function&)> LoginDBInstancefromCloudDBAAsyncHandler; + typedef Outcome DeleteBackupOutcome; + typedef std::future DeleteBackupOutcomeCallable; + typedef std::function&)> DeleteBackupAsyncHandler; + typedef Outcome DescribeDatabasesOutcome; + typedef std::future DescribeDatabasesOutcomeCallable; + typedef std::function&)> DescribeDatabasesAsyncHandler; + typedef Outcome DescribeDBInstancesByExpireTimeOutcome; + typedef std::future DescribeDBInstancesByExpireTimeOutcomeCallable; + typedef std::function&)> DescribeDBInstancesByExpireTimeAsyncHandler; + typedef Outcome SwitchDBInstanceNetTypeOutcome; + typedef std::future SwitchDBInstanceNetTypeOutcomeCallable; + typedef std::function&)> SwitchDBInstanceNetTypeAsyncHandler; + typedef Outcome DescribeDBInstanceMonitorOutcome; + typedef std::future DescribeDBInstanceMonitorOutcomeCallable; + typedef std::function&)> DescribeDBInstanceMonitorAsyncHandler; + typedef Outcome CreateReadOnlyDBInstanceOutcome; + typedef std::future CreateReadOnlyDBInstanceOutcomeCallable; + typedef std::function&)> CreateReadOnlyDBInstanceAsyncHandler; + typedef Outcome DescribeDBInstanceHAConfigOutcome; + typedef std::future DescribeDBInstanceHAConfigOutcomeCallable; + typedef std::function&)> DescribeDBInstanceHAConfigAsyncHandler; + typedef Outcome ModifyAccountDescriptionOutcome; + typedef std::future ModifyAccountDescriptionOutcomeCallable; + typedef std::function&)> ModifyAccountDescriptionAsyncHandler; + typedef Outcome DescribeOssDownloadsOutcome; + typedef std::future DescribeOssDownloadsOutcomeCallable; + typedef std::function&)> DescribeOssDownloadsAsyncHandler; + typedef Outcome ModifyParameterOutcome; + typedef std::future ModifyParameterOutcomeCallable; + typedef std::function&)> ModifyParameterAsyncHandler; + typedef Outcome ReleaseReplicaOutcome; + typedef std::future ReleaseReplicaOutcomeCallable; + typedef std::function&)> ReleaseReplicaAsyncHandler; + typedef Outcome UpgradeDBInstanceEngineVersionOutcome; + typedef std::future UpgradeDBInstanceEngineVersionOutcomeCallable; + typedef std::function&)> UpgradeDBInstanceEngineVersionAsyncHandler; + typedef Outcome ModifyDBInstanceConnectionStringOutcome; + typedef std::future ModifyDBInstanceConnectionStringOutcomeCallable; + typedef std::function&)> ModifyDBInstanceConnectionStringAsyncHandler; + typedef Outcome StopSyncingOutcome; + typedef std::future StopSyncingOutcomeCallable; + typedef std::function&)> StopSyncingAsyncHandler; + typedef Outcome CheckAccountNameAvailableOutcome; + typedef std::future CheckAccountNameAvailableOutcomeCallable; + typedef std::function&)> CheckAccountNameAvailableAsyncHandler; + typedef Outcome RestartDBInstanceOutcome; + typedef std::future RestartDBInstanceOutcomeCallable; + typedef std::function&)> RestartDBInstanceAsyncHandler; + typedef Outcome ImportDataForSQLServerOutcome; + typedef std::future ImportDataForSQLServerOutcomeCallable; + typedef std::function&)> ImportDataForSQLServerAsyncHandler; + typedef Outcome DescribeLogicDBInstanceTopologyOutcome; + typedef std::future DescribeLogicDBInstanceTopologyOutcomeCallable; + typedef std::function&)> DescribeLogicDBInstanceTopologyAsyncHandler; + typedef Outcome CheckResourceOutcome; + typedef std::future CheckResourceOutcomeCallable; + typedef std::function&)> CheckResourceAsyncHandler; + typedef Outcome DescribeTagsOutcome; + typedef std::future DescribeTagsOutcomeCallable; + typedef std::function&)> DescribeTagsAsyncHandler; + typedef Outcome StartDBInstanceDiagnoseOutcome; + typedef std::future StartDBInstanceDiagnoseOutcomeCallable; + typedef std::function&)> StartDBInstanceDiagnoseAsyncHandler; + typedef Outcome DescribeCharacterSetNameOutcome; + typedef std::future DescribeCharacterSetNameOutcomeCallable; + typedef std::function&)> DescribeCharacterSetNameAsyncHandler; + typedef Outcome ImportDataFromDatabaseOutcome; + typedef std::future ImportDataFromDatabaseOutcomeCallable; + typedef std::function&)> ImportDataFromDatabaseAsyncHandler; + typedef Outcome DescribeMigrateTasksOutcome; + typedef std::future DescribeMigrateTasksOutcomeCallable; + typedef std::function&)> DescribeMigrateTasksAsyncHandler; + typedef Outcome ModifyDBInstanceNetworkExpireTimeOutcome; + typedef std::future ModifyDBInstanceNetworkExpireTimeOutcomeCallable; + typedef std::function&)> ModifyDBInstanceNetworkExpireTimeAsyncHandler; + typedef Outcome CreateAccountOutcome; + typedef std::future CreateAccountOutcomeCallable; + typedef std::function&)> CreateAccountAsyncHandler; + typedef Outcome DescribeModifyParameterLogOutcome; + typedef std::future DescribeModifyParameterLogOutcomeCallable; + typedef std::function&)> DescribeModifyParameterLogAsyncHandler; + typedef Outcome DescribeOperatorPermissionOutcome; + typedef std::future DescribeOperatorPermissionOutcomeCallable; + typedef std::function&)> DescribeOperatorPermissionAsyncHandler; + typedef Outcome DescribeOptimizeAdviceOnMissIndexOutcome; + typedef std::future DescribeOptimizeAdviceOnMissIndexOutcomeCallable; + typedef std::function&)> DescribeOptimizeAdviceOnMissIndexAsyncHandler; + typedef Outcome DescribeDampPoliciesByCidOutcome; + typedef std::future DescribeDampPoliciesByCidOutcomeCallable; + typedef std::function&)> DescribeDampPoliciesByCidAsyncHandler; + typedef Outcome ModifyDBDescriptionOutcome; + typedef std::future ModifyDBDescriptionOutcomeCallable; + typedef std::function&)> ModifyDBDescriptionAsyncHandler; + typedef Outcome ImportDatabaseBetweenInstancesOutcome; + typedef std::future ImportDatabaseBetweenInstancesOutcomeCallable; + typedef std::function&)> ImportDatabaseBetweenInstancesAsyncHandler; + typedef Outcome RenewInstanceOutcome; + typedef std::future RenewInstanceOutcomeCallable; + typedef std::function&)> RenewInstanceAsyncHandler; + typedef Outcome CheckDBNameAvailableOutcome; + typedef std::future CheckDBNameAvailableOutcomeCallable; + typedef std::function&)> CheckDBNameAvailableAsyncHandler; + typedef Outcome ModifyDBInstanceMonitorOutcome; + typedef std::future ModifyDBInstanceMonitorOutcomeCallable; + typedef std::function&)> ModifyDBInstanceMonitorAsyncHandler; + typedef Outcome DescribeSQLLogFilesOutcome; + typedef std::future DescribeSQLLogFilesOutcomeCallable; + typedef std::function&)> DescribeSQLLogFilesAsyncHandler; + typedef Outcome CancelImportOutcome; + typedef std::future CancelImportOutcomeCallable; + typedef std::function&)> CancelImportAsyncHandler; + typedef Outcome DescribeReplicaInitializeProgressOutcome; + typedef std::future DescribeReplicaInitializeProgressOutcomeCallable; + typedef std::function&)> DescribeReplicaInitializeProgressAsyncHandler; + typedef Outcome ModifyBackupPolicyOutcome; + typedef std::future ModifyBackupPolicyOutcomeCallable; + typedef std::function&)> ModifyBackupPolicyAsyncHandler; + typedef Outcome ModifyReplicaDescriptionOutcome; + typedef std::future ModifyReplicaDescriptionOutcomeCallable; + typedef std::function&)> ModifyReplicaDescriptionAsyncHandler; + typedef Outcome UpgradeDBInstanceNetWorkInfoOutcome; + typedef std::future UpgradeDBInstanceNetWorkInfoOutcomeCallable; + typedef std::function&)> UpgradeDBInstanceNetWorkInfoAsyncHandler; + typedef Outcome AddTagsToResourceOutcome; + typedef std::future AddTagsToResourceOutcomeCallable; + typedef std::function&)> AddTagsToResourceAsyncHandler; + typedef Outcome DescribeBinlogFilesOutcome; + typedef std::future DescribeBinlogFilesOutcomeCallable; + typedef std::function&)> DescribeBinlogFilesAsyncHandler; + typedef Outcome DescribeBackupsForSecurityOutcome; + typedef std::future DescribeBackupsForSecurityOutcomeCallable; + typedef std::function&)> DescribeBackupsForSecurityAsyncHandler; + typedef Outcome CreateDiagnosticReportOutcome; + typedef std::future CreateDiagnosticReportOutcomeCallable; + typedef std::function&)> CreateDiagnosticReportAsyncHandler; + typedef Outcome DescribeSQLLogReportListOutcome; + typedef std::future DescribeSQLLogReportListOutcomeCallable; + typedef std::function&)> DescribeSQLLogReportListAsyncHandler; + typedef Outcome DescribeResourceDiagnosisOutcome; + typedef std::future DescribeResourceDiagnosisOutcomeCallable; + typedef std::function&)> DescribeResourceDiagnosisAsyncHandler; + typedef Outcome CloneDBInstanceOutcome; + typedef std::future CloneDBInstanceOutcomeCallable; + typedef std::function&)> CloneDBInstanceAsyncHandler; + typedef Outcome DescribeTasksOutcome; + typedef std::future DescribeTasksOutcomeCallable; + typedef std::function&)> DescribeTasksAsyncHandler; + typedef Outcome CreateUploadPathForSQLServerOutcome; + typedef std::future CreateUploadPathForSQLServerOutcomeCallable; + typedef std::function&)> CreateUploadPathForSQLServerAsyncHandler; + typedef Outcome DescribeRenewalPriceOutcome; + typedef std::future DescribeRenewalPriceOutcomeCallable; + typedef std::function&)> DescribeRenewalPriceAsyncHandler; + typedef Outcome AllocateInstancePublicConnectionOutcome; + typedef std::future AllocateInstancePublicConnectionOutcomeCallable; + typedef std::function&)> AllocateInstancePublicConnectionAsyncHandler; + typedef Outcome DescribeOptimizeAdviceOnStorageOutcome; + typedef std::future DescribeOptimizeAdviceOnStorageOutcomeCallable; + typedef std::function&)> DescribeOptimizeAdviceOnStorageAsyncHandler; + typedef Outcome DescribeInstanceAutoRenewAttributeOutcome; + typedef std::future DescribeInstanceAutoRenewAttributeOutcomeCallable; + typedef std::function&)> DescribeInstanceAutoRenewAttributeAsyncHandler; + typedef Outcome DescribeDBInstanceAttributeOutcome; + typedef std::future DescribeDBInstanceAttributeOutcomeCallable; + typedef std::function&)> DescribeDBInstanceAttributeAsyncHandler; + typedef Outcome DescribeDBInstanceUserOutcome; + typedef std::future DescribeDBInstanceUserOutcomeCallable; + typedef std::function&)> DescribeDBInstanceUserAsyncHandler; + typedef Outcome CreateTempDBInstanceOutcome; + typedef std::future CreateTempDBInstanceOutcomeCallable; + typedef std::function&)> CreateTempDBInstanceAsyncHandler; + typedef Outcome DescribeImportsForSQLServerOutcome; + typedef std::future DescribeImportsForSQLServerOutcomeCallable; + typedef std::function&)> DescribeImportsForSQLServerAsyncHandler; + typedef Outcome DescribeSQLCollectorPolicyOutcome; + typedef std::future DescribeSQLCollectorPolicyOutcomeCallable; + typedef std::function&)> DescribeSQLCollectorPolicyAsyncHandler; + typedef Outcome ModifyInstanceAutoRenewalAttributeOutcome; + typedef std::future ModifyInstanceAutoRenewalAttributeOutcomeCallable; + typedef std::function&)> ModifyInstanceAutoRenewalAttributeAsyncHandler; + typedef Outcome ModifySQLCollectorPolicyOutcome; + typedef std::future ModifySQLCollectorPolicyOutcomeCallable; + typedef std::function&)> ModifySQLCollectorPolicyAsyncHandler; + typedef Outcome DescribeBackupsOutcome; + typedef std::future DescribeBackupsOutcomeCallable; + typedef std::function&)> DescribeBackupsAsyncHandler; + typedef Outcome CreateDatabaseOutcome; + typedef std::future CreateDatabaseOutcomeCallable; + typedef std::function&)> CreateDatabaseAsyncHandler; + typedef Outcome DeleteDBInstanceOutcome; + typedef std::future DeleteDBInstanceOutcomeCallable; + typedef std::function&)> DeleteDBInstanceAsyncHandler; + typedef Outcome DescribeRealtimeDiagnosesOutcome; + typedef std::future DescribeRealtimeDiagnosesOutcomeCallable; + typedef std::function&)> DescribeRealtimeDiagnosesAsyncHandler; + typedef Outcome DescribeSQLInjectionInfosOutcome; + typedef std::future DescribeSQLInjectionInfosOutcomeCallable; + typedef std::function&)> DescribeSQLInjectionInfosAsyncHandler; + typedef Outcome DescribeInstanceAutoRenewalAttributeOutcome; + typedef std::future DescribeInstanceAutoRenewalAttributeOutcomeCallable; + typedef std::function&)> DescribeInstanceAutoRenewalAttributeAsyncHandler; + typedef Outcome AddBuDBInstanceRelationOutcome; + typedef std::future AddBuDBInstanceRelationOutcomeCallable; + typedef std::function&)> AddBuDBInstanceRelationAsyncHandler; + typedef Outcome RestoreDBInstanceOutcome; + typedef std::future RestoreDBInstanceOutcomeCallable; + typedef std::function&)> RestoreDBInstanceAsyncHandler; + typedef Outcome RevokeOperatorPermissionOutcome; + typedef std::future RevokeOperatorPermissionOutcomeCallable; + typedef std::function&)> RevokeOperatorPermissionAsyncHandler; + typedef Outcome ModifyDBInstanceSpecOutcome; + typedef std::future ModifyDBInstanceSpecOutcomeCallable; + typedef std::function&)> ModifyDBInstanceSpecAsyncHandler; + typedef Outcome DescribeDiagnosticReportListOutcome; + typedef std::future DescribeDiagnosticReportListOutcomeCallable; + typedef std::function&)> DescribeDiagnosticReportListAsyncHandler; + typedef Outcome DescribeDBInstanceECSSGRelationOutcome; + typedef std::future DescribeDBInstanceECSSGRelationOutcomeCallable; + typedef std::function&)> DescribeDBInstanceECSSGRelationAsyncHandler; + typedef Outcome RemoveTagsFromResourceOutcome; + typedef std::future RemoveTagsFromResourceOutcomeCallable; + typedef std::function&)> RemoveTagsFromResourceAsyncHandler; + typedef Outcome DescribeSQLLogRecordsOutcome; + typedef std::future DescribeSQLLogRecordsOutcomeCallable; + typedef std::function&)> DescribeSQLLogRecordsAsyncHandler; + typedef Outcome ModifySecurityIpsOutcome; + typedef std::future ModifySecurityIpsOutcomeCallable; + typedef std::function&)> ModifySecurityIpsAsyncHandler; + typedef Outcome DescribeMigrateTasksForSQLServerOutcome; + typedef std::future DescribeMigrateTasksForSQLServerOutcomeCallable; + typedef std::function&)> DescribeMigrateTasksForSQLServerAsyncHandler; + typedef Outcome ModifyReplicaModeOutcome; + typedef std::future ModifyReplicaModeOutcomeCallable; + typedef std::function&)> ModifyReplicaModeAsyncHandler; + typedef Outcome DeleteDampPolicyOutcome; + typedef std::future DeleteDampPolicyOutcomeCallable; + typedef std::function&)> DeleteDampPolicyAsyncHandler; + typedef Outcome GrantAccountPrivilegeOutcome; + typedef std::future GrantAccountPrivilegeOutcomeCallable; + typedef std::function&)> GrantAccountPrivilegeAsyncHandler; + typedef Outcome GrantOperatorPermissionOutcome; + typedef std::future GrantOperatorPermissionOutcomeCallable; + typedef std::function&)> GrantOperatorPermissionAsyncHandler; + typedef Outcome ModifyPostpaidDBInstanceSpecOutcome; + typedef std::future ModifyPostpaidDBInstanceSpecOutcomeCallable; + typedef std::function&)> ModifyPostpaidDBInstanceSpecAsyncHandler; + typedef Outcome CreatePolicyWithSpecifiedPolicyOutcome; + typedef std::future CreatePolicyWithSpecifiedPolicyOutcomeCallable; + typedef std::function&)> CreatePolicyWithSpecifiedPolicyAsyncHandler; + typedef Outcome ModifyDBInstanceTDEOutcome; + typedef std::future ModifyDBInstanceTDEOutcomeCallable; + typedef std::function&)> ModifyDBInstanceTDEAsyncHandler; + typedef Outcome DescribeDBInstancePerformanceOutcome; + typedef std::future DescribeDBInstancePerformanceOutcomeCallable; + typedef std::function&)> DescribeDBInstancePerformanceAsyncHandler; + typedef Outcome DescribeOptimizeAdviceOnBigTableOutcome; + typedef std::future DescribeOptimizeAdviceOnBigTableOutcomeCallable; + typedef std::function&)> DescribeOptimizeAdviceOnBigTableAsyncHandler; + typedef Outcome DescribeVpcZoneNosOutcome; + typedef std::future DescribeVpcZoneNosOutcomeCallable; + typedef std::function&)> DescribeVpcZoneNosAsyncHandler; + typedef Outcome DescribeDampPolicyByCommentOutcome; + typedef std::future DescribeDampPolicyByCommentOutcomeCallable; + typedef std::function&)> DescribeDampPolicyByCommentAsyncHandler; + typedef Outcome DescribeDBInstanceExtendAttributeOutcome; + typedef std::future DescribeDBInstanceExtendAttributeOutcomeCallable; + typedef std::function&)> DescribeDBInstanceExtendAttributeAsyncHandler; + typedef Outcome DescribeDBInstancesOutcome; + typedef std::future DescribeDBInstancesOutcomeCallable; + typedef std::function&)> DescribeDBInstancesAsyncHandler; + typedef Outcome DescribePreCheckResultsOutcome; + typedef std::future DescribePreCheckResultsOutcomeCallable; + typedef std::function&)> DescribePreCheckResultsAsyncHandler; + typedef Outcome StartArchiveSQLLogOutcome; + typedef std::future StartArchiveSQLLogOutcomeCallable; + typedef std::function&)> StartArchiveSQLLogAsyncHandler; + typedef Outcome CreateDBInstanceReplicaOutcome; + typedef std::future CreateDBInstanceReplicaOutcomeCallable; + typedef std::function&)> CreateDBInstanceReplicaAsyncHandler; + typedef Outcome ModifyDampPolicyOutcome; + typedef std::future ModifyDampPolicyOutcomeCallable; + typedef std::function&)> ModifyDampPolicyAsyncHandler; + typedef Outcome AllocateInstancePrivateConnectionOutcome; + typedef std::future AllocateInstancePrivateConnectionOutcomeCallable; + typedef std::function&)> AllocateInstancePrivateConnectionAsyncHandler; + typedef Outcome RevokeAccountPrivilegeOutcome; + typedef std::future RevokeAccountPrivilegeOutcomeCallable; + typedef std::function&)> RevokeAccountPrivilegeAsyncHandler; + typedef Outcome DegradeDBInstanceSpecOutcome; + typedef std::future DegradeDBInstanceSpecOutcomeCallable; + typedef std::function&)> DegradeDBInstanceSpecAsyncHandler; + typedef Outcome DescibeImportsFromDatabaseOutcome; + typedef std::future DescibeImportsFromDatabaseOutcomeCallable; + typedef std::function&)> DescibeImportsFromDatabaseAsyncHandler; + typedef Outcome DescribeParameterTemplatesOutcome; + typedef std::future DescribeParameterTemplatesOutcomeCallable; + typedef std::function&)> DescribeParameterTemplatesAsyncHandler; + typedef Outcome DescribeDatabaseLockDiagnosisOutcome; + typedef std::future DescribeDatabaseLockDiagnosisOutcomeCallable; + typedef std::function&)> DescribeDatabaseLockDiagnosisAsyncHandler; + typedef Outcome DescribeOptimizeAdviceOnExcessIndexOutcome; + typedef std::future DescribeOptimizeAdviceOnExcessIndexOutcomeCallable; + typedef std::function&)> DescribeOptimizeAdviceOnExcessIndexAsyncHandler; + typedef Outcome CopyDatabaseOutcome; + typedef std::future CopyDatabaseOutcomeCallable; + typedef std::function&)> CopyDatabaseAsyncHandler; + typedef Outcome CreateDBInstanceOutcome; + typedef std::future CreateDBInstanceOutcomeCallable; + typedef std::function&)> CreateDBInstanceAsyncHandler; + typedef Outcome DescribeDBInstanceTDEOutcome; + typedef std::future DescribeDBInstanceTDEOutcomeCallable; + typedef std::function&)> DescribeDBInstanceTDEAsyncHandler; + typedef Outcome ModifyDBInstanceSSLOutcome; + typedef std::future ModifyDBInstanceSSLOutcomeCallable; + typedef std::function&)> ModifyDBInstanceSSLAsyncHandler; + typedef Outcome DescribeSQLLogReportsOutcome; + typedef std::future DescribeSQLLogReportsOutcomeCallable; + typedef std::function&)> DescribeSQLLogReportsAsyncHandler; + typedef Outcome DescribeSQLDiagnosisListOutcome; + typedef std::future DescribeSQLDiagnosisListOutcomeCallable; + typedef std::function&)> DescribeSQLDiagnosisListAsyncHandler; + typedef Outcome ModifyDBInstanceConnectionModeOutcome; + typedef std::future ModifyDBInstanceConnectionModeOutcomeCallable; + typedef std::function&)> ModifyDBInstanceConnectionModeAsyncHandler; + typedef Outcome DescribeDBInstanceNetInfoOutcome; + typedef std::future DescribeDBInstanceNetInfoOutcomeCallable; + typedef std::function&)> DescribeDBInstanceNetInfoAsyncHandler; + typedef Outcome AllocateReadWriteSplittingConnectionOutcome; + typedef std::future AllocateReadWriteSplittingConnectionOutcomeCallable; + typedef std::function&)> AllocateReadWriteSplittingConnectionAsyncHandler; + typedef Outcome ReleaseInstancePublicConnectionOutcome; + typedef std::future ReleaseInstancePublicConnectionOutcomeCallable; + typedef std::function&)> ReleaseInstancePublicConnectionAsyncHandler; + typedef Outcome CalculateDBInstanceWeightOutcome; + typedef std::future CalculateDBInstanceWeightOutcomeCallable; + typedef std::function&)> CalculateDBInstanceWeightAsyncHandler; + typedef Outcome ModifyReplicaRelationOutcome; + typedef std::future ModifyReplicaRelationOutcomeCallable; + typedef std::function&)> ModifyReplicaRelationAsyncHandler; + typedef Outcome ModifyDBInstanceNetworkTypeOutcome; + typedef std::future ModifyDBInstanceNetworkTypeOutcomeCallable; + typedef std::function&)> ModifyDBInstanceNetworkTypeAsyncHandler; + typedef Outcome DescribeAbnormalDBInstancesOutcome; + typedef std::future DescribeAbnormalDBInstancesOutcomeCallable; + typedef std::function&)> DescribeAbnormalDBInstancesAsyncHandler; + typedef Outcome DescribeDBInstanceNetworkOutcome; + typedef std::future DescribeDBInstanceNetworkOutcomeCallable; + typedef std::function&)> DescribeDBInstanceNetworkAsyncHandler; + typedef Outcome DescribeSlowLogsOutcome; + typedef std::future DescribeSlowLogsOutcomeCallable; + typedef std::function&)> DescribeSlowLogsAsyncHandler; + typedef Outcome CreateBackupOutcome; + typedef std::future CreateBackupOutcomeCallable; + typedef std::function&)> CreateBackupAsyncHandler; + typedef Outcome CreateSQLDiagnosisOutcome; + typedef std::future CreateSQLDiagnosisOutcomeCallable; + typedef std::function&)> CreateSQLDiagnosisAsyncHandler; + typedef Outcome DescribeReplicaUsageOutcome; + typedef std::future DescribeReplicaUsageOutcomeCallable; + typedef std::function&)> DescribeReplicaUsageAsyncHandler; + typedef Outcome ModifyReadWriteSplittingConnectionOutcome; + typedef std::future ModifyReadWriteSplittingConnectionOutcomeCallable; + typedef std::function&)> ModifyReadWriteSplittingConnectionAsyncHandler; + typedef Outcome DescribeDBInstanceNetworkDetailOutcome; + typedef std::future DescribeDBInstanceNetworkDetailOutcomeCallable; + typedef std::function&)> DescribeDBInstanceNetworkDetailAsyncHandler; + typedef Outcome ModifyDBInstanceDescriptionOutcome; + typedef std::future ModifyDBInstanceDescriptionOutcomeCallable; + typedef std::function&)> ModifyDBInstanceDescriptionAsyncHandler; + typedef Outcome ModifyDBInstanceMaintainTimeOutcome; + typedef std::future ModifyDBInstanceMaintainTimeOutcomeCallable; + typedef std::function&)> ModifyDBInstanceMaintainTimeAsyncHandler; + typedef Outcome DescribeReplicaPerformanceOutcome; + typedef std::future DescribeReplicaPerformanceOutcomeCallable; + typedef std::function&)> DescribeReplicaPerformanceAsyncHandler; + typedef Outcome DescribeSQLDiagnosisOutcome; + typedef std::future DescribeSQLDiagnosisOutcomeCallable; + typedef std::function&)> DescribeSQLDiagnosisAsyncHandler; + typedef Outcome DescribeDampPolicyByPolicyNameOutcome; + typedef std::future DescribeDampPolicyByPolicyNameOutcomeCallable; + typedef std::function&)> DescribeDampPolicyByPolicyNameAsyncHandler; + typedef Outcome ModifyResourceGroupOutcome; + typedef std::future ModifyResourceGroupOutcomeCallable; + typedef std::function&)> ModifyResourceGroupAsyncHandler; + typedef Outcome DescribeOssDownloadsForSQLServerOutcome; + typedef std::future DescribeOssDownloadsForSQLServerOutcomeCallable; + typedef std::function&)> DescribeOssDownloadsForSQLServerAsyncHandler; + typedef Outcome RequestServiceOfCloudDBAOutcome; + typedef std::future RequestServiceOfCloudDBAOutcomeCallable; + typedef std::function&)> RequestServiceOfCloudDBAAsyncHandler; + typedef Outcome ResetAccountOutcome; + typedef std::future ResetAccountOutcomeCallable; + typedef std::function&)> ResetAccountAsyncHandler; + typedef Outcome DescribeResourceUsageOutcome; + typedef std::future DescribeResourceUsageOutcomeCallable; + typedef std::function&)> DescribeResourceUsageAsyncHandler; + typedef Outcome PreCheckBeforeImportDataOutcome; + typedef std::future PreCheckBeforeImportDataOutcomeCallable; + typedef std::function&)> PreCheckBeforeImportDataAsyncHandler; + typedef Outcome PurgeDBInstanceLogOutcome; + typedef std::future PurgeDBInstanceLogOutcomeCallable; + typedef std::function&)> PurgeDBInstanceLogAsyncHandler; + typedef Outcome DescribeTaskInfoOutcome; + typedef std::future DescribeTaskInfoOutcomeCallable; + typedef std::function&)> DescribeTaskInfoAsyncHandler; + typedef Outcome DescribeRegionsOutcome; + typedef std::future DescribeRegionsOutcomeCallable; + typedef std::function&)> DescribeRegionsAsyncHandler; + typedef Outcome MigrateToOtherZoneOutcome; + typedef std::future MigrateToOtherZoneOutcomeCallable; + typedef std::function&)> MigrateToOtherZoneAsyncHandler; + typedef Outcome DeleteAccountOutcome; + typedef std::future DeleteAccountOutcomeCallable; + typedef std::function&)> DeleteAccountAsyncHandler; + typedef Outcome DescribeOptimizeAdviceOnMissPKOutcome; + typedef std::future DescribeOptimizeAdviceOnMissPKOutcomeCallable; + typedef std::function&)> DescribeOptimizeAdviceOnMissPKAsyncHandler; + typedef Outcome DescribeSlowLogRecordsOutcome; + typedef std::future DescribeSlowLogRecordsOutcomeCallable; + typedef std::function&)> DescribeSlowLogRecordsAsyncHandler; + typedef Outcome ReleaseReadWriteSplittingConnectionOutcome; + typedef std::future ReleaseReadWriteSplittingConnectionOutcomeCallable; + typedef std::function&)> ReleaseReadWriteSplittingConnectionAsyncHandler; + typedef Outcome UpgradeDBInstanceNetworkOutcome; + typedef std::future UpgradeDBInstanceNetworkOutcomeCallable; + typedef std::function&)> UpgradeDBInstanceNetworkAsyncHandler; + typedef Outcome DescribeFilesForSQLServerOutcome; + typedef std::future DescribeFilesForSQLServerOutcomeCallable; + typedef std::function&)> DescribeFilesForSQLServerAsyncHandler; + typedef Outcome ModifyDBInstanceECSSGRelationOutcome; + typedef std::future ModifyDBInstanceECSSGRelationOutcomeCallable; + typedef std::function&)> ModifyDBInstanceECSSGRelationAsyncHandler; + typedef Outcome DescribeErrorLogsOutcome; + typedef std::future DescribeErrorLogsOutcomeCallable; + typedef std::function&)> DescribeErrorLogsAsyncHandler; + typedef Outcome ModifyDBInstanceHAConfigOutcome; + typedef std::future ModifyDBInstanceHAConfigOutcomeCallable; + typedef std::function&)> ModifyDBInstanceHAConfigAsyncHandler; + typedef Outcome DescribeDBInstancesAsCsvOutcome; + typedef std::future DescribeDBInstancesAsCsvOutcomeCallable; + typedef std::function&)> DescribeDBInstancesAsCsvAsyncHandler; + typedef Outcome ResetAccountPasswordOutcome; + typedef std::future ResetAccountPasswordOutcomeCallable; + typedef std::function&)> ResetAccountPasswordAsyncHandler; + typedef Outcome DescribeAccountsOutcome; + typedef std::future DescribeAccountsOutcomeCallable; + typedef std::function&)> DescribeAccountsAsyncHandler; + typedef Outcome DescribePriceOutcome; + typedef std::future DescribePriceOutcomeCallable; + typedef std::function&)> DescribePriceAsyncHandler; + typedef Outcome DescribeDBInstanceByTagsOutcome; + typedef std::future DescribeDBInstanceByTagsOutcomeCallable; + typedef std::function&)> DescribeDBInstanceByTagsAsyncHandler; + typedef Outcome DescribeDBInstanceSSLOutcome; + typedef std::future DescribeDBInstanceSSLOutcomeCallable; + typedef std::function&)> DescribeDBInstanceSSLAsyncHandler; + typedef Outcome CreateDampPolicyOutcome; + typedef std::future CreateDampPolicyOutcomeCallable; + typedef std::function&)> CreateDampPolicyAsyncHandler; + typedef Outcome DescribeDBInstancesByPerformanceOutcome; + typedef std::future DescribeDBInstancesByPerformanceOutcomeCallable; + typedef std::function&)> DescribeDBInstancesByPerformanceAsyncHandler; + typedef Outcome RenewDBInstanceOutcome; + typedef std::future RenewDBInstanceOutcomeCallable; + typedef std::function&)> RenewDBInstanceAsyncHandler; + typedef Outcome DescribeSQLReportsOutcome; + typedef std::future DescribeSQLReportsOutcomeCallable; + typedef std::function&)> DescribeSQLReportsAsyncHandler; + typedef Outcome QueryPriceForBuyOutcome; + typedef std::future QueryPriceForBuyOutcomeCallable; + typedef std::function&)> QueryPriceForBuyAsyncHandler; + typedef Outcome DescribeBackupTasksOutcome; + typedef std::future DescribeBackupTasksOutcomeCallable; + typedef std::function&)> DescribeBackupTasksAsyncHandler; + typedef Outcome DeleteDatabaseOutcome; + typedef std::future DeleteDatabaseOutcomeCallable; + typedef std::function&)> DeleteDatabaseAsyncHandler; + typedef Outcome ModifyGuardDomainModeOutcome; + typedef std::future ModifyGuardDomainModeOutcomeCallable; + typedef std::function&)> ModifyGuardDomainModeAsyncHandler; + typedef Outcome DescribeBackupPolicyOutcome; + typedef std::future DescribeBackupPolicyOutcomeCallable; + typedef std::function&)> DescribeBackupPolicyAsyncHandler; + typedef Outcome CreateMigrateTaskForSQLServerOutcome; + typedef std::future CreateMigrateTaskForSQLServerOutcomeCallable; + typedef std::function&)> CreateMigrateTaskForSQLServerAsyncHandler; + typedef Outcome DescribeDBInstanceIPArrayListOutcome; + typedef std::future DescribeDBInstanceIPArrayListOutcomeCallable; + typedef std::function&)> DescribeDBInstanceIPArrayListAsyncHandler; + typedef Outcome SwitchDBInstanceHAOutcome; + typedef std::future SwitchDBInstanceHAOutcomeCallable; + typedef std::function&)> SwitchDBInstanceHAAsyncHandler; + typedef Outcome DescribeBackupSetsForSecurityOutcome; + typedef std::future DescribeBackupSetsForSecurityOutcomeCallable; + typedef std::function&)> DescribeBackupSetsForSecurityAsyncHandler; + typedef Outcome ResetAccountForPGOutcome; + typedef std::future ResetAccountForPGOutcomeCallable; + typedef std::function&)> ResetAccountForPGAsyncHandler; + + + RdsClient(const Credentials &credentials, const ClientConfiguration &configuration); + RdsClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); + RdsClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); + ~RdsClient(); + + CreateMigrateTaskOutcome createMigrateTask(const Model::CreateMigrateTaskRequest &request)const; + void createMigrateTaskAsync(const Model::CreateMigrateTaskRequest& request, const CreateMigrateTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateMigrateTaskOutcomeCallable createMigrateTaskCallable(const Model::CreateMigrateTaskRequest& request) const; + CheckRecoveryConditionsOutcome checkRecoveryConditions(const Model::CheckRecoveryConditionsRequest &request)const; + void checkRecoveryConditionsAsync(const Model::CheckRecoveryConditionsRequest& request, const CheckRecoveryConditionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CheckRecoveryConditionsOutcomeCallable checkRecoveryConditionsCallable(const Model::CheckRecoveryConditionsRequest& request) const; + LoginDBInstancefromCloudDBAOutcome loginDBInstancefromCloudDBA(const Model::LoginDBInstancefromCloudDBARequest &request)const; + void loginDBInstancefromCloudDBAAsync(const Model::LoginDBInstancefromCloudDBARequest& request, const LoginDBInstancefromCloudDBAAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + LoginDBInstancefromCloudDBAOutcomeCallable loginDBInstancefromCloudDBACallable(const Model::LoginDBInstancefromCloudDBARequest& request) const; + DeleteBackupOutcome deleteBackup(const Model::DeleteBackupRequest &request)const; + void deleteBackupAsync(const Model::DeleteBackupRequest& request, const DeleteBackupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteBackupOutcomeCallable deleteBackupCallable(const Model::DeleteBackupRequest& request) const; + DescribeDatabasesOutcome describeDatabases(const Model::DescribeDatabasesRequest &request)const; + void describeDatabasesAsync(const Model::DescribeDatabasesRequest& request, const DescribeDatabasesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDatabasesOutcomeCallable describeDatabasesCallable(const Model::DescribeDatabasesRequest& request) const; + DescribeDBInstancesByExpireTimeOutcome describeDBInstancesByExpireTime(const Model::DescribeDBInstancesByExpireTimeRequest &request)const; + void describeDBInstancesByExpireTimeAsync(const Model::DescribeDBInstancesByExpireTimeRequest& request, const DescribeDBInstancesByExpireTimeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDBInstancesByExpireTimeOutcomeCallable describeDBInstancesByExpireTimeCallable(const Model::DescribeDBInstancesByExpireTimeRequest& request) const; + SwitchDBInstanceNetTypeOutcome switchDBInstanceNetType(const Model::SwitchDBInstanceNetTypeRequest &request)const; + void switchDBInstanceNetTypeAsync(const Model::SwitchDBInstanceNetTypeRequest& request, const SwitchDBInstanceNetTypeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SwitchDBInstanceNetTypeOutcomeCallable switchDBInstanceNetTypeCallable(const Model::SwitchDBInstanceNetTypeRequest& request) const; + DescribeDBInstanceMonitorOutcome describeDBInstanceMonitor(const Model::DescribeDBInstanceMonitorRequest &request)const; + void describeDBInstanceMonitorAsync(const Model::DescribeDBInstanceMonitorRequest& request, const DescribeDBInstanceMonitorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDBInstanceMonitorOutcomeCallable describeDBInstanceMonitorCallable(const Model::DescribeDBInstanceMonitorRequest& request) const; + CreateReadOnlyDBInstanceOutcome createReadOnlyDBInstance(const Model::CreateReadOnlyDBInstanceRequest &request)const; + void createReadOnlyDBInstanceAsync(const Model::CreateReadOnlyDBInstanceRequest& request, const CreateReadOnlyDBInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateReadOnlyDBInstanceOutcomeCallable createReadOnlyDBInstanceCallable(const Model::CreateReadOnlyDBInstanceRequest& request) const; + DescribeDBInstanceHAConfigOutcome describeDBInstanceHAConfig(const Model::DescribeDBInstanceHAConfigRequest &request)const; + void describeDBInstanceHAConfigAsync(const Model::DescribeDBInstanceHAConfigRequest& request, const DescribeDBInstanceHAConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDBInstanceHAConfigOutcomeCallable describeDBInstanceHAConfigCallable(const Model::DescribeDBInstanceHAConfigRequest& request) const; + ModifyAccountDescriptionOutcome modifyAccountDescription(const Model::ModifyAccountDescriptionRequest &request)const; + void modifyAccountDescriptionAsync(const Model::ModifyAccountDescriptionRequest& request, const ModifyAccountDescriptionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyAccountDescriptionOutcomeCallable modifyAccountDescriptionCallable(const Model::ModifyAccountDescriptionRequest& request) const; + DescribeOssDownloadsOutcome describeOssDownloads(const Model::DescribeOssDownloadsRequest &request)const; + void describeOssDownloadsAsync(const Model::DescribeOssDownloadsRequest& request, const DescribeOssDownloadsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeOssDownloadsOutcomeCallable describeOssDownloadsCallable(const Model::DescribeOssDownloadsRequest& request) const; + ModifyParameterOutcome modifyParameter(const Model::ModifyParameterRequest &request)const; + void modifyParameterAsync(const Model::ModifyParameterRequest& request, const ModifyParameterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyParameterOutcomeCallable modifyParameterCallable(const Model::ModifyParameterRequest& request) const; + ReleaseReplicaOutcome releaseReplica(const Model::ReleaseReplicaRequest &request)const; + void releaseReplicaAsync(const Model::ReleaseReplicaRequest& request, const ReleaseReplicaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ReleaseReplicaOutcomeCallable releaseReplicaCallable(const Model::ReleaseReplicaRequest& request) const; + UpgradeDBInstanceEngineVersionOutcome upgradeDBInstanceEngineVersion(const Model::UpgradeDBInstanceEngineVersionRequest &request)const; + void upgradeDBInstanceEngineVersionAsync(const Model::UpgradeDBInstanceEngineVersionRequest& request, const UpgradeDBInstanceEngineVersionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpgradeDBInstanceEngineVersionOutcomeCallable upgradeDBInstanceEngineVersionCallable(const Model::UpgradeDBInstanceEngineVersionRequest& request) const; + ModifyDBInstanceConnectionStringOutcome modifyDBInstanceConnectionString(const Model::ModifyDBInstanceConnectionStringRequest &request)const; + void modifyDBInstanceConnectionStringAsync(const Model::ModifyDBInstanceConnectionStringRequest& request, const ModifyDBInstanceConnectionStringAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDBInstanceConnectionStringOutcomeCallable modifyDBInstanceConnectionStringCallable(const Model::ModifyDBInstanceConnectionStringRequest& request) const; + StopSyncingOutcome stopSyncing(const Model::StopSyncingRequest &request)const; + void stopSyncingAsync(const Model::StopSyncingRequest& request, const StopSyncingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StopSyncingOutcomeCallable stopSyncingCallable(const Model::StopSyncingRequest& request) const; + CheckAccountNameAvailableOutcome checkAccountNameAvailable(const Model::CheckAccountNameAvailableRequest &request)const; + void checkAccountNameAvailableAsync(const Model::CheckAccountNameAvailableRequest& request, const CheckAccountNameAvailableAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CheckAccountNameAvailableOutcomeCallable checkAccountNameAvailableCallable(const Model::CheckAccountNameAvailableRequest& request) const; + RestartDBInstanceOutcome restartDBInstance(const Model::RestartDBInstanceRequest &request)const; + void restartDBInstanceAsync(const Model::RestartDBInstanceRequest& request, const RestartDBInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RestartDBInstanceOutcomeCallable restartDBInstanceCallable(const Model::RestartDBInstanceRequest& request) const; + ImportDataForSQLServerOutcome importDataForSQLServer(const Model::ImportDataForSQLServerRequest &request)const; + void importDataForSQLServerAsync(const Model::ImportDataForSQLServerRequest& request, const ImportDataForSQLServerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ImportDataForSQLServerOutcomeCallable importDataForSQLServerCallable(const Model::ImportDataForSQLServerRequest& request) const; + DescribeLogicDBInstanceTopologyOutcome describeLogicDBInstanceTopology(const Model::DescribeLogicDBInstanceTopologyRequest &request)const; + void describeLogicDBInstanceTopologyAsync(const Model::DescribeLogicDBInstanceTopologyRequest& request, const DescribeLogicDBInstanceTopologyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeLogicDBInstanceTopologyOutcomeCallable describeLogicDBInstanceTopologyCallable(const Model::DescribeLogicDBInstanceTopologyRequest& request) const; + CheckResourceOutcome checkResource(const Model::CheckResourceRequest &request)const; + void checkResourceAsync(const Model::CheckResourceRequest& request, const CheckResourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CheckResourceOutcomeCallable checkResourceCallable(const Model::CheckResourceRequest& request) const; + DescribeTagsOutcome describeTags(const Model::DescribeTagsRequest &request)const; + void describeTagsAsync(const Model::DescribeTagsRequest& request, const DescribeTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeTagsOutcomeCallable describeTagsCallable(const Model::DescribeTagsRequest& request) const; + StartDBInstanceDiagnoseOutcome startDBInstanceDiagnose(const Model::StartDBInstanceDiagnoseRequest &request)const; + void startDBInstanceDiagnoseAsync(const Model::StartDBInstanceDiagnoseRequest& request, const StartDBInstanceDiagnoseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StartDBInstanceDiagnoseOutcomeCallable startDBInstanceDiagnoseCallable(const Model::StartDBInstanceDiagnoseRequest& request) const; + DescribeCharacterSetNameOutcome describeCharacterSetName(const Model::DescribeCharacterSetNameRequest &request)const; + void describeCharacterSetNameAsync(const Model::DescribeCharacterSetNameRequest& request, const DescribeCharacterSetNameAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCharacterSetNameOutcomeCallable describeCharacterSetNameCallable(const Model::DescribeCharacterSetNameRequest& request) const; + ImportDataFromDatabaseOutcome importDataFromDatabase(const Model::ImportDataFromDatabaseRequest &request)const; + void importDataFromDatabaseAsync(const Model::ImportDataFromDatabaseRequest& request, const ImportDataFromDatabaseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ImportDataFromDatabaseOutcomeCallable importDataFromDatabaseCallable(const Model::ImportDataFromDatabaseRequest& request) const; + DescribeMigrateTasksOutcome describeMigrateTasks(const Model::DescribeMigrateTasksRequest &request)const; + void describeMigrateTasksAsync(const Model::DescribeMigrateTasksRequest& request, const DescribeMigrateTasksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeMigrateTasksOutcomeCallable describeMigrateTasksCallable(const Model::DescribeMigrateTasksRequest& request) const; + ModifyDBInstanceNetworkExpireTimeOutcome modifyDBInstanceNetworkExpireTime(const Model::ModifyDBInstanceNetworkExpireTimeRequest &request)const; + void modifyDBInstanceNetworkExpireTimeAsync(const Model::ModifyDBInstanceNetworkExpireTimeRequest& request, const ModifyDBInstanceNetworkExpireTimeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDBInstanceNetworkExpireTimeOutcomeCallable modifyDBInstanceNetworkExpireTimeCallable(const Model::ModifyDBInstanceNetworkExpireTimeRequest& request) const; + CreateAccountOutcome createAccount(const Model::CreateAccountRequest &request)const; + void createAccountAsync(const Model::CreateAccountRequest& request, const CreateAccountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateAccountOutcomeCallable createAccountCallable(const Model::CreateAccountRequest& request) const; + DescribeModifyParameterLogOutcome describeModifyParameterLog(const Model::DescribeModifyParameterLogRequest &request)const; + void describeModifyParameterLogAsync(const Model::DescribeModifyParameterLogRequest& request, const DescribeModifyParameterLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeModifyParameterLogOutcomeCallable describeModifyParameterLogCallable(const Model::DescribeModifyParameterLogRequest& request) const; + DescribeOperatorPermissionOutcome describeOperatorPermission(const Model::DescribeOperatorPermissionRequest &request)const; + void describeOperatorPermissionAsync(const Model::DescribeOperatorPermissionRequest& request, const DescribeOperatorPermissionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeOperatorPermissionOutcomeCallable describeOperatorPermissionCallable(const Model::DescribeOperatorPermissionRequest& request) const; + DescribeOptimizeAdviceOnMissIndexOutcome describeOptimizeAdviceOnMissIndex(const Model::DescribeOptimizeAdviceOnMissIndexRequest &request)const; + void describeOptimizeAdviceOnMissIndexAsync(const Model::DescribeOptimizeAdviceOnMissIndexRequest& request, const DescribeOptimizeAdviceOnMissIndexAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeOptimizeAdviceOnMissIndexOutcomeCallable describeOptimizeAdviceOnMissIndexCallable(const Model::DescribeOptimizeAdviceOnMissIndexRequest& request) const; + DescribeDampPoliciesByCidOutcome describeDampPoliciesByCid(const Model::DescribeDampPoliciesByCidRequest &request)const; + void describeDampPoliciesByCidAsync(const Model::DescribeDampPoliciesByCidRequest& request, const DescribeDampPoliciesByCidAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDampPoliciesByCidOutcomeCallable describeDampPoliciesByCidCallable(const Model::DescribeDampPoliciesByCidRequest& request) const; + ModifyDBDescriptionOutcome modifyDBDescription(const Model::ModifyDBDescriptionRequest &request)const; + void modifyDBDescriptionAsync(const Model::ModifyDBDescriptionRequest& request, const ModifyDBDescriptionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDBDescriptionOutcomeCallable modifyDBDescriptionCallable(const Model::ModifyDBDescriptionRequest& request) const; + ImportDatabaseBetweenInstancesOutcome importDatabaseBetweenInstances(const Model::ImportDatabaseBetweenInstancesRequest &request)const; + void importDatabaseBetweenInstancesAsync(const Model::ImportDatabaseBetweenInstancesRequest& request, const ImportDatabaseBetweenInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ImportDatabaseBetweenInstancesOutcomeCallable importDatabaseBetweenInstancesCallable(const Model::ImportDatabaseBetweenInstancesRequest& request) const; + RenewInstanceOutcome renewInstance(const Model::RenewInstanceRequest &request)const; + void renewInstanceAsync(const Model::RenewInstanceRequest& request, const RenewInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RenewInstanceOutcomeCallable renewInstanceCallable(const Model::RenewInstanceRequest& request) const; + CheckDBNameAvailableOutcome checkDBNameAvailable(const Model::CheckDBNameAvailableRequest &request)const; + void checkDBNameAvailableAsync(const Model::CheckDBNameAvailableRequest& request, const CheckDBNameAvailableAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CheckDBNameAvailableOutcomeCallable checkDBNameAvailableCallable(const Model::CheckDBNameAvailableRequest& request) const; + ModifyDBInstanceMonitorOutcome modifyDBInstanceMonitor(const Model::ModifyDBInstanceMonitorRequest &request)const; + void modifyDBInstanceMonitorAsync(const Model::ModifyDBInstanceMonitorRequest& request, const ModifyDBInstanceMonitorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDBInstanceMonitorOutcomeCallable modifyDBInstanceMonitorCallable(const Model::ModifyDBInstanceMonitorRequest& request) const; + DescribeSQLLogFilesOutcome describeSQLLogFiles(const Model::DescribeSQLLogFilesRequest &request)const; + void describeSQLLogFilesAsync(const Model::DescribeSQLLogFilesRequest& request, const DescribeSQLLogFilesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSQLLogFilesOutcomeCallable describeSQLLogFilesCallable(const Model::DescribeSQLLogFilesRequest& request) const; + CancelImportOutcome cancelImport(const Model::CancelImportRequest &request)const; + void cancelImportAsync(const Model::CancelImportRequest& request, const CancelImportAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CancelImportOutcomeCallable cancelImportCallable(const Model::CancelImportRequest& request) const; + DescribeReplicaInitializeProgressOutcome describeReplicaInitializeProgress(const Model::DescribeReplicaInitializeProgressRequest &request)const; + void describeReplicaInitializeProgressAsync(const Model::DescribeReplicaInitializeProgressRequest& request, const DescribeReplicaInitializeProgressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeReplicaInitializeProgressOutcomeCallable describeReplicaInitializeProgressCallable(const Model::DescribeReplicaInitializeProgressRequest& request) const; + ModifyBackupPolicyOutcome modifyBackupPolicy(const Model::ModifyBackupPolicyRequest &request)const; + void modifyBackupPolicyAsync(const Model::ModifyBackupPolicyRequest& request, const ModifyBackupPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyBackupPolicyOutcomeCallable modifyBackupPolicyCallable(const Model::ModifyBackupPolicyRequest& request) const; + ModifyReplicaDescriptionOutcome modifyReplicaDescription(const Model::ModifyReplicaDescriptionRequest &request)const; + void modifyReplicaDescriptionAsync(const Model::ModifyReplicaDescriptionRequest& request, const ModifyReplicaDescriptionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyReplicaDescriptionOutcomeCallable modifyReplicaDescriptionCallable(const Model::ModifyReplicaDescriptionRequest& request) const; + UpgradeDBInstanceNetWorkInfoOutcome upgradeDBInstanceNetWorkInfo(const Model::UpgradeDBInstanceNetWorkInfoRequest &request)const; + void upgradeDBInstanceNetWorkInfoAsync(const Model::UpgradeDBInstanceNetWorkInfoRequest& request, const UpgradeDBInstanceNetWorkInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpgradeDBInstanceNetWorkInfoOutcomeCallable upgradeDBInstanceNetWorkInfoCallable(const Model::UpgradeDBInstanceNetWorkInfoRequest& request) const; + AddTagsToResourceOutcome addTagsToResource(const Model::AddTagsToResourceRequest &request)const; + void addTagsToResourceAsync(const Model::AddTagsToResourceRequest& request, const AddTagsToResourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddTagsToResourceOutcomeCallable addTagsToResourceCallable(const Model::AddTagsToResourceRequest& request) const; + DescribeBinlogFilesOutcome describeBinlogFiles(const Model::DescribeBinlogFilesRequest &request)const; + void describeBinlogFilesAsync(const Model::DescribeBinlogFilesRequest& request, const DescribeBinlogFilesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeBinlogFilesOutcomeCallable describeBinlogFilesCallable(const Model::DescribeBinlogFilesRequest& request) const; + DescribeBackupsForSecurityOutcome describeBackupsForSecurity(const Model::DescribeBackupsForSecurityRequest &request)const; + void describeBackupsForSecurityAsync(const Model::DescribeBackupsForSecurityRequest& request, const DescribeBackupsForSecurityAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeBackupsForSecurityOutcomeCallable describeBackupsForSecurityCallable(const Model::DescribeBackupsForSecurityRequest& request) const; + CreateDiagnosticReportOutcome createDiagnosticReport(const Model::CreateDiagnosticReportRequest &request)const; + void createDiagnosticReportAsync(const Model::CreateDiagnosticReportRequest& request, const CreateDiagnosticReportAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateDiagnosticReportOutcomeCallable createDiagnosticReportCallable(const Model::CreateDiagnosticReportRequest& request) const; + DescribeSQLLogReportListOutcome describeSQLLogReportList(const Model::DescribeSQLLogReportListRequest &request)const; + void describeSQLLogReportListAsync(const Model::DescribeSQLLogReportListRequest& request, const DescribeSQLLogReportListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSQLLogReportListOutcomeCallable describeSQLLogReportListCallable(const Model::DescribeSQLLogReportListRequest& request) const; + DescribeResourceDiagnosisOutcome describeResourceDiagnosis(const Model::DescribeResourceDiagnosisRequest &request)const; + void describeResourceDiagnosisAsync(const Model::DescribeResourceDiagnosisRequest& request, const DescribeResourceDiagnosisAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeResourceDiagnosisOutcomeCallable describeResourceDiagnosisCallable(const Model::DescribeResourceDiagnosisRequest& request) const; + CloneDBInstanceOutcome cloneDBInstance(const Model::CloneDBInstanceRequest &request)const; + void cloneDBInstanceAsync(const Model::CloneDBInstanceRequest& request, const CloneDBInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CloneDBInstanceOutcomeCallable cloneDBInstanceCallable(const Model::CloneDBInstanceRequest& request) const; + DescribeTasksOutcome describeTasks(const Model::DescribeTasksRequest &request)const; + void describeTasksAsync(const Model::DescribeTasksRequest& request, const DescribeTasksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeTasksOutcomeCallable describeTasksCallable(const Model::DescribeTasksRequest& request) const; + CreateUploadPathForSQLServerOutcome createUploadPathForSQLServer(const Model::CreateUploadPathForSQLServerRequest &request)const; + void createUploadPathForSQLServerAsync(const Model::CreateUploadPathForSQLServerRequest& request, const CreateUploadPathForSQLServerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateUploadPathForSQLServerOutcomeCallable createUploadPathForSQLServerCallable(const Model::CreateUploadPathForSQLServerRequest& request) const; + DescribeRenewalPriceOutcome describeRenewalPrice(const Model::DescribeRenewalPriceRequest &request)const; + void describeRenewalPriceAsync(const Model::DescribeRenewalPriceRequest& request, const DescribeRenewalPriceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRenewalPriceOutcomeCallable describeRenewalPriceCallable(const Model::DescribeRenewalPriceRequest& request) const; + AllocateInstancePublicConnectionOutcome allocateInstancePublicConnection(const Model::AllocateInstancePublicConnectionRequest &request)const; + void allocateInstancePublicConnectionAsync(const Model::AllocateInstancePublicConnectionRequest& request, const AllocateInstancePublicConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AllocateInstancePublicConnectionOutcomeCallable allocateInstancePublicConnectionCallable(const Model::AllocateInstancePublicConnectionRequest& request) const; + DescribeOptimizeAdviceOnStorageOutcome describeOptimizeAdviceOnStorage(const Model::DescribeOptimizeAdviceOnStorageRequest &request)const; + void describeOptimizeAdviceOnStorageAsync(const Model::DescribeOptimizeAdviceOnStorageRequest& request, const DescribeOptimizeAdviceOnStorageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeOptimizeAdviceOnStorageOutcomeCallable describeOptimizeAdviceOnStorageCallable(const Model::DescribeOptimizeAdviceOnStorageRequest& request) const; + DescribeInstanceAutoRenewAttributeOutcome describeInstanceAutoRenewAttribute(const Model::DescribeInstanceAutoRenewAttributeRequest &request)const; + void describeInstanceAutoRenewAttributeAsync(const Model::DescribeInstanceAutoRenewAttributeRequest& request, const DescribeInstanceAutoRenewAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeInstanceAutoRenewAttributeOutcomeCallable describeInstanceAutoRenewAttributeCallable(const Model::DescribeInstanceAutoRenewAttributeRequest& request) const; + DescribeDBInstanceAttributeOutcome describeDBInstanceAttribute(const Model::DescribeDBInstanceAttributeRequest &request)const; + void describeDBInstanceAttributeAsync(const Model::DescribeDBInstanceAttributeRequest& request, const DescribeDBInstanceAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDBInstanceAttributeOutcomeCallable describeDBInstanceAttributeCallable(const Model::DescribeDBInstanceAttributeRequest& request) const; + DescribeDBInstanceUserOutcome describeDBInstanceUser(const Model::DescribeDBInstanceUserRequest &request)const; + void describeDBInstanceUserAsync(const Model::DescribeDBInstanceUserRequest& request, const DescribeDBInstanceUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDBInstanceUserOutcomeCallable describeDBInstanceUserCallable(const Model::DescribeDBInstanceUserRequest& request) const; + CreateTempDBInstanceOutcome createTempDBInstance(const Model::CreateTempDBInstanceRequest &request)const; + void createTempDBInstanceAsync(const Model::CreateTempDBInstanceRequest& request, const CreateTempDBInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateTempDBInstanceOutcomeCallable createTempDBInstanceCallable(const Model::CreateTempDBInstanceRequest& request) const; + DescribeImportsForSQLServerOutcome describeImportsForSQLServer(const Model::DescribeImportsForSQLServerRequest &request)const; + void describeImportsForSQLServerAsync(const Model::DescribeImportsForSQLServerRequest& request, const DescribeImportsForSQLServerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeImportsForSQLServerOutcomeCallable describeImportsForSQLServerCallable(const Model::DescribeImportsForSQLServerRequest& request) const; + DescribeSQLCollectorPolicyOutcome describeSQLCollectorPolicy(const Model::DescribeSQLCollectorPolicyRequest &request)const; + void describeSQLCollectorPolicyAsync(const Model::DescribeSQLCollectorPolicyRequest& request, const DescribeSQLCollectorPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSQLCollectorPolicyOutcomeCallable describeSQLCollectorPolicyCallable(const Model::DescribeSQLCollectorPolicyRequest& request) const; + ModifyInstanceAutoRenewalAttributeOutcome modifyInstanceAutoRenewalAttribute(const Model::ModifyInstanceAutoRenewalAttributeRequest &request)const; + void modifyInstanceAutoRenewalAttributeAsync(const Model::ModifyInstanceAutoRenewalAttributeRequest& request, const ModifyInstanceAutoRenewalAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyInstanceAutoRenewalAttributeOutcomeCallable modifyInstanceAutoRenewalAttributeCallable(const Model::ModifyInstanceAutoRenewalAttributeRequest& request) const; + ModifySQLCollectorPolicyOutcome modifySQLCollectorPolicy(const Model::ModifySQLCollectorPolicyRequest &request)const; + void modifySQLCollectorPolicyAsync(const Model::ModifySQLCollectorPolicyRequest& request, const ModifySQLCollectorPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifySQLCollectorPolicyOutcomeCallable modifySQLCollectorPolicyCallable(const Model::ModifySQLCollectorPolicyRequest& request) const; + DescribeBackupsOutcome describeBackups(const Model::DescribeBackupsRequest &request)const; + void describeBackupsAsync(const Model::DescribeBackupsRequest& request, const DescribeBackupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeBackupsOutcomeCallable describeBackupsCallable(const Model::DescribeBackupsRequest& request) const; + CreateDatabaseOutcome createDatabase(const Model::CreateDatabaseRequest &request)const; + void createDatabaseAsync(const Model::CreateDatabaseRequest& request, const CreateDatabaseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateDatabaseOutcomeCallable createDatabaseCallable(const Model::CreateDatabaseRequest& request) const; + DeleteDBInstanceOutcome deleteDBInstance(const Model::DeleteDBInstanceRequest &request)const; + void deleteDBInstanceAsync(const Model::DeleteDBInstanceRequest& request, const DeleteDBInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteDBInstanceOutcomeCallable deleteDBInstanceCallable(const Model::DeleteDBInstanceRequest& request) const; + DescribeRealtimeDiagnosesOutcome describeRealtimeDiagnoses(const Model::DescribeRealtimeDiagnosesRequest &request)const; + void describeRealtimeDiagnosesAsync(const Model::DescribeRealtimeDiagnosesRequest& request, const DescribeRealtimeDiagnosesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRealtimeDiagnosesOutcomeCallable describeRealtimeDiagnosesCallable(const Model::DescribeRealtimeDiagnosesRequest& request) const; + DescribeSQLInjectionInfosOutcome describeSQLInjectionInfos(const Model::DescribeSQLInjectionInfosRequest &request)const; + void describeSQLInjectionInfosAsync(const Model::DescribeSQLInjectionInfosRequest& request, const DescribeSQLInjectionInfosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSQLInjectionInfosOutcomeCallable describeSQLInjectionInfosCallable(const Model::DescribeSQLInjectionInfosRequest& request) const; + DescribeInstanceAutoRenewalAttributeOutcome describeInstanceAutoRenewalAttribute(const Model::DescribeInstanceAutoRenewalAttributeRequest &request)const; + void describeInstanceAutoRenewalAttributeAsync(const Model::DescribeInstanceAutoRenewalAttributeRequest& request, const DescribeInstanceAutoRenewalAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeInstanceAutoRenewalAttributeOutcomeCallable describeInstanceAutoRenewalAttributeCallable(const Model::DescribeInstanceAutoRenewalAttributeRequest& request) const; + AddBuDBInstanceRelationOutcome addBuDBInstanceRelation(const Model::AddBuDBInstanceRelationRequest &request)const; + void addBuDBInstanceRelationAsync(const Model::AddBuDBInstanceRelationRequest& request, const AddBuDBInstanceRelationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddBuDBInstanceRelationOutcomeCallable addBuDBInstanceRelationCallable(const Model::AddBuDBInstanceRelationRequest& request) const; + RestoreDBInstanceOutcome restoreDBInstance(const Model::RestoreDBInstanceRequest &request)const; + void restoreDBInstanceAsync(const Model::RestoreDBInstanceRequest& request, const RestoreDBInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RestoreDBInstanceOutcomeCallable restoreDBInstanceCallable(const Model::RestoreDBInstanceRequest& request) const; + RevokeOperatorPermissionOutcome revokeOperatorPermission(const Model::RevokeOperatorPermissionRequest &request)const; + void revokeOperatorPermissionAsync(const Model::RevokeOperatorPermissionRequest& request, const RevokeOperatorPermissionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RevokeOperatorPermissionOutcomeCallable revokeOperatorPermissionCallable(const Model::RevokeOperatorPermissionRequest& request) const; + ModifyDBInstanceSpecOutcome modifyDBInstanceSpec(const Model::ModifyDBInstanceSpecRequest &request)const; + void modifyDBInstanceSpecAsync(const Model::ModifyDBInstanceSpecRequest& request, const ModifyDBInstanceSpecAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDBInstanceSpecOutcomeCallable modifyDBInstanceSpecCallable(const Model::ModifyDBInstanceSpecRequest& request) const; + DescribeDiagnosticReportListOutcome describeDiagnosticReportList(const Model::DescribeDiagnosticReportListRequest &request)const; + void describeDiagnosticReportListAsync(const Model::DescribeDiagnosticReportListRequest& request, const DescribeDiagnosticReportListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDiagnosticReportListOutcomeCallable describeDiagnosticReportListCallable(const Model::DescribeDiagnosticReportListRequest& request) const; + DescribeDBInstanceECSSGRelationOutcome describeDBInstanceECSSGRelation(const Model::DescribeDBInstanceECSSGRelationRequest &request)const; + void describeDBInstanceECSSGRelationAsync(const Model::DescribeDBInstanceECSSGRelationRequest& request, const DescribeDBInstanceECSSGRelationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDBInstanceECSSGRelationOutcomeCallable describeDBInstanceECSSGRelationCallable(const Model::DescribeDBInstanceECSSGRelationRequest& request) const; + RemoveTagsFromResourceOutcome removeTagsFromResource(const Model::RemoveTagsFromResourceRequest &request)const; + void removeTagsFromResourceAsync(const Model::RemoveTagsFromResourceRequest& request, const RemoveTagsFromResourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemoveTagsFromResourceOutcomeCallable removeTagsFromResourceCallable(const Model::RemoveTagsFromResourceRequest& request) const; + DescribeSQLLogRecordsOutcome describeSQLLogRecords(const Model::DescribeSQLLogRecordsRequest &request)const; + void describeSQLLogRecordsAsync(const Model::DescribeSQLLogRecordsRequest& request, const DescribeSQLLogRecordsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSQLLogRecordsOutcomeCallable describeSQLLogRecordsCallable(const Model::DescribeSQLLogRecordsRequest& request) const; + ModifySecurityIpsOutcome modifySecurityIps(const Model::ModifySecurityIpsRequest &request)const; + void modifySecurityIpsAsync(const Model::ModifySecurityIpsRequest& request, const ModifySecurityIpsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifySecurityIpsOutcomeCallable modifySecurityIpsCallable(const Model::ModifySecurityIpsRequest& request) const; + DescribeMigrateTasksForSQLServerOutcome describeMigrateTasksForSQLServer(const Model::DescribeMigrateTasksForSQLServerRequest &request)const; + void describeMigrateTasksForSQLServerAsync(const Model::DescribeMigrateTasksForSQLServerRequest& request, const DescribeMigrateTasksForSQLServerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeMigrateTasksForSQLServerOutcomeCallable describeMigrateTasksForSQLServerCallable(const Model::DescribeMigrateTasksForSQLServerRequest& request) const; + ModifyReplicaModeOutcome modifyReplicaMode(const Model::ModifyReplicaModeRequest &request)const; + void modifyReplicaModeAsync(const Model::ModifyReplicaModeRequest& request, const ModifyReplicaModeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyReplicaModeOutcomeCallable modifyReplicaModeCallable(const Model::ModifyReplicaModeRequest& request) const; + DeleteDampPolicyOutcome deleteDampPolicy(const Model::DeleteDampPolicyRequest &request)const; + void deleteDampPolicyAsync(const Model::DeleteDampPolicyRequest& request, const DeleteDampPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteDampPolicyOutcomeCallable deleteDampPolicyCallable(const Model::DeleteDampPolicyRequest& request) const; + GrantAccountPrivilegeOutcome grantAccountPrivilege(const Model::GrantAccountPrivilegeRequest &request)const; + void grantAccountPrivilegeAsync(const Model::GrantAccountPrivilegeRequest& request, const GrantAccountPrivilegeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GrantAccountPrivilegeOutcomeCallable grantAccountPrivilegeCallable(const Model::GrantAccountPrivilegeRequest& request) const; + GrantOperatorPermissionOutcome grantOperatorPermission(const Model::GrantOperatorPermissionRequest &request)const; + void grantOperatorPermissionAsync(const Model::GrantOperatorPermissionRequest& request, const GrantOperatorPermissionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GrantOperatorPermissionOutcomeCallable grantOperatorPermissionCallable(const Model::GrantOperatorPermissionRequest& request) const; + ModifyPostpaidDBInstanceSpecOutcome modifyPostpaidDBInstanceSpec(const Model::ModifyPostpaidDBInstanceSpecRequest &request)const; + void modifyPostpaidDBInstanceSpecAsync(const Model::ModifyPostpaidDBInstanceSpecRequest& request, const ModifyPostpaidDBInstanceSpecAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyPostpaidDBInstanceSpecOutcomeCallable modifyPostpaidDBInstanceSpecCallable(const Model::ModifyPostpaidDBInstanceSpecRequest& request) const; + CreatePolicyWithSpecifiedPolicyOutcome createPolicyWithSpecifiedPolicy(const Model::CreatePolicyWithSpecifiedPolicyRequest &request)const; + void createPolicyWithSpecifiedPolicyAsync(const Model::CreatePolicyWithSpecifiedPolicyRequest& request, const CreatePolicyWithSpecifiedPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreatePolicyWithSpecifiedPolicyOutcomeCallable createPolicyWithSpecifiedPolicyCallable(const Model::CreatePolicyWithSpecifiedPolicyRequest& request) const; + ModifyDBInstanceTDEOutcome modifyDBInstanceTDE(const Model::ModifyDBInstanceTDERequest &request)const; + void modifyDBInstanceTDEAsync(const Model::ModifyDBInstanceTDERequest& request, const ModifyDBInstanceTDEAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDBInstanceTDEOutcomeCallable modifyDBInstanceTDECallable(const Model::ModifyDBInstanceTDERequest& request) const; + DescribeDBInstancePerformanceOutcome describeDBInstancePerformance(const Model::DescribeDBInstancePerformanceRequest &request)const; + void describeDBInstancePerformanceAsync(const Model::DescribeDBInstancePerformanceRequest& request, const DescribeDBInstancePerformanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDBInstancePerformanceOutcomeCallable describeDBInstancePerformanceCallable(const Model::DescribeDBInstancePerformanceRequest& request) const; + DescribeOptimizeAdviceOnBigTableOutcome describeOptimizeAdviceOnBigTable(const Model::DescribeOptimizeAdviceOnBigTableRequest &request)const; + void describeOptimizeAdviceOnBigTableAsync(const Model::DescribeOptimizeAdviceOnBigTableRequest& request, const DescribeOptimizeAdviceOnBigTableAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeOptimizeAdviceOnBigTableOutcomeCallable describeOptimizeAdviceOnBigTableCallable(const Model::DescribeOptimizeAdviceOnBigTableRequest& request) const; + DescribeVpcZoneNosOutcome describeVpcZoneNos(const Model::DescribeVpcZoneNosRequest &request)const; + void describeVpcZoneNosAsync(const Model::DescribeVpcZoneNosRequest& request, const DescribeVpcZoneNosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeVpcZoneNosOutcomeCallable describeVpcZoneNosCallable(const Model::DescribeVpcZoneNosRequest& request) const; + DescribeDampPolicyByCommentOutcome describeDampPolicyByComment(const Model::DescribeDampPolicyByCommentRequest &request)const; + void describeDampPolicyByCommentAsync(const Model::DescribeDampPolicyByCommentRequest& request, const DescribeDampPolicyByCommentAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDampPolicyByCommentOutcomeCallable describeDampPolicyByCommentCallable(const Model::DescribeDampPolicyByCommentRequest& request) const; + DescribeDBInstanceExtendAttributeOutcome describeDBInstanceExtendAttribute(const Model::DescribeDBInstanceExtendAttributeRequest &request)const; + void describeDBInstanceExtendAttributeAsync(const Model::DescribeDBInstanceExtendAttributeRequest& request, const DescribeDBInstanceExtendAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDBInstanceExtendAttributeOutcomeCallable describeDBInstanceExtendAttributeCallable(const Model::DescribeDBInstanceExtendAttributeRequest& request) const; + DescribeDBInstancesOutcome describeDBInstances(const Model::DescribeDBInstancesRequest &request)const; + void describeDBInstancesAsync(const Model::DescribeDBInstancesRequest& request, const DescribeDBInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDBInstancesOutcomeCallable describeDBInstancesCallable(const Model::DescribeDBInstancesRequest& request) const; + DescribePreCheckResultsOutcome describePreCheckResults(const Model::DescribePreCheckResultsRequest &request)const; + void describePreCheckResultsAsync(const Model::DescribePreCheckResultsRequest& request, const DescribePreCheckResultsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribePreCheckResultsOutcomeCallable describePreCheckResultsCallable(const Model::DescribePreCheckResultsRequest& request) const; + StartArchiveSQLLogOutcome startArchiveSQLLog(const Model::StartArchiveSQLLogRequest &request)const; + void startArchiveSQLLogAsync(const Model::StartArchiveSQLLogRequest& request, const StartArchiveSQLLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StartArchiveSQLLogOutcomeCallable startArchiveSQLLogCallable(const Model::StartArchiveSQLLogRequest& request) const; + CreateDBInstanceReplicaOutcome createDBInstanceReplica(const Model::CreateDBInstanceReplicaRequest &request)const; + void createDBInstanceReplicaAsync(const Model::CreateDBInstanceReplicaRequest& request, const CreateDBInstanceReplicaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateDBInstanceReplicaOutcomeCallable createDBInstanceReplicaCallable(const Model::CreateDBInstanceReplicaRequest& request) const; + ModifyDampPolicyOutcome modifyDampPolicy(const Model::ModifyDampPolicyRequest &request)const; + void modifyDampPolicyAsync(const Model::ModifyDampPolicyRequest& request, const ModifyDampPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDampPolicyOutcomeCallable modifyDampPolicyCallable(const Model::ModifyDampPolicyRequest& request) const; + AllocateInstancePrivateConnectionOutcome allocateInstancePrivateConnection(const Model::AllocateInstancePrivateConnectionRequest &request)const; + void allocateInstancePrivateConnectionAsync(const Model::AllocateInstancePrivateConnectionRequest& request, const AllocateInstancePrivateConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AllocateInstancePrivateConnectionOutcomeCallable allocateInstancePrivateConnectionCallable(const Model::AllocateInstancePrivateConnectionRequest& request) const; + RevokeAccountPrivilegeOutcome revokeAccountPrivilege(const Model::RevokeAccountPrivilegeRequest &request)const; + void revokeAccountPrivilegeAsync(const Model::RevokeAccountPrivilegeRequest& request, const RevokeAccountPrivilegeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RevokeAccountPrivilegeOutcomeCallable revokeAccountPrivilegeCallable(const Model::RevokeAccountPrivilegeRequest& request) const; + DegradeDBInstanceSpecOutcome degradeDBInstanceSpec(const Model::DegradeDBInstanceSpecRequest &request)const; + void degradeDBInstanceSpecAsync(const Model::DegradeDBInstanceSpecRequest& request, const DegradeDBInstanceSpecAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DegradeDBInstanceSpecOutcomeCallable degradeDBInstanceSpecCallable(const Model::DegradeDBInstanceSpecRequest& request) const; + DescibeImportsFromDatabaseOutcome descibeImportsFromDatabase(const Model::DescibeImportsFromDatabaseRequest &request)const; + void descibeImportsFromDatabaseAsync(const Model::DescibeImportsFromDatabaseRequest& request, const DescibeImportsFromDatabaseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescibeImportsFromDatabaseOutcomeCallable descibeImportsFromDatabaseCallable(const Model::DescibeImportsFromDatabaseRequest& request) const; + DescribeParameterTemplatesOutcome describeParameterTemplates(const Model::DescribeParameterTemplatesRequest &request)const; + void describeParameterTemplatesAsync(const Model::DescribeParameterTemplatesRequest& request, const DescribeParameterTemplatesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeParameterTemplatesOutcomeCallable describeParameterTemplatesCallable(const Model::DescribeParameterTemplatesRequest& request) const; + DescribeDatabaseLockDiagnosisOutcome describeDatabaseLockDiagnosis(const Model::DescribeDatabaseLockDiagnosisRequest &request)const; + void describeDatabaseLockDiagnosisAsync(const Model::DescribeDatabaseLockDiagnosisRequest& request, const DescribeDatabaseLockDiagnosisAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDatabaseLockDiagnosisOutcomeCallable describeDatabaseLockDiagnosisCallable(const Model::DescribeDatabaseLockDiagnosisRequest& request) const; + DescribeOptimizeAdviceOnExcessIndexOutcome describeOptimizeAdviceOnExcessIndex(const Model::DescribeOptimizeAdviceOnExcessIndexRequest &request)const; + void describeOptimizeAdviceOnExcessIndexAsync(const Model::DescribeOptimizeAdviceOnExcessIndexRequest& request, const DescribeOptimizeAdviceOnExcessIndexAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeOptimizeAdviceOnExcessIndexOutcomeCallable describeOptimizeAdviceOnExcessIndexCallable(const Model::DescribeOptimizeAdviceOnExcessIndexRequest& request) const; + CopyDatabaseOutcome copyDatabase(const Model::CopyDatabaseRequest &request)const; + void copyDatabaseAsync(const Model::CopyDatabaseRequest& request, const CopyDatabaseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CopyDatabaseOutcomeCallable copyDatabaseCallable(const Model::CopyDatabaseRequest& request) const; + CreateDBInstanceOutcome createDBInstance(const Model::CreateDBInstanceRequest &request)const; + void createDBInstanceAsync(const Model::CreateDBInstanceRequest& request, const CreateDBInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateDBInstanceOutcomeCallable createDBInstanceCallable(const Model::CreateDBInstanceRequest& request) const; + DescribeDBInstanceTDEOutcome describeDBInstanceTDE(const Model::DescribeDBInstanceTDERequest &request)const; + void describeDBInstanceTDEAsync(const Model::DescribeDBInstanceTDERequest& request, const DescribeDBInstanceTDEAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDBInstanceTDEOutcomeCallable describeDBInstanceTDECallable(const Model::DescribeDBInstanceTDERequest& request) const; + ModifyDBInstanceSSLOutcome modifyDBInstanceSSL(const Model::ModifyDBInstanceSSLRequest &request)const; + void modifyDBInstanceSSLAsync(const Model::ModifyDBInstanceSSLRequest& request, const ModifyDBInstanceSSLAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDBInstanceSSLOutcomeCallable modifyDBInstanceSSLCallable(const Model::ModifyDBInstanceSSLRequest& request) const; + DescribeSQLLogReportsOutcome describeSQLLogReports(const Model::DescribeSQLLogReportsRequest &request)const; + void describeSQLLogReportsAsync(const Model::DescribeSQLLogReportsRequest& request, const DescribeSQLLogReportsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSQLLogReportsOutcomeCallable describeSQLLogReportsCallable(const Model::DescribeSQLLogReportsRequest& request) const; + DescribeSQLDiagnosisListOutcome describeSQLDiagnosisList(const Model::DescribeSQLDiagnosisListRequest &request)const; + void describeSQLDiagnosisListAsync(const Model::DescribeSQLDiagnosisListRequest& request, const DescribeSQLDiagnosisListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSQLDiagnosisListOutcomeCallable describeSQLDiagnosisListCallable(const Model::DescribeSQLDiagnosisListRequest& request) const; + ModifyDBInstanceConnectionModeOutcome modifyDBInstanceConnectionMode(const Model::ModifyDBInstanceConnectionModeRequest &request)const; + void modifyDBInstanceConnectionModeAsync(const Model::ModifyDBInstanceConnectionModeRequest& request, const ModifyDBInstanceConnectionModeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDBInstanceConnectionModeOutcomeCallable modifyDBInstanceConnectionModeCallable(const Model::ModifyDBInstanceConnectionModeRequest& request) const; + DescribeDBInstanceNetInfoOutcome describeDBInstanceNetInfo(const Model::DescribeDBInstanceNetInfoRequest &request)const; + void describeDBInstanceNetInfoAsync(const Model::DescribeDBInstanceNetInfoRequest& request, const DescribeDBInstanceNetInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDBInstanceNetInfoOutcomeCallable describeDBInstanceNetInfoCallable(const Model::DescribeDBInstanceNetInfoRequest& request) const; + AllocateReadWriteSplittingConnectionOutcome allocateReadWriteSplittingConnection(const Model::AllocateReadWriteSplittingConnectionRequest &request)const; + void allocateReadWriteSplittingConnectionAsync(const Model::AllocateReadWriteSplittingConnectionRequest& request, const AllocateReadWriteSplittingConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AllocateReadWriteSplittingConnectionOutcomeCallable allocateReadWriteSplittingConnectionCallable(const Model::AllocateReadWriteSplittingConnectionRequest& request) const; + ReleaseInstancePublicConnectionOutcome releaseInstancePublicConnection(const Model::ReleaseInstancePublicConnectionRequest &request)const; + void releaseInstancePublicConnectionAsync(const Model::ReleaseInstancePublicConnectionRequest& request, const ReleaseInstancePublicConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ReleaseInstancePublicConnectionOutcomeCallable releaseInstancePublicConnectionCallable(const Model::ReleaseInstancePublicConnectionRequest& request) const; + CalculateDBInstanceWeightOutcome calculateDBInstanceWeight(const Model::CalculateDBInstanceWeightRequest &request)const; + void calculateDBInstanceWeightAsync(const Model::CalculateDBInstanceWeightRequest& request, const CalculateDBInstanceWeightAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CalculateDBInstanceWeightOutcomeCallable calculateDBInstanceWeightCallable(const Model::CalculateDBInstanceWeightRequest& request) const; + ModifyReplicaRelationOutcome modifyReplicaRelation(const Model::ModifyReplicaRelationRequest &request)const; + void modifyReplicaRelationAsync(const Model::ModifyReplicaRelationRequest& request, const ModifyReplicaRelationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyReplicaRelationOutcomeCallable modifyReplicaRelationCallable(const Model::ModifyReplicaRelationRequest& request) const; + ModifyDBInstanceNetworkTypeOutcome modifyDBInstanceNetworkType(const Model::ModifyDBInstanceNetworkTypeRequest &request)const; + void modifyDBInstanceNetworkTypeAsync(const Model::ModifyDBInstanceNetworkTypeRequest& request, const ModifyDBInstanceNetworkTypeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDBInstanceNetworkTypeOutcomeCallable modifyDBInstanceNetworkTypeCallable(const Model::ModifyDBInstanceNetworkTypeRequest& request) const; + DescribeAbnormalDBInstancesOutcome describeAbnormalDBInstances(const Model::DescribeAbnormalDBInstancesRequest &request)const; + void describeAbnormalDBInstancesAsync(const Model::DescribeAbnormalDBInstancesRequest& request, const DescribeAbnormalDBInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAbnormalDBInstancesOutcomeCallable describeAbnormalDBInstancesCallable(const Model::DescribeAbnormalDBInstancesRequest& request) const; + DescribeDBInstanceNetworkOutcome describeDBInstanceNetwork(const Model::DescribeDBInstanceNetworkRequest &request)const; + void describeDBInstanceNetworkAsync(const Model::DescribeDBInstanceNetworkRequest& request, const DescribeDBInstanceNetworkAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDBInstanceNetworkOutcomeCallable describeDBInstanceNetworkCallable(const Model::DescribeDBInstanceNetworkRequest& request) const; + DescribeSlowLogsOutcome describeSlowLogs(const Model::DescribeSlowLogsRequest &request)const; + void describeSlowLogsAsync(const Model::DescribeSlowLogsRequest& request, const DescribeSlowLogsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSlowLogsOutcomeCallable describeSlowLogsCallable(const Model::DescribeSlowLogsRequest& request) const; + CreateBackupOutcome createBackup(const Model::CreateBackupRequest &request)const; + void createBackupAsync(const Model::CreateBackupRequest& request, const CreateBackupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateBackupOutcomeCallable createBackupCallable(const Model::CreateBackupRequest& request) const; + CreateSQLDiagnosisOutcome createSQLDiagnosis(const Model::CreateSQLDiagnosisRequest &request)const; + void createSQLDiagnosisAsync(const Model::CreateSQLDiagnosisRequest& request, const CreateSQLDiagnosisAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateSQLDiagnosisOutcomeCallable createSQLDiagnosisCallable(const Model::CreateSQLDiagnosisRequest& request) const; + DescribeReplicaUsageOutcome describeReplicaUsage(const Model::DescribeReplicaUsageRequest &request)const; + void describeReplicaUsageAsync(const Model::DescribeReplicaUsageRequest& request, const DescribeReplicaUsageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeReplicaUsageOutcomeCallable describeReplicaUsageCallable(const Model::DescribeReplicaUsageRequest& request) const; + ModifyReadWriteSplittingConnectionOutcome modifyReadWriteSplittingConnection(const Model::ModifyReadWriteSplittingConnectionRequest &request)const; + void modifyReadWriteSplittingConnectionAsync(const Model::ModifyReadWriteSplittingConnectionRequest& request, const ModifyReadWriteSplittingConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyReadWriteSplittingConnectionOutcomeCallable modifyReadWriteSplittingConnectionCallable(const Model::ModifyReadWriteSplittingConnectionRequest& request) const; + DescribeDBInstanceNetworkDetailOutcome describeDBInstanceNetworkDetail(const Model::DescribeDBInstanceNetworkDetailRequest &request)const; + void describeDBInstanceNetworkDetailAsync(const Model::DescribeDBInstanceNetworkDetailRequest& request, const DescribeDBInstanceNetworkDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDBInstanceNetworkDetailOutcomeCallable describeDBInstanceNetworkDetailCallable(const Model::DescribeDBInstanceNetworkDetailRequest& request) const; + ModifyDBInstanceDescriptionOutcome modifyDBInstanceDescription(const Model::ModifyDBInstanceDescriptionRequest &request)const; + void modifyDBInstanceDescriptionAsync(const Model::ModifyDBInstanceDescriptionRequest& request, const ModifyDBInstanceDescriptionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDBInstanceDescriptionOutcomeCallable modifyDBInstanceDescriptionCallable(const Model::ModifyDBInstanceDescriptionRequest& request) const; + ModifyDBInstanceMaintainTimeOutcome modifyDBInstanceMaintainTime(const Model::ModifyDBInstanceMaintainTimeRequest &request)const; + void modifyDBInstanceMaintainTimeAsync(const Model::ModifyDBInstanceMaintainTimeRequest& request, const ModifyDBInstanceMaintainTimeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDBInstanceMaintainTimeOutcomeCallable modifyDBInstanceMaintainTimeCallable(const Model::ModifyDBInstanceMaintainTimeRequest& request) const; + DescribeReplicaPerformanceOutcome describeReplicaPerformance(const Model::DescribeReplicaPerformanceRequest &request)const; + void describeReplicaPerformanceAsync(const Model::DescribeReplicaPerformanceRequest& request, const DescribeReplicaPerformanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeReplicaPerformanceOutcomeCallable describeReplicaPerformanceCallable(const Model::DescribeReplicaPerformanceRequest& request) const; + DescribeSQLDiagnosisOutcome describeSQLDiagnosis(const Model::DescribeSQLDiagnosisRequest &request)const; + void describeSQLDiagnosisAsync(const Model::DescribeSQLDiagnosisRequest& request, const DescribeSQLDiagnosisAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSQLDiagnosisOutcomeCallable describeSQLDiagnosisCallable(const Model::DescribeSQLDiagnosisRequest& request) const; + DescribeDampPolicyByPolicyNameOutcome describeDampPolicyByPolicyName(const Model::DescribeDampPolicyByPolicyNameRequest &request)const; + void describeDampPolicyByPolicyNameAsync(const Model::DescribeDampPolicyByPolicyNameRequest& request, const DescribeDampPolicyByPolicyNameAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDampPolicyByPolicyNameOutcomeCallable describeDampPolicyByPolicyNameCallable(const Model::DescribeDampPolicyByPolicyNameRequest& request) const; + ModifyResourceGroupOutcome modifyResourceGroup(const Model::ModifyResourceGroupRequest &request)const; + void modifyResourceGroupAsync(const Model::ModifyResourceGroupRequest& request, const ModifyResourceGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyResourceGroupOutcomeCallable modifyResourceGroupCallable(const Model::ModifyResourceGroupRequest& request) const; + DescribeOssDownloadsForSQLServerOutcome describeOssDownloadsForSQLServer(const Model::DescribeOssDownloadsForSQLServerRequest &request)const; + void describeOssDownloadsForSQLServerAsync(const Model::DescribeOssDownloadsForSQLServerRequest& request, const DescribeOssDownloadsForSQLServerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeOssDownloadsForSQLServerOutcomeCallable describeOssDownloadsForSQLServerCallable(const Model::DescribeOssDownloadsForSQLServerRequest& request) const; + RequestServiceOfCloudDBAOutcome requestServiceOfCloudDBA(const Model::RequestServiceOfCloudDBARequest &request)const; + void requestServiceOfCloudDBAAsync(const Model::RequestServiceOfCloudDBARequest& request, const RequestServiceOfCloudDBAAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RequestServiceOfCloudDBAOutcomeCallable requestServiceOfCloudDBACallable(const Model::RequestServiceOfCloudDBARequest& request) const; + ResetAccountOutcome resetAccount(const Model::ResetAccountRequest &request)const; + void resetAccountAsync(const Model::ResetAccountRequest& request, const ResetAccountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ResetAccountOutcomeCallable resetAccountCallable(const Model::ResetAccountRequest& request) const; + DescribeResourceUsageOutcome describeResourceUsage(const Model::DescribeResourceUsageRequest &request)const; + void describeResourceUsageAsync(const Model::DescribeResourceUsageRequest& request, const DescribeResourceUsageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeResourceUsageOutcomeCallable describeResourceUsageCallable(const Model::DescribeResourceUsageRequest& request) const; + PreCheckBeforeImportDataOutcome preCheckBeforeImportData(const Model::PreCheckBeforeImportDataRequest &request)const; + void preCheckBeforeImportDataAsync(const Model::PreCheckBeforeImportDataRequest& request, const PreCheckBeforeImportDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PreCheckBeforeImportDataOutcomeCallable preCheckBeforeImportDataCallable(const Model::PreCheckBeforeImportDataRequest& request) const; + PurgeDBInstanceLogOutcome purgeDBInstanceLog(const Model::PurgeDBInstanceLogRequest &request)const; + void purgeDBInstanceLogAsync(const Model::PurgeDBInstanceLogRequest& request, const PurgeDBInstanceLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PurgeDBInstanceLogOutcomeCallable purgeDBInstanceLogCallable(const Model::PurgeDBInstanceLogRequest& request) const; + DescribeTaskInfoOutcome describeTaskInfo(const Model::DescribeTaskInfoRequest &request)const; + void describeTaskInfoAsync(const Model::DescribeTaskInfoRequest& request, const DescribeTaskInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeTaskInfoOutcomeCallable describeTaskInfoCallable(const Model::DescribeTaskInfoRequest& request) const; + DescribeRegionsOutcome describeRegions(const Model::DescribeRegionsRequest &request)const; + void describeRegionsAsync(const Model::DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRegionsOutcomeCallable describeRegionsCallable(const Model::DescribeRegionsRequest& request) const; + MigrateToOtherZoneOutcome migrateToOtherZone(const Model::MigrateToOtherZoneRequest &request)const; + void migrateToOtherZoneAsync(const Model::MigrateToOtherZoneRequest& request, const MigrateToOtherZoneAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + MigrateToOtherZoneOutcomeCallable migrateToOtherZoneCallable(const Model::MigrateToOtherZoneRequest& request) const; + DeleteAccountOutcome deleteAccount(const Model::DeleteAccountRequest &request)const; + void deleteAccountAsync(const Model::DeleteAccountRequest& request, const DeleteAccountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteAccountOutcomeCallable deleteAccountCallable(const Model::DeleteAccountRequest& request) const; + DescribeOptimizeAdviceOnMissPKOutcome describeOptimizeAdviceOnMissPK(const Model::DescribeOptimizeAdviceOnMissPKRequest &request)const; + void describeOptimizeAdviceOnMissPKAsync(const Model::DescribeOptimizeAdviceOnMissPKRequest& request, const DescribeOptimizeAdviceOnMissPKAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeOptimizeAdviceOnMissPKOutcomeCallable describeOptimizeAdviceOnMissPKCallable(const Model::DescribeOptimizeAdviceOnMissPKRequest& request) const; + DescribeSlowLogRecordsOutcome describeSlowLogRecords(const Model::DescribeSlowLogRecordsRequest &request)const; + void describeSlowLogRecordsAsync(const Model::DescribeSlowLogRecordsRequest& request, const DescribeSlowLogRecordsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSlowLogRecordsOutcomeCallable describeSlowLogRecordsCallable(const Model::DescribeSlowLogRecordsRequest& request) const; + ReleaseReadWriteSplittingConnectionOutcome releaseReadWriteSplittingConnection(const Model::ReleaseReadWriteSplittingConnectionRequest &request)const; + void releaseReadWriteSplittingConnectionAsync(const Model::ReleaseReadWriteSplittingConnectionRequest& request, const ReleaseReadWriteSplittingConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ReleaseReadWriteSplittingConnectionOutcomeCallable releaseReadWriteSplittingConnectionCallable(const Model::ReleaseReadWriteSplittingConnectionRequest& request) const; + UpgradeDBInstanceNetworkOutcome upgradeDBInstanceNetwork(const Model::UpgradeDBInstanceNetworkRequest &request)const; + void upgradeDBInstanceNetworkAsync(const Model::UpgradeDBInstanceNetworkRequest& request, const UpgradeDBInstanceNetworkAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpgradeDBInstanceNetworkOutcomeCallable upgradeDBInstanceNetworkCallable(const Model::UpgradeDBInstanceNetworkRequest& request) const; + DescribeFilesForSQLServerOutcome describeFilesForSQLServer(const Model::DescribeFilesForSQLServerRequest &request)const; + void describeFilesForSQLServerAsync(const Model::DescribeFilesForSQLServerRequest& request, const DescribeFilesForSQLServerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeFilesForSQLServerOutcomeCallable describeFilesForSQLServerCallable(const Model::DescribeFilesForSQLServerRequest& request) const; + ModifyDBInstanceECSSGRelationOutcome modifyDBInstanceECSSGRelation(const Model::ModifyDBInstanceECSSGRelationRequest &request)const; + void modifyDBInstanceECSSGRelationAsync(const Model::ModifyDBInstanceECSSGRelationRequest& request, const ModifyDBInstanceECSSGRelationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDBInstanceECSSGRelationOutcomeCallable modifyDBInstanceECSSGRelationCallable(const Model::ModifyDBInstanceECSSGRelationRequest& request) const; + DescribeErrorLogsOutcome describeErrorLogs(const Model::DescribeErrorLogsRequest &request)const; + void describeErrorLogsAsync(const Model::DescribeErrorLogsRequest& request, const DescribeErrorLogsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeErrorLogsOutcomeCallable describeErrorLogsCallable(const Model::DescribeErrorLogsRequest& request) const; + ModifyDBInstanceHAConfigOutcome modifyDBInstanceHAConfig(const Model::ModifyDBInstanceHAConfigRequest &request)const; + void modifyDBInstanceHAConfigAsync(const Model::ModifyDBInstanceHAConfigRequest& request, const ModifyDBInstanceHAConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDBInstanceHAConfigOutcomeCallable modifyDBInstanceHAConfigCallable(const Model::ModifyDBInstanceHAConfigRequest& request) const; + DescribeDBInstancesAsCsvOutcome describeDBInstancesAsCsv(const Model::DescribeDBInstancesAsCsvRequest &request)const; + void describeDBInstancesAsCsvAsync(const Model::DescribeDBInstancesAsCsvRequest& request, const DescribeDBInstancesAsCsvAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDBInstancesAsCsvOutcomeCallable describeDBInstancesAsCsvCallable(const Model::DescribeDBInstancesAsCsvRequest& request) const; + ResetAccountPasswordOutcome resetAccountPassword(const Model::ResetAccountPasswordRequest &request)const; + void resetAccountPasswordAsync(const Model::ResetAccountPasswordRequest& request, const ResetAccountPasswordAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ResetAccountPasswordOutcomeCallable resetAccountPasswordCallable(const Model::ResetAccountPasswordRequest& request) const; + DescribeAccountsOutcome describeAccounts(const Model::DescribeAccountsRequest &request)const; + void describeAccountsAsync(const Model::DescribeAccountsRequest& request, const DescribeAccountsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAccountsOutcomeCallable describeAccountsCallable(const Model::DescribeAccountsRequest& request) const; + DescribePriceOutcome describePrice(const Model::DescribePriceRequest &request)const; + void describePriceAsync(const Model::DescribePriceRequest& request, const DescribePriceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribePriceOutcomeCallable describePriceCallable(const Model::DescribePriceRequest& request) const; + DescribeDBInstanceByTagsOutcome describeDBInstanceByTags(const Model::DescribeDBInstanceByTagsRequest &request)const; + void describeDBInstanceByTagsAsync(const Model::DescribeDBInstanceByTagsRequest& request, const DescribeDBInstanceByTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDBInstanceByTagsOutcomeCallable describeDBInstanceByTagsCallable(const Model::DescribeDBInstanceByTagsRequest& request) const; + DescribeDBInstanceSSLOutcome describeDBInstanceSSL(const Model::DescribeDBInstanceSSLRequest &request)const; + void describeDBInstanceSSLAsync(const Model::DescribeDBInstanceSSLRequest& request, const DescribeDBInstanceSSLAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDBInstanceSSLOutcomeCallable describeDBInstanceSSLCallable(const Model::DescribeDBInstanceSSLRequest& request) const; + CreateDampPolicyOutcome createDampPolicy(const Model::CreateDampPolicyRequest &request)const; + void createDampPolicyAsync(const Model::CreateDampPolicyRequest& request, const CreateDampPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateDampPolicyOutcomeCallable createDampPolicyCallable(const Model::CreateDampPolicyRequest& request) const; + DescribeDBInstancesByPerformanceOutcome describeDBInstancesByPerformance(const Model::DescribeDBInstancesByPerformanceRequest &request)const; + void describeDBInstancesByPerformanceAsync(const Model::DescribeDBInstancesByPerformanceRequest& request, const DescribeDBInstancesByPerformanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDBInstancesByPerformanceOutcomeCallable describeDBInstancesByPerformanceCallable(const Model::DescribeDBInstancesByPerformanceRequest& request) const; + RenewDBInstanceOutcome renewDBInstance(const Model::RenewDBInstanceRequest &request)const; + void renewDBInstanceAsync(const Model::RenewDBInstanceRequest& request, const RenewDBInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RenewDBInstanceOutcomeCallable renewDBInstanceCallable(const Model::RenewDBInstanceRequest& request) const; + DescribeSQLReportsOutcome describeSQLReports(const Model::DescribeSQLReportsRequest &request)const; + void describeSQLReportsAsync(const Model::DescribeSQLReportsRequest& request, const DescribeSQLReportsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSQLReportsOutcomeCallable describeSQLReportsCallable(const Model::DescribeSQLReportsRequest& request) const; + QueryPriceForBuyOutcome queryPriceForBuy(const Model::QueryPriceForBuyRequest &request)const; + void queryPriceForBuyAsync(const Model::QueryPriceForBuyRequest& request, const QueryPriceForBuyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryPriceForBuyOutcomeCallable queryPriceForBuyCallable(const Model::QueryPriceForBuyRequest& request) const; + DescribeBackupTasksOutcome describeBackupTasks(const Model::DescribeBackupTasksRequest &request)const; + void describeBackupTasksAsync(const Model::DescribeBackupTasksRequest& request, const DescribeBackupTasksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeBackupTasksOutcomeCallable describeBackupTasksCallable(const Model::DescribeBackupTasksRequest& request) const; + DeleteDatabaseOutcome deleteDatabase(const Model::DeleteDatabaseRequest &request)const; + void deleteDatabaseAsync(const Model::DeleteDatabaseRequest& request, const DeleteDatabaseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteDatabaseOutcomeCallable deleteDatabaseCallable(const Model::DeleteDatabaseRequest& request) const; + ModifyGuardDomainModeOutcome modifyGuardDomainMode(const Model::ModifyGuardDomainModeRequest &request)const; + void modifyGuardDomainModeAsync(const Model::ModifyGuardDomainModeRequest& request, const ModifyGuardDomainModeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyGuardDomainModeOutcomeCallable modifyGuardDomainModeCallable(const Model::ModifyGuardDomainModeRequest& request) const; + DescribeBackupPolicyOutcome describeBackupPolicy(const Model::DescribeBackupPolicyRequest &request)const; + void describeBackupPolicyAsync(const Model::DescribeBackupPolicyRequest& request, const DescribeBackupPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeBackupPolicyOutcomeCallable describeBackupPolicyCallable(const Model::DescribeBackupPolicyRequest& request) const; + CreateMigrateTaskForSQLServerOutcome createMigrateTaskForSQLServer(const Model::CreateMigrateTaskForSQLServerRequest &request)const; + void createMigrateTaskForSQLServerAsync(const Model::CreateMigrateTaskForSQLServerRequest& request, const CreateMigrateTaskForSQLServerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateMigrateTaskForSQLServerOutcomeCallable createMigrateTaskForSQLServerCallable(const Model::CreateMigrateTaskForSQLServerRequest& request) const; + DescribeDBInstanceIPArrayListOutcome describeDBInstanceIPArrayList(const Model::DescribeDBInstanceIPArrayListRequest &request)const; + void describeDBInstanceIPArrayListAsync(const Model::DescribeDBInstanceIPArrayListRequest& request, const DescribeDBInstanceIPArrayListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDBInstanceIPArrayListOutcomeCallable describeDBInstanceIPArrayListCallable(const Model::DescribeDBInstanceIPArrayListRequest& request) const; + SwitchDBInstanceHAOutcome switchDBInstanceHA(const Model::SwitchDBInstanceHARequest &request)const; + void switchDBInstanceHAAsync(const Model::SwitchDBInstanceHARequest& request, const SwitchDBInstanceHAAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SwitchDBInstanceHAOutcomeCallable switchDBInstanceHACallable(const Model::SwitchDBInstanceHARequest& request) const; + DescribeBackupSetsForSecurityOutcome describeBackupSetsForSecurity(const Model::DescribeBackupSetsForSecurityRequest &request)const; + void describeBackupSetsForSecurityAsync(const Model::DescribeBackupSetsForSecurityRequest& request, const DescribeBackupSetsForSecurityAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeBackupSetsForSecurityOutcomeCallable describeBackupSetsForSecurityCallable(const Model::DescribeBackupSetsForSecurityRequest& request) const; + ResetAccountForPGOutcome resetAccountForPG(const Model::ResetAccountForPGRequest &request)const; + void resetAccountForPGAsync(const Model::ResetAccountForPGRequest& request, const ResetAccountForPGAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ResetAccountForPGOutcomeCallable resetAccountForPGCallable(const Model::ResetAccountForPGRequest& request) const; + + private: + virtual EndpointOutcome endpoint()const override; + std::shared_ptr endpointProvider_; + }; + } +} + +#endif // !ALIBABACLOUD_RDS_RDSCLIENT_H_ diff --git a/rds/include/alibabacloud/rds/RdsExport.h b/rds/include/alibabacloud/rds/RdsExport.h new file mode 100644 index 000000000..1946857d3 --- /dev/null +++ b/rds/include/alibabacloud/rds/RdsExport.h @@ -0,0 +1,32 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_RDSEXPORT_H_ +#define ALIBABACLOUD_RDS_RDSEXPORT_H_ + +#include + +#if defined(ALIBABACLOUD_SHARED) +# if defined(ALIBABACLOUD_RDS_LIBRARY) +# define ALIBABACLOUD_RDS_EXPORT ALIBABACLOUD_DECL_EXPORT +# else +# define ALIBABACLOUD_RDS_EXPORT ALIBABACLOUD_DECL_IMPORT +# endif +#else +# define ALIBABACLOUD_RDS_EXPORT +#endif + +#endif // !ALIBABACLOUD_RDS_RDSEXPORT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/RdsRequest.h b/rds/include/alibabacloud/rds/RdsRequest.h new file mode 100644 index 000000000..e54c92d58 --- /dev/null +++ b/rds/include/alibabacloud/rds/RdsRequest.h @@ -0,0 +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_RDS_RDSREQUEST_H_ +#define ALIBABACLOUD_RDS_RDSREQUEST_H_ + +#include +#include "RdsExport.h" + +namespace AlibabaCloud +{ + namespace Rds + { + class ALIBABACLOUD_RDS_EXPORT RdsRequest : public RpcServiceRequest + { + public: + explicit RdsRequest(const std::string & action); + virtual ~RdsRequest(); + + private: + + }; + } +} + +#endif // !ALIBABACLOUD_RDS_RDSREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/AddBuDBInstanceRelationRequest.h b/rds/include/alibabacloud/rds/model/AddBuDBInstanceRelationRequest.h new file mode 100644 index 000000000..29bcd61ea --- /dev/null +++ b/rds/include/alibabacloud/rds/model/AddBuDBInstanceRelationRequest.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_ADDBUDBINSTANCERELATIONREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_ADDBUDBINSTANCERELATIONREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT AddBuDBInstanceRelationRequest : public RdsRequest + { + + public: + AddBuDBInstanceRelationRequest(); + ~AddBuDBInstanceRelationRequest(); + + std::string getBusinessUnit()const; + void setBusinessUnit(const std::string& businessUnit); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string businessUnit_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_ADDBUDBINSTANCERELATIONREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/AddBuDBInstanceRelationResult.h b/rds/include/alibabacloud/rds/model/AddBuDBInstanceRelationResult.h new file mode 100644 index 000000000..dd6ff82e2 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/AddBuDBInstanceRelationResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_ADDBUDBINSTANCERELATIONRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_ADDBUDBINSTANCERELATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT AddBuDBInstanceRelationResult : public ServiceResult + { + public: + + + AddBuDBInstanceRelationResult(); + explicit AddBuDBInstanceRelationResult(const std::string &payload); + ~AddBuDBInstanceRelationResult(); + std::string getBusinessUnit()const; + void setBusinessUnit(const std::string& businessUnit); + std::string getDBInstanceName()const; + void setDBInstanceName(const std::string& dBInstanceName); + + protected: + void parse(const std::string &payload); + private: + std::string businessUnit_; + std::string dBInstanceName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_ADDBUDBINSTANCERELATIONRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/AddTagsToResourceRequest.h b/rds/include/alibabacloud/rds/model/AddTagsToResourceRequest.h new file mode 100644 index 000000000..aba06c35b --- /dev/null +++ b/rds/include/alibabacloud/rds/model/AddTagsToResourceRequest.h @@ -0,0 +1,104 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_ADDTAGSTORESOURCEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_ADDTAGSTORESOURCEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT AddTagsToResourceRequest : public RdsRequest + { + + public: + AddTagsToResourceRequest(); + ~AddTagsToResourceRequest(); + + std::string getTag4value()const; + void setTag4value(const std::string& tag4value); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getTag2key()const; + void setTag2key(const std::string& tag2key); + std::string getTag5key()const; + void setTag5key(const std::string& tag5key); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getTag3key()const; + void setTag3key(const std::string& tag3key); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getTag5value()const; + void setTag5value(const std::string& tag5value); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getTags()const; + void setTags(const std::string& tags); + std::string getTag1key()const; + void setTag1key(const std::string& tag1key); + std::string getTag1value()const; + void setTag1value(const std::string& tag1value); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getTag2value()const; + void setTag2value(const std::string& tag2value); + std::string getTag4key()const; + void setTag4key(const std::string& tag4key); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getTag3value()const; + void setTag3value(const std::string& tag3value); + std::string getProxyId()const; + void setProxyId(const std::string& proxyId); + + private: + std::string tag4value_; + long resourceOwnerId_; + std::string tag2key_; + std::string tag5key_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string ownerAccount_; + std::string tag3key_; + long ownerId_; + std::string tag5value_; + std::string accessKeyId_; + std::string tags_; + std::string tag1key_; + std::string tag1value_; + std::string regionId_; + std::string tag2value_; + std::string tag4key_; + std::string dBInstanceId_; + std::string tag3value_; + std::string proxyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_ADDTAGSTORESOURCEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/AddTagsToResourceResult.h b/rds/include/alibabacloud/rds/model/AddTagsToResourceResult.h new file mode 100644 index 000000000..befecd012 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/AddTagsToResourceResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_ADDTAGSTORESOURCERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_ADDTAGSTORESOURCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT AddTagsToResourceResult : public ServiceResult + { + public: + + + AddTagsToResourceResult(); + explicit AddTagsToResourceResult(const std::string &payload); + ~AddTagsToResourceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_ADDTAGSTORESOURCERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/AllocateInstancePrivateConnectionRequest.h b/rds/include/alibabacloud/rds/model/AllocateInstancePrivateConnectionRequest.h new file mode 100644 index 000000000..2c4e6b5ac --- /dev/null +++ b/rds/include/alibabacloud/rds/model/AllocateInstancePrivateConnectionRequest.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_ALLOCATEINSTANCEPRIVATECONNECTIONREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_ALLOCATEINSTANCEPRIVATECONNECTIONREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT AllocateInstancePrivateConnectionRequest : public RdsRequest + { + + public: + AllocateInstancePrivateConnectionRequest(); + ~AllocateInstancePrivateConnectionRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getConnectionStringPrefix()const; + void setConnectionStringPrefix(const std::string& connectionStringPrefix); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getPort()const; + void setPort(const std::string& port); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string connectionStringPrefix_; + std::string resourceOwnerAccount_; + std::string port_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_ALLOCATEINSTANCEPRIVATECONNECTIONREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/AllocateInstancePrivateConnectionResult.h b/rds/include/alibabacloud/rds/model/AllocateInstancePrivateConnectionResult.h new file mode 100644 index 000000000..d28a89c5c --- /dev/null +++ b/rds/include/alibabacloud/rds/model/AllocateInstancePrivateConnectionResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_ALLOCATEINSTANCEPRIVATECONNECTIONRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_ALLOCATEINSTANCEPRIVATECONNECTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT AllocateInstancePrivateConnectionResult : public ServiceResult + { + public: + + + AllocateInstancePrivateConnectionResult(); + explicit AllocateInstancePrivateConnectionResult(const std::string &payload); + ~AllocateInstancePrivateConnectionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_ALLOCATEINSTANCEPRIVATECONNECTIONRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/AllocateInstancePublicConnectionRequest.h b/rds/include/alibabacloud/rds/model/AllocateInstancePublicConnectionRequest.h new file mode 100644 index 000000000..7025d8d24 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/AllocateInstancePublicConnectionRequest.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_ALLOCATEINSTANCEPUBLICCONNECTIONREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_ALLOCATEINSTANCEPUBLICCONNECTIONREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT AllocateInstancePublicConnectionRequest : public RdsRequest + { + + public: + AllocateInstancePublicConnectionRequest(); + ~AllocateInstancePublicConnectionRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getConnectionStringPrefix()const; + void setConnectionStringPrefix(const std::string& connectionStringPrefix); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getPort()const; + void setPort(const std::string& port); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string connectionStringPrefix_; + std::string resourceOwnerAccount_; + std::string port_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_ALLOCATEINSTANCEPUBLICCONNECTIONREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/AllocateInstancePublicConnectionResult.h b/rds/include/alibabacloud/rds/model/AllocateInstancePublicConnectionResult.h new file mode 100644 index 000000000..e63e76fc6 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/AllocateInstancePublicConnectionResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_ALLOCATEINSTANCEPUBLICCONNECTIONRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_ALLOCATEINSTANCEPUBLICCONNECTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT AllocateInstancePublicConnectionResult : public ServiceResult + { + public: + + + AllocateInstancePublicConnectionResult(); + explicit AllocateInstancePublicConnectionResult(const std::string &payload); + ~AllocateInstancePublicConnectionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_ALLOCATEINSTANCEPUBLICCONNECTIONRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/AllocateReadWriteSplittingConnectionRequest.h b/rds/include/alibabacloud/rds/model/AllocateReadWriteSplittingConnectionRequest.h new file mode 100644 index 000000000..0a4a79a81 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/AllocateReadWriteSplittingConnectionRequest.h @@ -0,0 +1,80 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_ALLOCATEREADWRITESPLITTINGCONNECTIONREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_ALLOCATEREADWRITESPLITTINGCONNECTIONREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT AllocateReadWriteSplittingConnectionRequest : public RdsRequest + { + + public: + AllocateReadWriteSplittingConnectionRequest(); + ~AllocateReadWriteSplittingConnectionRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getConnectionStringPrefix()const; + void setConnectionStringPrefix(const std::string& connectionStringPrefix); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getWeight()const; + void setWeight(const std::string& weight); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getIPType()const; + void setIPType(const std::string& iPType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getPort()const; + void setPort(const std::string& port); + std::string getDistributionType()const; + void setDistributionType(const std::string& distributionType); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getMaxDelayTime()const; + void setMaxDelayTime(const std::string& maxDelayTime); + + private: + long resourceOwnerId_; + std::string connectionStringPrefix_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string weight_; + long ownerId_; + std::string iPType_; + std::string accessKeyId_; + std::string port_; + std::string distributionType_; + std::string dBInstanceId_; + std::string maxDelayTime_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_ALLOCATEREADWRITESPLITTINGCONNECTIONREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/AllocateReadWriteSplittingConnectionResult.h b/rds/include/alibabacloud/rds/model/AllocateReadWriteSplittingConnectionResult.h new file mode 100644 index 000000000..46a12122f --- /dev/null +++ b/rds/include/alibabacloud/rds/model/AllocateReadWriteSplittingConnectionResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_ALLOCATEREADWRITESPLITTINGCONNECTIONRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_ALLOCATEREADWRITESPLITTINGCONNECTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT AllocateReadWriteSplittingConnectionResult : public ServiceResult + { + public: + + + AllocateReadWriteSplittingConnectionResult(); + explicit AllocateReadWriteSplittingConnectionResult(const std::string &payload); + ~AllocateReadWriteSplittingConnectionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_ALLOCATEREADWRITESPLITTINGCONNECTIONRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CalculateDBInstanceWeightRequest.h b/rds/include/alibabacloud/rds/model/CalculateDBInstanceWeightRequest.h new file mode 100644 index 000000000..146e46f06 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/CalculateDBInstanceWeightRequest.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CALCULATEDBINSTANCEWEIGHTREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_CALCULATEDBINSTANCEWEIGHTREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CalculateDBInstanceWeightRequest : public RdsRequest + { + + public: + CalculateDBInstanceWeightRequest(); + ~CalculateDBInstanceWeightRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_CALCULATEDBINSTANCEWEIGHTREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CalculateDBInstanceWeightResult.h b/rds/include/alibabacloud/rds/model/CalculateDBInstanceWeightResult.h new file mode 100644 index 000000000..71e43e75b --- /dev/null +++ b/rds/include/alibabacloud/rds/model/CalculateDBInstanceWeightResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CALCULATEDBINSTANCEWEIGHTRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_CALCULATEDBINSTANCEWEIGHTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CalculateDBInstanceWeightResult : public ServiceResult + { + public: + struct DBInstanceWeight + { + std::string availability; + std::string dBInstanceId; + std::string dBInstanceType; + std::string weight; + }; + + + CalculateDBInstanceWeightResult(); + explicit CalculateDBInstanceWeightResult(const std::string &payload); + ~CalculateDBInstanceWeightResult(); + std::vector getItems()const; + void setItems(const std::vector& items); + + protected: + void parse(const std::string &payload); + private: + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_CALCULATEDBINSTANCEWEIGHTRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CancelImportRequest.h b/rds/include/alibabacloud/rds/model/CancelImportRequest.h new file mode 100644 index 000000000..8550caa00 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/CancelImportRequest.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CANCELIMPORTREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_CANCELIMPORTREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CancelImportRequest : public RdsRequest + { + + public: + CancelImportRequest(); + ~CancelImportRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + int getImportId()const; + void setImportId(int importId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + int importId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_CANCELIMPORTREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CancelImportResult.h b/rds/include/alibabacloud/rds/model/CancelImportResult.h new file mode 100644 index 000000000..7c594134d --- /dev/null +++ b/rds/include/alibabacloud/rds/model/CancelImportResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CANCELIMPORTRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_CANCELIMPORTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CancelImportResult : public ServiceResult + { + public: + + + CancelImportResult(); + explicit CancelImportResult(const std::string &payload); + ~CancelImportResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_CANCELIMPORTRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CheckAccountNameAvailableRequest.h b/rds/include/alibabacloud/rds/model/CheckAccountNameAvailableRequest.h new file mode 100644 index 000000000..f4ae2b1d0 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/CheckAccountNameAvailableRequest.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CHECKACCOUNTNAMEAVAILABLEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_CHECKACCOUNTNAMEAVAILABLEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CheckAccountNameAvailableRequest : public RdsRequest + { + + public: + CheckAccountNameAvailableRequest(); + ~CheckAccountNameAvailableRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccountName()const; + void setAccountName(const std::string& accountName); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string accountName_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_CHECKACCOUNTNAMEAVAILABLEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CheckAccountNameAvailableResult.h b/rds/include/alibabacloud/rds/model/CheckAccountNameAvailableResult.h new file mode 100644 index 000000000..e8632567f --- /dev/null +++ b/rds/include/alibabacloud/rds/model/CheckAccountNameAvailableResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CHECKACCOUNTNAMEAVAILABLERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_CHECKACCOUNTNAMEAVAILABLERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CheckAccountNameAvailableResult : public ServiceResult + { + public: + + + CheckAccountNameAvailableResult(); + explicit CheckAccountNameAvailableResult(const std::string &payload); + ~CheckAccountNameAvailableResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_CHECKACCOUNTNAMEAVAILABLERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CheckDBNameAvailableRequest.h b/rds/include/alibabacloud/rds/model/CheckDBNameAvailableRequest.h new file mode 100644 index 000000000..6e302e1d6 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/CheckDBNameAvailableRequest.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CHECKDBNAMEAVAILABLEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_CHECKDBNAMEAVAILABLEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CheckDBNameAvailableRequest : public RdsRequest + { + + public: + CheckDBNameAvailableRequest(); + ~CheckDBNameAvailableRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDBName()const; + void setDBName(const std::string& dBName); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string dBName_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_CHECKDBNAMEAVAILABLEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CheckDBNameAvailableResult.h b/rds/include/alibabacloud/rds/model/CheckDBNameAvailableResult.h new file mode 100644 index 000000000..3a59775e7 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/CheckDBNameAvailableResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CHECKDBNAMEAVAILABLERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_CHECKDBNAMEAVAILABLERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CheckDBNameAvailableResult : public ServiceResult + { + public: + + + CheckDBNameAvailableResult(); + explicit CheckDBNameAvailableResult(const std::string &payload); + ~CheckDBNameAvailableResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_CHECKDBNAMEAVAILABLERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CheckRecoveryConditionsRequest.h b/rds/include/alibabacloud/rds/model/CheckRecoveryConditionsRequest.h new file mode 100644 index 000000000..7fbb36bbe --- /dev/null +++ b/rds/include/alibabacloud/rds/model/CheckRecoveryConditionsRequest.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CHECKRECOVERYCONDITIONSREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_CHECKRECOVERYCONDITIONSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CheckRecoveryConditionsRequest : public RdsRequest + { + + public: + CheckRecoveryConditionsRequest(); + ~CheckRecoveryConditionsRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRestoreTime()const; + void setRestoreTime(const std::string& restoreTime); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getBackupFile()const; + void setBackupFile(const std::string& backupFile); + std::string getBackupId()const; + void setBackupId(const std::string& backupId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string restoreTime_; + std::string resourceOwnerAccount_; + std::string backupFile_; + std::string backupId_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_CHECKRECOVERYCONDITIONSREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CheckRecoveryConditionsResult.h b/rds/include/alibabacloud/rds/model/CheckRecoveryConditionsResult.h new file mode 100644 index 000000000..4b54a9172 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/CheckRecoveryConditionsResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CHECKRECOVERYCONDITIONSRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_CHECKRECOVERYCONDITIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CheckRecoveryConditionsResult : public ServiceResult + { + public: + + + CheckRecoveryConditionsResult(); + explicit CheckRecoveryConditionsResult(const std::string &payload); + ~CheckRecoveryConditionsResult(); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getRecoveryStatus()const; + void setRecoveryStatus(const std::string& recoveryStatus); + + protected: + void parse(const std::string &payload); + private: + std::string dBInstanceId_; + std::string recoveryStatus_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_CHECKRECOVERYCONDITIONSRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CheckResourceRequest.h b/rds/include/alibabacloud/rds/model/CheckResourceRequest.h new file mode 100644 index 000000000..f71c03171 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/CheckResourceRequest.h @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CHECKRESOURCEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_CHECKRESOURCEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CheckResourceRequest : public RdsRequest + { + + public: + CheckResourceRequest(); + ~CheckResourceRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getSpecifyCount()const; + void setSpecifyCount(const std::string& specifyCount); + std::string getEngineVersion()const; + void setEngineVersion(const std::string& engineVersion); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getDBInstanceClass()const; + void setDBInstanceClass(const std::string& dBInstanceClass); + std::string getEngine()const; + void setEngine(const std::string& engine); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getZoneId()const; + void setZoneId(const std::string& zoneId); + std::string getDBInstanceUseType()const; + void setDBInstanceUseType(const std::string& dBInstanceUseType); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string specifyCount_; + std::string engineVersion_; + long ownerId_; + std::string accessKeyId_; + std::string dBInstanceClass_; + std::string engine_; + std::string regionId_; + std::string zoneId_; + std::string dBInstanceUseType_; + std::string dBInstanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_CHECKRESOURCEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CheckResourceResult.h b/rds/include/alibabacloud/rds/model/CheckResourceResult.h new file mode 100644 index 000000000..bdeeb59a3 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/CheckResourceResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CHECKRESOURCERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_CHECKRESOURCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CheckResourceResult : public ServiceResult + { + public: + struct Resource + { + std::string dBInstanceAvailable; + std::string engineVersion; + std::string engine; + }; + + + CheckResourceResult(); + explicit CheckResourceResult(const std::string &payload); + ~CheckResourceResult(); + std::string getSpecifyCount()const; + void setSpecifyCount(const std::string& specifyCount); + std::vector getResources()const; + void setResources(const std::vector& resources); + + protected: + void parse(const std::string &payload); + private: + std::string specifyCount_; + std::vector resources_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_CHECKRESOURCERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CloneDBInstanceRequest.h b/rds/include/alibabacloud/rds/model/CloneDBInstanceRequest.h new file mode 100644 index 000000000..85491243b --- /dev/null +++ b/rds/include/alibabacloud/rds/model/CloneDBInstanceRequest.h @@ -0,0 +1,104 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CLONEDBINSTANCEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_CLONEDBINSTANCEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CloneDBInstanceRequest : public RdsRequest + { + + public: + CloneDBInstanceRequest(); + ~CloneDBInstanceRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRestoreTime()const; + void setRestoreTime(const std::string& restoreTime); + std::string getPeriod()const; + void setPeriod(const std::string& period); + int getDBInstanceStorage()const; + void setDBInstanceStorage(int dBInstanceStorage); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getBackupId()const; + void setBackupId(const std::string& backupId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getUsedTime()const; + void setUsedTime(const std::string& usedTime); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getDBInstanceClass()const; + void setDBInstanceClass(const std::string& dBInstanceClass); + std::string getVSwitchId()const; + void setVSwitchId(const std::string& vSwitchId); + std::string getPrivateIpAddress()const; + void setPrivateIpAddress(const std::string& privateIpAddress); + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); + std::string getVPCId()const; + void setVPCId(const std::string& vPCId); + std::string getDBInstanceDescription()const; + void setDBInstanceDescription(const std::string& dBInstanceDescription); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getPayType()const; + void setPayType(const std::string& payType); + std::string getInstanceNetworkType()const; + void setInstanceNetworkType(const std::string& instanceNetworkType); + + private: + long resourceOwnerId_; + std::string restoreTime_; + std::string period_; + int dBInstanceStorage_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string backupId_; + std::string ownerAccount_; + long ownerId_; + std::string usedTime_; + std::string accessKeyId_; + std::string dBInstanceClass_; + std::string vSwitchId_; + std::string privateIpAddress_; + std::string resourceGroupId_; + std::string vPCId_; + std::string dBInstanceDescription_; + std::string dBInstanceId_; + std::string payType_; + std::string instanceNetworkType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_CLONEDBINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CloneDBInstanceResult.h b/rds/include/alibabacloud/rds/model/CloneDBInstanceResult.h new file mode 100644 index 000000000..5b53dca29 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/CloneDBInstanceResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CLONEDBINSTANCERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_CLONEDBINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CloneDBInstanceResult : public ServiceResult + { + public: + + + CloneDBInstanceResult(); + explicit CloneDBInstanceResult(const std::string &payload); + ~CloneDBInstanceResult(); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getPort()const; + void setPort(const std::string& port); + std::string getOrderId()const; + void setOrderId(const std::string& orderId); + std::string getConnectionString()const; + void setConnectionString(const std::string& connectionString); + + protected: + void parse(const std::string &payload); + private: + std::string dBInstanceId_; + std::string port_; + std::string orderId_; + std::string connectionString_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_CLONEDBINSTANCERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CopyDatabaseRequest.h b/rds/include/alibabacloud/rds/model/CopyDatabaseRequest.h new file mode 100644 index 000000000..0165dac42 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/CopyDatabaseRequest.h @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_COPYDATABASEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_COPYDATABASEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CopyDatabaseRequest : public RdsRequest + { + + public: + CopyDatabaseRequest(); + ~CopyDatabaseRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_COPYDATABASEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CopyDatabaseResult.h b/rds/include/alibabacloud/rds/model/CopyDatabaseResult.h new file mode 100644 index 000000000..935cb341b --- /dev/null +++ b/rds/include/alibabacloud/rds/model/CopyDatabaseResult.h @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_COPYDATABASERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_COPYDATABASERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CopyDatabaseResult : public ServiceResult + { + public: + + + CopyDatabaseResult(); + explicit CopyDatabaseResult(const std::string &payload); + ~CopyDatabaseResult(); + std::string getTaskId()const; + void setTaskId(const std::string& taskId); + std::string getDBName()const; + void setDBName(const std::string& dBName); + std::string getDBStatus()const; + void setDBStatus(const std::string& dBStatus); + + protected: + void parse(const std::string &payload); + private: + std::string taskId_; + std::string dBName_; + std::string dBStatus_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_COPYDATABASERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CreateAccountRequest.h b/rds/include/alibabacloud/rds/model/CreateAccountRequest.h new file mode 100644 index 000000000..fb039d66e --- /dev/null +++ b/rds/include/alibabacloud/rds/model/CreateAccountRequest.h @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CREATEACCOUNTREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_CREATEACCOUNTREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CreateAccountRequest : public RdsRequest + { + + public: + CreateAccountRequest(); + ~CreateAccountRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccountPassword()const; + void setAccountPassword(const std::string& accountPassword); + std::string getAccountName()const; + void setAccountName(const std::string& accountName); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getAccountType()const; + void setAccountType(const std::string& accountType); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccountDescription()const; + void setAccountDescription(const std::string& accountDescription); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string accountPassword_; + std::string accountName_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string accountType_; + std::string dBInstanceId_; + long ownerId_; + std::string accountDescription_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_CREATEACCOUNTREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CreateAccountResult.h b/rds/include/alibabacloud/rds/model/CreateAccountResult.h new file mode 100644 index 000000000..16418beb5 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/CreateAccountResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CREATEACCOUNTRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_CREATEACCOUNTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CreateAccountResult : public ServiceResult + { + public: + + + CreateAccountResult(); + explicit CreateAccountResult(const std::string &payload); + ~CreateAccountResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_CREATEACCOUNTRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CreateBackupRequest.h b/rds/include/alibabacloud/rds/model/CreateBackupRequest.h new file mode 100644 index 000000000..644ee3a07 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/CreateBackupRequest.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CREATEBACKUPREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_CREATEBACKUPREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CreateBackupRequest : public RdsRequest + { + + public: + CreateBackupRequest(); + ~CreateBackupRequest(); + + std::string getBackupMethod()const; + void setBackupMethod(const std::string& backupMethod); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDBName()const; + void setDBName(const std::string& dBName); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getBackupType()const; + void setBackupType(const std::string& backupType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string backupMethod_; + long resourceOwnerId_; + std::string dBName_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string backupType_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_CREATEBACKUPREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CreateBackupResult.h b/rds/include/alibabacloud/rds/model/CreateBackupResult.h new file mode 100644 index 000000000..dc19f86ce --- /dev/null +++ b/rds/include/alibabacloud/rds/model/CreateBackupResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CREATEBACKUPRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_CREATEBACKUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CreateBackupResult : public ServiceResult + { + public: + + + CreateBackupResult(); + explicit CreateBackupResult(const std::string &payload); + ~CreateBackupResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_CREATEBACKUPRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CreateDBInstanceReplicaRequest.h b/rds/include/alibabacloud/rds/model/CreateDBInstanceReplicaRequest.h new file mode 100644 index 000000000..98b3b6aa6 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/CreateDBInstanceReplicaRequest.h @@ -0,0 +1,128 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CREATEDBINSTANCEREPLICAREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_CREATEDBINSTANCEREPLICAREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CreateDBInstanceReplicaRequest : public RdsRequest + { + + public: + CreateDBInstanceReplicaRequest(); + ~CreateDBInstanceReplicaRequest(); + + std::string getConnectionMode()const; + void setConnectionMode(const std::string& connectionMode); + std::string getDomainMode()const; + void setDomainMode(const std::string& domainMode); + std::string getReplicaDescription()const; + void setReplicaDescription(const std::string& replicaDescription); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + int getDBInstanceStorage()const; + void setDBInstanceStorage(int dBInstanceStorage); + std::string getSystemDBCharset()const; + void setSystemDBCharset(const std::string& systemDBCharset); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getEngineVersion()const; + void setEngineVersion(const std::string& engineVersion); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getEngine()const; + void setEngine(const std::string& engine); + std::string getDBInstanceDescription()const; + void setDBInstanceDescription(const std::string& dBInstanceDescription); + std::string getDBInstanceNetType()const; + void setDBInstanceNetType(const std::string& dBInstanceNetType); + std::string getPeriod()const; + void setPeriod(const std::string& period); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getUsedTime()const; + void setUsedTime(const std::string& usedTime); + std::string getDBInstanceClass()const; + void setDBInstanceClass(const std::string& dBInstanceClass); + std::string getSecurityIPList()const; + void setSecurityIPList(const std::string& securityIPList); + std::string getVSwitchId()const; + void setVSwitchId(const std::string& vSwitchId); + std::string getPrivateIpAddress()const; + void setPrivateIpAddress(const std::string& privateIpAddress); + std::string getSourceDBInstanceId()const; + void setSourceDBInstanceId(const std::string& sourceDBInstanceId); + std::string getReplicaMode()const; + void setReplicaMode(const std::string& replicaMode); + std::string getVPCId()const; + void setVPCId(const std::string& vPCId); + std::string getZoneId()const; + void setZoneId(const std::string& zoneId); + std::string getPayType()const; + void setPayType(const std::string& payType); + std::string getInstanceNetworkType()const; + void setInstanceNetworkType(const std::string& instanceNetworkType); + + private: + std::string connectionMode_; + std::string domainMode_; + std::string replicaDescription_; + long resourceOwnerId_; + int dBInstanceStorage_; + std::string systemDBCharset_; + std::string clientToken_; + std::string engineVersion_; + std::string accessKeyId_; + std::string regionId_; + std::string engine_; + std::string dBInstanceDescription_; + std::string dBInstanceNetType_; + std::string period_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string usedTime_; + std::string dBInstanceClass_; + std::string securityIPList_; + std::string vSwitchId_; + std::string privateIpAddress_; + std::string sourceDBInstanceId_; + std::string replicaMode_; + std::string vPCId_; + std::string zoneId_; + std::string payType_; + std::string instanceNetworkType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_CREATEDBINSTANCEREPLICAREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CreateDBInstanceReplicaResult.h b/rds/include/alibabacloud/rds/model/CreateDBInstanceReplicaResult.h new file mode 100644 index 000000000..7f06f6b62 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/CreateDBInstanceReplicaResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CREATEDBINSTANCEREPLICARESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_CREATEDBINSTANCEREPLICARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CreateDBInstanceReplicaResult : public ServiceResult + { + public: + + + CreateDBInstanceReplicaResult(); + explicit CreateDBInstanceReplicaResult(const std::string &payload); + ~CreateDBInstanceReplicaResult(); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOrderId()const; + void setOrderId(long orderId); + std::string getWorkflowId()const; + void setWorkflowId(const std::string& workflowId); + std::string getReplicaId()const; + void setReplicaId(const std::string& replicaId); + + protected: + void parse(const std::string &payload); + private: + std::string dBInstanceId_; + long orderId_; + std::string workflowId_; + std::string replicaId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_CREATEDBINSTANCEREPLICARESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CreateDBInstanceRequest.h b/rds/include/alibabacloud/rds/model/CreateDBInstanceRequest.h new file mode 100644 index 000000000..2f42281a2 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/CreateDBInstanceRequest.h @@ -0,0 +1,122 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CREATEDBINSTANCEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_CREATEDBINSTANCEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CreateDBInstanceRequest : public RdsRequest + { + + public: + CreateDBInstanceRequest(); + ~CreateDBInstanceRequest(); + + std::string getConnectionMode()const; + void setConnectionMode(const std::string& connectionMode); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + int getDBInstanceStorage()const; + void setDBInstanceStorage(int dBInstanceStorage); + std::string getSystemDBCharset()const; + void setSystemDBCharset(const std::string& systemDBCharset); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getEngineVersion()const; + void setEngineVersion(const std::string& engineVersion); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getEngine()const; + void setEngine(const std::string& engine); + std::string getDBInstanceDescription()const; + void setDBInstanceDescription(const std::string& dBInstanceDescription); + std::string getDBInstanceNetType()const; + void setDBInstanceNetType(const std::string& dBInstanceNetType); + std::string getPeriod()const; + void setPeriod(const std::string& period); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getUsedTime()const; + void setUsedTime(const std::string& usedTime); + std::string getDBInstanceClass()const; + void setDBInstanceClass(const std::string& dBInstanceClass); + std::string getSecurityIPList()const; + void setSecurityIPList(const std::string& securityIPList); + std::string getVSwitchId()const; + void setVSwitchId(const std::string& vSwitchId); + std::string getPrivateIpAddress()const; + void setPrivateIpAddress(const std::string& privateIpAddress); + std::string getVPCId()const; + void setVPCId(const std::string& vPCId); + std::string getTunnelId()const; + void setTunnelId(const std::string& tunnelId); + std::string getZoneId()const; + void setZoneId(const std::string& zoneId); + std::string getPayType()const; + void setPayType(const std::string& payType); + std::string getInstanceNetworkType()const; + void setInstanceNetworkType(const std::string& instanceNetworkType); + + private: + std::string connectionMode_; + long resourceOwnerId_; + int dBInstanceStorage_; + std::string systemDBCharset_; + std::string clientToken_; + std::string engineVersion_; + std::string accessKeyId_; + std::string resourceGroupId_; + std::string regionId_; + std::string engine_; + std::string dBInstanceDescription_; + std::string dBInstanceNetType_; + std::string period_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string usedTime_; + std::string dBInstanceClass_; + std::string securityIPList_; + std::string vSwitchId_; + std::string privateIpAddress_; + std::string vPCId_; + std::string tunnelId_; + std::string zoneId_; + std::string payType_; + std::string instanceNetworkType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_CREATEDBINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CreateDBInstanceResult.h b/rds/include/alibabacloud/rds/model/CreateDBInstanceResult.h new file mode 100644 index 000000000..07c46dbf0 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/CreateDBInstanceResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CREATEDBINSTANCERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_CREATEDBINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CreateDBInstanceResult : public ServiceResult + { + public: + + + CreateDBInstanceResult(); + explicit CreateDBInstanceResult(const std::string &payload); + ~CreateDBInstanceResult(); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getPort()const; + void setPort(const std::string& port); + std::string getOrderId()const; + void setOrderId(const std::string& orderId); + std::string getConnectionString()const; + void setConnectionString(const std::string& connectionString); + + protected: + void parse(const std::string &payload); + private: + std::string dBInstanceId_; + std::string port_; + std::string orderId_; + std::string connectionString_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_CREATEDBINSTANCERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CreateDampPolicyRequest.h b/rds/include/alibabacloud/rds/model/CreateDampPolicyRequest.h new file mode 100644 index 000000000..bd3d6bf52 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/CreateDampPolicyRequest.h @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CREATEDAMPPOLICYREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_CREATEDAMPPOLICYREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CreateDampPolicyRequest : public RdsRequest + { + + public: + CreateDampPolicyRequest(); + ~CreateDampPolicyRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPriority()const; + void setPriority(int priority); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getTimeRules()const; + void setTimeRules(const std::string& timeRules); + std::string getActionRules()const; + void setActionRules(const std::string& actionRules); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getHandlers()const; + void setHandlers(const std::string& handlers); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getPolicyName()const; + void setPolicyName(const std::string& policyName); + std::string getSourceRules()const; + void setSourceRules(const std::string& sourceRules); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + int priority_; + std::string accessKeyId_; + std::string timeRules_; + std::string actionRules_; + std::string securityToken_; + std::string regionId_; + std::string handlers_; + std::string dBInstanceId_; + std::string policyName_; + std::string sourceRules_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_CREATEDAMPPOLICYREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CreateDampPolicyResult.h b/rds/include/alibabacloud/rds/model/CreateDampPolicyResult.h new file mode 100644 index 000000000..910d28886 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/CreateDampPolicyResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CREATEDAMPPOLICYRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_CREATEDAMPPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CreateDampPolicyResult : public ServiceResult + { + public: + + + CreateDampPolicyResult(); + explicit CreateDampPolicyResult(const std::string &payload); + ~CreateDampPolicyResult(); + std::string getPolicyName()const; + void setPolicyName(const std::string& policyName); + std::string getPolicyId()const; + void setPolicyId(const std::string& policyId); + + protected: + void parse(const std::string &payload); + private: + std::string policyName_; + std::string policyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_CREATEDAMPPOLICYRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CreateDatabaseRequest.h b/rds/include/alibabacloud/rds/model/CreateDatabaseRequest.h new file mode 100644 index 000000000..a5e4a0968 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/CreateDatabaseRequest.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CREATEDATABASEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_CREATEDATABASEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CreateDatabaseRequest : public RdsRequest + { + + public: + CreateDatabaseRequest(); + ~CreateDatabaseRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDBName()const; + void setDBName(const std::string& dBName); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getDBDescription()const; + void setDBDescription(const std::string& dBDescription); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getCharacterSetName()const; + void setCharacterSetName(const std::string& characterSetName); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string dBName_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string dBInstanceId_; + std::string dBDescription_; + long ownerId_; + std::string characterSetName_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_CREATEDATABASEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CreateDatabaseResult.h b/rds/include/alibabacloud/rds/model/CreateDatabaseResult.h new file mode 100644 index 000000000..3f494f9a7 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/CreateDatabaseResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CREATEDATABASERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_CREATEDATABASERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CreateDatabaseResult : public ServiceResult + { + public: + + + CreateDatabaseResult(); + explicit CreateDatabaseResult(const std::string &payload); + ~CreateDatabaseResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_CREATEDATABASERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CreateDiagnosticReportRequest.h b/rds/include/alibabacloud/rds/model/CreateDiagnosticReportRequest.h new file mode 100644 index 000000000..12fb1d828 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/CreateDiagnosticReportRequest.h @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CREATEDIAGNOSTICREPORTREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_CREATEDIAGNOSTICREPORTREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CreateDiagnosticReportRequest : public RdsRequest + { + + public: + CreateDiagnosticReportRequest(); + ~CreateDiagnosticReportRequest(); + + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string endTime_; + std::string dBInstanceId_; + std::string startTime_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_CREATEDIAGNOSTICREPORTREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CreateDiagnosticReportResult.h b/rds/include/alibabacloud/rds/model/CreateDiagnosticReportResult.h new file mode 100644 index 000000000..a9ef67c40 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/CreateDiagnosticReportResult.h @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CREATEDIAGNOSTICREPORTRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_CREATEDIAGNOSTICREPORTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CreateDiagnosticReportResult : public ServiceResult + { + public: + + + CreateDiagnosticReportResult(); + explicit CreateDiagnosticReportResult(const std::string &payload); + ~CreateDiagnosticReportResult(); + std::string getReportId()const; + void setReportId(const std::string& reportId); + + protected: + void parse(const std::string &payload); + private: + std::string reportId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_CREATEDIAGNOSTICREPORTRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CreateMigrateTaskForSQLServerRequest.h b/rds/include/alibabacloud/rds/model/CreateMigrateTaskForSQLServerRequest.h new file mode 100644 index 000000000..274b49fa6 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/CreateMigrateTaskForSQLServerRequest.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CREATEMIGRATETASKFORSQLSERVERREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_CREATEMIGRATETASKFORSQLSERVERREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CreateMigrateTaskForSQLServerRequest : public RdsRequest + { + + public: + CreateMigrateTaskForSQLServerRequest(); + ~CreateMigrateTaskForSQLServerRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getTaskType()const; + void setTaskType(const std::string& taskType); + std::string getDBName()const; + void setDBName(const std::string& dBName); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getIsOnlineDB()const; + void setIsOnlineDB(const std::string& isOnlineDB); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getOSSUrls()const; + void setOSSUrls(const std::string& oSSUrls); + + private: + long resourceOwnerId_; + std::string taskType_; + std::string dBName_; + std::string resourceOwnerAccount_; + std::string isOnlineDB_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + std::string oSSUrls_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_CREATEMIGRATETASKFORSQLSERVERREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CreateMigrateTaskForSQLServerResult.h b/rds/include/alibabacloud/rds/model/CreateMigrateTaskForSQLServerResult.h new file mode 100644 index 000000000..1e2679ad9 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/CreateMigrateTaskForSQLServerResult.h @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CREATEMIGRATETASKFORSQLSERVERRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_CREATEMIGRATETASKFORSQLSERVERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CreateMigrateTaskForSQLServerResult : public ServiceResult + { + public: + + + CreateMigrateTaskForSQLServerResult(); + explicit CreateMigrateTaskForSQLServerResult(const std::string &payload); + ~CreateMigrateTaskForSQLServerResult(); + std::string getTaskId()const; + void setTaskId(const std::string& taskId); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getTaskType()const; + void setTaskType(const std::string& taskType); + std::string getDBName()const; + void setDBName(const std::string& dBName); + std::string getMigrateIaskId()const; + void setMigrateIaskId(const std::string& migrateIaskId); + std::string getDBInstanceName()const; + void setDBInstanceName(const std::string& dBInstanceName); + + protected: + void parse(const std::string &payload); + private: + std::string taskId_; + std::string dBInstanceId_; + std::string taskType_; + std::string dBName_; + std::string migrateIaskId_; + std::string dBInstanceName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_CREATEMIGRATETASKFORSQLSERVERRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CreateMigrateTaskRequest.h b/rds/include/alibabacloud/rds/model/CreateMigrateTaskRequest.h new file mode 100644 index 000000000..8aaa0d9bf --- /dev/null +++ b/rds/include/alibabacloud/rds/model/CreateMigrateTaskRequest.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CREATEMIGRATETASKREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_CREATEMIGRATETASKREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CreateMigrateTaskRequest : public RdsRequest + { + + public: + CreateMigrateTaskRequest(); + ~CreateMigrateTaskRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDBName()const; + void setDBName(const std::string& dBName); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getIsOnlineDB()const; + void setIsOnlineDB(const std::string& isOnlineDB); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getBackupMode()const; + void setBackupMode(const std::string& backupMode); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getOSSUrls()const; + void setOSSUrls(const std::string& oSSUrls); + + private: + long resourceOwnerId_; + std::string dBName_; + std::string resourceOwnerAccount_; + std::string isOnlineDB_; + std::string dBInstanceId_; + std::string backupMode_; + long ownerId_; + std::string accessKeyId_; + std::string oSSUrls_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_CREATEMIGRATETASKREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CreateMigrateTaskResult.h b/rds/include/alibabacloud/rds/model/CreateMigrateTaskResult.h new file mode 100644 index 000000000..87ddcb766 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/CreateMigrateTaskResult.h @@ -0,0 +1,64 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CREATEMIGRATETASKRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_CREATEMIGRATETASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CreateMigrateTaskResult : public ServiceResult + { + public: + + + CreateMigrateTaskResult(); + explicit CreateMigrateTaskResult(const std::string &payload); + ~CreateMigrateTaskResult(); + std::string getTaskId()const; + void setTaskId(const std::string& taskId); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getBackupMode()const; + void setBackupMode(const std::string& backupMode); + std::string getDBName()const; + void setDBName(const std::string& dBName); + std::string getMigrateIaskId()const; + void setMigrateIaskId(const std::string& migrateIaskId); + + protected: + void parse(const std::string &payload); + private: + std::string taskId_; + std::string dBInstanceId_; + std::string backupMode_; + std::string dBName_; + std::string migrateIaskId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_CREATEMIGRATETASKRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CreatePolicyWithSpecifiedPolicyRequest.h b/rds/include/alibabacloud/rds/model/CreatePolicyWithSpecifiedPolicyRequest.h new file mode 100644 index 000000000..578e40aee --- /dev/null +++ b/rds/include/alibabacloud/rds/model/CreatePolicyWithSpecifiedPolicyRequest.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CREATEPOLICYWITHSPECIFIEDPOLICYREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_CREATEPOLICYWITHSPECIFIEDPOLICYREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CreatePolicyWithSpecifiedPolicyRequest : public RdsRequest + { + + public: + CreatePolicyWithSpecifiedPolicyRequest(); + ~CreatePolicyWithSpecifiedPolicyRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getPolicyId()const; + void setPolicyId(const std::string& policyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string policyId_; + std::string securityToken_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_CREATEPOLICYWITHSPECIFIEDPOLICYREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CreatePolicyWithSpecifiedPolicyResult.h b/rds/include/alibabacloud/rds/model/CreatePolicyWithSpecifiedPolicyResult.h new file mode 100644 index 000000000..f7e7e7a11 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/CreatePolicyWithSpecifiedPolicyResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CREATEPOLICYWITHSPECIFIEDPOLICYRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_CREATEPOLICYWITHSPECIFIEDPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CreatePolicyWithSpecifiedPolicyResult : public ServiceResult + { + public: + + + CreatePolicyWithSpecifiedPolicyResult(); + explicit CreatePolicyWithSpecifiedPolicyResult(const std::string &payload); + ~CreatePolicyWithSpecifiedPolicyResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_CREATEPOLICYWITHSPECIFIEDPOLICYRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CreateReadOnlyDBInstanceRequest.h b/rds/include/alibabacloud/rds/model/CreateReadOnlyDBInstanceRequest.h new file mode 100644 index 000000000..bfcb8f05d --- /dev/null +++ b/rds/include/alibabacloud/rds/model/CreateReadOnlyDBInstanceRequest.h @@ -0,0 +1,101 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CREATEREADONLYDBINSTANCEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_CREATEREADONLYDBINSTANCEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CreateReadOnlyDBInstanceRequest : public RdsRequest + { + + public: + CreateReadOnlyDBInstanceRequest(); + ~CreateReadOnlyDBInstanceRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + int getDBInstanceStorage()const; + void setDBInstanceStorage(int dBInstanceStorage); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getEngineVersion()const; + void setEngineVersion(const std::string& engineVersion); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getDBInstanceClass()const; + void setDBInstanceClass(const std::string& dBInstanceClass); + std::string getVSwitchId()const; + void setVSwitchId(const std::string& vSwitchId); + std::string getPrivateIpAddress()const; + void setPrivateIpAddress(const std::string& privateIpAddress); + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getVPCId()const; + void setVPCId(const std::string& vPCId); + std::string getZoneId()const; + void setZoneId(const std::string& zoneId); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getDBInstanceDescription()const; + void setDBInstanceDescription(const std::string& dBInstanceDescription); + std::string getPayType()const; + void setPayType(const std::string& payType); + std::string getInstanceNetworkType()const; + void setInstanceNetworkType(const std::string& instanceNetworkType); + + private: + long resourceOwnerId_; + int dBInstanceStorage_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string ownerAccount_; + std::string engineVersion_; + long ownerId_; + std::string accessKeyId_; + std::string dBInstanceClass_; + std::string vSwitchId_; + std::string privateIpAddress_; + std::string resourceGroupId_; + std::string regionId_; + std::string vPCId_; + std::string zoneId_; + std::string dBInstanceId_; + std::string dBInstanceDescription_; + std::string payType_; + std::string instanceNetworkType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_CREATEREADONLYDBINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CreateReadOnlyDBInstanceResult.h b/rds/include/alibabacloud/rds/model/CreateReadOnlyDBInstanceResult.h new file mode 100644 index 000000000..e37b14dc9 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/CreateReadOnlyDBInstanceResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CREATEREADONLYDBINSTANCERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_CREATEREADONLYDBINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CreateReadOnlyDBInstanceResult : public ServiceResult + { + public: + + + CreateReadOnlyDBInstanceResult(); + explicit CreateReadOnlyDBInstanceResult(const std::string &payload); + ~CreateReadOnlyDBInstanceResult(); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getPort()const; + void setPort(const std::string& port); + std::string getOrderId()const; + void setOrderId(const std::string& orderId); + std::string getConnectionString()const; + void setConnectionString(const std::string& connectionString); + + protected: + void parse(const std::string &payload); + private: + std::string dBInstanceId_; + std::string port_; + std::string orderId_; + std::string connectionString_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_CREATEREADONLYDBINSTANCERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CreateSQLDiagnosisRequest.h b/rds/include/alibabacloud/rds/model/CreateSQLDiagnosisRequest.h new file mode 100644 index 000000000..5302f1df6 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/CreateSQLDiagnosisRequest.h @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CREATESQLDIAGNOSISREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_CREATESQLDIAGNOSISREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CreateSQLDiagnosisRequest : public RdsRequest + { + + public: + CreateSQLDiagnosisRequest(); + ~CreateSQLDiagnosisRequest(); + + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string endTime_; + std::string dBInstanceId_; + std::string startTime_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_CREATESQLDIAGNOSISREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CreateSQLDiagnosisResult.h b/rds/include/alibabacloud/rds/model/CreateSQLDiagnosisResult.h new file mode 100644 index 000000000..ec80f7b41 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/CreateSQLDiagnosisResult.h @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CREATESQLDIAGNOSISRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_CREATESQLDIAGNOSISRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CreateSQLDiagnosisResult : public ServiceResult + { + public: + + + CreateSQLDiagnosisResult(); + explicit CreateSQLDiagnosisResult(const std::string &payload); + ~CreateSQLDiagnosisResult(); + std::string getSQLDiagId()const; + void setSQLDiagId(const std::string& sQLDiagId); + + protected: + void parse(const std::string &payload); + private: + std::string sQLDiagId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_CREATESQLDIAGNOSISRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CreateTempDBInstanceRequest.h b/rds/include/alibabacloud/rds/model/CreateTempDBInstanceRequest.h new file mode 100644 index 000000000..00174cd68 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/CreateTempDBInstanceRequest.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CREATETEMPDBINSTANCEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_CREATETEMPDBINSTANCEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CreateTempDBInstanceRequest : public RdsRequest + { + + public: + CreateTempDBInstanceRequest(); + ~CreateTempDBInstanceRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRestoreTime()const; + void setRestoreTime(const std::string& restoreTime); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + int getBackupId()const; + void setBackupId(int backupId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string restoreTime_; + std::string resourceOwnerAccount_; + int backupId_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_CREATETEMPDBINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CreateTempDBInstanceResult.h b/rds/include/alibabacloud/rds/model/CreateTempDBInstanceResult.h new file mode 100644 index 000000000..a4bc75880 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/CreateTempDBInstanceResult.h @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CREATETEMPDBINSTANCERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_CREATETEMPDBINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CreateTempDBInstanceResult : public ServiceResult + { + public: + + + CreateTempDBInstanceResult(); + explicit CreateTempDBInstanceResult(const std::string &payload); + ~CreateTempDBInstanceResult(); + std::string getTempDBInstanceId()const; + void setTempDBInstanceId(const std::string& tempDBInstanceId); + + protected: + void parse(const std::string &payload); + private: + std::string tempDBInstanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_CREATETEMPDBINSTANCERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CreateUploadPathForSQLServerRequest.h b/rds/include/alibabacloud/rds/model/CreateUploadPathForSQLServerRequest.h new file mode 100644 index 000000000..24f4c6ca7 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/CreateUploadPathForSQLServerRequest.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CREATEUPLOADPATHFORSQLSERVERREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_CREATEUPLOADPATHFORSQLSERVERREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CreateUploadPathForSQLServerRequest : public RdsRequest + { + + public: + CreateUploadPathForSQLServerRequest(); + ~CreateUploadPathForSQLServerRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDBName()const; + void setDBName(const std::string& dBName); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string dBName_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_CREATEUPLOADPATHFORSQLSERVERREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/CreateUploadPathForSQLServerResult.h b/rds/include/alibabacloud/rds/model/CreateUploadPathForSQLServerResult.h new file mode 100644 index 000000000..e3367dfee --- /dev/null +++ b/rds/include/alibabacloud/rds/model/CreateUploadPathForSQLServerResult.h @@ -0,0 +1,70 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_CREATEUPLOADPATHFORSQLSERVERRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_CREATEUPLOADPATHFORSQLSERVERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT CreateUploadPathForSQLServerResult : public ServiceResult + { + public: + + + CreateUploadPathForSQLServerResult(); + explicit CreateUploadPathForSQLServerResult(const std::string &payload); + ~CreateUploadPathForSQLServerResult(); + std::string getIntranetFtpserver()const; + void setIntranetFtpserver(const std::string& intranetFtpserver); + std::string getUserName()const; + void setUserName(const std::string& userName); + std::string getFileName()const; + void setFileName(const std::string& fileName); + int getInternetPort()const; + void setInternetPort(int internetPort); + std::string getInternetFtpServer()const; + void setInternetFtpServer(const std::string& internetFtpServer); + int getIntranetport()const; + void setIntranetport(int intranetport); + std::string getPassword()const; + void setPassword(const std::string& password); + + protected: + void parse(const std::string &payload); + private: + std::string intranetFtpserver_; + std::string userName_; + std::string fileName_; + int internetPort_; + std::string internetFtpServer_; + int intranetport_; + std::string password_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_CREATEUPLOADPATHFORSQLSERVERRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DegradeDBInstanceSpecRequest.h b/rds/include/alibabacloud/rds/model/DegradeDBInstanceSpecRequest.h new file mode 100644 index 000000000..e75af97b8 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DegradeDBInstanceSpecRequest.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DEGRADEDBINSTANCESPECREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DEGRADEDBINSTANCESPECREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DegradeDBInstanceSpecRequest : public RdsRequest + { + + public: + DegradeDBInstanceSpecRequest(); + ~DegradeDBInstanceSpecRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + int getDBInstanceStorage()const; + void setDBInstanceStorage(int dBInstanceStorage); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getDBInstanceClass()const; + void setDBInstanceClass(const std::string& dBInstanceClass); + + private: + long resourceOwnerId_; + int dBInstanceStorage_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + std::string dBInstanceClass_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DEGRADEDBINSTANCESPECREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DegradeDBInstanceSpecResult.h b/rds/include/alibabacloud/rds/model/DegradeDBInstanceSpecResult.h new file mode 100644 index 000000000..93b462ea9 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DegradeDBInstanceSpecResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DEGRADEDBINSTANCESPECRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DEGRADEDBINSTANCESPECRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DegradeDBInstanceSpecResult : public ServiceResult + { + public: + + + DegradeDBInstanceSpecResult(); + explicit DegradeDBInstanceSpecResult(const std::string &payload); + ~DegradeDBInstanceSpecResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DEGRADEDBINSTANCESPECRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DeleteAccountRequest.h b/rds/include/alibabacloud/rds/model/DeleteAccountRequest.h new file mode 100644 index 000000000..269553c2c --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DeleteAccountRequest.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DELETEACCOUNTREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DELETEACCOUNTREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DeleteAccountRequest : public RdsRequest + { + + public: + DeleteAccountRequest(); + ~DeleteAccountRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccountName()const; + void setAccountName(const std::string& accountName); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string accountName_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DELETEACCOUNTREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DeleteAccountResult.h b/rds/include/alibabacloud/rds/model/DeleteAccountResult.h new file mode 100644 index 000000000..e68ad79a6 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DeleteAccountResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DELETEACCOUNTRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DELETEACCOUNTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DeleteAccountResult : public ServiceResult + { + public: + + + DeleteAccountResult(); + explicit DeleteAccountResult(const std::string &payload); + ~DeleteAccountResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DELETEACCOUNTRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DeleteBackupRequest.h b/rds/include/alibabacloud/rds/model/DeleteBackupRequest.h new file mode 100644 index 000000000..f596ff48d --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DeleteBackupRequest.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DELETEBACKUPREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DELETEBACKUPREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DeleteBackupRequest : public RdsRequest + { + + public: + DeleteBackupRequest(); + ~DeleteBackupRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getBackupId()const; + void setBackupId(const std::string& backupId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string backupId_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DELETEBACKUPREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DeleteBackupResult.h b/rds/include/alibabacloud/rds/model/DeleteBackupResult.h new file mode 100644 index 000000000..9f6704204 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DeleteBackupResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DELETEBACKUPRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DELETEBACKUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DeleteBackupResult : public ServiceResult + { + public: + + + DeleteBackupResult(); + explicit DeleteBackupResult(const std::string &payload); + ~DeleteBackupResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DELETEBACKUPRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DeleteDBInstanceRequest.h b/rds/include/alibabacloud/rds/model/DeleteDBInstanceRequest.h new file mode 100644 index 000000000..0cc583a15 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DeleteDBInstanceRequest.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DELETEDBINSTANCEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DELETEDBINSTANCEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DeleteDBInstanceRequest : public RdsRequest + { + + public: + DeleteDBInstanceRequest(); + ~DeleteDBInstanceRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DELETEDBINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DeleteDBInstanceResult.h b/rds/include/alibabacloud/rds/model/DeleteDBInstanceResult.h new file mode 100644 index 000000000..56b124ecd --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DeleteDBInstanceResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DELETEDBINSTANCERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DELETEDBINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DeleteDBInstanceResult : public ServiceResult + { + public: + + + DeleteDBInstanceResult(); + explicit DeleteDBInstanceResult(const std::string &payload); + ~DeleteDBInstanceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DELETEDBINSTANCERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DeleteDampPolicyRequest.h b/rds/include/alibabacloud/rds/model/DeleteDampPolicyRequest.h new file mode 100644 index 000000000..e1680c5c5 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DeleteDampPolicyRequest.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DELETEDAMPPOLICYREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DELETEDAMPPOLICYREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DeleteDampPolicyRequest : public RdsRequest + { + + public: + DeleteDampPolicyRequest(); + ~DeleteDampPolicyRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getPolicyName()const; + void setPolicyName(const std::string& policyName); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string securityToken_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string dBInstanceId_; + std::string policyName_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DELETEDAMPPOLICYREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DeleteDampPolicyResult.h b/rds/include/alibabacloud/rds/model/DeleteDampPolicyResult.h new file mode 100644 index 000000000..d6e99710e --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DeleteDampPolicyResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DELETEDAMPPOLICYRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DELETEDAMPPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DeleteDampPolicyResult : public ServiceResult + { + public: + + + DeleteDampPolicyResult(); + explicit DeleteDampPolicyResult(const std::string &payload); + ~DeleteDampPolicyResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DELETEDAMPPOLICYRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DeleteDatabaseRequest.h b/rds/include/alibabacloud/rds/model/DeleteDatabaseRequest.h new file mode 100644 index 000000000..f88a2ec3d --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DeleteDatabaseRequest.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DELETEDATABASEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DELETEDATABASEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DeleteDatabaseRequest : public RdsRequest + { + + public: + DeleteDatabaseRequest(); + ~DeleteDatabaseRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDBName()const; + void setDBName(const std::string& dBName); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string dBName_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DELETEDATABASEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DeleteDatabaseResult.h b/rds/include/alibabacloud/rds/model/DeleteDatabaseResult.h new file mode 100644 index 000000000..edd9877d8 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DeleteDatabaseResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DELETEDATABASERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DELETEDATABASERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DeleteDatabaseResult : public ServiceResult + { + public: + + + DeleteDatabaseResult(); + explicit DeleteDatabaseResult(const std::string &payload); + ~DeleteDatabaseResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DELETEDATABASERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescibeImportsFromDatabaseRequest.h b/rds/include/alibabacloud/rds/model/DescibeImportsFromDatabaseRequest.h new file mode 100644 index 000000000..b3ef3ed0e --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescibeImportsFromDatabaseRequest.h @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCIBEIMPORTSFROMDATABASEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCIBEIMPORTSFROMDATABASEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescibeImportsFromDatabaseRequest : public RdsRequest + { + + public: + DescibeImportsFromDatabaseRequest(); + ~DescibeImportsFromDatabaseRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + int getImportId()const; + void setImportId(int importId); + std::string getEngine()const; + void setEngine(const std::string& engine); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string ownerAccount_; + std::string endTime_; + std::string startTime_; + long ownerId_; + int pageNumber_; + std::string accessKeyId_; + int importId_; + std::string engine_; + int pageSize_; + std::string dBInstanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCIBEIMPORTSFROMDATABASEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescibeImportsFromDatabaseResult.h b/rds/include/alibabacloud/rds/model/DescibeImportsFromDatabaseResult.h new file mode 100644 index 000000000..ded936bbc --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescibeImportsFromDatabaseResult.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCIBEIMPORTSFROMDATABASERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCIBEIMPORTSFROMDATABASERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescibeImportsFromDatabaseResult : public ServiceResult + { + public: + struct ImportResultFromDB + { + std::string importDataStatus; + std::string incrementalImportingTime; + std::string importDataStatusDescription; + std::string importDataType; + int importId; + }; + + + DescibeImportsFromDatabaseResult(); + explicit DescibeImportsFromDatabaseResult(const std::string &payload); + ~DescibeImportsFromDatabaseResult(); + int getTotalRecordCount()const; + void setTotalRecordCount(int totalRecordCount); + int getPageRecordCount()const; + void setPageRecordCount(int pageRecordCount); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::vector getItems()const; + void setItems(const std::vector& items); + + protected: + void parse(const std::string &payload); + private: + int totalRecordCount_; + int pageRecordCount_; + int pageNumber_; + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCIBEIMPORTSFROMDATABASERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeAbnormalDBInstancesRequest.h b/rds/include/alibabacloud/rds/model/DescribeAbnormalDBInstancesRequest.h new file mode 100644 index 000000000..9bbef2b5c --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeAbnormalDBInstancesRequest.h @@ -0,0 +1,107 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEABNORMALDBINSTANCESREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEABNORMALDBINSTANCESREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeAbnormalDBInstancesRequest : public RdsRequest + { + + public: + DescribeAbnormalDBInstancesRequest(); + ~DescribeAbnormalDBInstancesRequest(); + + std::string getTag4value()const; + void setTag4value(const std::string& tag4value); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getTag2key()const; + void setTag2key(const std::string& tag2key); + std::string getTag5key()const; + void setTag5key(const std::string& tag5key); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getTag3key()const; + void setTag3key(const std::string& tag3key); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getTag5value()const; + void setTag5value(const std::string& tag5value); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getTags()const; + void setTags(const std::string& tags); + std::string getTag1key()const; + void setTag1key(const std::string& tag1key); + std::string getTag1value()const; + void setTag1value(const std::string& tag1value); + std::string getTag2value()const; + void setTag2value(const std::string& tag2value); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getTag4key()const; + void setTag4key(const std::string& tag4key); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getTag3value()const; + void setTag3value(const std::string& tag3value); + std::string getProxyId()const; + void setProxyId(const std::string& proxyId); + + private: + std::string tag4value_; + long resourceOwnerId_; + std::string tag2key_; + std::string tag5key_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string ownerAccount_; + std::string tag3key_; + long ownerId_; + std::string tag5value_; + int pageNumber_; + std::string accessKeyId_; + std::string tags_; + std::string tag1key_; + std::string tag1value_; + std::string tag2value_; + int pageSize_; + std::string tag4key_; + std::string dBInstanceId_; + std::string tag3value_; + std::string proxyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEABNORMALDBINSTANCESREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeAbnormalDBInstancesResult.h b/rds/include/alibabacloud/rds/model/DescribeAbnormalDBInstancesResult.h new file mode 100644 index 000000000..066aa194a --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeAbnormalDBInstancesResult.h @@ -0,0 +1,77 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEABNORMALDBINSTANCESRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEABNORMALDBINSTANCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeAbnormalDBInstancesResult : public ServiceResult + { + public: + struct InstanceResult + { + struct AbnormalItem + { + std::string abnormalReason; + std::string checkTime; + std::string adviceKey; + std::string checkItem; + std::string abnormalValue; + std::string abnormalDetail; + std::vector adviseValue; + }; + std::string dBInstanceId; + std::vector abnormalItems; + std::string dBInstanceDescription; + }; + + + DescribeAbnormalDBInstancesResult(); + explicit DescribeAbnormalDBInstancesResult(const std::string &payload); + ~DescribeAbnormalDBInstancesResult(); + int getTotalRecordCount()const; + void setTotalRecordCount(int totalRecordCount); + int getPageRecordCount()const; + void setPageRecordCount(int pageRecordCount); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::vector getItems()const; + void setItems(const std::vector& items); + + protected: + void parse(const std::string &payload); + private: + int totalRecordCount_; + int pageRecordCount_; + int pageNumber_; + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEABNORMALDBINSTANCESRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeAccountsRequest.h b/rds/include/alibabacloud/rds/model/DescribeAccountsRequest.h new file mode 100644 index 000000000..e173adeee --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeAccountsRequest.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEACCOUNTSREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEACCOUNTSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeAccountsRequest : public RdsRequest + { + + public: + DescribeAccountsRequest(); + ~DescribeAccountsRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccountName()const; + void setAccountName(const std::string& accountName); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string accountName_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEACCOUNTSREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeAccountsResult.h b/rds/include/alibabacloud/rds/model/DescribeAccountsResult.h new file mode 100644 index 000000000..04c163609 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeAccountsResult.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEACCOUNTSRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEACCOUNTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeAccountsResult : public ServiceResult + { + public: + struct DBInstanceAccount + { + struct DatabasePrivilege + { + std::string accountPrivilege; + std::string dBName; + }; + std::string accountDescription; + std::string accountStatus; + std::string dBInstanceId; + std::string accountType; + std::vector databasePrivileges; + std::string accountName; + }; + + + DescribeAccountsResult(); + explicit DescribeAccountsResult(const std::string &payload); + ~DescribeAccountsResult(); + std::vector getAccounts()const; + void setAccounts(const std::vector& accounts); + + protected: + void parse(const std::string &payload); + private: + std::vector accounts_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEACCOUNTSRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeBackupPolicyRequest.h b/rds/include/alibabacloud/rds/model/DescribeBackupPolicyRequest.h new file mode 100644 index 000000000..f2d10235d --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeBackupPolicyRequest.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEBACKUPPOLICYREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEBACKUPPOLICYREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeBackupPolicyRequest : public RdsRequest + { + + public: + DescribeBackupPolicyRequest(); + ~DescribeBackupPolicyRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEBACKUPPOLICYREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeBackupPolicyResult.h b/rds/include/alibabacloud/rds/model/DescribeBackupPolicyResult.h new file mode 100644 index 000000000..f25650e3d --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeBackupPolicyResult.h @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEBACKUPPOLICYRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEBACKUPPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeBackupPolicyResult : public ServiceResult + { + public: + + + DescribeBackupPolicyResult(); + explicit DescribeBackupPolicyResult(const std::string &payload); + ~DescribeBackupPolicyResult(); + std::string getPreferredBackupPeriod()const; + void setPreferredBackupPeriod(const std::string& preferredBackupPeriod); + int getLogBackupRetentionPeriod()const; + void setLogBackupRetentionPeriod(int logBackupRetentionPeriod); + std::string getPreferredBackupTime()const; + void setPreferredBackupTime(const std::string& preferredBackupTime); + std::string getBackupLog()const; + void setBackupLog(const std::string& backupLog); + int getBackupRetentionPeriod()const; + void setBackupRetentionPeriod(int backupRetentionPeriod); + std::string getPreferredNextBackupTime()const; + void setPreferredNextBackupTime(const std::string& preferredNextBackupTime); + + protected: + void parse(const std::string &payload); + private: + std::string preferredBackupPeriod_; + int logBackupRetentionPeriod_; + std::string preferredBackupTime_; + std::string backupLog_; + int backupRetentionPeriod_; + std::string preferredNextBackupTime_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEBACKUPPOLICYRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeBackupSetsForSecurityRequest.h b/rds/include/alibabacloud/rds/model/DescribeBackupSetsForSecurityRequest.h new file mode 100644 index 000000000..60ce0db83 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeBackupSetsForSecurityRequest.h @@ -0,0 +1,92 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEBACKUPSETSFORSECURITYREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEBACKUPSETSFORSECURITYREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeBackupSetsForSecurityRequest : public RdsRequest + { + + public: + DescribeBackupSetsForSecurityRequest(); + ~DescribeBackupSetsForSecurityRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getTargetAliBid()const; + void setTargetAliBid(const std::string& targetAliBid); + std::string getBackupId()const; + void setBackupId(const std::string& backupId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getBackupStatus()const; + void setBackupStatus(const std::string& backupStatus); + std::string getBackupLocation()const; + void setBackupLocation(const std::string& backupLocation); + std::string getTargetAliUid()const; + void setTargetAliUid(const std::string& targetAliUid); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getBackupMode()const; + void setBackupMode(const std::string& backupMode); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string targetAliBid_; + std::string backupId_; + std::string ownerAccount_; + std::string endTime_; + std::string startTime_; + long ownerId_; + int pageNumber_; + std::string accessKeyId_; + std::string backupStatus_; + std::string backupLocation_; + std::string targetAliUid_; + int pageSize_; + std::string dBInstanceId_; + std::string backupMode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEBACKUPSETSFORSECURITYREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeBackupSetsForSecurityResult.h b/rds/include/alibabacloud/rds/model/DescribeBackupSetsForSecurityResult.h new file mode 100644 index 000000000..fc63fead9 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeBackupSetsForSecurityResult.h @@ -0,0 +1,85 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEBACKUPSETSFORSECURITYRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEBACKUPSETSFORSECURITYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeBackupSetsForSecurityResult : public ServiceResult + { + public: + struct Backup + { + std::string backupMethod; + std::string backupExtractionStatus; + std::string backupIntranetDownloadURL; + std::string backupMode; + long backupSize; + std::string backupId; + std::string hostInstanceID; + std::string backupDBNames; + std::string storeStatus; + std::string dBInstanceId; + std::string backupDownloadURL; + std::string backupEndTime; + std::string backupStartTime; + std::string backupType; + std::string backupScale; + std::string backupStatus; + std::string backupLocation; + long totalBackupSize; + }; + + + DescribeBackupSetsForSecurityResult(); + explicit DescribeBackupSetsForSecurityResult(const std::string &payload); + ~DescribeBackupSetsForSecurityResult(); + std::string getTotalRecordCount()const; + void setTotalRecordCount(const std::string& totalRecordCount); + std::string getPageRecordCount()const; + void setPageRecordCount(const std::string& pageRecordCount); + std::string getPageNumber()const; + void setPageNumber(const std::string& pageNumber); + std::vector getItems()const; + void setItems(const std::vector& items); + long getTotalBackupSize()const; + void setTotalBackupSize(long totalBackupSize); + + protected: + void parse(const std::string &payload); + private: + std::string totalRecordCount_; + std::string pageRecordCount_; + std::string pageNumber_; + std::vector items_; + long totalBackupSize_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEBACKUPSETSFORSECURITYRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeBackupTasksRequest.h b/rds/include/alibabacloud/rds/model/DescribeBackupTasksRequest.h new file mode 100644 index 000000000..45767aeec --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeBackupTasksRequest.h @@ -0,0 +1,77 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEBACKUPTASKSREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEBACKUPTASKSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeBackupTasksRequest : public RdsRequest + { + + public: + DescribeBackupTasksRequest(); + ~DescribeBackupTasksRequest(); + + std::string getBackupJobId()const; + void setBackupJobId(const std::string& backupJobId); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getFlag()const; + void setFlag(const std::string& flag); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getBackupMode()const; + void setBackupMode(const std::string& backupMode); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getBackupJobStatus()const; + void setBackupJobStatus(const std::string& backupJobStatus); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string backupJobId_; + long resourceOwnerId_; + std::string flag_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string ownerAccount_; + std::string dBInstanceId_; + std::string backupMode_; + long ownerId_; + std::string backupJobStatus_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEBACKUPTASKSREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeBackupTasksResult.h b/rds/include/alibabacloud/rds/model/DescribeBackupTasksResult.h new file mode 100644 index 000000000..4a5b27894 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeBackupTasksResult.h @@ -0,0 +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_RDS_MODEL_DESCRIBEBACKUPTASKSRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEBACKUPTASKSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeBackupTasksResult : public ServiceResult + { + public: + struct BackupJob + { + std::string jobMode; + std::string taskAction; + std::string backupjobId; + std::string backupProgressStatus; + std::string process; + }; + + + DescribeBackupTasksResult(); + explicit DescribeBackupTasksResult(const std::string &payload); + ~DescribeBackupTasksResult(); + std::vector getItems()const; + void setItems(const std::vector& items); + + protected: + void parse(const std::string &payload); + private: + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEBACKUPTASKSRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeBackupsForSecurityRequest.h b/rds/include/alibabacloud/rds/model/DescribeBackupsForSecurityRequest.h new file mode 100644 index 000000000..8c1813ef3 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeBackupsForSecurityRequest.h @@ -0,0 +1,92 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEBACKUPSFORSECURITYREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEBACKUPSFORSECURITYREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeBackupsForSecurityRequest : public RdsRequest + { + + public: + DescribeBackupsForSecurityRequest(); + ~DescribeBackupsForSecurityRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getTargetAliBid()const; + void setTargetAliBid(const std::string& targetAliBid); + std::string getBackupId()const; + void setBackupId(const std::string& backupId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getBackupStatus()const; + void setBackupStatus(const std::string& backupStatus); + std::string getBackupLocation()const; + void setBackupLocation(const std::string& backupLocation); + std::string getTargetAliUid()const; + void setTargetAliUid(const std::string& targetAliUid); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getBackupMode()const; + void setBackupMode(const std::string& backupMode); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string targetAliBid_; + std::string backupId_; + std::string ownerAccount_; + std::string endTime_; + std::string startTime_; + long ownerId_; + int pageNumber_; + std::string accessKeyId_; + std::string backupStatus_; + std::string backupLocation_; + std::string targetAliUid_; + int pageSize_; + std::string dBInstanceId_; + std::string backupMode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEBACKUPSFORSECURITYREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeBackupsForSecurityResult.h b/rds/include/alibabacloud/rds/model/DescribeBackupsForSecurityResult.h new file mode 100644 index 000000000..83fb504d8 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeBackupsForSecurityResult.h @@ -0,0 +1,85 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEBACKUPSFORSECURITYRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEBACKUPSFORSECURITYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeBackupsForSecurityResult : public ServiceResult + { + public: + struct Backup + { + std::string backupMethod; + std::string backupExtractionStatus; + std::string backupIntranetDownloadURL; + std::string backupMode; + long backupSize; + std::string backupId; + std::string hostInstanceID; + std::string backupDBNames; + std::string storeStatus; + std::string dBInstanceId; + std::string backupDownloadURL; + std::string backupEndTime; + std::string backupStartTime; + std::string backupType; + std::string backupScale; + std::string backupStatus; + std::string backupLocation; + long totalBackupSize; + }; + + + DescribeBackupsForSecurityResult(); + explicit DescribeBackupsForSecurityResult(const std::string &payload); + ~DescribeBackupsForSecurityResult(); + std::string getTotalRecordCount()const; + void setTotalRecordCount(const std::string& totalRecordCount); + std::string getPageRecordCount()const; + void setPageRecordCount(const std::string& pageRecordCount); + std::string getPageNumber()const; + void setPageNumber(const std::string& pageNumber); + std::vector getItems()const; + void setItems(const std::vector& items); + long getTotalBackupSize()const; + void setTotalBackupSize(long totalBackupSize); + + protected: + void parse(const std::string &payload); + private: + std::string totalRecordCount_; + std::string pageRecordCount_; + std::string pageNumber_; + std::vector items_; + long totalBackupSize_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEBACKUPSFORSECURITYRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeBackupsRequest.h b/rds/include/alibabacloud/rds/model/DescribeBackupsRequest.h new file mode 100644 index 000000000..6a6d79c80 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeBackupsRequest.h @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEBACKUPSREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEBACKUPSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeBackupsRequest : public RdsRequest + { + + public: + DescribeBackupsRequest(); + ~DescribeBackupsRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getBackupId()const; + void setBackupId(const std::string& backupId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getBackupStatus()const; + void setBackupStatus(const std::string& backupStatus); + std::string getBackupLocation()const; + void setBackupLocation(const std::string& backupLocation); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getBackupMode()const; + void setBackupMode(const std::string& backupMode); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string backupId_; + std::string ownerAccount_; + std::string endTime_; + std::string startTime_; + long ownerId_; + int pageNumber_; + std::string accessKeyId_; + std::string backupStatus_; + std::string backupLocation_; + int pageSize_; + std::string dBInstanceId_; + std::string backupMode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEBACKUPSREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeBackupsResult.h b/rds/include/alibabacloud/rds/model/DescribeBackupsResult.h new file mode 100644 index 000000000..b5f1f49ad --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeBackupsResult.h @@ -0,0 +1,85 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEBACKUPSRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEBACKUPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeBackupsResult : public ServiceResult + { + public: + struct Backup + { + std::string backupMethod; + std::string backupExtractionStatus; + std::string backupIntranetDownloadURL; + std::string backupMode; + long backupSize; + std::string backupId; + std::string hostInstanceID; + std::string backupDBNames; + std::string storeStatus; + std::string dBInstanceId; + std::string backupDownloadURL; + std::string backupEndTime; + std::string backupStartTime; + std::string backupType; + std::string backupScale; + std::string backupStatus; + std::string backupLocation; + long totalBackupSize; + }; + + + DescribeBackupsResult(); + explicit DescribeBackupsResult(const std::string &payload); + ~DescribeBackupsResult(); + std::string getTotalRecordCount()const; + void setTotalRecordCount(const std::string& totalRecordCount); + std::string getPageRecordCount()const; + void setPageRecordCount(const std::string& pageRecordCount); + std::string getPageNumber()const; + void setPageNumber(const std::string& pageNumber); + std::vector getItems()const; + void setItems(const std::vector& items); + long getTotalBackupSize()const; + void setTotalBackupSize(long totalBackupSize); + + protected: + void parse(const std::string &payload); + private: + std::string totalRecordCount_; + std::string pageRecordCount_; + std::string pageNumber_; + std::vector items_; + long totalBackupSize_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEBACKUPSRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeBinlogFilesRequest.h b/rds/include/alibabacloud/rds/model/DescribeBinlogFilesRequest.h new file mode 100644 index 000000000..9bb3c4a0d --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeBinlogFilesRequest.h @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEBINLOGFILESREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEBINLOGFILESREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeBinlogFilesRequest : public RdsRequest + { + + public: + DescribeBinlogFilesRequest(); + ~DescribeBinlogFilesRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + int pageSize_; + std::string endTime_; + std::string dBInstanceId_; + std::string startTime_; + long ownerId_; + int pageNumber_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEBINLOGFILESREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeBinlogFilesResult.h b/rds/include/alibabacloud/rds/model/DescribeBinlogFilesResult.h new file mode 100644 index 000000000..7e8042144 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeBinlogFilesResult.h @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEBINLOGFILESRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEBINLOGFILESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeBinlogFilesResult : public ServiceResult + { + public: + struct BinLogFile + { + std::string downloadLink; + std::string logBeginTime; + std::string linkExpiredTime; + std::string checksum; + std::string logEndTime; + std::string intranetDownloadLink; + std::string hostInstanceID; + long fileSize; + }; + + + DescribeBinlogFilesResult(); + explicit DescribeBinlogFilesResult(const std::string &payload); + ~DescribeBinlogFilesResult(); + int getTotalRecordCount()const; + void setTotalRecordCount(int totalRecordCount); + int getPageRecordCount()const; + void setPageRecordCount(int pageRecordCount); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::vector getItems()const; + void setItems(const std::vector& items); + long getTotalFileSize()const; + void setTotalFileSize(long totalFileSize); + + protected: + void parse(const std::string &payload); + private: + int totalRecordCount_; + int pageRecordCount_; + int pageNumber_; + std::vector items_; + long totalFileSize_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEBINLOGFILESRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeCharacterSetNameRequest.h b/rds/include/alibabacloud/rds/model/DescribeCharacterSetNameRequest.h new file mode 100644 index 000000000..5bcedcf70 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeCharacterSetNameRequest.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBECHARACTERSETNAMEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBECHARACTERSETNAMEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeCharacterSetNameRequest : public RdsRequest + { + + public: + DescribeCharacterSetNameRequest(); + ~DescribeCharacterSetNameRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getEngine()const; + void setEngine(const std::string& engine); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string engine_; + std::string regionId_; + std::string ownerAccount_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBECHARACTERSETNAMEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeCharacterSetNameResult.h b/rds/include/alibabacloud/rds/model/DescribeCharacterSetNameResult.h new file mode 100644 index 000000000..d3cfcec69 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeCharacterSetNameResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBECHARACTERSETNAMERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBECHARACTERSETNAMERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeCharacterSetNameResult : public ServiceResult + { + public: + + + DescribeCharacterSetNameResult(); + explicit DescribeCharacterSetNameResult(const std::string &payload); + ~DescribeCharacterSetNameResult(); + std::vector getCharacterSetNameItems()const; + void setCharacterSetNameItems(const std::vector& characterSetNameItems); + std::string getEngine()const; + void setEngine(const std::string& engine); + + protected: + void parse(const std::string &payload); + private: + std::vector characterSetNameItems_; + std::string engine_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBECHARACTERSETNAMERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDBInstanceAttributeRequest.h b/rds/include/alibabacloud/rds/model/DescribeDBInstanceAttributeRequest.h new file mode 100644 index 000000000..fb7f6c4a0 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeDBInstanceAttributeRequest.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEATTRIBUTEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDBInstanceAttributeRequest : public RdsRequest + { + + public: + DescribeDBInstanceAttributeRequest(); + ~DescribeDBInstanceAttributeRequest(); + + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string resourceGroupId_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDBInstanceAttributeResult.h b/rds/include/alibabacloud/rds/model/DescribeDBInstanceAttributeResult.h new file mode 100644 index 000000000..805b2fa49 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeDBInstanceAttributeResult.h @@ -0,0 +1,114 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEATTRIBUTERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDBInstanceAttributeResult : public ServiceResult + { + public: + struct DBInstanceAttribute + { + struct ReadOnlyDBInstanceId + { + std::string dBInstanceId; + }; + long dBInstanceMemory; + std::string resourceGroupId; + std::string incrementSourceDBInstanceId; + std::string port; + std::string dBInstanceType; + std::string instanceNetworkType; + std::string dBInstanceClassType; + std::string tempUpgradeRecoveryMaxIOPS; + std::string replicateId; + std::string dBInstanceId; + int dBInstanceStorage; + std::string lockReason; + std::string availabilityValue; + std::string tempUpgradeRecoveryClass; + std::string engine; + std::string dBInstanceDescription; + std::string dBInstanceDiskUsed; + std::string engineVersion; + std::string dBInstanceStatus; + int maxConnections; + std::string dBInstanceClass; + int accountMaxQuantity; + std::string vSwitchId; + std::string payType; + std::string lockMode; + std::string guardDBInstanceId; + int insId; + std::string vpcId; + std::string masterInstanceId; + std::string tempUpgradeTimeStart; + std::string tempUpgradeTimeEnd; + std::string readDelayTime; + std::string creationTime; + std::string connectionMode; + std::string connectionString; + std::string expireTime; + int dBMaxQuantity; + std::string category; + std::string dBInstanceNetType; + int tempUpgradeRecoveryCpu; + std::string tempDBInstanceId; + std::string dBInstanceCPU; + int tempUpgradeRecoveryMemory; + std::string guardDBInstanceName; + std::string tempUpgradeRecoveryMaxConnections; + std::string securityIPList; + std::vector readOnlyDBInstanceIds; + std::string maintainTime; + std::string zoneId; + std::string tempUpgradeRecoveryTime; + std::string accountType; + int maxIOPS; + std::string supportUpgradeAccountType; + bool canTempUpgrade; + std::string regionId; + }; + + + DescribeDBInstanceAttributeResult(); + explicit DescribeDBInstanceAttributeResult(const std::string &payload); + ~DescribeDBInstanceAttributeResult(); + std::vector getItems()const; + void setItems(const std::vector& items); + + protected: + void parse(const std::string &payload); + private: + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDBInstanceByTagsRequest.h b/rds/include/alibabacloud/rds/model/DescribeDBInstanceByTagsRequest.h new file mode 100644 index 000000000..bd8c78a90 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeDBInstanceByTagsRequest.h @@ -0,0 +1,77 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEBYTAGSREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEBYTAGSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDBInstanceByTagsRequest : public RdsRequest + { + + public: + DescribeDBInstanceByTagsRequest(); + ~DescribeDBInstanceByTagsRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getProxyId()const; + void setProxyId(const std::string& proxyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string regionId_; + std::string ownerAccount_; + int pageSize_; + std::string dBInstanceId_; + long ownerId_; + int pageNumber_; + std::string accessKeyId_; + std::string proxyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEBYTAGSREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDBInstanceByTagsResult.h b/rds/include/alibabacloud/rds/model/DescribeDBInstanceByTagsResult.h new file mode 100644 index 000000000..61ee98af7 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeDBInstanceByTagsResult.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEBYTAGSRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEBYTAGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDBInstanceByTagsResult : public ServiceResult + { + public: + struct DBInstanceTag + { + struct Tag + { + std::string tagKey; + std::string tagValue; + }; + std::string dBInstanceId; + std::vector tags; + }; + + + DescribeDBInstanceByTagsResult(); + explicit DescribeDBInstanceByTagsResult(const std::string &payload); + ~DescribeDBInstanceByTagsResult(); + int getTotalRecordCount()const; + void setTotalRecordCount(int totalRecordCount); + int getPageRecordCount()const; + void setPageRecordCount(int pageRecordCount); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::vector getItems()const; + void setItems(const std::vector& items); + + protected: + void parse(const std::string &payload); + private: + int totalRecordCount_; + int pageRecordCount_; + int pageNumber_; + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEBYTAGSRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDBInstanceECSSGRelationRequest.h b/rds/include/alibabacloud/rds/model/DescribeDBInstanceECSSGRelationRequest.h new file mode 100644 index 000000000..a9421dcff --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeDBInstanceECSSGRelationRequest.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEECSSGRELATIONREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEECSSGRELATIONREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDBInstanceECSSGRelationRequest : public RdsRequest + { + + public: + DescribeDBInstanceECSSGRelationRequest(); + ~DescribeDBInstanceECSSGRelationRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEECSSGRELATIONREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDBInstanceECSSGRelationResult.h b/rds/include/alibabacloud/rds/model/DescribeDBInstanceECSSGRelationResult.h new file mode 100644 index 000000000..e014eb7b1 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeDBInstanceECSSGRelationResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEECSSGRELATIONRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEECSSGRELATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDBInstanceECSSGRelationResult : public ServiceResult + { + public: + struct RdsEcsSecurityGroupRel + { + std::string securityGroupId; + std::string regionId; + std::string netType; + }; + + + DescribeDBInstanceECSSGRelationResult(); + explicit DescribeDBInstanceECSSGRelationResult(const std::string &payload); + ~DescribeDBInstanceECSSGRelationResult(); + std::vector getItems()const; + void setItems(const std::vector& items); + std::string getDBInstanceName()const; + void setDBInstanceName(const std::string& dBInstanceName); + + protected: + void parse(const std::string &payload); + private: + std::vector items_; + std::string dBInstanceName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEECSSGRELATIONRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDBInstanceExtendAttributeRequest.h b/rds/include/alibabacloud/rds/model/DescribeDBInstanceExtendAttributeRequest.h new file mode 100644 index 000000000..6a1c9db44 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeDBInstanceExtendAttributeRequest.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEEXTENDATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEEXTENDATTRIBUTEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDBInstanceExtendAttributeRequest : public RdsRequest + { + + public: + DescribeDBInstanceExtendAttributeRequest(); + ~DescribeDBInstanceExtendAttributeRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEEXTENDATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDBInstanceExtendAttributeResult.h b/rds/include/alibabacloud/rds/model/DescribeDBInstanceExtendAttributeResult.h new file mode 100644 index 000000000..00d2d7a19 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeDBInstanceExtendAttributeResult.h @@ -0,0 +1,76 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEEXTENDATTRIBUTERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEEXTENDATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDBInstanceExtendAttributeResult : public ServiceResult + { + public: + + + DescribeDBInstanceExtendAttributeResult(); + explicit DescribeDBInstanceExtendAttributeResult(const std::string &payload); + ~DescribeDBInstanceExtendAttributeResult(); + std::string getTempUpgradeRecoveryMaxIOPS()const; + void setTempUpgradeRecoveryMaxIOPS(const std::string& tempUpgradeRecoveryMaxIOPS); + int getTempUpgradeRecoveryMemory()const; + void setTempUpgradeRecoveryMemory(int tempUpgradeRecoveryMemory); + std::string getTempUpgradeRecoveryTime()const; + void setTempUpgradeRecoveryTime(const std::string& tempUpgradeRecoveryTime); + std::string getTempUpgradeRecoveryMaxConnections()const; + void setTempUpgradeRecoveryMaxConnections(const std::string& tempUpgradeRecoveryMaxConnections); + int getTempUpgradeRecoveryCpu()const; + void setTempUpgradeRecoveryCpu(int tempUpgradeRecoveryCpu); + std::string getTempUpgradeTimeStart()const; + void setTempUpgradeTimeStart(const std::string& tempUpgradeTimeStart); + std::string getTempUpgradeTimeEnd()const; + void setTempUpgradeTimeEnd(const std::string& tempUpgradeTimeEnd); + bool getCanTempUpgrade()const; + void setCanTempUpgrade(bool canTempUpgrade); + std::string getTempUpgradeRecoveryClass()const; + void setTempUpgradeRecoveryClass(const std::string& tempUpgradeRecoveryClass); + + protected: + void parse(const std::string &payload); + private: + std::string tempUpgradeRecoveryMaxIOPS_; + int tempUpgradeRecoveryMemory_; + std::string tempUpgradeRecoveryTime_; + std::string tempUpgradeRecoveryMaxConnections_; + int tempUpgradeRecoveryCpu_; + std::string tempUpgradeTimeStart_; + std::string tempUpgradeTimeEnd_; + bool canTempUpgrade_; + std::string tempUpgradeRecoveryClass_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEEXTENDATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDBInstanceHAConfigRequest.h b/rds/include/alibabacloud/rds/model/DescribeDBInstanceHAConfigRequest.h new file mode 100644 index 000000000..2e8c28d71 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeDBInstanceHAConfigRequest.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEHACONFIGREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEHACONFIGREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDBInstanceHAConfigRequest : public RdsRequest + { + + public: + DescribeDBInstanceHAConfigRequest(); + ~DescribeDBInstanceHAConfigRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEHACONFIGREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDBInstanceHAConfigResult.h b/rds/include/alibabacloud/rds/model/DescribeDBInstanceHAConfigResult.h new file mode 100644 index 000000000..cf9f7ad17 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeDBInstanceHAConfigResult.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEHACONFIGRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEHACONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDBInstanceHAConfigResult : public ServiceResult + { + public: + struct NodeInfo + { + std::string dataSyncTime; + std::string zoneId; + std::string logSyncTime; + std::string nodeType; + std::string nodeId; + std::string syncStatus; + std::string regionId; + }; + + + DescribeDBInstanceHAConfigResult(); + explicit DescribeDBInstanceHAConfigResult(const std::string &payload); + ~DescribeDBInstanceHAConfigResult(); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getHAMode()const; + void setHAMode(const std::string& hAMode); + std::vector getHostInstanceInfos()const; + void setHostInstanceInfos(const std::vector& hostInstanceInfos); + std::string getSyncMode()const; + void setSyncMode(const std::string& syncMode); + + protected: + void parse(const std::string &payload); + private: + std::string dBInstanceId_; + std::string hAMode_; + std::vector hostInstanceInfos_; + std::string syncMode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEHACONFIGRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDBInstanceIPArrayListRequest.h b/rds/include/alibabacloud/rds/model/DescribeDBInstanceIPArrayListRequest.h new file mode 100644 index 000000000..e54a91108 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeDBInstanceIPArrayListRequest.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEIPARRAYLISTREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEIPARRAYLISTREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDBInstanceIPArrayListRequest : public RdsRequest + { + + public: + DescribeDBInstanceIPArrayListRequest(); + ~DescribeDBInstanceIPArrayListRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getWhitelistNetType()const; + void setWhitelistNetType(const std::string& whitelistNetType); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + std::string whitelistNetType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEIPARRAYLISTREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDBInstanceIPArrayListResult.h b/rds/include/alibabacloud/rds/model/DescribeDBInstanceIPArrayListResult.h new file mode 100644 index 000000000..101caf1a4 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeDBInstanceIPArrayListResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEIPARRAYLISTRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEIPARRAYLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDBInstanceIPArrayListResult : public ServiceResult + { + public: + struct DBInstanceIPArray + { + std::string dBInstanceIPArrayAttribute; + std::string securityIPList; + std::string dBInstanceIPArrayName; + std::string whitelistNetType; + }; + + + DescribeDBInstanceIPArrayListResult(); + explicit DescribeDBInstanceIPArrayListResult(const std::string &payload); + ~DescribeDBInstanceIPArrayListResult(); + std::vector getItems()const; + void setItems(const std::vector& items); + + protected: + void parse(const std::string &payload); + private: + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEIPARRAYLISTRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDBInstanceMonitorRequest.h b/rds/include/alibabacloud/rds/model/DescribeDBInstanceMonitorRequest.h new file mode 100644 index 000000000..f449ef6f7 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeDBInstanceMonitorRequest.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEMONITORREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEMONITORREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDBInstanceMonitorRequest : public RdsRequest + { + + public: + DescribeDBInstanceMonitorRequest(); + ~DescribeDBInstanceMonitorRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEMONITORREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDBInstanceMonitorResult.h b/rds/include/alibabacloud/rds/model/DescribeDBInstanceMonitorResult.h new file mode 100644 index 000000000..23892e9d1 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeDBInstanceMonitorResult.h @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEMONITORRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEMONITORRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDBInstanceMonitorResult : public ServiceResult + { + public: + + + DescribeDBInstanceMonitorResult(); + explicit DescribeDBInstanceMonitorResult(const std::string &payload); + ~DescribeDBInstanceMonitorResult(); + std::string getPeriod()const; + void setPeriod(const std::string& period); + + protected: + void parse(const std::string &payload); + private: + std::string period_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEMONITORRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDBInstanceNetInfoRequest.h b/rds/include/alibabacloud/rds/model/DescribeDBInstanceNetInfoRequest.h new file mode 100644 index 000000000..6205f371b --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeDBInstanceNetInfoRequest.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCENETINFOREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCENETINFOREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDBInstanceNetInfoRequest : public RdsRequest + { + + public: + DescribeDBInstanceNetInfoRequest(); + ~DescribeDBInstanceNetInfoRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getFlag()const; + void setFlag(const std::string& flag); + std::string getDBInstanceNetRWSplitType()const; + void setDBInstanceNetRWSplitType(const std::string& dBInstanceNetRWSplitType); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string flag_; + std::string dBInstanceNetRWSplitType_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCENETINFOREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDBInstanceNetInfoResult.h b/rds/include/alibabacloud/rds/model/DescribeDBInstanceNetInfoResult.h new file mode 100644 index 000000000..46e972078 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeDBInstanceNetInfoResult.h @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCENETINFORESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCENETINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDBInstanceNetInfoResult : public ServiceResult + { + public: + struct DBInstanceNetInfo + { + struct securityIPGroup + { + std::string securityIPs; + std::string securityIPGroupName; + }; + struct DBInstanceWeight + { + std::string availability; + std::string dBInstanceId; + std::string dBInstanceType; + std::string weight; + }; + std::string iPType; + std::string vPCId; + std::string port; + std::string vSwitchId; + std::string upgradeable; + std::vector securityIPGroups; + std::vector dBInstanceWeights; + std::string connectionStringType; + std::string maxDelayTime; + std::string expiredTime; + std::string connectionString; + std::string iPAddress; + std::string distributionType; + }; + + + DescribeDBInstanceNetInfoResult(); + explicit DescribeDBInstanceNetInfoResult(const std::string &payload); + ~DescribeDBInstanceNetInfoResult(); + std::vector getDBInstanceNetInfos()const; + void setDBInstanceNetInfos(const std::vector& dBInstanceNetInfos); + std::string getInstanceNetworkType()const; + void setInstanceNetworkType(const std::string& instanceNetworkType); + + protected: + void parse(const std::string &payload); + private: + std::vector dBInstanceNetInfos_; + std::string instanceNetworkType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCENETINFORESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDBInstanceNetworkDetailRequest.h b/rds/include/alibabacloud/rds/model/DescribeDBInstanceNetworkDetailRequest.h new file mode 100644 index 000000000..22799dbc4 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeDBInstanceNetworkDetailRequest.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCENETWORKDETAILREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCENETWORKDETAILREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDBInstanceNetworkDetailRequest : public RdsRequest + { + + public: + DescribeDBInstanceNetworkDetailRequest(); + ~DescribeDBInstanceNetworkDetailRequest(); + + std::string getEndPoint()const; + void setEndPoint(const std::string& endPoint); + std::string getStartPoint()const; + void setStartPoint(const std::string& startPoint); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string endPoint_; + std::string startPoint_; + std::string endTime_; + std::string dBInstanceId_; + std::string startTime_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCENETWORKDETAILREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDBInstanceNetworkDetailResult.h b/rds/include/alibabacloud/rds/model/DescribeDBInstanceNetworkDetailResult.h new file mode 100644 index 000000000..4f234f475 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeDBInstanceNetworkDetailResult.h @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCENETWORKDETAILRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCENETWORKDETAILRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDBInstanceNetworkDetailResult : public ServiceResult + { + public: + struct NetworkKey + { + struct NetworkValue + { + std::string value; + std::string dateTime; + }; + std::vector values; + std::string unit; + std::string key; + }; + + + DescribeDBInstanceNetworkDetailResult(); + explicit DescribeDBInstanceNetworkDetailResult(const std::string &payload); + ~DescribeDBInstanceNetworkDetailResult(); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getNetworkLatency()const; + void setNetworkLatency(const std::string& networkLatency); + std::string getNetworkTrafficOut()const; + void setNetworkTrafficOut(const std::string& networkTrafficOut); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + std::string getNetworkRequest()const; + void setNetworkRequest(const std::string& networkRequest); + std::string getAbortedConnection()const; + void setAbortedConnection(const std::string& abortedConnection); + std::string getBackendLatency()const; + void setBackendLatency(const std::string& backendLatency); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getActiveConnection()const; + void setActiveConnection(const std::string& activeConnection); + std::string getNetworkErrors()const; + void setNetworkErrors(const std::string& networkErrors); + std::string getNewConnection()const; + void setNewConnection(const std::string& newConnection); + std::string getNetworkTrafficIn()const; + void setNetworkTrafficIn(const std::string& networkTrafficIn); + std::vector getNetworkDetail()const; + void setNetworkDetail(const std::vector& networkDetail); + + protected: + void parse(const std::string &payload); + private: + std::string endTime_; + std::string networkLatency_; + std::string networkTrafficOut_; + std::string startTime_; + std::string networkRequest_; + std::string abortedConnection_; + std::string backendLatency_; + std::string dBInstanceId_; + std::string activeConnection_; + std::string networkErrors_; + std::string newConnection_; + std::string networkTrafficIn_; + std::vector networkDetail_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCENETWORKDETAILRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDBInstanceNetworkRequest.h b/rds/include/alibabacloud/rds/model/DescribeDBInstanceNetworkRequest.h new file mode 100644 index 000000000..a624f9a71 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeDBInstanceNetworkRequest.h @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCENETWORKREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCENETWORKREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDBInstanceNetworkRequest : public RdsRequest + { + + public: + DescribeDBInstanceNetworkRequest(); + ~DescribeDBInstanceNetworkRequest(); + + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string endTime_; + std::string dBInstanceId_; + std::string startTime_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCENETWORKREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDBInstanceNetworkResult.h b/rds/include/alibabacloud/rds/model/DescribeDBInstanceNetworkResult.h new file mode 100644 index 000000000..d7e41b916 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeDBInstanceNetworkResult.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCENETWORKRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCENETWORKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDBInstanceNetworkResult : public ServiceResult + { + public: + struct TopologyItem + { + std::string networkLatency; + std::string networkTrafficOut; + std::string networkErrors; + std::string startPoint; + std::string networkTrafficIn; + std::string endPoint; + std::string backendLatency; + }; + + + DescribeDBInstanceNetworkResult(); + explicit DescribeDBInstanceNetworkResult(const std::string &payload); + ~DescribeDBInstanceNetworkResult(); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + std::vector getTopology()const; + void setTopology(const std::vector& topology); + + protected: + void parse(const std::string &payload); + private: + std::string endTime_; + std::string dBInstanceId_; + std::string startTime_; + std::vector topology_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCENETWORKRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDBInstancePerformanceRequest.h b/rds/include/alibabacloud/rds/model/DescribeDBInstancePerformanceRequest.h new file mode 100644 index 000000000..6844e4d48 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeDBInstancePerformanceRequest.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEPERFORMANCEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEPERFORMANCEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDBInstancePerformanceRequest : public RdsRequest + { + + public: + DescribeDBInstancePerformanceRequest(); + ~DescribeDBInstancePerformanceRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getKey()const; + void setKey(const std::string& key); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string endTime_; + std::string dBInstanceId_; + std::string startTime_; + long ownerId_; + std::string key_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEPERFORMANCEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDBInstancePerformanceResult.h b/rds/include/alibabacloud/rds/model/DescribeDBInstancePerformanceResult.h new file mode 100644 index 000000000..9fc780739 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeDBInstancePerformanceResult.h @@ -0,0 +1,76 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEPERFORMANCERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEPERFORMANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDBInstancePerformanceResult : public ServiceResult + { + public: + struct PerformanceKey + { + struct PerformanceValue + { + std::string value; + std::string date; + }; + std::string valueFormat; + std::vector values; + std::string unit; + std::string key; + }; + + + DescribeDBInstancePerformanceResult(); + explicit DescribeDBInstancePerformanceResult(const std::string &payload); + ~DescribeDBInstancePerformanceResult(); + std::vector getPerformanceKeys()const; + void setPerformanceKeys(const std::vector& performanceKeys); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + std::string getEngine()const; + void setEngine(const std::string& engine); + + protected: + void parse(const std::string &payload); + private: + std::vector performanceKeys_; + std::string endTime_; + std::string dBInstanceId_; + std::string startTime_; + std::string engine_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEPERFORMANCERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDBInstanceSSLRequest.h b/rds/include/alibabacloud/rds/model/DescribeDBInstanceSSLRequest.h new file mode 100644 index 000000000..63bd214a6 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeDBInstanceSSLRequest.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESSLREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESSLREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDBInstanceSSLRequest : public RdsRequest + { + + public: + DescribeDBInstanceSSLRequest(); + ~DescribeDBInstanceSSLRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESSLREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDBInstanceSSLResult.h b/rds/include/alibabacloud/rds/model/DescribeDBInstanceSSLResult.h new file mode 100644 index 000000000..c4cf1b5c3 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeDBInstanceSSLResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESSLRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESSLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDBInstanceSSLResult : public ServiceResult + { + public: + + + DescribeDBInstanceSSLResult(); + explicit DescribeDBInstanceSSLResult(const std::string &payload); + ~DescribeDBInstanceSSLResult(); + std::string getSSLExpireTime()const; + void setSSLExpireTime(const std::string& sSLExpireTime); + std::string getRequireUpdateReason()const; + void setRequireUpdateReason(const std::string& requireUpdateReason); + std::string getConnectionString()const; + void setConnectionString(const std::string& connectionString); + std::string getRequireUpdate()const; + void setRequireUpdate(const std::string& requireUpdate); + + protected: + void parse(const std::string &payload); + private: + std::string sSLExpireTime_; + std::string requireUpdateReason_; + std::string connectionString_; + std::string requireUpdate_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESSLRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDBInstanceTDERequest.h b/rds/include/alibabacloud/rds/model/DescribeDBInstanceTDERequest.h new file mode 100644 index 000000000..cba64217b --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeDBInstanceTDERequest.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCETDEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCETDEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDBInstanceTDERequest : public RdsRequest + { + + public: + DescribeDBInstanceTDERequest(); + ~DescribeDBInstanceTDERequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCETDEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDBInstanceTDEResult.h b/rds/include/alibabacloud/rds/model/DescribeDBInstanceTDEResult.h new file mode 100644 index 000000000..5f31c4948 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeDBInstanceTDEResult.h @@ -0,0 +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_RDS_MODEL_DESCRIBEDBINSTANCETDERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCETDERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDBInstanceTDEResult : public ServiceResult + { + public: + struct Database + { + std::string tDEStatus; + std::string dBName; + }; + + + DescribeDBInstanceTDEResult(); + explicit DescribeDBInstanceTDEResult(const std::string &payload); + ~DescribeDBInstanceTDEResult(); + std::string getTDEStatus()const; + void setTDEStatus(const std::string& tDEStatus); + std::vector getDatabases()const; + void setDatabases(const std::vector& databases); + + protected: + void parse(const std::string &payload); + private: + std::string tDEStatus_; + std::vector databases_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCETDERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDBInstanceUserRequest.h b/rds/include/alibabacloud/rds/model/DescribeDBInstanceUserRequest.h new file mode 100644 index 000000000..2df757797 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeDBInstanceUserRequest.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEUSERREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEUSERREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDBInstanceUserRequest : public RdsRequest + { + + public: + DescribeDBInstanceUserRequest(); + ~DescribeDBInstanceUserRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getConnectionString()const; + void setConnectionString(const std::string& connectionString); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string connectionString_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEUSERREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDBInstanceUserResult.h b/rds/include/alibabacloud/rds/model/DescribeDBInstanceUserResult.h new file mode 100644 index 000000000..6278fb372 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeDBInstanceUserResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEUSERRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDBInstanceUserResult : public ServiceResult + { + public: + + + DescribeDBInstanceUserResult(); + explicit DescribeDBInstanceUserResult(const std::string &payload); + ~DescribeDBInstanceUserResult(); + std::string getInternalDBFlag()const; + void setInternalDBFlag(const std::string& internalDBFlag); + std::string getDBInstanceName()const; + void setDBInstanceName(const std::string& dBInstanceName); + + protected: + void parse(const std::string &payload); + private: + std::string internalDBFlag_; + std::string dBInstanceName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCEUSERRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDBInstancesAsCsvRequest.h b/rds/include/alibabacloud/rds/model/DescribeDBInstancesAsCsvRequest.h new file mode 100644 index 000000000..9522c0884 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeDBInstancesAsCsvRequest.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESASCSVREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESASCSVREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDBInstancesAsCsvRequest : public RdsRequest + { + + public: + DescribeDBInstancesAsCsvRequest(); + ~DescribeDBInstancesAsCsvRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESASCSVREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDBInstancesAsCsvResult.h b/rds/include/alibabacloud/rds/model/DescribeDBInstancesAsCsvResult.h new file mode 100644 index 000000000..be55b281d --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeDBInstancesAsCsvResult.h @@ -0,0 +1,98 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESASCSVRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESASCSVRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDBInstancesAsCsvResult : public ServiceResult + { + public: + struct DBInstanceAttribute + { + long dBInstanceMemory; + std::string category; + std::string dBInstanceNetType; + std::string incrementSourceDBInstanceId; + std::string port; + std::string dBInstanceType; + std::string tempDBInstanceId; + std::string dBInstanceCPU; + std::string instanceNetworkType; + std::string dBInstanceClassType; + std::string dBInstanceId; + std::string securityIPList; + int dBInstanceStorage; + std::string lockReason; + std::string maintainTime; + std::string availabilityValue; + std::string engine; + std::string dBInstanceDescription; + std::string tags; + std::string dBInstanceName; + std::string engineVersion; + std::string dBInstanceStatus; + int maxConnections; + std::string zoneId; + std::string dBInstanceClass; + int accountMaxQuantity; + std::string vSwitchId; + std::string payType; + std::string lockMode; + std::string guardDBInstanceId; + std::string accountType; + int maxIOPS; + int insId; + std::string supportUpgradeAccountType; + std::string vpcId; + std::string masterInstanceId; + std::string readDelayTime; + std::string creationTime; + std::string connectionMode; + std::string regionId; + std::string connectionString; + std::string expireTime; + int dBMaxQuantity; + }; + + + DescribeDBInstancesAsCsvResult(); + explicit DescribeDBInstancesAsCsvResult(const std::string &payload); + ~DescribeDBInstancesAsCsvResult(); + std::vector getItems()const; + void setItems(const std::vector& items); + + protected: + void parse(const std::string &payload); + private: + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESASCSVRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDBInstancesByExpireTimeRequest.h b/rds/include/alibabacloud/rds/model/DescribeDBInstancesByExpireTimeRequest.h new file mode 100644 index 000000000..f154762db --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeDBInstancesByExpireTimeRequest.h @@ -0,0 +1,80 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESBYEXPIRETIMEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESBYEXPIRETIMEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDBInstancesByExpireTimeRequest : public RdsRequest + { + + public: + DescribeDBInstancesByExpireTimeRequest(); + ~DescribeDBInstancesByExpireTimeRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getTags()const; + void setTags(const std::string& tags); + bool getExpired()const; + void setExpired(bool expired); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + int getPageSize()const; + void setPageSize(int pageSize); + int getExpirePeriod()const; + void setExpirePeriod(int expirePeriod); + std::string getProxyId()const; + void setProxyId(const std::string& proxyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + int pageNumber_; + std::string accessKeyId_; + std::string tags_; + bool expired_; + std::string regionId_; + int pageSize_; + int expirePeriod_; + std::string proxyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESBYEXPIRETIMEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDBInstancesByExpireTimeResult.h b/rds/include/alibabacloud/rds/model/DescribeDBInstancesByExpireTimeResult.h new file mode 100644 index 000000000..466f4bd6a --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeDBInstancesByExpireTimeResult.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESBYEXPIRETIMERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESBYEXPIRETIMERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDBInstancesByExpireTimeResult : public ServiceResult + { + public: + struct DBInstanceExpireTime + { + std::string dBInstanceStatus; + std::string dBInstanceId; + std::string lockMode; + std::string expireTime; + std::string dBInstanceDescription; + }; + + + DescribeDBInstancesByExpireTimeResult(); + explicit DescribeDBInstancesByExpireTimeResult(const std::string &payload); + ~DescribeDBInstancesByExpireTimeResult(); + int getTotalRecordCount()const; + void setTotalRecordCount(int totalRecordCount); + int getPageRecordCount()const; + void setPageRecordCount(int pageRecordCount); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::vector getItems()const; + void setItems(const std::vector& items); + + protected: + void parse(const std::string &payload); + private: + int totalRecordCount_; + int pageRecordCount_; + int pageNumber_; + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESBYEXPIRETIMERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDBInstancesByPerformanceRequest.h b/rds/include/alibabacloud/rds/model/DescribeDBInstancesByPerformanceRequest.h new file mode 100644 index 000000000..a722e4df2 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeDBInstancesByPerformanceRequest.h @@ -0,0 +1,113 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESBYPERFORMANCEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESBYPERFORMANCEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDBInstancesByPerformanceRequest : public RdsRequest + { + + public: + DescribeDBInstancesByPerformanceRequest(); + ~DescribeDBInstancesByPerformanceRequest(); + + std::string getTag4value()const; + void setTag4value(const std::string& tag4value); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getTag2key()const; + void setTag2key(const std::string& tag2key); + std::string getTag5key()const; + void setTag5key(const std::string& tag5key); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getTag3key()const; + void setTag3key(const std::string& tag3key); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getTag5value()const; + void setTag5value(const std::string& tag5value); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getTags()const; + void setTags(const std::string& tags); + std::string getTag1key()const; + void setTag1key(const std::string& tag1key); + std::string getTag1value()const; + void setTag1value(const std::string& tag1value); + std::string getSortKey()const; + void setSortKey(const std::string& sortKey); + std::string getSortMethod()const; + void setSortMethod(const std::string& sortMethod); + std::string getTag2value()const; + void setTag2value(const std::string& tag2value); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getTag4key()const; + void setTag4key(const std::string& tag4key); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getTag3value()const; + void setTag3value(const std::string& tag3value); + std::string getProxyId()const; + void setProxyId(const std::string& proxyId); + + private: + std::string tag4value_; + long resourceOwnerId_; + std::string tag2key_; + std::string tag5key_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string ownerAccount_; + std::string tag3key_; + long ownerId_; + std::string tag5value_; + int pageNumber_; + std::string accessKeyId_; + std::string tags_; + std::string tag1key_; + std::string tag1value_; + std::string sortKey_; + std::string sortMethod_; + std::string tag2value_; + int pageSize_; + std::string tag4key_; + std::string dBInstanceId_; + std::string tag3value_; + std::string proxyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESBYPERFORMANCEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDBInstancesByPerformanceResult.h b/rds/include/alibabacloud/rds/model/DescribeDBInstancesByPerformanceResult.h new file mode 100644 index 000000000..da5bb0be5 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeDBInstancesByPerformanceResult.h @@ -0,0 +1,70 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESBYPERFORMANCERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESBYPERFORMANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDBInstancesByPerformanceResult : public ServiceResult + { + public: + struct DBInstancePerformance + { + std::string iOPSUsage; + std::string dBInstanceId; + std::string cPUUsage; + std::string diskUsage; + std::string sessionUsage; + std::string dBInstanceDescription; + }; + + + DescribeDBInstancesByPerformanceResult(); + explicit DescribeDBInstancesByPerformanceResult(const std::string &payload); + ~DescribeDBInstancesByPerformanceResult(); + int getTotalRecordCount()const; + void setTotalRecordCount(int totalRecordCount); + int getPageRecordCount()const; + void setPageRecordCount(int pageRecordCount); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::vector getItems()const; + void setItems(const std::vector& items); + + protected: + void parse(const std::string &payload); + private: + int totalRecordCount_; + int pageRecordCount_; + int pageNumber_; + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESBYPERFORMANCERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDBInstancesRequest.h b/rds/include/alibabacloud/rds/model/DescribeDBInstancesRequest.h new file mode 100644 index 000000000..39d63016a --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeDBInstancesRequest.h @@ -0,0 +1,134 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDBInstancesRequest : public RdsRequest + { + + public: + DescribeDBInstancesRequest(); + ~DescribeDBInstancesRequest(); + + std::string getConnectionMode()const; + void setConnectionMode(const std::string& connectionMode); + std::string getTag4value()const; + void setTag4value(const std::string& tag4value); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getTag2key()const; + void setTag2key(const std::string& tag2key); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getSearchKey()const; + void setSearchKey(const std::string& searchKey); + std::string getTag3key()const; + void setTag3key(const std::string& tag3key); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getTag1value()const; + void setTag1value(const std::string& tag1value); + std::string getEngine()const; + void setEngine(const std::string& engine); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getDBInstanceStatus()const; + void setDBInstanceStatus(const std::string& dBInstanceStatus); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getTag3value()const; + void setTag3value(const std::string& tag3value); + std::string getProxyId()const; + void setProxyId(const std::string& proxyId); + std::string getTag5key()const; + void setTag5key(const std::string& tag5key); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getTag5value()const; + void setTag5value(const std::string& tag5value); + std::string getDBInstanceType()const; + void setDBInstanceType(const std::string& dBInstanceType); + std::string getTags()const; + void setTags(const std::string& tags); + std::string getVSwitchId()const; + void setVSwitchId(const std::string& vSwitchId); + std::string getTag1key()const; + void setTag1key(const std::string& tag1key); + std::string getVpcId()const; + void setVpcId(const std::string& vpcId); + std::string getTag2value()const; + void setTag2value(const std::string& tag2value); + std::string getTag4key()const; + void setTag4key(const std::string& tag4key); + std::string getInstanceNetworkType()const; + void setInstanceNetworkType(const std::string& instanceNetworkType); + + private: + std::string connectionMode_; + std::string tag4value_; + long resourceOwnerId_; + std::string tag2key_; + std::string clientToken_; + std::string searchKey_; + std::string tag3key_; + int pageNumber_; + std::string accessKeyId_; + std::string tag1value_; + std::string engine_; + std::string regionId_; + int pageSize_; + std::string dBInstanceStatus_; + std::string dBInstanceId_; + std::string tag3value_; + std::string proxyId_; + std::string tag5key_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string tag5value_; + std::string dBInstanceType_; + std::string tags_; + std::string vSwitchId_; + std::string tag1key_; + std::string vpcId_; + std::string tag2value_; + std::string tag4key_; + std::string instanceNetworkType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDBInstancesResult.h b/rds/include/alibabacloud/rds/model/DescribeDBInstancesResult.h new file mode 100644 index 000000000..b54d208cf --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeDBInstancesResult.h @@ -0,0 +1,95 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDBInstancesResult : public ServiceResult + { + public: + struct DBInstance + { + struct ReadOnlyDBInstanceId + { + std::string dBInstanceId; + }; + std::string resourceGroupId; + std::string dBInstanceNetType; + std::string dBInstanceType; + std::string tempDBInstanceId; + bool mutriORsignle; + std::string instanceNetworkType; + std::string replicateId; + std::string dBInstanceId; + std::vector readOnlyDBInstanceIds; + std::string lockReason; + std::string dBInstanceDescription; + std::string engine; + std::string engineVersion; + std::string dBInstanceStatus; + std::string zoneId; + std::string dBInstanceClass; + std::string createTime; + std::string vSwitchId; + std::string payType; + std::string lockMode; + std::string guardDBInstanceId; + int insId; + std::string vpcId; + std::string masterInstanceId; + std::string connectionMode; + std::string regionId; + std::string expireTime; + }; + + + DescribeDBInstancesResult(); + explicit DescribeDBInstancesResult(const std::string &payload); + ~DescribeDBInstancesResult(); + int getTotalRecordCount()const; + void setTotalRecordCount(int totalRecordCount); + int getPageRecordCount()const; + void setPageRecordCount(int pageRecordCount); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::vector getItems()const; + void setItems(const std::vector& items); + + protected: + void parse(const std::string &payload); + private: + int totalRecordCount_; + int pageRecordCount_; + int pageNumber_; + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDampPoliciesByCidRequest.h b/rds/include/alibabacloud/rds/model/DescribeDampPoliciesByCidRequest.h new file mode 100644 index 000000000..364a7f0f8 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeDampPoliciesByCidRequest.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDAMPPOLICIESBYCIDREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDAMPPOLICIESBYCIDREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDampPoliciesByCidRequest : public RdsRequest + { + + public: + DescribeDampPoliciesByCidRequest(); + ~DescribeDampPoliciesByCidRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string securityToken_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDAMPPOLICIESBYCIDREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDampPoliciesByCidResult.h b/rds/include/alibabacloud/rds/model/DescribeDampPoliciesByCidResult.h new file mode 100644 index 000000000..b12c1ff44 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeDampPoliciesByCidResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDAMPPOLICIESBYCIDRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDAMPPOLICIESBYCIDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDampPoliciesByCidResult : public ServiceResult + { + public: + struct Policy + { + std::string comment; + std::string policyName; + }; + + + DescribeDampPoliciesByCidResult(); + explicit DescribeDampPoliciesByCidResult(const std::string &payload); + ~DescribeDampPoliciesByCidResult(); + std::vector getPolicies()const; + void setPolicies(const std::vector& policies); + + protected: + void parse(const std::string &payload); + private: + std::vector policies_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDAMPPOLICIESBYCIDRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDampPolicyByCommentRequest.h b/rds/include/alibabacloud/rds/model/DescribeDampPolicyByCommentRequest.h new file mode 100644 index 000000000..64d638eff --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeDampPolicyByCommentRequest.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDAMPPOLICYBYCOMMENTREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDAMPPOLICYBYCOMMENTREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDampPolicyByCommentRequest : public RdsRequest + { + + public: + DescribeDampPolicyByCommentRequest(); + ~DescribeDampPolicyByCommentRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getPolicyName()const; + void setPolicyName(const std::string& policyName); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string securityToken_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string dBInstanceId_; + std::string policyName_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDAMPPOLICYBYCOMMENTREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDampPolicyByCommentResult.h b/rds/include/alibabacloud/rds/model/DescribeDampPolicyByCommentResult.h new file mode 100644 index 000000000..c477193eb --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeDampPolicyByCommentResult.h @@ -0,0 +1,64 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDAMPPOLICYBYCOMMENTRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDAMPPOLICYBYCOMMENTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDampPolicyByCommentResult : public ServiceResult + { + public: + + + DescribeDampPolicyByCommentResult(); + explicit DescribeDampPolicyByCommentResult(const std::string &payload); + ~DescribeDampPolicyByCommentResult(); + std::string getPolicy()const; + void setPolicy(const std::string& policy); + std::string getTimeRules()const; + void setTimeRules(const std::string& timeRules); + std::string getActionRules()const; + void setActionRules(const std::string& actionRules); + std::string getHandler()const; + void setHandler(const std::string& handler); + std::string getSourceRules()const; + void setSourceRules(const std::string& sourceRules); + + protected: + void parse(const std::string &payload); + private: + std::string policy_; + std::string timeRules_; + std::string actionRules_; + std::string handler_; + std::string sourceRules_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDAMPPOLICYBYCOMMENTRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDampPolicyByPolicyNameRequest.h b/rds/include/alibabacloud/rds/model/DescribeDampPolicyByPolicyNameRequest.h new file mode 100644 index 000000000..7b47d232e --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeDampPolicyByPolicyNameRequest.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDAMPPOLICYBYPOLICYNAMEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDAMPPOLICYBYPOLICYNAMEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDampPolicyByPolicyNameRequest : public RdsRequest + { + + public: + DescribeDampPolicyByPolicyNameRequest(); + ~DescribeDampPolicyByPolicyNameRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getPolicyName()const; + void setPolicyName(const std::string& policyName); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string securityToken_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string dBInstanceId_; + std::string policyName_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDAMPPOLICYBYPOLICYNAMEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDampPolicyByPolicyNameResult.h b/rds/include/alibabacloud/rds/model/DescribeDampPolicyByPolicyNameResult.h new file mode 100644 index 000000000..f1e177e7d --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeDampPolicyByPolicyNameResult.h @@ -0,0 +1,64 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDAMPPOLICYBYPOLICYNAMERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDAMPPOLICYBYPOLICYNAMERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDampPolicyByPolicyNameResult : public ServiceResult + { + public: + + + DescribeDampPolicyByPolicyNameResult(); + explicit DescribeDampPolicyByPolicyNameResult(const std::string &payload); + ~DescribeDampPolicyByPolicyNameResult(); + std::string getPolicy()const; + void setPolicy(const std::string& policy); + std::string getTimeRules()const; + void setTimeRules(const std::string& timeRules); + std::string getActionRules()const; + void setActionRules(const std::string& actionRules); + std::string getHandler()const; + void setHandler(const std::string& handler); + std::string getSourceRules()const; + void setSourceRules(const std::string& sourceRules); + + protected: + void parse(const std::string &payload); + private: + std::string policy_; + std::string timeRules_; + std::string actionRules_; + std::string handler_; + std::string sourceRules_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDAMPPOLICYBYPOLICYNAMERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDatabaseLockDiagnosisRequest.h b/rds/include/alibabacloud/rds/model/DescribeDatabaseLockDiagnosisRequest.h new file mode 100644 index 000000000..1a55f2d37 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeDatabaseLockDiagnosisRequest.h @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDATABASELOCKDIAGNOSISREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDATABASELOCKDIAGNOSISREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDatabaseLockDiagnosisRequest : public RdsRequest + { + + public: + DescribeDatabaseLockDiagnosisRequest(); + ~DescribeDatabaseLockDiagnosisRequest(); + + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string endTime_; + std::string dBInstanceId_; + std::string startTime_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDATABASELOCKDIAGNOSISREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDatabaseLockDiagnosisResult.h b/rds/include/alibabacloud/rds/model/DescribeDatabaseLockDiagnosisResult.h new file mode 100644 index 000000000..f56103b2c --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeDatabaseLockDiagnosisResult.h @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDATABASELOCKDIAGNOSISRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDATABASELOCKDIAGNOSISRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDatabaseLockDiagnosisResult : public ServiceResult + { + public: + + + DescribeDatabaseLockDiagnosisResult(); + explicit DescribeDatabaseLockDiagnosisResult(const std::string &payload); + ~DescribeDatabaseLockDiagnosisResult(); + std::vector getDeadLockList()const; + void setDeadLockList(const std::vector& deadLockList); + + protected: + void parse(const std::string &payload); + private: + std::vector deadLockList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDATABASELOCKDIAGNOSISRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDatabasesRequest.h b/rds/include/alibabacloud/rds/model/DescribeDatabasesRequest.h new file mode 100644 index 000000000..2ac027580 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeDatabasesRequest.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDATABASESREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDATABASESREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDatabasesRequest : public RdsRequest + { + + public: + DescribeDatabasesRequest(); + ~DescribeDatabasesRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDBName()const; + void setDBName(const std::string& dBName); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getDBStatus()const; + void setDBStatus(const std::string& dBStatus); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string dBName_; + std::string resourceOwnerAccount_; + std::string dBStatus_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDATABASESREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDatabasesResult.h b/rds/include/alibabacloud/rds/model/DescribeDatabasesResult.h new file mode 100644 index 000000000..59d38e3c2 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeDatabasesResult.h @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDATABASESRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDATABASESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDatabasesResult : public ServiceResult + { + public: + struct Database + { + struct AccountPrivilegeInfo + { + std::string account; + std::string accountPrivilege; + }; + std::string characterSetName; + std::string dBInstanceId; + std::string dBDescription; + std::string dBName; + std::string dBStatus; + std::vector accounts; + std::string engine; + }; + + + DescribeDatabasesResult(); + explicit DescribeDatabasesResult(const std::string &payload); + ~DescribeDatabasesResult(); + std::vector getDatabases()const; + void setDatabases(const std::vector& databases); + + protected: + void parse(const std::string &payload); + private: + std::vector databases_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDATABASESRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDiagnosticReportListRequest.h b/rds/include/alibabacloud/rds/model/DescribeDiagnosticReportListRequest.h new file mode 100644 index 000000000..20c1be7ed --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeDiagnosticReportListRequest.h @@ -0,0 +1,50 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDIAGNOSTICREPORTLISTREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDIAGNOSTICREPORTLISTREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDiagnosticReportListRequest : public RdsRequest + { + + public: + DescribeDiagnosticReportListRequest(); + ~DescribeDiagnosticReportListRequest(); + + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string dBInstanceId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDIAGNOSTICREPORTLISTREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeDiagnosticReportListResult.h b/rds/include/alibabacloud/rds/model/DescribeDiagnosticReportListResult.h new file mode 100644 index 000000000..8c7f1dcca --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeDiagnosticReportListResult.h @@ -0,0 +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_RDS_MODEL_DESCRIBEDIAGNOSTICREPORTLISTRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDIAGNOSTICREPORTLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeDiagnosticReportListResult : public ServiceResult + { + public: + struct Report + { + int score; + std::string diagnosticTime; + std::string endTime; + std::string startTime; + std::string downloadURL; + }; + + + DescribeDiagnosticReportListResult(); + explicit DescribeDiagnosticReportListResult(const std::string &payload); + ~DescribeDiagnosticReportListResult(); + std::vector getReportList()const; + void setReportList(const std::vector& reportList); + + protected: + void parse(const std::string &payload); + private: + std::vector reportList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDIAGNOSTICREPORTLISTRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeErrorLogsRequest.h b/rds/include/alibabacloud/rds/model/DescribeErrorLogsRequest.h new file mode 100644 index 000000000..ea3db5ec2 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeErrorLogsRequest.h @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEERRORLOGSREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEERRORLOGSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeErrorLogsRequest : public RdsRequest + { + + public: + DescribeErrorLogsRequest(); + ~DescribeErrorLogsRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + int pageSize_; + std::string endTime_; + std::string dBInstanceId_; + std::string startTime_; + long ownerId_; + int pageNumber_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEERRORLOGSREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeErrorLogsResult.h b/rds/include/alibabacloud/rds/model/DescribeErrorLogsResult.h new file mode 100644 index 000000000..1e24eb4af --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeErrorLogsResult.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEERRORLOGSRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEERRORLOGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeErrorLogsResult : public ServiceResult + { + public: + struct ErrorLog + { + std::string errorInfo; + std::string createTime; + }; + + + DescribeErrorLogsResult(); + explicit DescribeErrorLogsResult(const std::string &payload); + ~DescribeErrorLogsResult(); + int getTotalRecordCount()const; + void setTotalRecordCount(int totalRecordCount); + int getPageRecordCount()const; + void setPageRecordCount(int pageRecordCount); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::vector getItems()const; + void setItems(const std::vector& items); + + protected: + void parse(const std::string &payload); + private: + int totalRecordCount_; + int pageRecordCount_; + int pageNumber_; + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEERRORLOGSRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeFilesForSQLServerRequest.h b/rds/include/alibabacloud/rds/model/DescribeFilesForSQLServerRequest.h new file mode 100644 index 000000000..71cdefe94 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeFilesForSQLServerRequest.h @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEFILESFORSQLSERVERREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEFILESFORSQLSERVERREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeFilesForSQLServerRequest : public RdsRequest + { + + public: + DescribeFilesForSQLServerRequest(); + ~DescribeFilesForSQLServerRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + int pageSize_; + std::string endTime_; + std::string dBInstanceId_; + std::string startTime_; + long ownerId_; + int pageNumber_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEFILESFORSQLSERVERREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeFilesForSQLServerResult.h b/rds/include/alibabacloud/rds/model/DescribeFilesForSQLServerResult.h new file mode 100644 index 000000000..a9a022db1 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeFilesForSQLServerResult.h @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEFILESFORSQLSERVERRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEFILESFORSQLSERVERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeFilesForSQLServerResult : public ServiceResult + { + public: + struct SQLServerUploadFile + { + std::string intranetFtpserver; + std::string userName; + std::string fileStatus; + std::string description; + std::string fileName; + std::string creationTime; + std::string dBName; + int internetPort; + std::string internetFtpServer; + int intranetport; + long fileSize; + std::string password; + }; + + + DescribeFilesForSQLServerResult(); + explicit DescribeFilesForSQLServerResult(const std::string &payload); + ~DescribeFilesForSQLServerResult(); + int getTotalRecordCount()const; + void setTotalRecordCount(int totalRecordCount); + int getPageRecordCount()const; + void setPageRecordCount(int pageRecordCount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::vector getItems()const; + void setItems(const std::vector& items); + + protected: + void parse(const std::string &payload); + private: + int totalRecordCount_; + int pageRecordCount_; + std::string dBInstanceId_; + int pageNumber_; + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEFILESFORSQLSERVERRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeImportsForSQLServerRequest.h b/rds/include/alibabacloud/rds/model/DescribeImportsForSQLServerRequest.h new file mode 100644 index 000000000..0e30409fc --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeImportsForSQLServerRequest.h @@ -0,0 +1,77 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEIMPORTSFORSQLSERVERREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEIMPORTSFORSQLSERVERREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeImportsForSQLServerRequest : public RdsRequest + { + + public: + DescribeImportsForSQLServerRequest(); + ~DescribeImportsForSQLServerRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + int getImportId()const; + void setImportId(int importId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + int importId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + int pageSize_; + std::string endTime_; + std::string dBInstanceId_; + std::string startTime_; + long ownerId_; + int pageNumber_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEIMPORTSFORSQLSERVERREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeImportsForSQLServerResult.h b/rds/include/alibabacloud/rds/model/DescribeImportsForSQLServerResult.h new file mode 100644 index 000000000..7ae30e2ba --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeImportsForSQLServerResult.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEIMPORTSFORSQLSERVERRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEIMPORTSFORSQLSERVERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeImportsForSQLServerResult : public ServiceResult + { + public: + struct SQLServerImport + { + std::string importStatus; + std::string fileName; + std::string startTime; + std::string dBName; + int importId; + }; + + + DescribeImportsForSQLServerResult(); + explicit DescribeImportsForSQLServerResult(const std::string &payload); + ~DescribeImportsForSQLServerResult(); + int getTotalRecordCounts()const; + void setTotalRecordCounts(int totalRecordCounts); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::vector getItems()const; + void setItems(const std::vector& items); + int getSQLItemsCounts()const; + void setSQLItemsCounts(int sQLItemsCounts); + + protected: + void parse(const std::string &payload); + private: + int totalRecordCounts_; + int pageNumber_; + std::vector items_; + int sQLItemsCounts_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEIMPORTSFORSQLSERVERRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeInstanceAutoRenewAttributeRequest.h b/rds/include/alibabacloud/rds/model/DescribeInstanceAutoRenewAttributeRequest.h new file mode 100644 index 000000000..05fa9f0a7 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeInstanceAutoRenewAttributeRequest.h @@ -0,0 +1,77 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEINSTANCEAUTORENEWATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEINSTANCEAUTORENEWATTRIBUTEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeInstanceAutoRenewAttributeRequest : public RdsRequest + { + + public: + DescribeInstanceAutoRenewAttributeRequest(); + ~DescribeInstanceAutoRenewAttributeRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getProxyId()const; + void setProxyId(const std::string& proxyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string regionId_; + std::string ownerAccount_; + int pageSize_; + std::string dBInstanceId_; + long ownerId_; + int pageNumber_; + std::string accessKeyId_; + std::string proxyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEINSTANCEAUTORENEWATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeInstanceAutoRenewAttributeResult.h b/rds/include/alibabacloud/rds/model/DescribeInstanceAutoRenewAttributeResult.h new file mode 100644 index 000000000..dbadec2f5 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeInstanceAutoRenewAttributeResult.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEINSTANCEAUTORENEWATTRIBUTERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEINSTANCEAUTORENEWATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeInstanceAutoRenewAttributeResult : public ServiceResult + { + public: + struct Item + { + std::string status; + std::string dBInstanceId; + std::string autoRenew; + int duration; + std::string regionId; + }; + + + DescribeInstanceAutoRenewAttributeResult(); + explicit DescribeInstanceAutoRenewAttributeResult(const std::string &payload); + ~DescribeInstanceAutoRenewAttributeResult(); + int getTotalRecordCount()const; + void setTotalRecordCount(int totalRecordCount); + int getPageRecordCount()const; + void setPageRecordCount(int pageRecordCount); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::vector getItems()const; + void setItems(const std::vector& items); + + protected: + void parse(const std::string &payload); + private: + int totalRecordCount_; + int pageRecordCount_; + int pageNumber_; + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEINSTANCEAUTORENEWATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeInstanceAutoRenewalAttributeRequest.h b/rds/include/alibabacloud/rds/model/DescribeInstanceAutoRenewalAttributeRequest.h new file mode 100644 index 000000000..2b38af11c --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeInstanceAutoRenewalAttributeRequest.h @@ -0,0 +1,77 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEINSTANCEAUTORENEWALATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEINSTANCEAUTORENEWALATTRIBUTEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeInstanceAutoRenewalAttributeRequest : public RdsRequest + { + + public: + DescribeInstanceAutoRenewalAttributeRequest(); + ~DescribeInstanceAutoRenewalAttributeRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getProxyId()const; + void setProxyId(const std::string& proxyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string regionId_; + std::string ownerAccount_; + int pageSize_; + std::string dBInstanceId_; + long ownerId_; + int pageNumber_; + std::string accessKeyId_; + std::string proxyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEINSTANCEAUTORENEWALATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeInstanceAutoRenewalAttributeResult.h b/rds/include/alibabacloud/rds/model/DescribeInstanceAutoRenewalAttributeResult.h new file mode 100644 index 000000000..1830f2aaa --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeInstanceAutoRenewalAttributeResult.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEINSTANCEAUTORENEWALATTRIBUTERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEINSTANCEAUTORENEWALATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeInstanceAutoRenewalAttributeResult : public ServiceResult + { + public: + struct Item + { + std::string status; + std::string dBInstanceId; + std::string autoRenew; + int duration; + std::string regionId; + }; + + + DescribeInstanceAutoRenewalAttributeResult(); + explicit DescribeInstanceAutoRenewalAttributeResult(const std::string &payload); + ~DescribeInstanceAutoRenewalAttributeResult(); + int getTotalRecordCount()const; + void setTotalRecordCount(int totalRecordCount); + int getPageRecordCount()const; + void setPageRecordCount(int pageRecordCount); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::vector getItems()const; + void setItems(const std::vector& items); + + protected: + void parse(const std::string &payload); + private: + int totalRecordCount_; + int pageRecordCount_; + int pageNumber_; + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEINSTANCEAUTORENEWALATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeLogicDBInstanceTopologyRequest.h b/rds/include/alibabacloud/rds/model/DescribeLogicDBInstanceTopologyRequest.h new file mode 100644 index 000000000..19f1bc0c7 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeLogicDBInstanceTopologyRequest.h @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBELOGICDBINSTANCETOPOLOGYREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBELOGICDBINSTANCETOPOLOGYREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeLogicDBInstanceTopologyRequest : public RdsRequest + { + + public: + DescribeLogicDBInstanceTopologyRequest(); + ~DescribeLogicDBInstanceTopologyRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBELOGICDBINSTANCETOPOLOGYREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeLogicDBInstanceTopologyResult.h b/rds/include/alibabacloud/rds/model/DescribeLogicDBInstanceTopologyResult.h new file mode 100644 index 000000000..a451e7a3b --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeLogicDBInstanceTopologyResult.h @@ -0,0 +1,88 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBELOGICDBINSTANCETOPOLOGYRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBELOGICDBINSTANCETOPOLOGYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeLogicDBInstanceTopologyResult : public ServiceResult + { + public: + struct LogicDBInstanceParameter + { + std::string engineVersion; + int dBInstanceStatus; + int dBInstanceID; + std::string dBInstanceStatusDesc; + std::string characterType; + std::string dBInstanceConnType; + std::string dBInstanceDescription; + std::string engine; + std::string dBInstanceName; + }; + + + DescribeLogicDBInstanceTopologyResult(); + explicit DescribeLogicDBInstanceTopologyResult(const std::string &payload); + ~DescribeLogicDBInstanceTopologyResult(); + std::string getEngineVersion()const; + void setEngineVersion(const std::string& engineVersion); + int getDBInstanceStatus()const; + void setDBInstanceStatus(int dBInstanceStatus); + int getDBInstanceId()const; + void setDBInstanceId(int dBInstanceId); + std::vector getItems()const; + void setItems(const std::vector& items); + std::string getDBInstanceStatusDesc()const; + void setDBInstanceStatusDesc(const std::string& dBInstanceStatusDesc); + std::string getDBInstanceConnType()const; + void setDBInstanceConnType(const std::string& dBInstanceConnType); + std::string getDBInstanceDescription()const; + void setDBInstanceDescription(const std::string& dBInstanceDescription); + std::string getEngine()const; + void setEngine(const std::string& engine); + std::string getDBInstanceName()const; + void setDBInstanceName(const std::string& dBInstanceName); + + protected: + void parse(const std::string &payload); + private: + std::string engineVersion_; + int dBInstanceStatus_; + int dBInstanceId_; + std::vector items_; + std::string dBInstanceStatusDesc_; + std::string dBInstanceConnType_; + std::string dBInstanceDescription_; + std::string engine_; + std::string dBInstanceName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBELOGICDBINSTANCETOPOLOGYRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeMigrateTasksForSQLServerRequest.h b/rds/include/alibabacloud/rds/model/DescribeMigrateTasksForSQLServerRequest.h new file mode 100644 index 000000000..8ff17ad32 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeMigrateTasksForSQLServerRequest.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEMIGRATETASKSFORSQLSERVERREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEMIGRATETASKSFORSQLSERVERREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeMigrateTasksForSQLServerRequest : public RdsRequest + { + + public: + DescribeMigrateTasksForSQLServerRequest(); + ~DescribeMigrateTasksForSQLServerRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + int pageSize_; + std::string endTime_; + std::string dBInstanceId_; + std::string startTime_; + long ownerId_; + int pageNumber_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEMIGRATETASKSFORSQLSERVERREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeMigrateTasksForSQLServerResult.h b/rds/include/alibabacloud/rds/model/DescribeMigrateTasksForSQLServerResult.h new file mode 100644 index 000000000..3304af089 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeMigrateTasksForSQLServerResult.h @@ -0,0 +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_RDS_MODEL_DESCRIBEMIGRATETASKSFORSQLSERVERRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEMIGRATETASKSFORSQLSERVERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeMigrateTasksForSQLServerResult : public ServiceResult + { + public: + struct MigrateTask + { + std::string status; + std::string desc; + std::string endTime; + std::string createTime; + std::string taskType; + std::string isDBReplaced; + std::string dBName; + std::string migrateIaskId; + }; + + + DescribeMigrateTasksForSQLServerResult(); + explicit DescribeMigrateTasksForSQLServerResult(const std::string &payload); + ~DescribeMigrateTasksForSQLServerResult(); + int getTotalRecordCount()const; + void setTotalRecordCount(int totalRecordCount); + int getPageRecordCount()const; + void setPageRecordCount(int pageRecordCount); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getDBInstanceID()const; + void setDBInstanceID(const std::string& dBInstanceID); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + std::vector getItems()const; + void setItems(const std::vector& items); + std::string getDBInstanceName()const; + void setDBInstanceName(const std::string& dBInstanceName); + + protected: + void parse(const std::string &payload); + private: + int totalRecordCount_; + int pageRecordCount_; + std::string endTime_; + std::string dBInstanceID_; + int pageNumber_; + std::string startTime_; + std::vector items_; + std::string dBInstanceName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEMIGRATETASKSFORSQLSERVERRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeMigrateTasksRequest.h b/rds/include/alibabacloud/rds/model/DescribeMigrateTasksRequest.h new file mode 100644 index 000000000..22c76f333 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeMigrateTasksRequest.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEMIGRATETASKSREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEMIGRATETASKSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeMigrateTasksRequest : public RdsRequest + { + + public: + DescribeMigrateTasksRequest(); + ~DescribeMigrateTasksRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + int pageSize_; + std::string endTime_; + std::string dBInstanceId_; + std::string startTime_; + long ownerId_; + int pageNumber_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEMIGRATETASKSREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeMigrateTasksResult.h b/rds/include/alibabacloud/rds/model/DescribeMigrateTasksResult.h new file mode 100644 index 000000000..7bb1ea491 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeMigrateTasksResult.h @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEMIGRATETASKSRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEMIGRATETASKSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeMigrateTasksResult : public ServiceResult + { + public: + struct MigrateTask + { + std::string status; + std::string description; + std::string endTime; + std::string migrateTaskId; + std::string createTime; + std::string backupMode; + std::string isDBReplaced; + std::string dBName; + }; + + + DescribeMigrateTasksResult(); + explicit DescribeMigrateTasksResult(const std::string &payload); + ~DescribeMigrateTasksResult(); + int getTotalRecordCount()const; + void setTotalRecordCount(int totalRecordCount); + int getPageRecordCount()const; + void setPageRecordCount(int pageRecordCount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::vector getItems()const; + void setItems(const std::vector& items); + + protected: + void parse(const std::string &payload); + private: + int totalRecordCount_; + int pageRecordCount_; + std::string dBInstanceId_; + int pageNumber_; + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEMIGRATETASKSRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeModifyParameterLogRequest.h b/rds/include/alibabacloud/rds/model/DescribeModifyParameterLogRequest.h new file mode 100644 index 000000000..51d32a4f7 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeModifyParameterLogRequest.h @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEMODIFYPARAMETERLOGREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEMODIFYPARAMETERLOGREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeModifyParameterLogRequest : public RdsRequest + { + + public: + DescribeModifyParameterLogRequest(); + ~DescribeModifyParameterLogRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + int pageSize_; + std::string endTime_; + std::string dBInstanceId_; + std::string startTime_; + long ownerId_; + int pageNumber_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEMODIFYPARAMETERLOGREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeModifyParameterLogResult.h b/rds/include/alibabacloud/rds/model/DescribeModifyParameterLogResult.h new file mode 100644 index 000000000..bafd47c91 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeModifyParameterLogResult.h @@ -0,0 +1,78 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEMODIFYPARAMETERLOGRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEMODIFYPARAMETERLOGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeModifyParameterLogResult : public ServiceResult + { + public: + struct ParameterChangeLog + { + std::string status; + std::string modifyTime; + std::string newParameterValue; + std::string oldParameterValue; + std::string parameterName; + }; + + + DescribeModifyParameterLogResult(); + explicit DescribeModifyParameterLogResult(const std::string &payload); + ~DescribeModifyParameterLogResult(); + int getTotalRecordCount()const; + void setTotalRecordCount(int totalRecordCount); + std::string getEngineVersion()const; + void setEngineVersion(const std::string& engineVersion); + int getPageRecordCount()const; + void setPageRecordCount(int pageRecordCount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::vector getItems()const; + void setItems(const std::vector& items); + std::string getEngine()const; + void setEngine(const std::string& engine); + + protected: + void parse(const std::string &payload); + private: + int totalRecordCount_; + std::string engineVersion_; + int pageRecordCount_; + std::string dBInstanceId_; + int pageNumber_; + std::vector items_; + std::string engine_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEMODIFYPARAMETERLOGRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeOperatorPermissionRequest.h b/rds/include/alibabacloud/rds/model/DescribeOperatorPermissionRequest.h new file mode 100644 index 000000000..342e7cfaa --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeOperatorPermissionRequest.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEOPERATORPERMISSIONREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEOPERATORPERMISSIONREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeOperatorPermissionRequest : public RdsRequest + { + + public: + DescribeOperatorPermissionRequest(); + ~DescribeOperatorPermissionRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEOPERATORPERMISSIONREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeOperatorPermissionResult.h b/rds/include/alibabacloud/rds/model/DescribeOperatorPermissionResult.h new file mode 100644 index 000000000..23ae26354 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeOperatorPermissionResult.h @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEOPERATORPERMISSIONRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEOPERATORPERMISSIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeOperatorPermissionResult : public ServiceResult + { + public: + + + DescribeOperatorPermissionResult(); + explicit DescribeOperatorPermissionResult(const std::string &payload); + ~DescribeOperatorPermissionResult(); + std::string getCreatedTime()const; + void setCreatedTime(const std::string& createdTime); + std::string getPrivileges()const; + void setPrivileges(const std::string& privileges); + std::string getExpiredTime()const; + void setExpiredTime(const std::string& expiredTime); + + protected: + void parse(const std::string &payload); + private: + std::string createdTime_; + std::string privileges_; + std::string expiredTime_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEOPERATORPERMISSIONRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeOptimizeAdviceOnBigTableRequest.h b/rds/include/alibabacloud/rds/model/DescribeOptimizeAdviceOnBigTableRequest.h new file mode 100644 index 000000000..a267b1a47 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeOptimizeAdviceOnBigTableRequest.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEOPTIMIZEADVICEONBIGTABLEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEOPTIMIZEADVICEONBIGTABLEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeOptimizeAdviceOnBigTableRequest : public RdsRequest + { + + public: + DescribeOptimizeAdviceOnBigTableRequest(); + ~DescribeOptimizeAdviceOnBigTableRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + int pageSize_; + std::string dBInstanceId_; + long ownerId_; + int pageNumber_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEOPTIMIZEADVICEONBIGTABLEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeOptimizeAdviceOnBigTableResult.h b/rds/include/alibabacloud/rds/model/DescribeOptimizeAdviceOnBigTableResult.h new file mode 100644 index 000000000..5a5b762a5 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeOptimizeAdviceOnBigTableResult.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEOPTIMIZEADVICEONBIGTABLERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEOPTIMIZEADVICEONBIGTABLERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeOptimizeAdviceOnBigTableResult : public ServiceResult + { + public: + struct AdviceOnBigTable + { + std::string tableName; + long tableSize; + long dataSize; + std::string dBName; + long indexSize; + }; + + + DescribeOptimizeAdviceOnBigTableResult(); + explicit DescribeOptimizeAdviceOnBigTableResult(const std::string &payload); + ~DescribeOptimizeAdviceOnBigTableResult(); + int getTotalRecordsCount()const; + void setTotalRecordsCount(int totalRecordsCount); + int getPageRecordCount()const; + void setPageRecordCount(int pageRecordCount); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::vector getItems()const; + void setItems(const std::vector& items); + + protected: + void parse(const std::string &payload); + private: + int totalRecordsCount_; + int pageRecordCount_; + int pageNumber_; + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEOPTIMIZEADVICEONBIGTABLERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeOptimizeAdviceOnExcessIndexRequest.h b/rds/include/alibabacloud/rds/model/DescribeOptimizeAdviceOnExcessIndexRequest.h new file mode 100644 index 000000000..bd7a2002f --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeOptimizeAdviceOnExcessIndexRequest.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEOPTIMIZEADVICEONEXCESSINDEXREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEOPTIMIZEADVICEONEXCESSINDEXREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeOptimizeAdviceOnExcessIndexRequest : public RdsRequest + { + + public: + DescribeOptimizeAdviceOnExcessIndexRequest(); + ~DescribeOptimizeAdviceOnExcessIndexRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + int pageSize_; + std::string dBInstanceId_; + long ownerId_; + int pageNumber_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEOPTIMIZEADVICEONEXCESSINDEXREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeOptimizeAdviceOnExcessIndexResult.h b/rds/include/alibabacloud/rds/model/DescribeOptimizeAdviceOnExcessIndexResult.h new file mode 100644 index 000000000..bfbd94aed --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeOptimizeAdviceOnExcessIndexResult.h @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEOPTIMIZEADVICEONEXCESSINDEXRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEOPTIMIZEADVICEONEXCESSINDEXRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeOptimizeAdviceOnExcessIndexResult : public ServiceResult + { + public: + struct AdviceOnExcessIndex + { + long indexCount; + std::string tableName; + std::string dBName; + }; + + + DescribeOptimizeAdviceOnExcessIndexResult(); + explicit DescribeOptimizeAdviceOnExcessIndexResult(const std::string &payload); + ~DescribeOptimizeAdviceOnExcessIndexResult(); + int getTotalRecordsCount()const; + void setTotalRecordsCount(int totalRecordsCount); + int getPageRecordCount()const; + void setPageRecordCount(int pageRecordCount); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::vector getItems()const; + void setItems(const std::vector& items); + + protected: + void parse(const std::string &payload); + private: + int totalRecordsCount_; + int pageRecordCount_; + int pageNumber_; + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEOPTIMIZEADVICEONEXCESSINDEXRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeOptimizeAdviceOnMissIndexRequest.h b/rds/include/alibabacloud/rds/model/DescribeOptimizeAdviceOnMissIndexRequest.h new file mode 100644 index 000000000..d91363b9e --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeOptimizeAdviceOnMissIndexRequest.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEOPTIMIZEADVICEONMISSINDEXREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEOPTIMIZEADVICEONMISSINDEXREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeOptimizeAdviceOnMissIndexRequest : public RdsRequest + { + + public: + DescribeOptimizeAdviceOnMissIndexRequest(); + ~DescribeOptimizeAdviceOnMissIndexRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + int pageSize_; + std::string dBInstanceId_; + long ownerId_; + int pageNumber_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEOPTIMIZEADVICEONMISSINDEXREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeOptimizeAdviceOnMissIndexResult.h b/rds/include/alibabacloud/rds/model/DescribeOptimizeAdviceOnMissIndexResult.h new file mode 100644 index 000000000..b9c7a325e --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeOptimizeAdviceOnMissIndexResult.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEOPTIMIZEADVICEONMISSINDEXRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEOPTIMIZEADVICEONMISSINDEXRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeOptimizeAdviceOnMissIndexResult : public ServiceResult + { + public: + struct AdviceOnMissIndex + { + std::string tableName; + std::string queryColumn; + std::string dBName; + std::string sQLText; + }; + + + DescribeOptimizeAdviceOnMissIndexResult(); + explicit DescribeOptimizeAdviceOnMissIndexResult(const std::string &payload); + ~DescribeOptimizeAdviceOnMissIndexResult(); + int getTotalRecordsCount()const; + void setTotalRecordsCount(int totalRecordsCount); + int getPageRecordCount()const; + void setPageRecordCount(int pageRecordCount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::vector getItems()const; + void setItems(const std::vector& items); + + protected: + void parse(const std::string &payload); + private: + int totalRecordsCount_; + int pageRecordCount_; + std::string dBInstanceId_; + int pageNumber_; + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEOPTIMIZEADVICEONMISSINDEXRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeOptimizeAdviceOnMissPKRequest.h b/rds/include/alibabacloud/rds/model/DescribeOptimizeAdviceOnMissPKRequest.h new file mode 100644 index 000000000..42dada879 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeOptimizeAdviceOnMissPKRequest.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEOPTIMIZEADVICEONMISSPKREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEOPTIMIZEADVICEONMISSPKREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeOptimizeAdviceOnMissPKRequest : public RdsRequest + { + + public: + DescribeOptimizeAdviceOnMissPKRequest(); + ~DescribeOptimizeAdviceOnMissPKRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + int pageSize_; + std::string dBInstanceId_; + long ownerId_; + int pageNumber_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEOPTIMIZEADVICEONMISSPKREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeOptimizeAdviceOnMissPKResult.h b/rds/include/alibabacloud/rds/model/DescribeOptimizeAdviceOnMissPKResult.h new file mode 100644 index 000000000..9e22affbe --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeOptimizeAdviceOnMissPKResult.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEOPTIMIZEADVICEONMISSPKRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEOPTIMIZEADVICEONMISSPKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeOptimizeAdviceOnMissPKResult : public ServiceResult + { + public: + struct AdviceOnMissPK + { + std::string tableName; + std::string dBName; + }; + + + DescribeOptimizeAdviceOnMissPKResult(); + explicit DescribeOptimizeAdviceOnMissPKResult(const std::string &payload); + ~DescribeOptimizeAdviceOnMissPKResult(); + int getTotalRecordsCount()const; + void setTotalRecordsCount(int totalRecordsCount); + int getPageRecordCount()const; + void setPageRecordCount(int pageRecordCount); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::vector getItems()const; + void setItems(const std::vector& items); + + protected: + void parse(const std::string &payload); + private: + int totalRecordsCount_; + int pageRecordCount_; + int pageNumber_; + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEOPTIMIZEADVICEONMISSPKRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeOptimizeAdviceOnStorageRequest.h b/rds/include/alibabacloud/rds/model/DescribeOptimizeAdviceOnStorageRequest.h new file mode 100644 index 000000000..b95f75fa1 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeOptimizeAdviceOnStorageRequest.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEOPTIMIZEADVICEONSTORAGEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEOPTIMIZEADVICEONSTORAGEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeOptimizeAdviceOnStorageRequest : public RdsRequest + { + + public: + DescribeOptimizeAdviceOnStorageRequest(); + ~DescribeOptimizeAdviceOnStorageRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + int pageSize_; + std::string dBInstanceId_; + long ownerId_; + int pageNumber_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEOPTIMIZEADVICEONSTORAGEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeOptimizeAdviceOnStorageResult.h b/rds/include/alibabacloud/rds/model/DescribeOptimizeAdviceOnStorageResult.h new file mode 100644 index 000000000..be5201690 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeOptimizeAdviceOnStorageResult.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEOPTIMIZEADVICEONSTORAGERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEOPTIMIZEADVICEONSTORAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeOptimizeAdviceOnStorageResult : public ServiceResult + { + public: + struct AdviceOnStorage + { + std::string tableName; + std::string currentEngine; + std::string dBName; + std::string adviseEngine; + }; + + + DescribeOptimizeAdviceOnStorageResult(); + explicit DescribeOptimizeAdviceOnStorageResult(const std::string &payload); + ~DescribeOptimizeAdviceOnStorageResult(); + int getTotalRecordsCount()const; + void setTotalRecordsCount(int totalRecordsCount); + int getPageRecordCount()const; + void setPageRecordCount(int pageRecordCount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::vector getItems()const; + void setItems(const std::vector& items); + + protected: + void parse(const std::string &payload); + private: + int totalRecordsCount_; + int pageRecordCount_; + std::string dBInstanceId_; + int pageNumber_; + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEOPTIMIZEADVICEONSTORAGERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeOssDownloadsForSQLServerRequest.h b/rds/include/alibabacloud/rds/model/DescribeOssDownloadsForSQLServerRequest.h new file mode 100644 index 000000000..9d65b84ab --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeOssDownloadsForSQLServerRequest.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEOSSDOWNLOADSFORSQLSERVERREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEOSSDOWNLOADSFORSQLSERVERREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeOssDownloadsForSQLServerRequest : public RdsRequest + { + + public: + DescribeOssDownloadsForSQLServerRequest(); + ~DescribeOssDownloadsForSQLServerRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getMigrateTaskId()const; + void setMigrateTaskId(const std::string& migrateTaskId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string migrateTaskId_; + std::string resourceOwnerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEOSSDOWNLOADSFORSQLSERVERREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeOssDownloadsForSQLServerResult.h b/rds/include/alibabacloud/rds/model/DescribeOssDownloadsForSQLServerResult.h new file mode 100644 index 000000000..4bb8b52d7 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeOssDownloadsForSQLServerResult.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEOSSDOWNLOADSFORSQLSERVERRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEOSSDOWNLOADSFORSQLSERVERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeOssDownloadsForSQLServerResult : public ServiceResult + { + public: + struct OssDownload + { + std::string status; + std::string desc; + std::string createTime1; + std::string fileName; + std::string createTime; + std::string isAvail; + std::string bakType; + std::string fileSize; + }; + + + DescribeOssDownloadsForSQLServerResult(); + explicit DescribeOssDownloadsForSQLServerResult(const std::string &payload); + ~DescribeOssDownloadsForSQLServerResult(); + std::vector getItems()const; + void setItems(const std::vector& items); + std::string getMigrateIaskId()const; + void setMigrateIaskId(const std::string& migrateIaskId); + std::string getDBInstanceName()const; + void setDBInstanceName(const std::string& dBInstanceName); + + protected: + void parse(const std::string &payload); + private: + std::vector items_; + std::string migrateIaskId_; + std::string dBInstanceName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEOSSDOWNLOADSFORSQLSERVERRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeOssDownloadsRequest.h b/rds/include/alibabacloud/rds/model/DescribeOssDownloadsRequest.h new file mode 100644 index 000000000..d714cb749 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeOssDownloadsRequest.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEOSSDOWNLOADSREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEOSSDOWNLOADSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeOssDownloadsRequest : public RdsRequest + { + + public: + DescribeOssDownloadsRequest(); + ~DescribeOssDownloadsRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getMigrateTaskId()const; + void setMigrateTaskId(const std::string& migrateTaskId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string migrateTaskId_; + std::string resourceOwnerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEOSSDOWNLOADSREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeOssDownloadsResult.h b/rds/include/alibabacloud/rds/model/DescribeOssDownloadsResult.h new file mode 100644 index 000000000..f5d9035fe --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeOssDownloadsResult.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEOSSDOWNLOADSRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEOSSDOWNLOADSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeOssDownloadsResult : public ServiceResult + { + public: + struct OssDownload + { + std::string status; + std::string description; + std::string fileName; + std::string createTime; + std::string backupMode; + std::string isAvailable; + std::string fileSize; + }; + + + DescribeOssDownloadsResult(); + explicit DescribeOssDownloadsResult(const std::string &payload); + ~DescribeOssDownloadsResult(); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getMigrateTaskId()const; + void setMigrateTaskId(const std::string& migrateTaskId); + std::vector getItems()const; + void setItems(const std::vector& items); + + protected: + void parse(const std::string &payload); + private: + std::string dBInstanceId_; + std::string migrateTaskId_; + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEOSSDOWNLOADSRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeParameterTemplatesRequest.h b/rds/include/alibabacloud/rds/model/DescribeParameterTemplatesRequest.h new file mode 100644 index 000000000..7652b4b11 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeParameterTemplatesRequest.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEPARAMETERTEMPLATESREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEPARAMETERTEMPLATESREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeParameterTemplatesRequest : public RdsRequest + { + + public: + DescribeParameterTemplatesRequest(); + ~DescribeParameterTemplatesRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getEngine()const; + void setEngine(const std::string& engine); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getEngineVersion()const; + void setEngineVersion(const std::string& engineVersion); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string engine_; + std::string ownerAccount_; + std::string engineVersion_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEPARAMETERTEMPLATESREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeParameterTemplatesResult.h b/rds/include/alibabacloud/rds/model/DescribeParameterTemplatesResult.h new file mode 100644 index 000000000..cf2539d9d --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeParameterTemplatesResult.h @@ -0,0 +1,70 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEPARAMETERTEMPLATESRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEPARAMETERTEMPLATESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeParameterTemplatesResult : public ServiceResult + { + public: + struct TemplateRecord + { + std::string forceModify; + std::string checkingCode; + std::string parameterValue; + std::string forceRestart; + std::string parameterName; + std::string parameterDescription; + }; + + + DescribeParameterTemplatesResult(); + explicit DescribeParameterTemplatesResult(const std::string &payload); + ~DescribeParameterTemplatesResult(); + std::string getParameterCount()const; + void setParameterCount(const std::string& parameterCount); + std::vector getParameters()const; + void setParameters(const std::vector& parameters); + std::string getEngineVersion()const; + void setEngineVersion(const std::string& engineVersion); + std::string getEngine()const; + void setEngine(const std::string& engine); + + protected: + void parse(const std::string &payload); + private: + std::string parameterCount_; + std::vector parameters_; + std::string engineVersion_; + std::string engine_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEPARAMETERTEMPLATESRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribePreCheckResultsRequest.h b/rds/include/alibabacloud/rds/model/DescribePreCheckResultsRequest.h new file mode 100644 index 000000000..fc3e03660 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribePreCheckResultsRequest.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEPRECHECKRESULTSREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEPRECHECKRESULTSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribePreCheckResultsRequest : public RdsRequest + { + + public: + DescribePreCheckResultsRequest(); + ~DescribePreCheckResultsRequest(); + + std::string getPreCheckId()const; + void setPreCheckId(const std::string& preCheckId); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string preCheckId_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEPRECHECKRESULTSREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribePreCheckResultsResult.h b/rds/include/alibabacloud/rds/model/DescribePreCheckResultsResult.h new file mode 100644 index 000000000..744c62234 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribePreCheckResultsResult.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEPRECHECKRESULTSRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEPRECHECKRESULTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribePreCheckResultsResult : public ServiceResult + { + public: + struct PreCheckResult + { + std::string preCheckResult; + std::string repairMethod; + std::string preCheckName; + std::string failReasion; + }; + + + DescribePreCheckResultsResult(); + explicit DescribePreCheckResultsResult(const std::string &payload); + ~DescribePreCheckResultsResult(); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::vector getItems()const; + void setItems(const std::vector& items); + + protected: + void parse(const std::string &payload); + private: + std::string dBInstanceId_; + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEPRECHECKRESULTSRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribePriceRequest.h b/rds/include/alibabacloud/rds/model/DescribePriceRequest.h new file mode 100644 index 000000000..b3f9dba3c --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribePriceRequest.h @@ -0,0 +1,101 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEPRICEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEPRICEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribePriceRequest : public RdsRequest + { + + public: + DescribePriceRequest(); + ~DescribePriceRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + int getDBInstanceStorage()const; + void setDBInstanceStorage(int dBInstanceStorage); + int getQuantity()const; + void setQuantity(int quantity); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getCommodityCode()const; + void setCommodityCode(const std::string& commodityCode); + std::string getEngineVersion()const; + void setEngineVersion(const std::string& engineVersion); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getUsedTime()const; + void setUsedTime(const std::string& usedTime); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getDBInstanceClass()const; + void setDBInstanceClass(const std::string& dBInstanceClass); + int getInstanceUsedType()const; + void setInstanceUsedType(int instanceUsedType); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getEngine()const; + void setEngine(const std::string& engine); + std::string getZoneId()const; + void setZoneId(const std::string& zoneId); + std::string getTimeType()const; + void setTimeType(const std::string& timeType); + std::string getPayType()const; + void setPayType(const std::string& payType); + std::string getOrderType()const; + void setOrderType(const std::string& orderType); + + private: + long resourceOwnerId_; + int dBInstanceStorage_; + int quantity_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string ownerAccount_; + std::string commodityCode_; + std::string engineVersion_; + long ownerId_; + std::string usedTime_; + std::string accessKeyId_; + std::string dBInstanceClass_; + int instanceUsedType_; + std::string regionId_; + std::string engine_; + std::string zoneId_; + std::string timeType_; + std::string payType_; + std::string orderType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEPRICEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribePriceResult.h b/rds/include/alibabacloud/rds/model/DescribePriceResult.h new file mode 100644 index 000000000..bb603b836 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribePriceResult.h @@ -0,0 +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_RDS_MODEL_DESCRIBEPRICERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEPRICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribePriceResult : public ServiceResult + { + public: + struct PriceInfo + { + struct ActivityInfo + { + std::string errorCode; + std::string checkErrMsg; + std::string success; + }; + struct Coupon + { + std::string couponNo; + std::string description; + std::string isSelected; + std::string name; + }; + std::vector activityInfo; + float originalPrice; + std::string currency; + float discountPrice; + std::vector ruleIds; + float tradePrice; + std::vector coupons; + }; + struct Rule + { + std::string description; + long ruleId; + std::string name; + }; + + + DescribePriceResult(); + explicit DescribePriceResult(const std::string &payload); + ~DescribePriceResult(); + std::vector getRules()const; + void setRules(const std::vector& rules); + std::vector getPriceInfo()const; + void setPriceInfo(const std::vector& priceInfo); + + protected: + void parse(const std::string &payload); + private: + std::vector rules_; + std::vector priceInfo_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEPRICERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeRealtimeDiagnosesRequest.h b/rds/include/alibabacloud/rds/model/DescribeRealtimeDiagnosesRequest.h new file mode 100644 index 000000000..5a00ff554 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeRealtimeDiagnosesRequest.h @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEREALTIMEDIAGNOSESREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEREALTIMEDIAGNOSESREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeRealtimeDiagnosesRequest : public RdsRequest + { + + public: + DescribeRealtimeDiagnosesRequest(); + ~DescribeRealtimeDiagnosesRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + int pageSize_; + std::string endTime_; + std::string dBInstanceId_; + std::string startTime_; + long ownerId_; + int pageNumber_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEREALTIMEDIAGNOSESREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeRealtimeDiagnosesResult.h b/rds/include/alibabacloud/rds/model/DescribeRealtimeDiagnosesResult.h new file mode 100644 index 000000000..465fc0a47 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeRealtimeDiagnosesResult.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEREALTIMEDIAGNOSESRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEREALTIMEDIAGNOSESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeRealtimeDiagnosesResult : public ServiceResult + { + public: + struct RealtimeDiagnoseTasks + { + std::string status; + std::string healthScore; + std::string taskId; + std::string createTime; + }; + + + DescribeRealtimeDiagnosesResult(); + explicit DescribeRealtimeDiagnosesResult(const std::string &payload); + ~DescribeRealtimeDiagnosesResult(); + int getTotalRecordCount()const; + void setTotalRecordCount(int totalRecordCount); + std::vector getTasks()const; + void setTasks(const std::vector& tasks); + int getPageRecordCount()const; + void setPageRecordCount(int pageRecordCount); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getEngine()const; + void setEngine(const std::string& engine); + + protected: + void parse(const std::string &payload); + private: + int totalRecordCount_; + std::vector tasks_; + int pageRecordCount_; + int pageNumber_; + std::string engine_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEREALTIMEDIAGNOSESRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeRegionsRequest.h b/rds/include/alibabacloud/rds/model/DescribeRegionsRequest.h new file mode 100644 index 000000000..67c94fdc3 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeRegionsRequest.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEREGIONSREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEREGIONSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeRegionsRequest : public RdsRequest + { + + public: + DescribeRegionsRequest(); + ~DescribeRegionsRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string ownerAccount_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEREGIONSREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeRegionsResult.h b/rds/include/alibabacloud/rds/model/DescribeRegionsResult.h new file mode 100644 index 000000000..ba5663a70 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeRegionsResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEREGIONSRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEREGIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeRegionsResult : public ServiceResult + { + public: + struct RDSRegion + { + std::string zoneId; + std::string regionId; + }; + + + DescribeRegionsResult(); + explicit DescribeRegionsResult(const std::string &payload); + ~DescribeRegionsResult(); + std::vector getRegions()const; + void setRegions(const std::vector& regions); + + protected: + void parse(const std::string &payload); + private: + std::vector regions_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEREGIONSRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeRenewalPriceRequest.h b/rds/include/alibabacloud/rds/model/DescribeRenewalPriceRequest.h new file mode 100644 index 000000000..9cd95e56e --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeRenewalPriceRequest.h @@ -0,0 +1,95 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBERENEWALPRICEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBERENEWALPRICEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeRenewalPriceRequest : public RdsRequest + { + + public: + DescribeRenewalPriceRequest(); + ~DescribeRenewalPriceRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + int getQuantity()const; + void setQuantity(int quantity); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getCommodityCode()const; + void setCommodityCode(const std::string& commodityCode); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getUsedTime()const; + void setUsedTime(const std::string& usedTime); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getDBInstanceClass()const; + void setDBInstanceClass(const std::string& dBInstanceClass); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getPromotionCode()const; + void setPromotionCode(const std::string& promotionCode); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getTimeType()const; + void setTimeType(const std::string& timeType); + std::string getPayType()const; + void setPayType(const std::string& payType); + std::string getBusinessInfo()const; + void setBusinessInfo(const std::string& businessInfo); + std::string getOrderType()const; + void setOrderType(const std::string& orderType); + + private: + long resourceOwnerId_; + int quantity_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string ownerAccount_; + std::string commodityCode_; + long ownerId_; + std::string usedTime_; + std::string accessKeyId_; + std::string dBInstanceClass_; + std::string regionId_; + std::string promotionCode_; + std::string dBInstanceId_; + std::string timeType_; + std::string payType_; + std::string businessInfo_; + std::string orderType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBERENEWALPRICEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeRenewalPriceResult.h b/rds/include/alibabacloud/rds/model/DescribeRenewalPriceResult.h new file mode 100644 index 000000000..046df85a1 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeRenewalPriceResult.h @@ -0,0 +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_RDS_MODEL_DESCRIBERENEWALPRICERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBERENEWALPRICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeRenewalPriceResult : public ServiceResult + { + public: + struct PriceInfo + { + struct ActivityInfo + { + std::string errorCode; + std::string checkErrMsg; + std::string success; + }; + struct Coupon + { + std::string couponNo; + std::string description; + std::string isSelected; + std::string name; + }; + std::vector activityInfo; + float originalPrice; + std::string currency; + float discountPrice; + std::vector ruleIds; + float tradePrice; + std::vector coupons; + }; + struct Rule + { + std::string description; + long ruleId; + std::string name; + }; + + + DescribeRenewalPriceResult(); + explicit DescribeRenewalPriceResult(const std::string &payload); + ~DescribeRenewalPriceResult(); + std::vector getRules()const; + void setRules(const std::vector& rules); + std::vector getPriceInfo()const; + void setPriceInfo(const std::vector& priceInfo); + + protected: + void parse(const std::string &payload); + private: + std::vector rules_; + std::vector priceInfo_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBERENEWALPRICERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeReplicaInitializeProgressRequest.h b/rds/include/alibabacloud/rds/model/DescribeReplicaInitializeProgressRequest.h new file mode 100644 index 000000000..9d365255f --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeReplicaInitializeProgressRequest.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEREPLICAINITIALIZEPROGRESSREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEREPLICAINITIALIZEPROGRESSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeReplicaInitializeProgressRequest : public RdsRequest + { + + public: + DescribeReplicaInitializeProgressRequest(); + ~DescribeReplicaInitializeProgressRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getReplicaId()const; + void setReplicaId(const std::string& replicaId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string securityToken_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string replicaId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEREPLICAINITIALIZEPROGRESSREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeReplicaInitializeProgressResult.h b/rds/include/alibabacloud/rds/model/DescribeReplicaInitializeProgressResult.h new file mode 100644 index 000000000..96c1babd6 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeReplicaInitializeProgressResult.h @@ -0,0 +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_RDS_MODEL_DESCRIBEREPLICAINITIALIZEPROGRESSRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEREPLICAINITIALIZEPROGRESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeReplicaInitializeProgressResult : public ServiceResult + { + public: + struct ItemsItem + { + std::string status; + std::string progress; + std::string finishTime; + std::string currentStep; + std::string replicaId; + }; + + + DescribeReplicaInitializeProgressResult(); + explicit DescribeReplicaInitializeProgressResult(const std::string &payload); + ~DescribeReplicaInitializeProgressResult(); + std::vector getItems()const; + void setItems(const std::vector& items); + + protected: + void parse(const std::string &payload); + private: + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEREPLICAINITIALIZEPROGRESSRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeReplicaPerformanceRequest.h b/rds/include/alibabacloud/rds/model/DescribeReplicaPerformanceRequest.h new file mode 100644 index 000000000..5042db9bf --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeReplicaPerformanceRequest.h @@ -0,0 +1,80 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEREPLICAPERFORMANCEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEREPLICAPERFORMANCEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeReplicaPerformanceRequest : public RdsRequest + { + + public: + DescribeReplicaPerformanceRequest(); + ~DescribeReplicaPerformanceRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSourceDBInstanceId()const; + void setSourceDBInstanceId(const std::string& sourceDBInstanceId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getReplicaId()const; + void setReplicaId(const std::string& replicaId); + std::string getKey()const; + void setKey(const std::string& key); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string endTime_; + std::string startTime_; + long ownerId_; + std::string accessKeyId_; + std::string sourceDBInstanceId_; + std::string securityToken_; + std::string regionId_; + std::string replicaId_; + std::string key_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEREPLICAPERFORMANCEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeReplicaPerformanceResult.h b/rds/include/alibabacloud/rds/model/DescribeReplicaPerformanceResult.h new file mode 100644 index 000000000..472521599 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeReplicaPerformanceResult.h @@ -0,0 +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. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEREPLICAPERFORMANCERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEREPLICAPERFORMANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeReplicaPerformanceResult : public ServiceResult + { + public: + struct PerformanceKeys + { + struct PerformanceKeyItem + { + struct PerformanceValues + { + struct PerformanceValueItem + { + std::string value; + std::string date; + }; + std::vector performanceValue; + }; + std::vector performanceValues; + std::string valueFormat; + std::string unit; + std::string key; + }; + std::vector performanceKey; + }; + + + DescribeReplicaPerformanceResult(); + explicit DescribeReplicaPerformanceResult(const std::string &payload); + ~DescribeReplicaPerformanceResult(); + std::vector getPerformanceKeys()const; + void setPerformanceKeys(const std::vector& performanceKeys); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + std::string getReplicaId()const; + void setReplicaId(const std::string& replicaId); + + protected: + void parse(const std::string &payload); + private: + std::vector performanceKeys_; + std::string endTime_; + std::string startTime_; + std::string replicaId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEREPLICAPERFORMANCERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeReplicaUsageRequest.h b/rds/include/alibabacloud/rds/model/DescribeReplicaUsageRequest.h new file mode 100644 index 000000000..5e39eca4d --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeReplicaUsageRequest.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEREPLICAUSAGEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEREPLICAUSAGEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeReplicaUsageRequest : public RdsRequest + { + + public: + DescribeReplicaUsageRequest(); + ~DescribeReplicaUsageRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSourceDBInstanceId()const; + void setSourceDBInstanceId(const std::string& sourceDBInstanceId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getReplicaId()const; + void setReplicaId(const std::string& replicaId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string sourceDBInstanceId_; + std::string securityToken_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string replicaId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEREPLICAUSAGEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeReplicaUsageResult.h b/rds/include/alibabacloud/rds/model/DescribeReplicaUsageResult.h new file mode 100644 index 000000000..19486ee76 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeReplicaUsageResult.h @@ -0,0 +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. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEREPLICAUSAGERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEREPLICAUSAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeReplicaUsageResult : public ServiceResult + { + public: + struct PerformanceKeys + { + struct PerformanceKeyItem + { + struct PerformanceValues + { + struct PerformanceValueItem + { + std::string value; + std::string date; + }; + std::vector performanceValue; + }; + std::vector performanceValues; + std::string valueFormat; + std::string unit; + std::string key; + }; + std::vector performanceKey; + }; + + + DescribeReplicaUsageResult(); + explicit DescribeReplicaUsageResult(const std::string &payload); + ~DescribeReplicaUsageResult(); + std::vector getPerformanceKeys()const; + void setPerformanceKeys(const std::vector& performanceKeys); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + std::string getReplicaId()const; + void setReplicaId(const std::string& replicaId); + + protected: + void parse(const std::string &payload); + private: + std::vector performanceKeys_; + std::string endTime_; + std::string startTime_; + std::string replicaId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEREPLICAUSAGERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeResourceDiagnosisRequest.h b/rds/include/alibabacloud/rds/model/DescribeResourceDiagnosisRequest.h new file mode 100644 index 000000000..f04a0029e --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeResourceDiagnosisRequest.h @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBERESOURCEDIAGNOSISREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBERESOURCEDIAGNOSISREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeResourceDiagnosisRequest : public RdsRequest + { + + public: + DescribeResourceDiagnosisRequest(); + ~DescribeResourceDiagnosisRequest(); + + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string endTime_; + std::string dBInstanceId_; + std::string startTime_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBERESOURCEDIAGNOSISREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeResourceDiagnosisResult.h b/rds/include/alibabacloud/rds/model/DescribeResourceDiagnosisResult.h new file mode 100644 index 000000000..ea71a4801 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeResourceDiagnosisResult.h @@ -0,0 +1,70 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBERESOURCEDIAGNOSISRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBERESOURCEDIAGNOSISRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeResourceDiagnosisResult : public ServiceResult + { + public: + + + DescribeResourceDiagnosisResult(); + explicit DescribeResourceDiagnosisResult(const std::string &payload); + ~DescribeResourceDiagnosisResult(); + std::vector getStorage()const; + void setStorage(const std::vector& storage); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::vector getMemory()const; + void setMemory(const std::vector& memory); + std::vector getConnection()const; + void setConnection(const std::vector& connection); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + std::vector getCPU()const; + void setCPU(const std::vector& cPU); + std::vector getIOPS()const; + void setIOPS(const std::vector& iOPS); + + protected: + void parse(const std::string &payload); + private: + std::vector storage_; + std::string endTime_; + std::vector memory_; + std::vector connection_; + std::string startTime_; + std::vector cPU_; + std::vector iOPS_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBERESOURCEDIAGNOSISRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeResourceUsageRequest.h b/rds/include/alibabacloud/rds/model/DescribeResourceUsageRequest.h new file mode 100644 index 000000000..a027d9d79 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeResourceUsageRequest.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBERESOURCEUSAGEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBERESOURCEUSAGEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeResourceUsageRequest : public RdsRequest + { + + public: + DescribeResourceUsageRequest(); + ~DescribeResourceUsageRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBERESOURCEUSAGEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeResourceUsageResult.h b/rds/include/alibabacloud/rds/model/DescribeResourceUsageResult.h new file mode 100644 index 000000000..d32a6615c --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeResourceUsageResult.h @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBERESOURCEUSAGERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBERESOURCEUSAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeResourceUsageResult : public ServiceResult + { + public: + + + DescribeResourceUsageResult(); + explicit DescribeResourceUsageResult(const std::string &payload); + ~DescribeResourceUsageResult(); + long getLogSize()const; + void setLogSize(long logSize); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getDataSize()const; + void setDataSize(long dataSize); + long getBackupSize()const; + void setBackupSize(long backupSize); + long getSQLSize()const; + void setSQLSize(long sQLSize); + long getDiskUsed()const; + void setDiskUsed(long diskUsed); + std::string getEngine()const; + void setEngine(const std::string& engine); + long getColdBackupSize()const; + void setColdBackupSize(long coldBackupSize); + + protected: + void parse(const std::string &payload); + private: + long logSize_; + std::string dBInstanceId_; + long dataSize_; + long backupSize_; + long sQLSize_; + long diskUsed_; + std::string engine_; + long coldBackupSize_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBERESOURCEUSAGERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeSQLCollectorPolicyRequest.h b/rds/include/alibabacloud/rds/model/DescribeSQLCollectorPolicyRequest.h new file mode 100644 index 000000000..69bae0b86 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeSQLCollectorPolicyRequest.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBESQLCOLLECTORPOLICYREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBESQLCOLLECTORPOLICYREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeSQLCollectorPolicyRequest : public RdsRequest + { + + public: + DescribeSQLCollectorPolicyRequest(); + ~DescribeSQLCollectorPolicyRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBESQLCOLLECTORPOLICYREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeSQLCollectorPolicyResult.h b/rds/include/alibabacloud/rds/model/DescribeSQLCollectorPolicyResult.h new file mode 100644 index 000000000..35862d5c1 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeSQLCollectorPolicyResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBESQLCOLLECTORPOLICYRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBESQLCOLLECTORPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeSQLCollectorPolicyResult : public ServiceResult + { + public: + + + DescribeSQLCollectorPolicyResult(); + explicit DescribeSQLCollectorPolicyResult(const std::string &payload); + ~DescribeSQLCollectorPolicyResult(); + int getStoragePeriod()const; + void setStoragePeriod(int storagePeriod); + std::string getSQLCollectorStatus()const; + void setSQLCollectorStatus(const std::string& sQLCollectorStatus); + + protected: + void parse(const std::string &payload); + private: + int storagePeriod_; + std::string sQLCollectorStatus_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBESQLCOLLECTORPOLICYRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeSQLDiagnosisListRequest.h b/rds/include/alibabacloud/rds/model/DescribeSQLDiagnosisListRequest.h new file mode 100644 index 000000000..b636579b3 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeSQLDiagnosisListRequest.h @@ -0,0 +1,50 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBESQLDIAGNOSISLISTREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBESQLDIAGNOSISLISTREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeSQLDiagnosisListRequest : public RdsRequest + { + + public: + DescribeSQLDiagnosisListRequest(); + ~DescribeSQLDiagnosisListRequest(); + + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string dBInstanceId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBESQLDIAGNOSISLISTREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeSQLDiagnosisListResult.h b/rds/include/alibabacloud/rds/model/DescribeSQLDiagnosisListResult.h new file mode 100644 index 000000000..dcfdcd3dc --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeSQLDiagnosisListResult.h @@ -0,0 +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_RDS_MODEL_DESCRIBESQLDIAGNOSISLISTRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBESQLDIAGNOSISLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeSQLDiagnosisListResult : public ServiceResult + { + public: + struct SQLDiag + { + int status; + int progress; + std::string sQLDiagId; + std::string endTime; + std::string startTime; + }; + + + DescribeSQLDiagnosisListResult(); + explicit DescribeSQLDiagnosisListResult(const std::string &payload); + ~DescribeSQLDiagnosisListResult(); + std::vector getSQLDiagList()const; + void setSQLDiagList(const std::vector& sQLDiagList); + + protected: + void parse(const std::string &payload); + private: + std::vector sQLDiagList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBESQLDIAGNOSISLISTRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeSQLDiagnosisRequest.h b/rds/include/alibabacloud/rds/model/DescribeSQLDiagnosisRequest.h new file mode 100644 index 000000000..ff6ccbe09 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeSQLDiagnosisRequest.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBESQLDIAGNOSISREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBESQLDIAGNOSISREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeSQLDiagnosisRequest : public RdsRequest + { + + public: + DescribeSQLDiagnosisRequest(); + ~DescribeSQLDiagnosisRequest(); + + std::string getSQLDiagId()const; + void setSQLDiagId(const std::string& sQLDiagId); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string sQLDiagId_; + std::string dBInstanceId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBESQLDIAGNOSISREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeSQLDiagnosisResult.h b/rds/include/alibabacloud/rds/model/DescribeSQLDiagnosisResult.h new file mode 100644 index 000000000..9d8a8a2a0 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeSQLDiagnosisResult.h @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBESQLDIAGNOSISRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBESQLDIAGNOSISRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeSQLDiagnosisResult : public ServiceResult + { + public: + + + DescribeSQLDiagnosisResult(); + explicit DescribeSQLDiagnosisResult(const std::string &payload); + ~DescribeSQLDiagnosisResult(); + std::vector getSQLList()const; + void setSQLList(const std::vector& sQLList); + + protected: + void parse(const std::string &payload); + private: + std::vector sQLList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBESQLDIAGNOSISRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeSQLInjectionInfosRequest.h b/rds/include/alibabacloud/rds/model/DescribeSQLInjectionInfosRequest.h new file mode 100644 index 000000000..933dbf1de --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeSQLInjectionInfosRequest.h @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBESQLINJECTIONINFOSREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBESQLINJECTIONINFOSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeSQLInjectionInfosRequest : public RdsRequest + { + + public: + DescribeSQLInjectionInfosRequest(); + ~DescribeSQLInjectionInfosRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + int pageSize_; + std::string endTime_; + std::string dBInstanceId_; + std::string startTime_; + long ownerId_; + int pageNumber_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBESQLINJECTIONINFOSREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeSQLInjectionInfosResult.h b/rds/include/alibabacloud/rds/model/DescribeSQLInjectionInfosResult.h new file mode 100644 index 000000000..e351995da --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeSQLInjectionInfosResult.h @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBESQLINJECTIONINFOSRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBESQLINJECTIONINFOSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeSQLInjectionInfosResult : public ServiceResult + { + public: + struct SQLInjectionInfo + { + std::string executeTime; + std::string effectRowCount; + std::string dBName; + std::string latencyTime; + std::string hostAddress; + std::string sQLText; + std::string accountName; + }; + + + DescribeSQLInjectionInfosResult(); + explicit DescribeSQLInjectionInfosResult(const std::string &payload); + ~DescribeSQLInjectionInfosResult(); + int getTotalRecordCount()const; + void setTotalRecordCount(int totalRecordCount); + int getPageRecordCount()const; + void setPageRecordCount(int pageRecordCount); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::vector getItems()const; + void setItems(const std::vector& items); + std::string getEngine()const; + void setEngine(const std::string& engine); + + protected: + void parse(const std::string &payload); + private: + int totalRecordCount_; + int pageRecordCount_; + int pageNumber_; + std::vector items_; + std::string engine_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBESQLINJECTIONINFOSRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeSQLLogFilesRequest.h b/rds/include/alibabacloud/rds/model/DescribeSQLLogFilesRequest.h new file mode 100644 index 000000000..654a2092e --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeSQLLogFilesRequest.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBESQLLOGFILESREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBESQLLOGFILESREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeSQLLogFilesRequest : public RdsRequest + { + + public: + DescribeSQLLogFilesRequest(); + ~DescribeSQLLogFilesRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getFileName()const; + void setFileName(const std::string& fileName); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string fileName_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + int pageSize_; + std::string dBInstanceId_; + long ownerId_; + int pageNumber_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBESQLLOGFILESREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeSQLLogFilesResult.h b/rds/include/alibabacloud/rds/model/DescribeSQLLogFilesResult.h new file mode 100644 index 000000000..9900b6595 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeSQLLogFilesResult.h @@ -0,0 +1,70 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBESQLLOGFILESRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBESQLLOGFILESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeSQLLogFilesResult : public ServiceResult + { + public: + struct LogFile + { + std::string logStatus; + std::string logStartTime; + std::string logSize; + std::string logDownloadURL; + std::string fileID; + std::string logEndTime; + }; + + + DescribeSQLLogFilesResult(); + explicit DescribeSQLLogFilesResult(const std::string &payload); + ~DescribeSQLLogFilesResult(); + int getTotalRecordCount()const; + void setTotalRecordCount(int totalRecordCount); + int getPageRecordCount()const; + void setPageRecordCount(int pageRecordCount); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::vector getItems()const; + void setItems(const std::vector& items); + + protected: + void parse(const std::string &payload); + private: + int totalRecordCount_; + int pageRecordCount_; + int pageNumber_; + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBESQLLOGFILESRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeSQLLogRecordsRequest.h b/rds/include/alibabacloud/rds/model/DescribeSQLLogRecordsRequest.h new file mode 100644 index 000000000..7d9c58e1f --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeSQLLogRecordsRequest.h @@ -0,0 +1,92 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBESQLLOGRECORDSREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBESQLLOGRECORDSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeSQLLogRecordsRequest : public RdsRequest + { + + public: + DescribeSQLLogRecordsRequest(); + ~DescribeSQLLogRecordsRequest(); + + long getSQLId()const; + void setSQLId(long sQLId); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getQueryKeywords()const; + void setQueryKeywords(const std::string& queryKeywords); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getDatabase()const; + void setDatabase(const std::string& database); + std::string getForm()const; + void setForm(const std::string& form); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getUser()const; + void setUser(const std::string& user); + + private: + long sQLId_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string ownerAccount_; + std::string endTime_; + std::string startTime_; + long ownerId_; + std::string queryKeywords_; + int pageNumber_; + std::string accessKeyId_; + std::string database_; + std::string form_; + int pageSize_; + std::string dBInstanceId_; + std::string user_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBESQLLOGRECORDSREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeSQLLogRecordsResult.h b/rds/include/alibabacloud/rds/model/DescribeSQLLogRecordsResult.h new file mode 100644 index 000000000..60983da16 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeSQLLogRecordsResult.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBESQLLOGRECORDSRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBESQLLOGRECORDSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeSQLLogRecordsResult : public ServiceResult + { + public: + struct SQLRecord + { + std::string executeTime; + std::string threadID; + long returnRowCounts; + std::string dBName; + long totalExecutionTimes; + std::string hostAddress; + std::string accountName; + std::string sQLText; + }; + + + DescribeSQLLogRecordsResult(); + explicit DescribeSQLLogRecordsResult(const std::string &payload); + ~DescribeSQLLogRecordsResult(); + long getTotalRecordCount()const; + void setTotalRecordCount(long totalRecordCount); + int getPageRecordCount()const; + void setPageRecordCount(int pageRecordCount); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::vector getItems()const; + void setItems(const std::vector& items); + + protected: + void parse(const std::string &payload); + private: + long totalRecordCount_; + int pageRecordCount_; + int pageNumber_; + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBESQLLOGRECORDSRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeSQLLogReportListRequest.h b/rds/include/alibabacloud/rds/model/DescribeSQLLogReportListRequest.h new file mode 100644 index 000000000..4885a239d --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeSQLLogReportListRequest.h @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBESQLLOGREPORTLISTREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBESQLLOGREPORTLISTREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeSQLLogReportListRequest : public RdsRequest + { + + public: + DescribeSQLLogReportListRequest(); + ~DescribeSQLLogReportListRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + int pageSize_; + std::string endTime_; + std::string dBInstanceId_; + std::string startTime_; + long ownerId_; + int pageNumber_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBESQLLOGREPORTLISTREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeSQLLogReportListResult.h b/rds/include/alibabacloud/rds/model/DescribeSQLLogReportListResult.h new file mode 100644 index 000000000..cf1e8527b --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeSQLLogReportListResult.h @@ -0,0 +1,78 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBESQLLOGREPORTLISTRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBESQLLOGREPORTLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeSQLLogReportListResult : public ServiceResult + { + public: + struct Item + { + struct LatencyTopNItem + { + long avgLatency; + long sQLExecuteTimes; + std::string sQLText; + }; + struct QPSTopNItem + { + long sQLExecuteTimes; + std::string sQLText; + }; + std::vector qPSTopNItems; + std::string reportTime; + std::vector latencyTopNItems; + }; + + + DescribeSQLLogReportListResult(); + explicit DescribeSQLLogReportListResult(const std::string &payload); + ~DescribeSQLLogReportListResult(); + int getTotalRecordCount()const; + void setTotalRecordCount(int totalRecordCount); + int getPageRecordCount()const; + void setPageRecordCount(int pageRecordCount); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::vector getItems()const; + void setItems(const std::vector& items); + + protected: + void parse(const std::string &payload); + private: + int totalRecordCount_; + int pageRecordCount_; + int pageNumber_; + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBESQLLOGREPORTLISTRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeSQLLogReportsRequest.h b/rds/include/alibabacloud/rds/model/DescribeSQLLogReportsRequest.h new file mode 100644 index 000000000..8c4ff17c4 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeSQLLogReportsRequest.h @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBESQLLOGREPORTSREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBESQLLOGREPORTSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeSQLLogReportsRequest : public RdsRequest + { + + public: + DescribeSQLLogReportsRequest(); + ~DescribeSQLLogReportsRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + int pageSize_; + std::string endTime_; + std::string dBInstanceId_; + std::string startTime_; + long ownerId_; + int pageNumber_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBESQLLOGREPORTSREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeSQLLogReportsResult.h b/rds/include/alibabacloud/rds/model/DescribeSQLLogReportsResult.h new file mode 100644 index 000000000..a4d00761d --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeSQLLogReportsResult.h @@ -0,0 +1,78 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBESQLLOGREPORTSRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBESQLLOGREPORTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeSQLLogReportsResult : public ServiceResult + { + public: + struct Item + { + struct LatencyTopNItem + { + long avgLatency; + long sQLExecuteTimes; + std::string sQLText; + }; + struct QPSTopNItem + { + long sQLExecuteTimes; + std::string sQLText; + }; + std::vector qPSTopNItems; + std::string reportTime; + std::vector latencyTopNItems; + }; + + + DescribeSQLLogReportsResult(); + explicit DescribeSQLLogReportsResult(const std::string &payload); + ~DescribeSQLLogReportsResult(); + int getTotalRecordCount()const; + void setTotalRecordCount(int totalRecordCount); + int getPageRecordCount()const; + void setPageRecordCount(int pageRecordCount); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::vector getItems()const; + void setItems(const std::vector& items); + + protected: + void parse(const std::string &payload); + private: + int totalRecordCount_; + int pageRecordCount_; + int pageNumber_; + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBESQLLOGREPORTSRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeSQLReportsRequest.h b/rds/include/alibabacloud/rds/model/DescribeSQLReportsRequest.h new file mode 100644 index 000000000..f8be2d118 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeSQLReportsRequest.h @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBESQLREPORTSREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBESQLREPORTSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeSQLReportsRequest : public RdsRequest + { + + public: + DescribeSQLReportsRequest(); + ~DescribeSQLReportsRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + int pageSize_; + std::string endTime_; + std::string dBInstanceId_; + std::string startTime_; + long ownerId_; + int pageNumber_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBESQLREPORTSREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeSQLReportsResult.h b/rds/include/alibabacloud/rds/model/DescribeSQLReportsResult.h new file mode 100644 index 000000000..891c23924 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeSQLReportsResult.h @@ -0,0 +1,78 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBESQLREPORTSRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBESQLREPORTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeSQLReportsResult : public ServiceResult + { + public: + struct Item + { + struct LatencyTopNItem + { + long avgLatency; + long sQLExecuteTimes; + std::string sQLText; + }; + struct QPSTopNItem + { + long sQLExecuteTimes; + std::string sQLText; + }; + std::vector qPSTopNItems; + std::string reportTime; + std::vector latencyTopNItems; + }; + + + DescribeSQLReportsResult(); + explicit DescribeSQLReportsResult(const std::string &payload); + ~DescribeSQLReportsResult(); + int getTotalRecordCount()const; + void setTotalRecordCount(int totalRecordCount); + int getPageRecordCount()const; + void setPageRecordCount(int pageRecordCount); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::vector getItems()const; + void setItems(const std::vector& items); + + protected: + void parse(const std::string &payload); + private: + int totalRecordCount_; + int pageRecordCount_; + int pageNumber_; + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBESQLREPORTSRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeSlowLogRecordsRequest.h b/rds/include/alibabacloud/rds/model/DescribeSlowLogRecordsRequest.h new file mode 100644 index 000000000..2194b0414 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeSlowLogRecordsRequest.h @@ -0,0 +1,80 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBESLOWLOGRECORDSREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBESLOWLOGRECORDSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeSlowLogRecordsRequest : public RdsRequest + { + + public: + DescribeSlowLogRecordsRequest(); + ~DescribeSlowLogRecordsRequest(); + + long getSQLId()const; + void setSQLId(long sQLId); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getDBName()const; + void setDBName(const std::string& dBName); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + + private: + long sQLId_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string endTime_; + std::string startTime_; + long ownerId_; + int pageNumber_; + std::string accessKeyId_; + std::string dBName_; + int pageSize_; + std::string dBInstanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBESLOWLOGRECORDSREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeSlowLogRecordsResult.h b/rds/include/alibabacloud/rds/model/DescribeSlowLogRecordsResult.h new file mode 100644 index 000000000..860ad05c4 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeSlowLogRecordsResult.h @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBESLOWLOGRECORDSRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBESLOWLOGRECORDSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeSlowLogRecordsResult : public ServiceResult + { + public: + struct SQLSlowRecord + { + long queryTimes; + std::string executionStartTime; + long returnRowCounts; + long lockTimes; + std::string dBName; + long parseRowCounts; + std::string hostAddress; + std::string sQLText; + }; + + + DescribeSlowLogRecordsResult(); + explicit DescribeSlowLogRecordsResult(const std::string &payload); + ~DescribeSlowLogRecordsResult(); + int getTotalRecordCount()const; + void setTotalRecordCount(int totalRecordCount); + int getPageRecordCount()const; + void setPageRecordCount(int pageRecordCount); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::vector getItems()const; + void setItems(const std::vector& items); + std::string getEngine()const; + void setEngine(const std::string& engine); + + protected: + void parse(const std::string &payload); + private: + int totalRecordCount_; + int pageRecordCount_; + int pageNumber_; + std::vector items_; + std::string engine_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBESLOWLOGRECORDSRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeSlowLogsRequest.h b/rds/include/alibabacloud/rds/model/DescribeSlowLogsRequest.h new file mode 100644 index 000000000..87cac1d28 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeSlowLogsRequest.h @@ -0,0 +1,80 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBESLOWLOGSREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBESLOWLOGSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeSlowLogsRequest : public RdsRequest + { + + public: + DescribeSlowLogsRequest(); + ~DescribeSlowLogsRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSortKey()const; + void setSortKey(const std::string& sortKey); + std::string getDBName()const; + void setDBName(const std::string& dBName); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string endTime_; + std::string startTime_; + long ownerId_; + int pageNumber_; + std::string accessKeyId_; + std::string sortKey_; + std::string dBName_; + int pageSize_; + std::string dBInstanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBESLOWLOGSREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeSlowLogsResult.h b/rds/include/alibabacloud/rds/model/DescribeSlowLogsResult.h new file mode 100644 index 000000000..dad616af1 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeSlowLogsResult.h @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBESLOWLOGSRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBESLOWLOGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeSlowLogsResult : public ServiceResult + { + public: + struct SQLSlowLog + { + long maxLockTime; + std::string createTime; + long slowLogId; + long totalPhysicalReadCounts; + long totalLogicalReadCounts; + long totalLockTimes; + long returnMaxRowCount; + long avgExecutionTime; + std::string sQLText; + long parseMaxRowCount; + long maxExecutionTime; + std::string reportTime; + long sQLServerTotalExecutionTimes; + long returnTotalRowCounts; + long sQLServerTotalExecutionCounts; + long mySQLTotalExecutionCounts; + long parseTotalRowCounts; + std::string dBName; + long sQLId; + long mySQLTotalExecutionTimes; + }; + + + DescribeSlowLogsResult(); + explicit DescribeSlowLogsResult(const std::string &payload); + ~DescribeSlowLogsResult(); + int getTotalRecordCount()const; + void setTotalRecordCount(int totalRecordCount); + int getPageRecordCount()const; + void setPageRecordCount(int pageRecordCount); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + std::vector getItems()const; + void setItems(const std::vector& items); + std::string getEngine()const; + void setEngine(const std::string& engine); + + protected: + void parse(const std::string &payload); + private: + int totalRecordCount_; + int pageRecordCount_; + std::string endTime_; + int pageNumber_; + std::string startTime_; + std::vector items_; + std::string engine_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBESLOWLOGSRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeTagsRequest.h b/rds/include/alibabacloud/rds/model/DescribeTagsRequest.h new file mode 100644 index 000000000..01e5887f8 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeTagsRequest.h @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBETAGSREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBETAGSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeTagsRequest : public RdsRequest + { + + public: + DescribeTagsRequest(); + ~DescribeTagsRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getProxyId()const; + void setProxyId(const std::string& proxyId); + std::string getTags()const; + void setTags(const std::string& tags); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string regionId_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + std::string proxyId_; + std::string tags_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBETAGSREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeTagsResult.h b/rds/include/alibabacloud/rds/model/DescribeTagsResult.h new file mode 100644 index 000000000..88fee2a87 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeTagsResult.h @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBETAGSRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBETAGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeTagsResult : public ServiceResult + { + public: + struct TagInfos + { + std::string tagKey; + std::string tagValue; + std::vector dBInstanceIds; + }; + + + DescribeTagsResult(); + explicit DescribeTagsResult(const std::string &payload); + ~DescribeTagsResult(); + std::vector getItems()const; + void setItems(const std::vector& items); + + protected: + void parse(const std::string &payload); + private: + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBETAGSRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeTaskInfoRequest.h b/rds/include/alibabacloud/rds/model/DescribeTaskInfoRequest.h new file mode 100644 index 000000000..a0992efa7 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeTaskInfoRequest.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBETASKINFOREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBETASKINFOREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeTaskInfoRequest : public RdsRequest + { + + public: + DescribeTaskInfoRequest(); + ~DescribeTaskInfoRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + long getTaskId()const; + void setTaskId(long taskId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + long taskId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBETASKINFOREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeTaskInfoResult.h b/rds/include/alibabacloud/rds/model/DescribeTaskInfoResult.h new file mode 100644 index 000000000..b46edb209 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeTaskInfoResult.h @@ -0,0 +1,85 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBETASKINFORESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBETASKINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeTaskInfoResult : public ServiceResult + { + public: + + + DescribeTaskInfoResult(); + explicit DescribeTaskInfoResult(const std::string &payload); + ~DescribeTaskInfoResult(); + std::string getExpectedFinishTime()const; + void setExpectedFinishTime(const std::string& expectedFinishTime); + std::string getStatus()const; + void setStatus(const std::string& status); + std::string getProgress()const; + void setProgress(const std::string& progress); + std::string getTaskId()const; + void setTaskId(const std::string& taskId); + std::string getFinishTime()const; + void setFinishTime(const std::string& finishTime); + std::string getTaskAction()const; + void setTaskAction(const std::string& taskAction); + std::string getCreateTime()const; + void setCreateTime(const std::string& createTime); + std::string getProgressInfo()const; + void setProgressInfo(const std::string& progressInfo); + std::string getBeginTime()const; + void setBeginTime(const std::string& beginTime); + std::string getDBName()const; + void setDBName(const std::string& dBName); + std::string getTaskErrorCode()const; + void setTaskErrorCode(const std::string& taskErrorCode); + std::string getTaskErrorMessage()const; + void setTaskErrorMessage(const std::string& taskErrorMessage); + + protected: + void parse(const std::string &payload); + private: + std::string expectedFinishTime_; + std::string status_; + std::string progress_; + std::string taskId_; + std::string finishTime_; + std::string taskAction_; + std::string createTime_; + std::string progressInfo_; + std::string beginTime_; + std::string dBName_; + std::string taskErrorCode_; + std::string taskErrorMessage_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBETASKINFORESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeTasksRequest.h b/rds/include/alibabacloud/rds/model/DescribeTasksRequest.h new file mode 100644 index 000000000..3a0faffca --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeTasksRequest.h @@ -0,0 +1,80 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBETASKSREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBETASKSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeTasksRequest : public RdsRequest + { + + public: + DescribeTasksRequest(); + ~DescribeTasksRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getTaskAction()const; + void setTaskAction(const std::string& taskAction); + std::string getStatus()const; + void setStatus(const std::string& status); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string endTime_; + std::string startTime_; + long ownerId_; + int pageNumber_; + std::string accessKeyId_; + int pageSize_; + std::string dBInstanceId_; + std::string taskAction_; + std::string status_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBETASKSREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeTasksResult.h b/rds/include/alibabacloud/rds/model/DescribeTasksResult.h new file mode 100644 index 000000000..016d5de1e --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeTasksResult.h @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBETASKSRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBETASKSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeTasksResult : public ServiceResult + { + public: + struct TaskProgressInfo + { + std::string expectedFinishTime; + std::string status; + std::string progress; + std::string taskId; + std::string finishTime; + std::string taskAction; + std::string progressInfo; + std::string dBName; + std::string beginTime; + std::string taskErrorCode; + std::string taskErrorMessage; + }; + + + DescribeTasksResult(); + explicit DescribeTasksResult(const std::string &payload); + ~DescribeTasksResult(); + int getTotalRecordCount()const; + void setTotalRecordCount(int totalRecordCount); + int getPageRecordCount()const; + void setPageRecordCount(int pageRecordCount); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::vector getItems()const; + void setItems(const std::vector& items); + + protected: + void parse(const std::string &payload); + private: + int totalRecordCount_; + int pageRecordCount_; + int pageNumber_; + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBETASKSRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeVpcZoneNosRequest.h b/rds/include/alibabacloud/rds/model/DescribeVpcZoneNosRequest.h new file mode 100644 index 000000000..24a953c17 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeVpcZoneNosRequest.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEVPCZONENOSREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEVPCZONENOSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeVpcZoneNosRequest : public RdsRequest + { + + public: + DescribeVpcZoneNosRequest(); + ~DescribeVpcZoneNosRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getZoneId()const; + void setZoneId(const std::string& zoneId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getRegion()const; + void setRegion(const std::string& region); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string ownerAccount_; + std::string zoneId_; + long ownerId_; + std::string region_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEVPCZONENOSREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeVpcZoneNosResult.h b/rds/include/alibabacloud/rds/model/DescribeVpcZoneNosResult.h new file mode 100644 index 000000000..1522f0f6b --- /dev/null +++ b/rds/include/alibabacloud/rds/model/DescribeVpcZoneNosResult.h @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEVPCZONENOSRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_DESCRIBEVPCZONENOSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT DescribeVpcZoneNosResult : public ServiceResult + { + public: + struct VpcZoneId + { + std::string subDomain; + std::string zoneId; + std::string region; + }; + + + DescribeVpcZoneNosResult(); + explicit DescribeVpcZoneNosResult(const std::string &payload); + ~DescribeVpcZoneNosResult(); + std::vector getItems()const; + void setItems(const std::vector& items); + + protected: + void parse(const std::string &payload); + private: + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEVPCZONENOSRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/GrantAccountPrivilegeRequest.h b/rds/include/alibabacloud/rds/model/GrantAccountPrivilegeRequest.h new file mode 100644 index 000000000..91dc1f277 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/GrantAccountPrivilegeRequest.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_GRANTACCOUNTPRIVILEGEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_GRANTACCOUNTPRIVILEGEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT GrantAccountPrivilegeRequest : public RdsRequest + { + + public: + GrantAccountPrivilegeRequest(); + ~GrantAccountPrivilegeRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccountName()const; + void setAccountName(const std::string& accountName); + std::string getDBName()const; + void setDBName(const std::string& dBName); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getAccountPrivilege()const; + void setAccountPrivilege(const std::string& accountPrivilege); + + private: + long resourceOwnerId_; + std::string accountName_; + std::string dBName_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + std::string accountPrivilege_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_GRANTACCOUNTPRIVILEGEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/GrantAccountPrivilegeResult.h b/rds/include/alibabacloud/rds/model/GrantAccountPrivilegeResult.h new file mode 100644 index 000000000..1afecdc46 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/GrantAccountPrivilegeResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_GRANTACCOUNTPRIVILEGERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_GRANTACCOUNTPRIVILEGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT GrantAccountPrivilegeResult : public ServiceResult + { + public: + + + GrantAccountPrivilegeResult(); + explicit GrantAccountPrivilegeResult(const std::string &payload); + ~GrantAccountPrivilegeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_GRANTACCOUNTPRIVILEGERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/GrantOperatorPermissionRequest.h b/rds/include/alibabacloud/rds/model/GrantOperatorPermissionRequest.h new file mode 100644 index 000000000..80df57126 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/GrantOperatorPermissionRequest.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_GRANTOPERATORPERMISSIONREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_GRANTOPERATORPERMISSIONREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT GrantOperatorPermissionRequest : public RdsRequest + { + + public: + GrantOperatorPermissionRequest(); + ~GrantOperatorPermissionRequest(); + + std::string getPrivileges()const; + void setPrivileges(const std::string& privileges); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getExpiredTime()const; + void setExpiredTime(const std::string& expiredTime); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string privileges_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string expiredTime_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_GRANTOPERATORPERMISSIONREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/GrantOperatorPermissionResult.h b/rds/include/alibabacloud/rds/model/GrantOperatorPermissionResult.h new file mode 100644 index 000000000..29e3db30c --- /dev/null +++ b/rds/include/alibabacloud/rds/model/GrantOperatorPermissionResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_GRANTOPERATORPERMISSIONRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_GRANTOPERATORPERMISSIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT GrantOperatorPermissionResult : public ServiceResult + { + public: + + + GrantOperatorPermissionResult(); + explicit GrantOperatorPermissionResult(const std::string &payload); + ~GrantOperatorPermissionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_GRANTOPERATORPERMISSIONRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ImportDataForSQLServerRequest.h b/rds/include/alibabacloud/rds/model/ImportDataForSQLServerRequest.h new file mode 100644 index 000000000..7928dcae6 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ImportDataForSQLServerRequest.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_IMPORTDATAFORSQLSERVERREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_IMPORTDATAFORSQLSERVERREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ImportDataForSQLServerRequest : public RdsRequest + { + + public: + ImportDataForSQLServerRequest(); + ~ImportDataForSQLServerRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getFileName()const; + void setFileName(const std::string& fileName); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string fileName_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_IMPORTDATAFORSQLSERVERREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ImportDataForSQLServerResult.h b/rds/include/alibabacloud/rds/model/ImportDataForSQLServerResult.h new file mode 100644 index 000000000..74ae0a11c --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ImportDataForSQLServerResult.h @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_IMPORTDATAFORSQLSERVERRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_IMPORTDATAFORSQLSERVERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ImportDataForSQLServerResult : public ServiceResult + { + public: + + + ImportDataForSQLServerResult(); + explicit ImportDataForSQLServerResult(const std::string &payload); + ~ImportDataForSQLServerResult(); + int getImportID()const; + void setImportID(int importID); + + protected: + void parse(const std::string &payload); + private: + int importID_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_IMPORTDATAFORSQLSERVERRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ImportDataFromDatabaseRequest.h b/rds/include/alibabacloud/rds/model/ImportDataFromDatabaseRequest.h new file mode 100644 index 000000000..84b367c3b --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ImportDataFromDatabaseRequest.h @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_IMPORTDATAFROMDATABASEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_IMPORTDATAFROMDATABASEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ImportDataFromDatabaseRequest : public RdsRequest + { + + public: + ImportDataFromDatabaseRequest(); + ~ImportDataFromDatabaseRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getImportDataType()const; + void setImportDataType(const std::string& importDataType); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getIsLockTable()const; + void setIsLockTable(const std::string& isLockTable); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getSourceDatabaseDBNames()const; + void setSourceDatabaseDBNames(const std::string& sourceDatabaseDBNames); + std::string getSourceDatabaseIp()const; + void setSourceDatabaseIp(const std::string& sourceDatabaseIp); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getSourceDatabasePassword()const; + void setSourceDatabasePassword(const std::string& sourceDatabasePassword); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSourceDatabasePort()const; + void setSourceDatabasePort(const std::string& sourceDatabasePort); + std::string getSourceDatabaseUserName()const; + void setSourceDatabaseUserName(const std::string& sourceDatabaseUserName); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + + private: + long resourceOwnerId_; + std::string importDataType_; + std::string resourceOwnerAccount_; + std::string isLockTable_; + std::string ownerAccount_; + std::string sourceDatabaseDBNames_; + std::string sourceDatabaseIp_; + long ownerId_; + std::string sourceDatabasePassword_; + std::string accessKeyId_; + std::string sourceDatabasePort_; + std::string sourceDatabaseUserName_; + std::string dBInstanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_IMPORTDATAFROMDATABASEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ImportDataFromDatabaseResult.h b/rds/include/alibabacloud/rds/model/ImportDataFromDatabaseResult.h new file mode 100644 index 000000000..2026f55cb --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ImportDataFromDatabaseResult.h @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_IMPORTDATAFROMDATABASERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_IMPORTDATAFROMDATABASERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ImportDataFromDatabaseResult : public ServiceResult + { + public: + + + ImportDataFromDatabaseResult(); + explicit ImportDataFromDatabaseResult(const std::string &payload); + ~ImportDataFromDatabaseResult(); + int getImportId()const; + void setImportId(int importId); + + protected: + void parse(const std::string &payload); + private: + int importId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_IMPORTDATAFROMDATABASERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ImportDatabaseBetweenInstancesRequest.h b/rds/include/alibabacloud/rds/model/ImportDatabaseBetweenInstancesRequest.h new file mode 100644 index 000000000..e1b5905c9 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ImportDatabaseBetweenInstancesRequest.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_IMPORTDATABASEBETWEENINSTANCESREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_IMPORTDATABASEBETWEENINSTANCESREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ImportDatabaseBetweenInstancesRequest : public RdsRequest + { + + public: + ImportDatabaseBetweenInstancesRequest(); + ~ImportDatabaseBetweenInstancesRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSourceDBInstanceId()const; + void setSourceDBInstanceId(const std::string& sourceDBInstanceId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getDBInfo()const; + void setDBInfo(const std::string& dBInfo); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string sourceDBInstanceId_; + std::string resourceOwnerAccount_; + std::string dBInfo_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_IMPORTDATABASEBETWEENINSTANCESREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ImportDatabaseBetweenInstancesResult.h b/rds/include/alibabacloud/rds/model/ImportDatabaseBetweenInstancesResult.h new file mode 100644 index 000000000..6b90054d1 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ImportDatabaseBetweenInstancesResult.h @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_IMPORTDATABASEBETWEENINSTANCESRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_IMPORTDATABASEBETWEENINSTANCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ImportDatabaseBetweenInstancesResult : public ServiceResult + { + public: + + + ImportDatabaseBetweenInstancesResult(); + explicit ImportDatabaseBetweenInstancesResult(const std::string &payload); + ~ImportDatabaseBetweenInstancesResult(); + std::string getImportId()const; + void setImportId(const std::string& importId); + + protected: + void parse(const std::string &payload); + private: + std::string importId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_IMPORTDATABASEBETWEENINSTANCESRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/LoginDBInstancefromCloudDBARequest.h b/rds/include/alibabacloud/rds/model/LoginDBInstancefromCloudDBARequest.h new file mode 100644 index 000000000..51bfcd299 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/LoginDBInstancefromCloudDBARequest.h @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_LOGINDBINSTANCEFROMCLOUDDBAREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_LOGINDBINSTANCEFROMCLOUDDBAREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT LoginDBInstancefromCloudDBARequest : public RdsRequest + { + + public: + LoginDBInstancefromCloudDBARequest(); + ~LoginDBInstancefromCloudDBARequest(); + + std::string getServiceRequestParam()const; + void setServiceRequestParam(const std::string& serviceRequestParam); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getServiceRequestType()const; + void setServiceRequestType(const std::string& serviceRequestType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string serviceRequestParam_; + std::string dBInstanceId_; + std::string serviceRequestType_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_LOGINDBINSTANCEFROMCLOUDDBAREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/LoginDBInstancefromCloudDBAResult.h b/rds/include/alibabacloud/rds/model/LoginDBInstancefromCloudDBAResult.h new file mode 100644 index 000000000..871cc5eb8 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/LoginDBInstancefromCloudDBAResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_LOGINDBINSTANCEFROMCLOUDDBARESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_LOGINDBINSTANCEFROMCLOUDDBARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT LoginDBInstancefromCloudDBAResult : public ServiceResult + { + public: + + + LoginDBInstancefromCloudDBAResult(); + explicit LoginDBInstancefromCloudDBAResult(const std::string &payload); + ~LoginDBInstancefromCloudDBAResult(); + std::string getAttrData()const; + void setAttrData(const std::string& attrData); + std::string getListData()const; + void setListData(const std::string& listData); + + protected: + void parse(const std::string &payload); + private: + std::string attrData_; + std::string listData_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_LOGINDBINSTANCEFROMCLOUDDBARESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/MigrateToOtherZoneRequest.h b/rds/include/alibabacloud/rds/model/MigrateToOtherZoneRequest.h new file mode 100644 index 000000000..8646d7218 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/MigrateToOtherZoneRequest.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MIGRATETOOTHERZONEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_MIGRATETOOTHERZONEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT MigrateToOtherZoneRequest : public RdsRequest + { + + public: + MigrateToOtherZoneRequest(); + ~MigrateToOtherZoneRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getEffectiveTime()const; + void setEffectiveTime(const std::string& effectiveTime); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getZoneId()const; + void setZoneId(const std::string& zoneId); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string effectiveTime_; + std::string ownerAccount_; + std::string zoneId_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_MIGRATETOOTHERZONEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/MigrateToOtherZoneResult.h b/rds/include/alibabacloud/rds/model/MigrateToOtherZoneResult.h new file mode 100644 index 000000000..e26fa6fb7 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/MigrateToOtherZoneResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MIGRATETOOTHERZONERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_MIGRATETOOTHERZONERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT MigrateToOtherZoneResult : public ServiceResult + { + public: + + + MigrateToOtherZoneResult(); + explicit MigrateToOtherZoneResult(const std::string &payload); + ~MigrateToOtherZoneResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_MIGRATETOOTHERZONERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyAccountDescriptionRequest.h b/rds/include/alibabacloud/rds/model/ModifyAccountDescriptionRequest.h new file mode 100644 index 000000000..98826e102 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ModifyAccountDescriptionRequest.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYACCOUNTDESCRIPTIONREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYACCOUNTDESCRIPTIONREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyAccountDescriptionRequest : public RdsRequest + { + + public: + ModifyAccountDescriptionRequest(); + ~ModifyAccountDescriptionRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccountName()const; + void setAccountName(const std::string& accountName); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccountDescription()const; + void setAccountDescription(const std::string& accountDescription); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string accountName_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accountDescription_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_MODIFYACCOUNTDESCRIPTIONREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyAccountDescriptionResult.h b/rds/include/alibabacloud/rds/model/ModifyAccountDescriptionResult.h new file mode 100644 index 000000000..c81453aa0 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ModifyAccountDescriptionResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYACCOUNTDESCRIPTIONRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYACCOUNTDESCRIPTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyAccountDescriptionResult : public ServiceResult + { + public: + + + ModifyAccountDescriptionResult(); + explicit ModifyAccountDescriptionResult(const std::string &payload); + ~ModifyAccountDescriptionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_MODIFYACCOUNTDESCRIPTIONRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyBackupPolicyRequest.h b/rds/include/alibabacloud/rds/model/ModifyBackupPolicyRequest.h new file mode 100644 index 000000000..44e4ff48b --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ModifyBackupPolicyRequest.h @@ -0,0 +1,77 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYBACKUPPOLICYREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYBACKUPPOLICYREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyBackupPolicyRequest : public RdsRequest + { + + public: + ModifyBackupPolicyRequest(); + ~ModifyBackupPolicyRequest(); + + std::string getPreferredBackupTime()const; + void setPreferredBackupTime(const std::string& preferredBackupTime); + std::string getPreferredBackupPeriod()const; + void setPreferredBackupPeriod(const std::string& preferredBackupPeriod); + std::string getBackupRetentionPeriod()const; + void setBackupRetentionPeriod(const std::string& backupRetentionPeriod); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getBackupLog()const; + void setBackupLog(const std::string& backupLog); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getLogBackupRetentionPeriod()const; + void setLogBackupRetentionPeriod(const std::string& logBackupRetentionPeriod); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string preferredBackupTime_; + std::string preferredBackupPeriod_; + std::string backupRetentionPeriod_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string dBInstanceId_; + std::string backupLog_; + long ownerId_; + std::string logBackupRetentionPeriod_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_MODIFYBACKUPPOLICYREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyBackupPolicyResult.h b/rds/include/alibabacloud/rds/model/ModifyBackupPolicyResult.h new file mode 100644 index 000000000..839d80d85 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ModifyBackupPolicyResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYBACKUPPOLICYRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYBACKUPPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyBackupPolicyResult : public ServiceResult + { + public: + + + ModifyBackupPolicyResult(); + explicit ModifyBackupPolicyResult(const std::string &payload); + ~ModifyBackupPolicyResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_MODIFYBACKUPPOLICYRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyDBDescriptionRequest.h b/rds/include/alibabacloud/rds/model/ModifyDBDescriptionRequest.h new file mode 100644 index 000000000..2a9a966f9 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ModifyDBDescriptionRequest.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBDESCRIPTIONREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYDBDESCRIPTIONREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyDBDescriptionRequest : public RdsRequest + { + + public: + ModifyDBDescriptionRequest(); + ~ModifyDBDescriptionRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDBName()const; + void setDBName(const std::string& dBName); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getDBDescription()const; + void setDBDescription(const std::string& dBDescription); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string dBName_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string dBInstanceId_; + std::string dBDescription_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_MODIFYDBDESCRIPTIONREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyDBDescriptionResult.h b/rds/include/alibabacloud/rds/model/ModifyDBDescriptionResult.h new file mode 100644 index 000000000..918417cfd --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ModifyDBDescriptionResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBDESCRIPTIONRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYDBDESCRIPTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyDBDescriptionResult : public ServiceResult + { + public: + + + ModifyDBDescriptionResult(); + explicit ModifyDBDescriptionResult(const std::string &payload); + ~ModifyDBDescriptionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_MODIFYDBDESCRIPTIONRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyDBInstanceConnectionModeRequest.h b/rds/include/alibabacloud/rds/model/ModifyDBInstanceConnectionModeRequest.h new file mode 100644 index 000000000..2a093e527 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ModifyDBInstanceConnectionModeRequest.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCECONNECTIONMODEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCECONNECTIONMODEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyDBInstanceConnectionModeRequest : public RdsRequest + { + + public: + ModifyDBInstanceConnectionModeRequest(); + ~ModifyDBInstanceConnectionModeRequest(); + + std::string getConnectionMode()const; + void setConnectionMode(const std::string& connectionMode); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string connectionMode_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCECONNECTIONMODEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyDBInstanceConnectionModeResult.h b/rds/include/alibabacloud/rds/model/ModifyDBInstanceConnectionModeResult.h new file mode 100644 index 000000000..d1e21e231 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ModifyDBInstanceConnectionModeResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCECONNECTIONMODERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCECONNECTIONMODERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyDBInstanceConnectionModeResult : public ServiceResult + { + public: + + + ModifyDBInstanceConnectionModeResult(); + explicit ModifyDBInstanceConnectionModeResult(const std::string &payload); + ~ModifyDBInstanceConnectionModeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCECONNECTIONMODERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyDBInstanceConnectionStringRequest.h b/rds/include/alibabacloud/rds/model/ModifyDBInstanceConnectionStringRequest.h new file mode 100644 index 000000000..e27fb0d24 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ModifyDBInstanceConnectionStringRequest.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCECONNECTIONSTRINGREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCECONNECTIONSTRINGREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyDBInstanceConnectionStringRequest : public RdsRequest + { + + public: + ModifyDBInstanceConnectionStringRequest(); + ~ModifyDBInstanceConnectionStringRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getConnectionStringPrefix()const; + void setConnectionStringPrefix(const std::string& connectionStringPrefix); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getPort()const; + void setPort(const std::string& port); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getCurrentConnectionString()const; + void setCurrentConnectionString(const std::string& currentConnectionString); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string connectionStringPrefix_; + std::string resourceOwnerAccount_; + std::string port_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string currentConnectionString_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCECONNECTIONSTRINGREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyDBInstanceConnectionStringResult.h b/rds/include/alibabacloud/rds/model/ModifyDBInstanceConnectionStringResult.h new file mode 100644 index 000000000..72d840820 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ModifyDBInstanceConnectionStringResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCECONNECTIONSTRINGRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCECONNECTIONSTRINGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyDBInstanceConnectionStringResult : public ServiceResult + { + public: + + + ModifyDBInstanceConnectionStringResult(); + explicit ModifyDBInstanceConnectionStringResult(const std::string &payload); + ~ModifyDBInstanceConnectionStringResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCECONNECTIONSTRINGRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyDBInstanceDescriptionRequest.h b/rds/include/alibabacloud/rds/model/ModifyDBInstanceDescriptionRequest.h new file mode 100644 index 000000000..3522c8736 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ModifyDBInstanceDescriptionRequest.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEDESCRIPTIONREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEDESCRIPTIONREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyDBInstanceDescriptionRequest : public RdsRequest + { + + public: + ModifyDBInstanceDescriptionRequest(); + ~ModifyDBInstanceDescriptionRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getDBInstanceDescription()const; + void setDBInstanceDescription(const std::string& dBInstanceDescription); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string ownerAccount_; + std::string dBInstanceId_; + std::string dBInstanceDescription_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEDESCRIPTIONREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyDBInstanceDescriptionResult.h b/rds/include/alibabacloud/rds/model/ModifyDBInstanceDescriptionResult.h new file mode 100644 index 000000000..631da0589 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ModifyDBInstanceDescriptionResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEDESCRIPTIONRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEDESCRIPTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyDBInstanceDescriptionResult : public ServiceResult + { + public: + + + ModifyDBInstanceDescriptionResult(); + explicit ModifyDBInstanceDescriptionResult(const std::string &payload); + ~ModifyDBInstanceDescriptionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEDESCRIPTIONRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyDBInstanceECSSGRelationRequest.h b/rds/include/alibabacloud/rds/model/ModifyDBInstanceECSSGRelationRequest.h new file mode 100644 index 000000000..3f4aea0ff --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ModifyDBInstanceECSSGRelationRequest.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEECSSGRELATIONREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEECSSGRELATIONREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyDBInstanceECSSGRelationRequest : public RdsRequest + { + + public: + ModifyDBInstanceECSSGRelationRequest(); + ~ModifyDBInstanceECSSGRelationRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getEcsSecurityGroupId()const; + void setEcsSecurityGroupId(const std::string& ecsSecurityGroupId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string ecsSecurityGroupId_; + std::string resourceOwnerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEECSSGRELATIONREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyDBInstanceECSSGRelationResult.h b/rds/include/alibabacloud/rds/model/ModifyDBInstanceECSSGRelationResult.h new file mode 100644 index 000000000..309411d4a --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ModifyDBInstanceECSSGRelationResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEECSSGRELATIONRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEECSSGRELATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyDBInstanceECSSGRelationResult : public ServiceResult + { + public: + struct RdsEcsSecurityGroupRel + { + std::string securityGroupId; + std::string regionId; + std::string netType; + }; + + + ModifyDBInstanceECSSGRelationResult(); + explicit ModifyDBInstanceECSSGRelationResult(const std::string &payload); + ~ModifyDBInstanceECSSGRelationResult(); + std::vector getItems()const; + void setItems(const std::vector& items); + std::string getDBInstanceName()const; + void setDBInstanceName(const std::string& dBInstanceName); + + protected: + void parse(const std::string &payload); + private: + std::vector items_; + std::string dBInstanceName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEECSSGRELATIONRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyDBInstanceHAConfigRequest.h b/rds/include/alibabacloud/rds/model/ModifyDBInstanceHAConfigRequest.h new file mode 100644 index 000000000..6fea2712f --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ModifyDBInstanceHAConfigRequest.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEHACONFIGREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEHACONFIGREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyDBInstanceHAConfigRequest : public RdsRequest + { + + public: + ModifyDBInstanceHAConfigRequest(); + ~ModifyDBInstanceHAConfigRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getSyncMode()const; + void setSyncMode(const std::string& syncMode); + std::string getDbInstanceId()const; + void setDbInstanceId(const std::string& dbInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getHAMode()const; + void setHAMode(const std::string& hAMode); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string syncMode_; + std::string dbInstanceId_; + long ownerId_; + std::string hAMode_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEHACONFIGREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyDBInstanceHAConfigResult.h b/rds/include/alibabacloud/rds/model/ModifyDBInstanceHAConfigResult.h new file mode 100644 index 000000000..9820a29d9 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ModifyDBInstanceHAConfigResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEHACONFIGRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEHACONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyDBInstanceHAConfigResult : public ServiceResult + { + public: + + + ModifyDBInstanceHAConfigResult(); + explicit ModifyDBInstanceHAConfigResult(const std::string &payload); + ~ModifyDBInstanceHAConfigResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEHACONFIGRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyDBInstanceMaintainTimeRequest.h b/rds/include/alibabacloud/rds/model/ModifyDBInstanceMaintainTimeRequest.h new file mode 100644 index 000000000..341e54aa3 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ModifyDBInstanceMaintainTimeRequest.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEMAINTAINTIMEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEMAINTAINTIMEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyDBInstanceMaintainTimeRequest : public RdsRequest + { + + public: + ModifyDBInstanceMaintainTimeRequest(); + ~ModifyDBInstanceMaintainTimeRequest(); + + std::string getMaintainTime()const; + void setMaintainTime(const std::string& maintainTime); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string maintainTime_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEMAINTAINTIMEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyDBInstanceMaintainTimeResult.h b/rds/include/alibabacloud/rds/model/ModifyDBInstanceMaintainTimeResult.h new file mode 100644 index 000000000..a446caedc --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ModifyDBInstanceMaintainTimeResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEMAINTAINTIMERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEMAINTAINTIMERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyDBInstanceMaintainTimeResult : public ServiceResult + { + public: + + + ModifyDBInstanceMaintainTimeResult(); + explicit ModifyDBInstanceMaintainTimeResult(const std::string &payload); + ~ModifyDBInstanceMaintainTimeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEMAINTAINTIMERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyDBInstanceMonitorRequest.h b/rds/include/alibabacloud/rds/model/ModifyDBInstanceMonitorRequest.h new file mode 100644 index 000000000..41b654d4c --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ModifyDBInstanceMonitorRequest.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEMONITORREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEMONITORREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyDBInstanceMonitorRequest : public RdsRequest + { + + public: + ModifyDBInstanceMonitorRequest(); + ~ModifyDBInstanceMonitorRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getPeriod()const; + void setPeriod(const std::string& period); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string period_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEMONITORREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyDBInstanceMonitorResult.h b/rds/include/alibabacloud/rds/model/ModifyDBInstanceMonitorResult.h new file mode 100644 index 000000000..c5b0b3225 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ModifyDBInstanceMonitorResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEMONITORRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEMONITORRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyDBInstanceMonitorResult : public ServiceResult + { + public: + + + ModifyDBInstanceMonitorResult(); + explicit ModifyDBInstanceMonitorResult(const std::string &payload); + ~ModifyDBInstanceMonitorResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCEMONITORRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyDBInstanceNetworkExpireTimeRequest.h b/rds/include/alibabacloud/rds/model/ModifyDBInstanceNetworkExpireTimeRequest.h new file mode 100644 index 000000000..3b459f324 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ModifyDBInstanceNetworkExpireTimeRequest.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCENETWORKEXPIRETIMEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCENETWORKEXPIRETIMEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyDBInstanceNetworkExpireTimeRequest : public RdsRequest + { + + public: + ModifyDBInstanceNetworkExpireTimeRequest(); + ~ModifyDBInstanceNetworkExpireTimeRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getConnectionString()const; + void setConnectionString(const std::string& connectionString); + int getClassicExpiredDays()const; + void setClassicExpiredDays(int classicExpiredDays); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string connectionString_; + int classicExpiredDays_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCENETWORKEXPIRETIMEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyDBInstanceNetworkExpireTimeResult.h b/rds/include/alibabacloud/rds/model/ModifyDBInstanceNetworkExpireTimeResult.h new file mode 100644 index 000000000..11fb47ae2 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ModifyDBInstanceNetworkExpireTimeResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCENETWORKEXPIRETIMERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCENETWORKEXPIRETIMERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyDBInstanceNetworkExpireTimeResult : public ServiceResult + { + public: + + + ModifyDBInstanceNetworkExpireTimeResult(); + explicit ModifyDBInstanceNetworkExpireTimeResult(const std::string &payload); + ~ModifyDBInstanceNetworkExpireTimeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCENETWORKEXPIRETIMERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyDBInstanceNetworkTypeRequest.h b/rds/include/alibabacloud/rds/model/ModifyDBInstanceNetworkTypeRequest.h new file mode 100644 index 000000000..87cf1deea --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ModifyDBInstanceNetworkTypeRequest.h @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCENETWORKTYPEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCENETWORKTYPEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyDBInstanceNetworkTypeRequest : public RdsRequest + { + + public: + ModifyDBInstanceNetworkTypeRequest(); + ~ModifyDBInstanceNetworkTypeRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getVSwitchId()const; + void setVSwitchId(const std::string& vSwitchId); + std::string getPrivateIpAddress()const; + void setPrivateIpAddress(const std::string& privateIpAddress); + std::string getRetainClassic()const; + void setRetainClassic(const std::string& retainClassic); + std::string getClassicExpiredDays()const; + void setClassicExpiredDays(const std::string& classicExpiredDays); + std::string getVPCId()const; + void setVPCId(const std::string& vPCId); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getReadWriteSplittingPrivateIpAddress()const; + void setReadWriteSplittingPrivateIpAddress(const std::string& readWriteSplittingPrivateIpAddress); + std::string getInstanceNetworkType()const; + void setInstanceNetworkType(const std::string& instanceNetworkType); + int getReadWriteSplittingClassicExpiredDays()const; + void setReadWriteSplittingClassicExpiredDays(int readWriteSplittingClassicExpiredDays); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string accessKeyId_; + std::string vSwitchId_; + std::string privateIpAddress_; + std::string retainClassic_; + std::string classicExpiredDays_; + std::string vPCId_; + std::string dBInstanceId_; + std::string readWriteSplittingPrivateIpAddress_; + std::string instanceNetworkType_; + int readWriteSplittingClassicExpiredDays_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCENETWORKTYPEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyDBInstanceNetworkTypeResult.h b/rds/include/alibabacloud/rds/model/ModifyDBInstanceNetworkTypeResult.h new file mode 100644 index 000000000..e4a417653 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ModifyDBInstanceNetworkTypeResult.h @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCENETWORKTYPERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCENETWORKTYPERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyDBInstanceNetworkTypeResult : public ServiceResult + { + public: + + + ModifyDBInstanceNetworkTypeResult(); + explicit ModifyDBInstanceNetworkTypeResult(const std::string &payload); + ~ModifyDBInstanceNetworkTypeResult(); + std::string getTaskId()const; + void setTaskId(const std::string& taskId); + + protected: + void parse(const std::string &payload); + private: + std::string taskId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCENETWORKTYPERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyDBInstanceSSLRequest.h b/rds/include/alibabacloud/rds/model/ModifyDBInstanceSSLRequest.h new file mode 100644 index 000000000..e0044043f --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ModifyDBInstanceSSLRequest.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCESSLREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCESSLREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyDBInstanceSSLRequest : public RdsRequest + { + + public: + ModifyDBInstanceSSLRequest(); + ~ModifyDBInstanceSSLRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getConnectionString()const; + void setConnectionString(const std::string& connectionString); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string connectionString_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCESSLREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyDBInstanceSSLResult.h b/rds/include/alibabacloud/rds/model/ModifyDBInstanceSSLResult.h new file mode 100644 index 000000000..0746820af --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ModifyDBInstanceSSLResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCESSLRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCESSLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyDBInstanceSSLResult : public ServiceResult + { + public: + + + ModifyDBInstanceSSLResult(); + explicit ModifyDBInstanceSSLResult(const std::string &payload); + ~ModifyDBInstanceSSLResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCESSLRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyDBInstanceSpecRequest.h b/rds/include/alibabacloud/rds/model/ModifyDBInstanceSpecRequest.h new file mode 100644 index 000000000..0b3b64b39 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ModifyDBInstanceSpecRequest.h @@ -0,0 +1,77 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCESPECREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCESPECREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyDBInstanceSpecRequest : public RdsRequest + { + + public: + ModifyDBInstanceSpecRequest(); + ~ModifyDBInstanceSpecRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + int getDBInstanceStorage()const; + void setDBInstanceStorage(int dBInstanceStorage); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getEffectiveTime()const; + void setEffectiveTime(const std::string& effectiveTime); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getPayType()const; + void setPayType(const std::string& payType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getDBInstanceClass()const; + void setDBInstanceClass(const std::string& dBInstanceClass); + + private: + long resourceOwnerId_; + int dBInstanceStorage_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string effectiveTime_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string payType_; + std::string accessKeyId_; + std::string dBInstanceClass_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCESPECREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyDBInstanceSpecResult.h b/rds/include/alibabacloud/rds/model/ModifyDBInstanceSpecResult.h new file mode 100644 index 000000000..cded36803 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ModifyDBInstanceSpecResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCESPECRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCESPECRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyDBInstanceSpecResult : public ServiceResult + { + public: + + + ModifyDBInstanceSpecResult(); + explicit ModifyDBInstanceSpecResult(const std::string &payload); + ~ModifyDBInstanceSpecResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCESPECRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyDBInstanceTDERequest.h b/rds/include/alibabacloud/rds/model/ModifyDBInstanceTDERequest.h new file mode 100644 index 000000000..4cb5306ab --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ModifyDBInstanceTDERequest.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCETDEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCETDEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyDBInstanceTDERequest : public RdsRequest + { + + public: + ModifyDBInstanceTDERequest(); + ~ModifyDBInstanceTDERequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDBName()const; + void setDBName(const std::string& dBName); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getTDEStatus()const; + void setTDEStatus(const std::string& tDEStatus); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string dBName_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string tDEStatus_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCETDEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyDBInstanceTDEResult.h b/rds/include/alibabacloud/rds/model/ModifyDBInstanceTDEResult.h new file mode 100644 index 000000000..02e883a05 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ModifyDBInstanceTDEResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCETDERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCETDERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyDBInstanceTDEResult : public ServiceResult + { + public: + + + ModifyDBInstanceTDEResult(); + explicit ModifyDBInstanceTDEResult(const std::string &payload); + ~ModifyDBInstanceTDEResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_MODIFYDBINSTANCETDERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyDampPolicyRequest.h b/rds/include/alibabacloud/rds/model/ModifyDampPolicyRequest.h new file mode 100644 index 000000000..0b5765edb --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ModifyDampPolicyRequest.h @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDAMPPOLICYREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYDAMPPOLICYREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyDampPolicyRequest : public RdsRequest + { + + public: + ModifyDampPolicyRequest(); + ~ModifyDampPolicyRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getTimeRules()const; + void setTimeRules(const std::string& timeRules); + std::string getActionRules()const; + void setActionRules(const std::string& actionRules); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getHandlers()const; + void setHandlers(const std::string& handlers); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getPolicyName()const; + void setPolicyName(const std::string& policyName); + std::string getSourceRules()const; + void setSourceRules(const std::string& sourceRules); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string accessKeyId_; + std::string timeRules_; + std::string actionRules_; + std::string securityToken_; + std::string regionId_; + std::string handlers_; + std::string dBInstanceId_; + std::string policyName_; + std::string sourceRules_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_MODIFYDAMPPOLICYREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyDampPolicyResult.h b/rds/include/alibabacloud/rds/model/ModifyDampPolicyResult.h new file mode 100644 index 000000000..06f288b8d --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ModifyDampPolicyResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDAMPPOLICYRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYDAMPPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyDampPolicyResult : public ServiceResult + { + public: + + + ModifyDampPolicyResult(); + explicit ModifyDampPolicyResult(const std::string &payload); + ~ModifyDampPolicyResult(); + std::string getPolicyName()const; + void setPolicyName(const std::string& policyName); + std::string getPolicyId()const; + void setPolicyId(const std::string& policyId); + + protected: + void parse(const std::string &payload); + private: + std::string policyName_; + std::string policyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_MODIFYDAMPPOLICYRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyGuardDomainModeRequest.h b/rds/include/alibabacloud/rds/model/ModifyGuardDomainModeRequest.h new file mode 100644 index 000000000..f466c125d --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ModifyGuardDomainModeRequest.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYGUARDDOMAINMODEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYGUARDDOMAINMODEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyGuardDomainModeRequest : public RdsRequest + { + + public: + ModifyGuardDomainModeRequest(); + ~ModifyGuardDomainModeRequest(); + + std::string getDomainMode()const; + void setDomainMode(const std::string& domainMode); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getReplicaId()const; + void setReplicaId(const std::string& replicaId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string domainMode_; + long resourceOwnerId_; + std::string securityToken_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string replicaId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_MODIFYGUARDDOMAINMODEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyGuardDomainModeResult.h b/rds/include/alibabacloud/rds/model/ModifyGuardDomainModeResult.h new file mode 100644 index 000000000..4876a44d1 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ModifyGuardDomainModeResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYGUARDDOMAINMODERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYGUARDDOMAINMODERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyGuardDomainModeResult : public ServiceResult + { + public: + + + ModifyGuardDomainModeResult(); + explicit ModifyGuardDomainModeResult(const std::string &payload); + ~ModifyGuardDomainModeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_MODIFYGUARDDOMAINMODERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyInstanceAutoRenewalAttributeRequest.h b/rds/include/alibabacloud/rds/model/ModifyInstanceAutoRenewalAttributeRequest.h new file mode 100644 index 000000000..966d563c2 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ModifyInstanceAutoRenewalAttributeRequest.h @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYINSTANCEAUTORENEWALATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYINSTANCEAUTORENEWALATTRIBUTEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyInstanceAutoRenewalAttributeRequest : public RdsRequest + { + + public: + ModifyInstanceAutoRenewalAttributeRequest(); + ~ModifyInstanceAutoRenewalAttributeRequest(); + + std::string getDuration()const; + void setDuration(const std::string& duration); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAutoRenew()const; + void setAutoRenew(const std::string& autoRenew); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string duration_; + long resourceOwnerId_; + std::string autoRenew_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string clientToken_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_MODIFYINSTANCEAUTORENEWALATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyInstanceAutoRenewalAttributeResult.h b/rds/include/alibabacloud/rds/model/ModifyInstanceAutoRenewalAttributeResult.h new file mode 100644 index 000000000..43af475b7 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ModifyInstanceAutoRenewalAttributeResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYINSTANCEAUTORENEWALATTRIBUTERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYINSTANCEAUTORENEWALATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyInstanceAutoRenewalAttributeResult : public ServiceResult + { + public: + + + ModifyInstanceAutoRenewalAttributeResult(); + explicit ModifyInstanceAutoRenewalAttributeResult(const std::string &payload); + ~ModifyInstanceAutoRenewalAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_MODIFYINSTANCEAUTORENEWALATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyParameterRequest.h b/rds/include/alibabacloud/rds/model/ModifyParameterRequest.h new file mode 100644 index 000000000..503fdc810 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ModifyParameterRequest.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYPARAMETERREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYPARAMETERREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyParameterRequest : public RdsRequest + { + + public: + ModifyParameterRequest(); + ~ModifyParameterRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + bool getForcerestart()const; + void setForcerestart(bool forcerestart); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getParameters()const; + void setParameters(const std::string& parameters); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string ownerAccount_; + std::string dBInstanceId_; + bool forcerestart_; + long ownerId_; + std::string parameters_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_MODIFYPARAMETERREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyParameterResult.h b/rds/include/alibabacloud/rds/model/ModifyParameterResult.h new file mode 100644 index 000000000..e039dc9e4 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ModifyParameterResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYPARAMETERRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYPARAMETERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyParameterResult : public ServiceResult + { + public: + + + ModifyParameterResult(); + explicit ModifyParameterResult(const std::string &payload); + ~ModifyParameterResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_MODIFYPARAMETERRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyPostpaidDBInstanceSpecRequest.h b/rds/include/alibabacloud/rds/model/ModifyPostpaidDBInstanceSpecRequest.h new file mode 100644 index 000000000..e03eb7bb7 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ModifyPostpaidDBInstanceSpecRequest.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYPOSTPAIDDBINSTANCESPECREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYPOSTPAIDDBINSTANCESPECREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyPostpaidDBInstanceSpecRequest : public RdsRequest + { + + public: + ModifyPostpaidDBInstanceSpecRequest(); + ~ModifyPostpaidDBInstanceSpecRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + int getDBInstanceStorage()const; + void setDBInstanceStorage(int dBInstanceStorage); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getDBInstanceClass()const; + void setDBInstanceClass(const std::string& dBInstanceClass); + + private: + long resourceOwnerId_; + int dBInstanceStorage_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + std::string dBInstanceClass_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_MODIFYPOSTPAIDDBINSTANCESPECREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyPostpaidDBInstanceSpecResult.h b/rds/include/alibabacloud/rds/model/ModifyPostpaidDBInstanceSpecResult.h new file mode 100644 index 000000000..7178389ed --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ModifyPostpaidDBInstanceSpecResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYPOSTPAIDDBINSTANCESPECRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYPOSTPAIDDBINSTANCESPECRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyPostpaidDBInstanceSpecResult : public ServiceResult + { + public: + + + ModifyPostpaidDBInstanceSpecResult(); + explicit ModifyPostpaidDBInstanceSpecResult(const std::string &payload); + ~ModifyPostpaidDBInstanceSpecResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_MODIFYPOSTPAIDDBINSTANCESPECRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyReadWriteSplittingConnectionRequest.h b/rds/include/alibabacloud/rds/model/ModifyReadWriteSplittingConnectionRequest.h new file mode 100644 index 000000000..cd5ee4c7e --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ModifyReadWriteSplittingConnectionRequest.h @@ -0,0 +1,77 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYREADWRITESPLITTINGCONNECTIONREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYREADWRITESPLITTINGCONNECTIONREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyReadWriteSplittingConnectionRequest : public RdsRequest + { + + public: + ModifyReadWriteSplittingConnectionRequest(); + ~ModifyReadWriteSplittingConnectionRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getConnectionStringPrefix()const; + void setConnectionStringPrefix(const std::string& connectionStringPrefix); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getPort()const; + void setPort(const std::string& port); + std::string getDistributionType()const; + void setDistributionType(const std::string& distributionType); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getWeight()const; + void setWeight(const std::string& weight); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getMaxDelayTime()const; + void setMaxDelayTime(const std::string& maxDelayTime); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string connectionStringPrefix_; + std::string resourceOwnerAccount_; + std::string port_; + std::string distributionType_; + std::string ownerAccount_; + std::string weight_; + std::string dBInstanceId_; + long ownerId_; + std::string maxDelayTime_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_MODIFYREADWRITESPLITTINGCONNECTIONREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyReadWriteSplittingConnectionResult.h b/rds/include/alibabacloud/rds/model/ModifyReadWriteSplittingConnectionResult.h new file mode 100644 index 000000000..e5198af48 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ModifyReadWriteSplittingConnectionResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYREADWRITESPLITTINGCONNECTIONRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYREADWRITESPLITTINGCONNECTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyReadWriteSplittingConnectionResult : public ServiceResult + { + public: + + + ModifyReadWriteSplittingConnectionResult(); + explicit ModifyReadWriteSplittingConnectionResult(const std::string &payload); + ~ModifyReadWriteSplittingConnectionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_MODIFYREADWRITESPLITTINGCONNECTIONRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyReplicaDescriptionRequest.h b/rds/include/alibabacloud/rds/model/ModifyReplicaDescriptionRequest.h new file mode 100644 index 000000000..bde4c08e7 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ModifyReplicaDescriptionRequest.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYREPLICADESCRIPTIONREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYREPLICADESCRIPTIONREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyReplicaDescriptionRequest : public RdsRequest + { + + public: + ModifyReplicaDescriptionRequest(); + ~ModifyReplicaDescriptionRequest(); + + std::string getReplicaDescription()const; + void setReplicaDescription(const std::string& replicaDescription); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getReplicaId()const; + void setReplicaId(const std::string& replicaId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string replicaDescription_; + long resourceOwnerId_; + std::string securityToken_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string replicaId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_MODIFYREPLICADESCRIPTIONREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyReplicaDescriptionResult.h b/rds/include/alibabacloud/rds/model/ModifyReplicaDescriptionResult.h new file mode 100644 index 000000000..d7b5c58c0 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ModifyReplicaDescriptionResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYREPLICADESCRIPTIONRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYREPLICADESCRIPTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyReplicaDescriptionResult : public ServiceResult + { + public: + + + ModifyReplicaDescriptionResult(); + explicit ModifyReplicaDescriptionResult(const std::string &payload); + ~ModifyReplicaDescriptionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_MODIFYREPLICADESCRIPTIONRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyReplicaModeRequest.h b/rds/include/alibabacloud/rds/model/ModifyReplicaModeRequest.h new file mode 100644 index 000000000..92c28856a --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ModifyReplicaModeRequest.h @@ -0,0 +1,77 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYREPLICAMODEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYREPLICAMODEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyReplicaModeRequest : public RdsRequest + { + + public: + ModifyReplicaModeRequest(); + ~ModifyReplicaModeRequest(); + + std::string getDomainMode()const; + void setDomainMode(const std::string& domainMode); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getPrimaryInstanceId()const; + void setPrimaryInstanceId(const std::string& primaryInstanceId); + std::string getReplicaMode()const; + void setReplicaMode(const std::string& replicaMode); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getReplicaId()const; + void setReplicaId(const std::string& replicaId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string domainMode_; + long resourceOwnerId_; + std::string primaryInstanceId_; + std::string replicaMode_; + std::string securityToken_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string replicaId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_MODIFYREPLICAMODEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyReplicaModeResult.h b/rds/include/alibabacloud/rds/model/ModifyReplicaModeResult.h new file mode 100644 index 000000000..fa404d533 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ModifyReplicaModeResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYREPLICAMODERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYREPLICAMODERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyReplicaModeResult : public ServiceResult + { + public: + + + ModifyReplicaModeResult(); + explicit ModifyReplicaModeResult(const std::string &payload); + ~ModifyReplicaModeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_MODIFYREPLICAMODERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyReplicaRelationRequest.h b/rds/include/alibabacloud/rds/model/ModifyReplicaRelationRequest.h new file mode 100644 index 000000000..f550d803a --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ModifyReplicaRelationRequest.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYREPLICARELATIONREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYREPLICARELATIONREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyReplicaRelationRequest : public RdsRequest + { + + public: + ModifyReplicaRelationRequest(); + ~ModifyReplicaRelationRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getReplicaId()const; + void setReplicaId(const std::string& replicaId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string securityToken_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string replicaId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_MODIFYREPLICARELATIONREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyReplicaRelationResult.h b/rds/include/alibabacloud/rds/model/ModifyReplicaRelationResult.h new file mode 100644 index 000000000..ece59a43d --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ModifyReplicaRelationResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYREPLICARELATIONRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYREPLICARELATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyReplicaRelationResult : public ServiceResult + { + public: + + + ModifyReplicaRelationResult(); + explicit ModifyReplicaRelationResult(const std::string &payload); + ~ModifyReplicaRelationResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_MODIFYREPLICARELATIONRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyResourceGroupRequest.h b/rds/include/alibabacloud/rds/model/ModifyResourceGroupRequest.h new file mode 100644 index 000000000..bf4fb4f31 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ModifyResourceGroupRequest.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYRESOURCEGROUPREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYRESOURCEGROUPREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyResourceGroupRequest : public RdsRequest + { + + public: + ModifyResourceGroupRequest(); + ~ModifyResourceGroupRequest(); + + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string resourceGroupId_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_MODIFYRESOURCEGROUPREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifyResourceGroupResult.h b/rds/include/alibabacloud/rds/model/ModifyResourceGroupResult.h new file mode 100644 index 000000000..b8e319e42 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ModifyResourceGroupResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYRESOURCEGROUPRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYRESOURCEGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifyResourceGroupResult : public ServiceResult + { + public: + + + ModifyResourceGroupResult(); + explicit ModifyResourceGroupResult(const std::string &payload); + ~ModifyResourceGroupResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_MODIFYRESOURCEGROUPRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifySQLCollectorPolicyRequest.h b/rds/include/alibabacloud/rds/model/ModifySQLCollectorPolicyRequest.h new file mode 100644 index 000000000..52af77e9b --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ModifySQLCollectorPolicyRequest.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYSQLCOLLECTORPOLICYREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYSQLCOLLECTORPOLICYREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifySQLCollectorPolicyRequest : public RdsRequest + { + + public: + ModifySQLCollectorPolicyRequest(); + ~ModifySQLCollectorPolicyRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + int getStoragePeriod()const; + void setStoragePeriod(int storagePeriod); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getSQLCollectorStatus()const; + void setSQLCollectorStatus(const std::string& sQLCollectorStatus); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + int storagePeriod_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string sQLCollectorStatus_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_MODIFYSQLCOLLECTORPOLICYREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifySQLCollectorPolicyResult.h b/rds/include/alibabacloud/rds/model/ModifySQLCollectorPolicyResult.h new file mode 100644 index 000000000..f56409adb --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ModifySQLCollectorPolicyResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYSQLCOLLECTORPOLICYRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYSQLCOLLECTORPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifySQLCollectorPolicyResult : public ServiceResult + { + public: + + + ModifySQLCollectorPolicyResult(); + explicit ModifySQLCollectorPolicyResult(const std::string &payload); + ~ModifySQLCollectorPolicyResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_MODIFYSQLCOLLECTORPOLICYRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifySecurityIpsRequest.h b/rds/include/alibabacloud/rds/model/ModifySecurityIpsRequest.h new file mode 100644 index 000000000..571ffd5e3 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ModifySecurityIpsRequest.h @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYSECURITYIPSREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYSECURITYIPSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifySecurityIpsRequest : public RdsRequest + { + + public: + ModifySecurityIpsRequest(); + ~ModifySecurityIpsRequest(); + + std::string getDBInstanceIPArrayName()const; + void setDBInstanceIPArrayName(const std::string& dBInstanceIPArrayName); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getModifyMode()const; + void setModifyMode(const std::string& modifyMode); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getSecurityIps()const; + void setSecurityIps(const std::string& securityIps); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getSecurityGroupName()const; + void setSecurityGroupName(const std::string& securityGroupName); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getWhitelistNetType()const; + void setWhitelistNetType(const std::string& whitelistNetType); + std::string getDBInstanceIPArrayAttribute()const; + void setDBInstanceIPArrayAttribute(const std::string& dBInstanceIPArrayAttribute); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + + private: + std::string dBInstanceIPArrayName_; + long resourceOwnerId_; + std::string modifyMode_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string ownerAccount_; + std::string securityIps_; + long ownerId_; + std::string securityGroupName_; + std::string accessKeyId_; + std::string whitelistNetType_; + std::string dBInstanceIPArrayAttribute_; + std::string dBInstanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_MODIFYSECURITYIPSREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ModifySecurityIpsResult.h b/rds/include/alibabacloud/rds/model/ModifySecurityIpsResult.h new file mode 100644 index 000000000..c8b7394c7 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ModifySecurityIpsResult.h @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYSECURITYIPSRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_MODIFYSECURITYIPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ModifySecurityIpsResult : public ServiceResult + { + public: + + + ModifySecurityIpsResult(); + explicit ModifySecurityIpsResult(const std::string &payload); + ~ModifySecurityIpsResult(); + std::string getTaskId()const; + void setTaskId(const std::string& taskId); + + protected: + void parse(const std::string &payload); + private: + std::string taskId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_MODIFYSECURITYIPSRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/PreCheckBeforeImportDataRequest.h b/rds/include/alibabacloud/rds/model/PreCheckBeforeImportDataRequest.h new file mode 100644 index 000000000..9b2a32f1a --- /dev/null +++ b/rds/include/alibabacloud/rds/model/PreCheckBeforeImportDataRequest.h @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_PRECHECKBEFOREIMPORTDATAREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_PRECHECKBEFOREIMPORTDATAREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT PreCheckBeforeImportDataRequest : public RdsRequest + { + + public: + PreCheckBeforeImportDataRequest(); + ~PreCheckBeforeImportDataRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getImportDataType()const; + void setImportDataType(const std::string& importDataType); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getSourceDatabaseDBNames()const; + void setSourceDatabaseDBNames(const std::string& sourceDatabaseDBNames); + std::string getSourceDatabaseIp()const; + void setSourceDatabaseIp(const std::string& sourceDatabaseIp); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getSourceDatabasePassword()const; + void setSourceDatabasePassword(const std::string& sourceDatabasePassword); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSourceDatabasePort()const; + void setSourceDatabasePort(const std::string& sourceDatabasePort); + std::string getSourceDatabaseUserName()const; + void setSourceDatabaseUserName(const std::string& sourceDatabaseUserName); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + + private: + long resourceOwnerId_; + std::string importDataType_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string ownerAccount_; + std::string sourceDatabaseDBNames_; + std::string sourceDatabaseIp_; + long ownerId_; + std::string sourceDatabasePassword_; + std::string accessKeyId_; + std::string sourceDatabasePort_; + std::string sourceDatabaseUserName_; + std::string dBInstanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_PRECHECKBEFOREIMPORTDATAREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/PreCheckBeforeImportDataResult.h b/rds/include/alibabacloud/rds/model/PreCheckBeforeImportDataResult.h new file mode 100644 index 000000000..7eceb54e1 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/PreCheckBeforeImportDataResult.h @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_PRECHECKBEFOREIMPORTDATARESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_PRECHECKBEFOREIMPORTDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT PreCheckBeforeImportDataResult : public ServiceResult + { + public: + + + PreCheckBeforeImportDataResult(); + explicit PreCheckBeforeImportDataResult(const std::string &payload); + ~PreCheckBeforeImportDataResult(); + std::string getPreCheckId()const; + void setPreCheckId(const std::string& preCheckId); + + protected: + void parse(const std::string &payload); + private: + std::string preCheckId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_PRECHECKBEFOREIMPORTDATARESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/PurgeDBInstanceLogRequest.h b/rds/include/alibabacloud/rds/model/PurgeDBInstanceLogRequest.h new file mode 100644 index 000000000..b86664eb7 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/PurgeDBInstanceLogRequest.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_PURGEDBINSTANCELOGREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_PURGEDBINSTANCELOGREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT PurgeDBInstanceLogRequest : public RdsRequest + { + + public: + PurgeDBInstanceLogRequest(); + ~PurgeDBInstanceLogRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_PURGEDBINSTANCELOGREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/PurgeDBInstanceLogResult.h b/rds/include/alibabacloud/rds/model/PurgeDBInstanceLogResult.h new file mode 100644 index 000000000..1e7270263 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/PurgeDBInstanceLogResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_PURGEDBINSTANCELOGRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_PURGEDBINSTANCELOGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT PurgeDBInstanceLogResult : public ServiceResult + { + public: + + + PurgeDBInstanceLogResult(); + explicit PurgeDBInstanceLogResult(const std::string &payload); + ~PurgeDBInstanceLogResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_PURGEDBINSTANCELOGRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/QueryPriceForBuyRequest.h b/rds/include/alibabacloud/rds/model/QueryPriceForBuyRequest.h new file mode 100644 index 000000000..2ee1f2d95 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/QueryPriceForBuyRequest.h @@ -0,0 +1,101 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_QUERYPRICEFORBUYREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_QUERYPRICEFORBUYREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT QueryPriceForBuyRequest : public RdsRequest + { + + public: + QueryPriceForBuyRequest(); + ~QueryPriceForBuyRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + int getDBInstanceStorage()const; + void setDBInstanceStorage(int dBInstanceStorage); + int getQuantity()const; + void setQuantity(int quantity); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getCommodityCode()const; + void setCommodityCode(const std::string& commodityCode); + std::string getEngineVersion()const; + void setEngineVersion(const std::string& engineVersion); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getUsedTime()const; + void setUsedTime(const std::string& usedTime); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getDBInstanceClass()const; + void setDBInstanceClass(const std::string& dBInstanceClass); + int getInstanceUsedType()const; + void setInstanceUsedType(int instanceUsedType); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getEngine()const; + void setEngine(const std::string& engine); + std::string getZoneId()const; + void setZoneId(const std::string& zoneId); + std::string getTimeType()const; + void setTimeType(const std::string& timeType); + std::string getPayType()const; + void setPayType(const std::string& payType); + std::string getOrderType()const; + void setOrderType(const std::string& orderType); + + private: + long resourceOwnerId_; + int dBInstanceStorage_; + int quantity_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string ownerAccount_; + std::string commodityCode_; + std::string engineVersion_; + long ownerId_; + std::string usedTime_; + std::string accessKeyId_; + std::string dBInstanceClass_; + int instanceUsedType_; + std::string regionId_; + std::string engine_; + std::string zoneId_; + std::string timeType_; + std::string payType_; + std::string orderType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_QUERYPRICEFORBUYREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/QueryPriceForBuyResult.h b/rds/include/alibabacloud/rds/model/QueryPriceForBuyResult.h new file mode 100644 index 000000000..393e1c24d --- /dev/null +++ b/rds/include/alibabacloud/rds/model/QueryPriceForBuyResult.h @@ -0,0 +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_RDS_MODEL_QUERYPRICEFORBUYRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_QUERYPRICEFORBUYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT QueryPriceForBuyResult : public ServiceResult + { + public: + struct PriceInfo + { + struct ActivityInfo + { + std::string errorCode; + std::string checkErrMsg; + std::string success; + }; + struct Coupon + { + std::string couponNo; + std::string description; + std::string isSelected; + std::string name; + }; + std::vector activityInfo; + float originalPrice; + std::string currency; + float discountPrice; + std::vector ruleIds; + float tradePrice; + std::vector coupons; + }; + struct Rule + { + std::string description; + long ruleId; + std::string name; + }; + + + QueryPriceForBuyResult(); + explicit QueryPriceForBuyResult(const std::string &payload); + ~QueryPriceForBuyResult(); + std::vector getRules()const; + void setRules(const std::vector& rules); + std::vector getPriceInfo()const; + void setPriceInfo(const std::vector& priceInfo); + + protected: + void parse(const std::string &payload); + private: + std::vector rules_; + std::vector priceInfo_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_QUERYPRICEFORBUYRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ReleaseInstancePublicConnectionRequest.h b/rds/include/alibabacloud/rds/model/ReleaseInstancePublicConnectionRequest.h new file mode 100644 index 000000000..12582c4e2 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ReleaseInstancePublicConnectionRequest.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_RELEASEINSTANCEPUBLICCONNECTIONREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_RELEASEINSTANCEPUBLICCONNECTIONREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ReleaseInstancePublicConnectionRequest : public RdsRequest + { + + public: + ReleaseInstancePublicConnectionRequest(); + ~ReleaseInstancePublicConnectionRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getCurrentConnectionString()const; + void setCurrentConnectionString(const std::string& currentConnectionString); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string currentConnectionString_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_RELEASEINSTANCEPUBLICCONNECTIONREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ReleaseInstancePublicConnectionResult.h b/rds/include/alibabacloud/rds/model/ReleaseInstancePublicConnectionResult.h new file mode 100644 index 000000000..ddef54e46 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ReleaseInstancePublicConnectionResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_RELEASEINSTANCEPUBLICCONNECTIONRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_RELEASEINSTANCEPUBLICCONNECTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ReleaseInstancePublicConnectionResult : public ServiceResult + { + public: + + + ReleaseInstancePublicConnectionResult(); + explicit ReleaseInstancePublicConnectionResult(const std::string &payload); + ~ReleaseInstancePublicConnectionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_RELEASEINSTANCEPUBLICCONNECTIONRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ReleaseReadWriteSplittingConnectionRequest.h b/rds/include/alibabacloud/rds/model/ReleaseReadWriteSplittingConnectionRequest.h new file mode 100644 index 000000000..5ca8ad810 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ReleaseReadWriteSplittingConnectionRequest.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_RELEASEREADWRITESPLITTINGCONNECTIONREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_RELEASEREADWRITESPLITTINGCONNECTIONREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ReleaseReadWriteSplittingConnectionRequest : public RdsRequest + { + + public: + ReleaseReadWriteSplittingConnectionRequest(); + ~ReleaseReadWriteSplittingConnectionRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_RELEASEREADWRITESPLITTINGCONNECTIONREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ReleaseReadWriteSplittingConnectionResult.h b/rds/include/alibabacloud/rds/model/ReleaseReadWriteSplittingConnectionResult.h new file mode 100644 index 000000000..ca1978cfc --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ReleaseReadWriteSplittingConnectionResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_RELEASEREADWRITESPLITTINGCONNECTIONRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_RELEASEREADWRITESPLITTINGCONNECTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ReleaseReadWriteSplittingConnectionResult : public ServiceResult + { + public: + + + ReleaseReadWriteSplittingConnectionResult(); + explicit ReleaseReadWriteSplittingConnectionResult(const std::string &payload); + ~ReleaseReadWriteSplittingConnectionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_RELEASEREADWRITESPLITTINGCONNECTIONRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ReleaseReplicaRequest.h b/rds/include/alibabacloud/rds/model/ReleaseReplicaRequest.h new file mode 100644 index 000000000..980afdbf1 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ReleaseReplicaRequest.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_RELEASEREPLICAREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_RELEASEREPLICAREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ReleaseReplicaRequest : public RdsRequest + { + + public: + ReleaseReplicaRequest(); + ~ReleaseReplicaRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getReplicaId()const; + void setReplicaId(const std::string& replicaId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string securityToken_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string replicaId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_RELEASEREPLICAREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ReleaseReplicaResult.h b/rds/include/alibabacloud/rds/model/ReleaseReplicaResult.h new file mode 100644 index 000000000..f9c7e5e48 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ReleaseReplicaResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_RELEASEREPLICARESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_RELEASEREPLICARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ReleaseReplicaResult : public ServiceResult + { + public: + + + ReleaseReplicaResult(); + explicit ReleaseReplicaResult(const std::string &payload); + ~ReleaseReplicaResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_RELEASEREPLICARESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/RemoveTagsFromResourceRequest.h b/rds/include/alibabacloud/rds/model/RemoveTagsFromResourceRequest.h new file mode 100644 index 000000000..59e798830 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/RemoveTagsFromResourceRequest.h @@ -0,0 +1,104 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_REMOVETAGSFROMRESOURCEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_REMOVETAGSFROMRESOURCEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT RemoveTagsFromResourceRequest : public RdsRequest + { + + public: + RemoveTagsFromResourceRequest(); + ~RemoveTagsFromResourceRequest(); + + std::string getTag4value()const; + void setTag4value(const std::string& tag4value); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getTag2key()const; + void setTag2key(const std::string& tag2key); + std::string getTag5key()const; + void setTag5key(const std::string& tag5key); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getTag3key()const; + void setTag3key(const std::string& tag3key); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getTag5value()const; + void setTag5value(const std::string& tag5value); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getTags()const; + void setTags(const std::string& tags); + std::string getTag1key()const; + void setTag1key(const std::string& tag1key); + std::string getTag1value()const; + void setTag1value(const std::string& tag1value); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getTag2value()const; + void setTag2value(const std::string& tag2value); + std::string getTag4key()const; + void setTag4key(const std::string& tag4key); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getTag3value()const; + void setTag3value(const std::string& tag3value); + std::string getProxyId()const; + void setProxyId(const std::string& proxyId); + + private: + std::string tag4value_; + long resourceOwnerId_; + std::string tag2key_; + std::string tag5key_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string ownerAccount_; + std::string tag3key_; + long ownerId_; + std::string tag5value_; + std::string accessKeyId_; + std::string tags_; + std::string tag1key_; + std::string tag1value_; + std::string regionId_; + std::string tag2value_; + std::string tag4key_; + std::string dBInstanceId_; + std::string tag3value_; + std::string proxyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_REMOVETAGSFROMRESOURCEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/RemoveTagsFromResourceResult.h b/rds/include/alibabacloud/rds/model/RemoveTagsFromResourceResult.h new file mode 100644 index 000000000..3a8eb4b8f --- /dev/null +++ b/rds/include/alibabacloud/rds/model/RemoveTagsFromResourceResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_REMOVETAGSFROMRESOURCERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_REMOVETAGSFROMRESOURCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT RemoveTagsFromResourceResult : public ServiceResult + { + public: + + + RemoveTagsFromResourceResult(); + explicit RemoveTagsFromResourceResult(const std::string &payload); + ~RemoveTagsFromResourceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_REMOVETAGSFROMRESOURCERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/RenewDBInstanceRequest.h b/rds/include/alibabacloud/rds/model/RenewDBInstanceRequest.h new file mode 100644 index 000000000..213820be4 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/RenewDBInstanceRequest.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_RENEWDBINSTANCEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_RENEWDBINSTANCEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT RenewDBInstanceRequest : public RdsRequest + { + + public: + RenewDBInstanceRequest(); + ~RenewDBInstanceRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getPeriod()const; + void setPeriod(const std::string& period); + std::string getAutoPay()const; + void setAutoPay(const std::string& autoPay); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string period_; + std::string autoPay_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_RENEWDBINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/RenewDBInstanceResult.h b/rds/include/alibabacloud/rds/model/RenewDBInstanceResult.h new file mode 100644 index 000000000..7630f2ea0 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/RenewDBInstanceResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_RENEWDBINSTANCERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_RENEWDBINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT RenewDBInstanceResult : public ServiceResult + { + public: + + + RenewDBInstanceResult(); + explicit RenewDBInstanceResult(const std::string &payload); + ~RenewDBInstanceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_RENEWDBINSTANCERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/RenewInstanceRequest.h b/rds/include/alibabacloud/rds/model/RenewInstanceRequest.h new file mode 100644 index 000000000..a9e140937 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/RenewInstanceRequest.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_RENEWINSTANCEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_RENEWINSTANCEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT RenewInstanceRequest : public RdsRequest + { + + public: + RenewInstanceRequest(); + ~RenewInstanceRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getPeriod()const; + void setPeriod(const std::string& period); + std::string getAutoPay()const; + void setAutoPay(const std::string& autoPay); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getBusinessInfo()const; + void setBusinessInfo(const std::string& businessInfo); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string period_; + std::string autoPay_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string dBInstanceId_; + long ownerId_; + std::string businessInfo_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_RENEWINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/RenewInstanceResult.h b/rds/include/alibabacloud/rds/model/RenewInstanceResult.h new file mode 100644 index 000000000..dae3d0295 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/RenewInstanceResult.h @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_RENEWINSTANCERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_RENEWINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT RenewInstanceResult : public ServiceResult + { + public: + + + RenewInstanceResult(); + explicit RenewInstanceResult(const std::string &payload); + ~RenewInstanceResult(); + long getOrderId()const; + void setOrderId(long orderId); + + protected: + void parse(const std::string &payload); + private: + long orderId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_RENEWINSTANCERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/RequestServiceOfCloudDBARequest.h b/rds/include/alibabacloud/rds/model/RequestServiceOfCloudDBARequest.h new file mode 100644 index 000000000..d32bf1ab1 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/RequestServiceOfCloudDBARequest.h @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_REQUESTSERVICEOFCLOUDDBAREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_REQUESTSERVICEOFCLOUDDBAREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT RequestServiceOfCloudDBARequest : public RdsRequest + { + + public: + RequestServiceOfCloudDBARequest(); + ~RequestServiceOfCloudDBARequest(); + + std::string getServiceRequestParam()const; + void setServiceRequestParam(const std::string& serviceRequestParam); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getServiceRequestType()const; + void setServiceRequestType(const std::string& serviceRequestType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string serviceRequestParam_; + std::string dBInstanceId_; + std::string serviceRequestType_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_REQUESTSERVICEOFCLOUDDBAREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/RequestServiceOfCloudDBAResult.h b/rds/include/alibabacloud/rds/model/RequestServiceOfCloudDBAResult.h new file mode 100644 index 000000000..f500dcb1e --- /dev/null +++ b/rds/include/alibabacloud/rds/model/RequestServiceOfCloudDBAResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_REQUESTSERVICEOFCLOUDDBARESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_REQUESTSERVICEOFCLOUDDBARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT RequestServiceOfCloudDBAResult : public ServiceResult + { + public: + + + RequestServiceOfCloudDBAResult(); + explicit RequestServiceOfCloudDBAResult(const std::string &payload); + ~RequestServiceOfCloudDBAResult(); + std::string getAttrData()const; + void setAttrData(const std::string& attrData); + std::string getListData()const; + void setListData(const std::string& listData); + + protected: + void parse(const std::string &payload); + private: + std::string attrData_; + std::string listData_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_REQUESTSERVICEOFCLOUDDBARESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ResetAccountForPGRequest.h b/rds/include/alibabacloud/rds/model/ResetAccountForPGRequest.h new file mode 100644 index 000000000..b3cf6e2a7 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ResetAccountForPGRequest.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_RESETACCOUNTFORPGREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_RESETACCOUNTFORPGREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ResetAccountForPGRequest : public RdsRequest + { + + public: + ResetAccountForPGRequest(); + ~ResetAccountForPGRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccountPassword()const; + void setAccountPassword(const std::string& accountPassword); + std::string getAccountName()const; + void setAccountName(const std::string& accountName); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string accountPassword_; + std::string accountName_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_RESETACCOUNTFORPGREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ResetAccountForPGResult.h b/rds/include/alibabacloud/rds/model/ResetAccountForPGResult.h new file mode 100644 index 000000000..b2327867c --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ResetAccountForPGResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_RESETACCOUNTFORPGRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_RESETACCOUNTFORPGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ResetAccountForPGResult : public ServiceResult + { + public: + + + ResetAccountForPGResult(); + explicit ResetAccountForPGResult(const std::string &payload); + ~ResetAccountForPGResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_RESETACCOUNTFORPGRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ResetAccountPasswordRequest.h b/rds/include/alibabacloud/rds/model/ResetAccountPasswordRequest.h new file mode 100644 index 000000000..a155de46f --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ResetAccountPasswordRequest.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_RESETACCOUNTPASSWORDREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_RESETACCOUNTPASSWORDREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ResetAccountPasswordRequest : public RdsRequest + { + + public: + ResetAccountPasswordRequest(); + ~ResetAccountPasswordRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccountPassword()const; + void setAccountPassword(const std::string& accountPassword); + std::string getAccountName()const; + void setAccountName(const std::string& accountName); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string accountPassword_; + std::string accountName_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_RESETACCOUNTPASSWORDREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ResetAccountPasswordResult.h b/rds/include/alibabacloud/rds/model/ResetAccountPasswordResult.h new file mode 100644 index 000000000..380c523a3 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ResetAccountPasswordResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_RESETACCOUNTPASSWORDRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_RESETACCOUNTPASSWORDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ResetAccountPasswordResult : public ServiceResult + { + public: + + + ResetAccountPasswordResult(); + explicit ResetAccountPasswordResult(const std::string &payload); + ~ResetAccountPasswordResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_RESETACCOUNTPASSWORDRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ResetAccountRequest.h b/rds/include/alibabacloud/rds/model/ResetAccountRequest.h new file mode 100644 index 000000000..04ebfc8b6 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ResetAccountRequest.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_RESETACCOUNTREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_RESETACCOUNTREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ResetAccountRequest : public RdsRequest + { + + public: + ResetAccountRequest(); + ~ResetAccountRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccountPassword()const; + void setAccountPassword(const std::string& accountPassword); + std::string getAccountName()const; + void setAccountName(const std::string& accountName); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string accountPassword_; + std::string accountName_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_RESETACCOUNTREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/ResetAccountResult.h b/rds/include/alibabacloud/rds/model/ResetAccountResult.h new file mode 100644 index 000000000..077e5e05e --- /dev/null +++ b/rds/include/alibabacloud/rds/model/ResetAccountResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_RESETACCOUNTRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_RESETACCOUNTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT ResetAccountResult : public ServiceResult + { + public: + + + ResetAccountResult(); + explicit ResetAccountResult(const std::string &payload); + ~ResetAccountResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_RESETACCOUNTRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/RestartDBInstanceRequest.h b/rds/include/alibabacloud/rds/model/RestartDBInstanceRequest.h new file mode 100644 index 000000000..76208d4c9 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/RestartDBInstanceRequest.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_RESTARTDBINSTANCEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_RESTARTDBINSTANCEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT RestartDBInstanceRequest : public RdsRequest + { + + public: + RestartDBInstanceRequest(); + ~RestartDBInstanceRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_RESTARTDBINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/RestartDBInstanceResult.h b/rds/include/alibabacloud/rds/model/RestartDBInstanceResult.h new file mode 100644 index 000000000..3654277fb --- /dev/null +++ b/rds/include/alibabacloud/rds/model/RestartDBInstanceResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_RESTARTDBINSTANCERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_RESTARTDBINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT RestartDBInstanceResult : public ServiceResult + { + public: + + + RestartDBInstanceResult(); + explicit RestartDBInstanceResult(const std::string &payload); + ~RestartDBInstanceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_RESTARTDBINSTANCERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/RestoreDBInstanceRequest.h b/rds/include/alibabacloud/rds/model/RestoreDBInstanceRequest.h new file mode 100644 index 000000000..fbcb26164 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/RestoreDBInstanceRequest.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_RESTOREDBINSTANCEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_RESTOREDBINSTANCEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT RestoreDBInstanceRequest : public RdsRequest + { + + public: + RestoreDBInstanceRequest(); + ~RestoreDBInstanceRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getBackupId()const; + void setBackupId(const std::string& backupId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string backupId_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_RESTOREDBINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/RestoreDBInstanceResult.h b/rds/include/alibabacloud/rds/model/RestoreDBInstanceResult.h new file mode 100644 index 000000000..b40f87329 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/RestoreDBInstanceResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_RESTOREDBINSTANCERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_RESTOREDBINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT RestoreDBInstanceResult : public ServiceResult + { + public: + + + RestoreDBInstanceResult(); + explicit RestoreDBInstanceResult(const std::string &payload); + ~RestoreDBInstanceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_RESTOREDBINSTANCERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/RevokeAccountPrivilegeRequest.h b/rds/include/alibabacloud/rds/model/RevokeAccountPrivilegeRequest.h new file mode 100644 index 000000000..e85d34739 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/RevokeAccountPrivilegeRequest.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_REVOKEACCOUNTPRIVILEGEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_REVOKEACCOUNTPRIVILEGEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT RevokeAccountPrivilegeRequest : public RdsRequest + { + + public: + RevokeAccountPrivilegeRequest(); + ~RevokeAccountPrivilegeRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccountName()const; + void setAccountName(const std::string& accountName); + std::string getDBName()const; + void setDBName(const std::string& dBName); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string accountName_; + std::string dBName_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_REVOKEACCOUNTPRIVILEGEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/RevokeAccountPrivilegeResult.h b/rds/include/alibabacloud/rds/model/RevokeAccountPrivilegeResult.h new file mode 100644 index 000000000..85a2da773 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/RevokeAccountPrivilegeResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_REVOKEACCOUNTPRIVILEGERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_REVOKEACCOUNTPRIVILEGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT RevokeAccountPrivilegeResult : public ServiceResult + { + public: + + + RevokeAccountPrivilegeResult(); + explicit RevokeAccountPrivilegeResult(const std::string &payload); + ~RevokeAccountPrivilegeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_REVOKEACCOUNTPRIVILEGERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/RevokeOperatorPermissionRequest.h b/rds/include/alibabacloud/rds/model/RevokeOperatorPermissionRequest.h new file mode 100644 index 000000000..04484c222 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/RevokeOperatorPermissionRequest.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_REVOKEOPERATORPERMISSIONREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_REVOKEOPERATORPERMISSIONREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT RevokeOperatorPermissionRequest : public RdsRequest + { + + public: + RevokeOperatorPermissionRequest(); + ~RevokeOperatorPermissionRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_REVOKEOPERATORPERMISSIONREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/RevokeOperatorPermissionResult.h b/rds/include/alibabacloud/rds/model/RevokeOperatorPermissionResult.h new file mode 100644 index 000000000..cfecaa182 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/RevokeOperatorPermissionResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_REVOKEOPERATORPERMISSIONRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_REVOKEOPERATORPERMISSIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT RevokeOperatorPermissionResult : public ServiceResult + { + public: + + + RevokeOperatorPermissionResult(); + explicit RevokeOperatorPermissionResult(const std::string &payload); + ~RevokeOperatorPermissionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_REVOKEOPERATORPERMISSIONRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/StartArchiveSQLLogRequest.h b/rds/include/alibabacloud/rds/model/StartArchiveSQLLogRequest.h new file mode 100644 index 000000000..49e6a4416 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/StartArchiveSQLLogRequest.h @@ -0,0 +1,77 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_STARTARCHIVESQLLOGREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_STARTARCHIVESQLLOGREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT StartArchiveSQLLogRequest : public RdsRequest + { + + public: + StartArchiveSQLLogRequest(); + ~StartArchiveSQLLogRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDatabase()const; + void setDatabase(const std::string& database); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getUser()const; + void setUser(const std::string& user); + std::string getQueryKeywords()const; + void setQueryKeywords(const std::string& queryKeywords); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string database_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string endTime_; + std::string dBInstanceId_; + std::string startTime_; + long ownerId_; + std::string user_; + std::string queryKeywords_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_STARTARCHIVESQLLOGREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/StartArchiveSQLLogResult.h b/rds/include/alibabacloud/rds/model/StartArchiveSQLLogResult.h new file mode 100644 index 000000000..f41cf2be2 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/StartArchiveSQLLogResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_STARTARCHIVESQLLOGRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_STARTARCHIVESQLLOGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT StartArchiveSQLLogResult : public ServiceResult + { + public: + + + StartArchiveSQLLogResult(); + explicit StartArchiveSQLLogResult(const std::string &payload); + ~StartArchiveSQLLogResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_STARTARCHIVESQLLOGRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/StartDBInstanceDiagnoseRequest.h b/rds/include/alibabacloud/rds/model/StartDBInstanceDiagnoseRequest.h new file mode 100644 index 000000000..c5996aa34 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/StartDBInstanceDiagnoseRequest.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_STARTDBINSTANCEDIAGNOSEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_STARTDBINSTANCEDIAGNOSEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT StartDBInstanceDiagnoseRequest : public RdsRequest + { + + public: + StartDBInstanceDiagnoseRequest(); + ~StartDBInstanceDiagnoseRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getProxyId()const; + void setProxyId(const std::string& proxyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + std::string proxyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_STARTDBINSTANCEDIAGNOSEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/StartDBInstanceDiagnoseResult.h b/rds/include/alibabacloud/rds/model/StartDBInstanceDiagnoseResult.h new file mode 100644 index 000000000..92566166d --- /dev/null +++ b/rds/include/alibabacloud/rds/model/StartDBInstanceDiagnoseResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_STARTDBINSTANCEDIAGNOSERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_STARTDBINSTANCEDIAGNOSERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT StartDBInstanceDiagnoseResult : public ServiceResult + { + public: + + + StartDBInstanceDiagnoseResult(); + explicit StartDBInstanceDiagnoseResult(const std::string &payload); + ~StartDBInstanceDiagnoseResult(); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getDBInstanceName()const; + void setDBInstanceName(const std::string& dBInstanceName); + + protected: + void parse(const std::string &payload); + private: + std::string dBInstanceId_; + std::string dBInstanceName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_STARTDBINSTANCEDIAGNOSERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/StopSyncingRequest.h b/rds/include/alibabacloud/rds/model/StopSyncingRequest.h new file mode 100644 index 000000000..0c0e59072 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/StopSyncingRequest.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_STOPSYNCINGREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_STOPSYNCINGREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT StopSyncingRequest : public RdsRequest + { + + public: + StopSyncingRequest(); + ~StopSyncingRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + int getImportId()const; + void setImportId(int importId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + int importId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_STOPSYNCINGREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/StopSyncingResult.h b/rds/include/alibabacloud/rds/model/StopSyncingResult.h new file mode 100644 index 000000000..8046140a8 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/StopSyncingResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_STOPSYNCINGRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_STOPSYNCINGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT StopSyncingResult : public ServiceResult + { + public: + + + StopSyncingResult(); + explicit StopSyncingResult(const std::string &payload); + ~StopSyncingResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_STOPSYNCINGRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/SwitchDBInstanceHARequest.h b/rds/include/alibabacloud/rds/model/SwitchDBInstanceHARequest.h new file mode 100644 index 000000000..37d6698bc --- /dev/null +++ b/rds/include/alibabacloud/rds/model/SwitchDBInstanceHARequest.h @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_SWITCHDBINSTANCEHAREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_SWITCHDBINSTANCEHAREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT SwitchDBInstanceHARequest : public RdsRequest + { + + public: + SwitchDBInstanceHARequest(); + ~SwitchDBInstanceHARequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getEffectiveTime()const; + void setEffectiveTime(const std::string& effectiveTime); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getForce()const; + void setForce(const std::string& force); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getNodeId()const; + void setNodeId(const std::string& nodeId); + std::string getOperation()const; + void setOperation(const std::string& operation); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string effectiveTime_; + std::string ownerAccount_; + std::string dBInstanceId_; + std::string force_; + long ownerId_; + std::string nodeId_; + std::string operation_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_SWITCHDBINSTANCEHAREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/SwitchDBInstanceHAResult.h b/rds/include/alibabacloud/rds/model/SwitchDBInstanceHAResult.h new file mode 100644 index 000000000..e09944fe1 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/SwitchDBInstanceHAResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_SWITCHDBINSTANCEHARESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_SWITCHDBINSTANCEHARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT SwitchDBInstanceHAResult : public ServiceResult + { + public: + + + SwitchDBInstanceHAResult(); + explicit SwitchDBInstanceHAResult(const std::string &payload); + ~SwitchDBInstanceHAResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_SWITCHDBINSTANCEHARESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/SwitchDBInstanceNetTypeRequest.h b/rds/include/alibabacloud/rds/model/SwitchDBInstanceNetTypeRequest.h new file mode 100644 index 000000000..6603e09b0 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/SwitchDBInstanceNetTypeRequest.h @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_SWITCHDBINSTANCENETTYPEREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_SWITCHDBINSTANCENETTYPEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT SwitchDBInstanceNetTypeRequest : public RdsRequest + { + + public: + SwitchDBInstanceNetTypeRequest(); + ~SwitchDBInstanceNetTypeRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getConnectionStringPrefix()const; + void setConnectionStringPrefix(const std::string& connectionStringPrefix); + std::string getConnectionStringType()const; + void setConnectionStringType(const std::string& connectionStringType); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getPort()const; + void setPort(const std::string& port); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string connectionStringPrefix_; + std::string connectionStringType_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string port_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_SWITCHDBINSTANCENETTYPEREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/SwitchDBInstanceNetTypeResult.h b/rds/include/alibabacloud/rds/model/SwitchDBInstanceNetTypeResult.h new file mode 100644 index 000000000..1a4d28d1d --- /dev/null +++ b/rds/include/alibabacloud/rds/model/SwitchDBInstanceNetTypeResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_SWITCHDBINSTANCENETTYPERESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_SWITCHDBINSTANCENETTYPERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT SwitchDBInstanceNetTypeResult : public ServiceResult + { + public: + + + SwitchDBInstanceNetTypeResult(); + explicit SwitchDBInstanceNetTypeResult(const std::string &payload); + ~SwitchDBInstanceNetTypeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_SWITCHDBINSTANCENETTYPERESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/UpgradeDBInstanceEngineVersionRequest.h b/rds/include/alibabacloud/rds/model/UpgradeDBInstanceEngineVersionRequest.h new file mode 100644 index 000000000..a80fcb2f0 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/UpgradeDBInstanceEngineVersionRequest.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_UPGRADEDBINSTANCEENGINEVERSIONREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_UPGRADEDBINSTANCEENGINEVERSIONREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT UpgradeDBInstanceEngineVersionRequest : public RdsRequest + { + + public: + UpgradeDBInstanceEngineVersionRequest(); + ~UpgradeDBInstanceEngineVersionRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getEffectiveTime()const; + void setEffectiveTime(const std::string& effectiveTime); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getEngineVersion()const; + void setEngineVersion(const std::string& engineVersion); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string effectiveTime_; + std::string ownerAccount_; + std::string dBInstanceId_; + std::string engineVersion_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_UPGRADEDBINSTANCEENGINEVERSIONREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/UpgradeDBInstanceEngineVersionResult.h b/rds/include/alibabacloud/rds/model/UpgradeDBInstanceEngineVersionResult.h new file mode 100644 index 000000000..c1aaec2cf --- /dev/null +++ b/rds/include/alibabacloud/rds/model/UpgradeDBInstanceEngineVersionResult.h @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_UPGRADEDBINSTANCEENGINEVERSIONRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_UPGRADEDBINSTANCEENGINEVERSIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT UpgradeDBInstanceEngineVersionResult : public ServiceResult + { + public: + + + UpgradeDBInstanceEngineVersionResult(); + explicit UpgradeDBInstanceEngineVersionResult(const std::string &payload); + ~UpgradeDBInstanceEngineVersionResult(); + std::string getTaskId()const; + void setTaskId(const std::string& taskId); + + protected: + void parse(const std::string &payload); + private: + std::string taskId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_UPGRADEDBINSTANCEENGINEVERSIONRESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/UpgradeDBInstanceNetWorkInfoRequest.h b/rds/include/alibabacloud/rds/model/UpgradeDBInstanceNetWorkInfoRequest.h new file mode 100644 index 000000000..7c787d7da --- /dev/null +++ b/rds/include/alibabacloud/rds/model/UpgradeDBInstanceNetWorkInfoRequest.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_UPGRADEDBINSTANCENETWORKINFOREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_UPGRADEDBINSTANCENETWORKINFOREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT UpgradeDBInstanceNetWorkInfoRequest : public RdsRequest + { + + public: + UpgradeDBInstanceNetWorkInfoRequest(); + ~UpgradeDBInstanceNetWorkInfoRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getConnectionString()const; + void setConnectionString(const std::string& connectionString); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string connectionString_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_UPGRADEDBINSTANCENETWORKINFOREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/UpgradeDBInstanceNetWorkInfoResult.h b/rds/include/alibabacloud/rds/model/UpgradeDBInstanceNetWorkInfoResult.h new file mode 100644 index 000000000..b620c859c --- /dev/null +++ b/rds/include/alibabacloud/rds/model/UpgradeDBInstanceNetWorkInfoResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_UPGRADEDBINSTANCENETWORKINFORESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_UPGRADEDBINSTANCENETWORKINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT UpgradeDBInstanceNetWorkInfoResult : public ServiceResult + { + public: + + + UpgradeDBInstanceNetWorkInfoResult(); + explicit UpgradeDBInstanceNetWorkInfoResult(const std::string &payload); + ~UpgradeDBInstanceNetWorkInfoResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_UPGRADEDBINSTANCENETWORKINFORESULT_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/UpgradeDBInstanceNetworkRequest.h b/rds/include/alibabacloud/rds/model/UpgradeDBInstanceNetworkRequest.h new file mode 100644 index 000000000..590e3f74f --- /dev/null +++ b/rds/include/alibabacloud/rds/model/UpgradeDBInstanceNetworkRequest.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_UPGRADEDBINSTANCENETWORKREQUEST_H_ +#define ALIBABACLOUD_RDS_MODEL_UPGRADEDBINSTANCENETWORKREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT UpgradeDBInstanceNetworkRequest : public RdsRequest + { + + public: + UpgradeDBInstanceNetworkRequest(); + ~UpgradeDBInstanceNetworkRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getConnectionString()const; + void setConnectionString(const std::string& connectionString); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string connectionString_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_UPGRADEDBINSTANCENETWORKREQUEST_H_ \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/UpgradeDBInstanceNetworkResult.h b/rds/include/alibabacloud/rds/model/UpgradeDBInstanceNetworkResult.h new file mode 100644 index 000000000..f0cc27075 --- /dev/null +++ b/rds/include/alibabacloud/rds/model/UpgradeDBInstanceNetworkResult.h @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RDS_MODEL_UPGRADEDBINSTANCENETWORKRESULT_H_ +#define ALIBABACLOUD_RDS_MODEL_UPGRADEDBINSTANCENETWORKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Rds + { + namespace Model + { + class ALIBABACLOUD_RDS_EXPORT UpgradeDBInstanceNetworkResult : public ServiceResult + { + public: + + + UpgradeDBInstanceNetworkResult(); + explicit UpgradeDBInstanceNetworkResult(const std::string &payload); + ~UpgradeDBInstanceNetworkResult(); + std::string getDBInstanceName()const; + void setDBInstanceName(const std::string& dBInstanceName); + + protected: + void parse(const std::string &payload); + private: + std::string dBInstanceName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RDS_MODEL_UPGRADEDBINSTANCENETWORKRESULT_H_ \ No newline at end of file diff --git a/rds/src/RdsClient.cc b/rds/src/RdsClient.cc new file mode 100644 index 000000000..e2d7f13dd --- /dev/null +++ b/rds/src/RdsClient.cc @@ -0,0 +1,6145 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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; +using namespace AlibabaCloud::Location; +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +RdsClient::RdsClient(const Credentials &credentials, const ClientConfiguration &configuration) : + RpcServiceClient(std::make_shared(credentials), configuration) +{ + auto locationClient = std::make_shared(credentials, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), "rds"); +} + +RdsClient::RdsClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : + RpcServiceClient(credentialsProvider, configuration) +{ + auto locationClient = std::make_shared(credentialsProvider, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), "rds"); +} + +RdsClient::RdsClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : + RpcServiceClient(std::make_shared(accessKeyId, accessKeySecret), configuration) +{ + auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), "rds"); +} + +RdsClient::~RdsClient() +{} + +CoreClient::EndpointOutcome RdsClient::endpoint()const +{ + if(!configuration().endpoint().empty()) + return CoreClient::EndpointOutcome(configuration().endpoint()); + + auto endpoint = endpointProvider_->getEndpoint(); + + if (endpoint.empty()) + return CoreClient::EndpointOutcome(Error("InvalidEndpoint","")); + else + return CoreClient::EndpointOutcome(endpoint); +} + +RdsClient::CreateMigrateTaskOutcome RdsClient::createMigrateTask(const CreateMigrateTaskRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return CreateMigrateTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateMigrateTaskOutcome(CreateMigrateTaskResult(outcome.result())); + else + return CreateMigrateTaskOutcome(outcome.error()); +} + +void RdsClient::createMigrateTaskAsync(const CreateMigrateTaskRequest& request, const CreateMigrateTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createMigrateTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::CreateMigrateTaskOutcomeCallable RdsClient::createMigrateTaskCallable(const CreateMigrateTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createMigrateTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::CheckRecoveryConditionsOutcome RdsClient::checkRecoveryConditions(const CheckRecoveryConditionsRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return CheckRecoveryConditionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CheckRecoveryConditionsOutcome(CheckRecoveryConditionsResult(outcome.result())); + else + return CheckRecoveryConditionsOutcome(outcome.error()); +} + +void RdsClient::checkRecoveryConditionsAsync(const CheckRecoveryConditionsRequest& request, const CheckRecoveryConditionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, checkRecoveryConditions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::CheckRecoveryConditionsOutcomeCallable RdsClient::checkRecoveryConditionsCallable(const CheckRecoveryConditionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->checkRecoveryConditions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::LoginDBInstancefromCloudDBAOutcome RdsClient::loginDBInstancefromCloudDBA(const LoginDBInstancefromCloudDBARequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return LoginDBInstancefromCloudDBAOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return LoginDBInstancefromCloudDBAOutcome(LoginDBInstancefromCloudDBAResult(outcome.result())); + else + return LoginDBInstancefromCloudDBAOutcome(outcome.error()); +} + +void RdsClient::loginDBInstancefromCloudDBAAsync(const LoginDBInstancefromCloudDBARequest& request, const LoginDBInstancefromCloudDBAAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, loginDBInstancefromCloudDBA(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::LoginDBInstancefromCloudDBAOutcomeCallable RdsClient::loginDBInstancefromCloudDBACallable(const LoginDBInstancefromCloudDBARequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->loginDBInstancefromCloudDBA(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DeleteBackupOutcome RdsClient::deleteBackup(const DeleteBackupRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteBackupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteBackupOutcome(DeleteBackupResult(outcome.result())); + else + return DeleteBackupOutcome(outcome.error()); +} + +void RdsClient::deleteBackupAsync(const DeleteBackupRequest& request, const DeleteBackupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteBackup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DeleteBackupOutcomeCallable RdsClient::deleteBackupCallable(const DeleteBackupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteBackup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeDatabasesOutcome RdsClient::describeDatabases(const DescribeDatabasesRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDatabasesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDatabasesOutcome(DescribeDatabasesResult(outcome.result())); + else + return DescribeDatabasesOutcome(outcome.error()); +} + +void RdsClient::describeDatabasesAsync(const DescribeDatabasesRequest& request, const DescribeDatabasesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDatabases(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeDatabasesOutcomeCallable RdsClient::describeDatabasesCallable(const DescribeDatabasesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDatabases(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeDBInstancesByExpireTimeOutcome RdsClient::describeDBInstancesByExpireTime(const DescribeDBInstancesByExpireTimeRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDBInstancesByExpireTimeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDBInstancesByExpireTimeOutcome(DescribeDBInstancesByExpireTimeResult(outcome.result())); + else + return DescribeDBInstancesByExpireTimeOutcome(outcome.error()); +} + +void RdsClient::describeDBInstancesByExpireTimeAsync(const DescribeDBInstancesByExpireTimeRequest& request, const DescribeDBInstancesByExpireTimeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDBInstancesByExpireTime(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeDBInstancesByExpireTimeOutcomeCallable RdsClient::describeDBInstancesByExpireTimeCallable(const DescribeDBInstancesByExpireTimeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDBInstancesByExpireTime(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::SwitchDBInstanceNetTypeOutcome RdsClient::switchDBInstanceNetType(const SwitchDBInstanceNetTypeRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return SwitchDBInstanceNetTypeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SwitchDBInstanceNetTypeOutcome(SwitchDBInstanceNetTypeResult(outcome.result())); + else + return SwitchDBInstanceNetTypeOutcome(outcome.error()); +} + +void RdsClient::switchDBInstanceNetTypeAsync(const SwitchDBInstanceNetTypeRequest& request, const SwitchDBInstanceNetTypeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, switchDBInstanceNetType(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::SwitchDBInstanceNetTypeOutcomeCallable RdsClient::switchDBInstanceNetTypeCallable(const SwitchDBInstanceNetTypeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->switchDBInstanceNetType(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeDBInstanceMonitorOutcome RdsClient::describeDBInstanceMonitor(const DescribeDBInstanceMonitorRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDBInstanceMonitorOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDBInstanceMonitorOutcome(DescribeDBInstanceMonitorResult(outcome.result())); + else + return DescribeDBInstanceMonitorOutcome(outcome.error()); +} + +void RdsClient::describeDBInstanceMonitorAsync(const DescribeDBInstanceMonitorRequest& request, const DescribeDBInstanceMonitorAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDBInstanceMonitor(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeDBInstanceMonitorOutcomeCallable RdsClient::describeDBInstanceMonitorCallable(const DescribeDBInstanceMonitorRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDBInstanceMonitor(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::CreateReadOnlyDBInstanceOutcome RdsClient::createReadOnlyDBInstance(const CreateReadOnlyDBInstanceRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return CreateReadOnlyDBInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateReadOnlyDBInstanceOutcome(CreateReadOnlyDBInstanceResult(outcome.result())); + else + return CreateReadOnlyDBInstanceOutcome(outcome.error()); +} + +void RdsClient::createReadOnlyDBInstanceAsync(const CreateReadOnlyDBInstanceRequest& request, const CreateReadOnlyDBInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createReadOnlyDBInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::CreateReadOnlyDBInstanceOutcomeCallable RdsClient::createReadOnlyDBInstanceCallable(const CreateReadOnlyDBInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createReadOnlyDBInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeDBInstanceHAConfigOutcome RdsClient::describeDBInstanceHAConfig(const DescribeDBInstanceHAConfigRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDBInstanceHAConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDBInstanceHAConfigOutcome(DescribeDBInstanceHAConfigResult(outcome.result())); + else + return DescribeDBInstanceHAConfigOutcome(outcome.error()); +} + +void RdsClient::describeDBInstanceHAConfigAsync(const DescribeDBInstanceHAConfigRequest& request, const DescribeDBInstanceHAConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDBInstanceHAConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeDBInstanceHAConfigOutcomeCallable RdsClient::describeDBInstanceHAConfigCallable(const DescribeDBInstanceHAConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDBInstanceHAConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::ModifyAccountDescriptionOutcome RdsClient::modifyAccountDescription(const ModifyAccountDescriptionRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyAccountDescriptionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyAccountDescriptionOutcome(ModifyAccountDescriptionResult(outcome.result())); + else + return ModifyAccountDescriptionOutcome(outcome.error()); +} + +void RdsClient::modifyAccountDescriptionAsync(const ModifyAccountDescriptionRequest& request, const ModifyAccountDescriptionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyAccountDescription(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::ModifyAccountDescriptionOutcomeCallable RdsClient::modifyAccountDescriptionCallable(const ModifyAccountDescriptionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyAccountDescription(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeOssDownloadsOutcome RdsClient::describeOssDownloads(const DescribeOssDownloadsRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeOssDownloadsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeOssDownloadsOutcome(DescribeOssDownloadsResult(outcome.result())); + else + return DescribeOssDownloadsOutcome(outcome.error()); +} + +void RdsClient::describeOssDownloadsAsync(const DescribeOssDownloadsRequest& request, const DescribeOssDownloadsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeOssDownloads(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeOssDownloadsOutcomeCallable RdsClient::describeOssDownloadsCallable(const DescribeOssDownloadsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeOssDownloads(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::ModifyParameterOutcome RdsClient::modifyParameter(const ModifyParameterRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyParameterOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyParameterOutcome(ModifyParameterResult(outcome.result())); + else + return ModifyParameterOutcome(outcome.error()); +} + +void RdsClient::modifyParameterAsync(const ModifyParameterRequest& request, const ModifyParameterAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyParameter(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::ModifyParameterOutcomeCallable RdsClient::modifyParameterCallable(const ModifyParameterRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyParameter(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::ReleaseReplicaOutcome RdsClient::releaseReplica(const ReleaseReplicaRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ReleaseReplicaOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ReleaseReplicaOutcome(ReleaseReplicaResult(outcome.result())); + else + return ReleaseReplicaOutcome(outcome.error()); +} + +void RdsClient::releaseReplicaAsync(const ReleaseReplicaRequest& request, const ReleaseReplicaAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, releaseReplica(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::ReleaseReplicaOutcomeCallable RdsClient::releaseReplicaCallable(const ReleaseReplicaRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->releaseReplica(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::UpgradeDBInstanceEngineVersionOutcome RdsClient::upgradeDBInstanceEngineVersion(const UpgradeDBInstanceEngineVersionRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return UpgradeDBInstanceEngineVersionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpgradeDBInstanceEngineVersionOutcome(UpgradeDBInstanceEngineVersionResult(outcome.result())); + else + return UpgradeDBInstanceEngineVersionOutcome(outcome.error()); +} + +void RdsClient::upgradeDBInstanceEngineVersionAsync(const UpgradeDBInstanceEngineVersionRequest& request, const UpgradeDBInstanceEngineVersionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, upgradeDBInstanceEngineVersion(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::UpgradeDBInstanceEngineVersionOutcomeCallable RdsClient::upgradeDBInstanceEngineVersionCallable(const UpgradeDBInstanceEngineVersionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->upgradeDBInstanceEngineVersion(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::ModifyDBInstanceConnectionStringOutcome RdsClient::modifyDBInstanceConnectionString(const ModifyDBInstanceConnectionStringRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDBInstanceConnectionStringOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDBInstanceConnectionStringOutcome(ModifyDBInstanceConnectionStringResult(outcome.result())); + else + return ModifyDBInstanceConnectionStringOutcome(outcome.error()); +} + +void RdsClient::modifyDBInstanceConnectionStringAsync(const ModifyDBInstanceConnectionStringRequest& request, const ModifyDBInstanceConnectionStringAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDBInstanceConnectionString(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::ModifyDBInstanceConnectionStringOutcomeCallable RdsClient::modifyDBInstanceConnectionStringCallable(const ModifyDBInstanceConnectionStringRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDBInstanceConnectionString(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::StopSyncingOutcome RdsClient::stopSyncing(const StopSyncingRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return StopSyncingOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StopSyncingOutcome(StopSyncingResult(outcome.result())); + else + return StopSyncingOutcome(outcome.error()); +} + +void RdsClient::stopSyncingAsync(const StopSyncingRequest& request, const StopSyncingAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, stopSyncing(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::StopSyncingOutcomeCallable RdsClient::stopSyncingCallable(const StopSyncingRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->stopSyncing(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::CheckAccountNameAvailableOutcome RdsClient::checkAccountNameAvailable(const CheckAccountNameAvailableRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return CheckAccountNameAvailableOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CheckAccountNameAvailableOutcome(CheckAccountNameAvailableResult(outcome.result())); + else + return CheckAccountNameAvailableOutcome(outcome.error()); +} + +void RdsClient::checkAccountNameAvailableAsync(const CheckAccountNameAvailableRequest& request, const CheckAccountNameAvailableAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, checkAccountNameAvailable(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::CheckAccountNameAvailableOutcomeCallable RdsClient::checkAccountNameAvailableCallable(const CheckAccountNameAvailableRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->checkAccountNameAvailable(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::RestartDBInstanceOutcome RdsClient::restartDBInstance(const RestartDBInstanceRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return RestartDBInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RestartDBInstanceOutcome(RestartDBInstanceResult(outcome.result())); + else + return RestartDBInstanceOutcome(outcome.error()); +} + +void RdsClient::restartDBInstanceAsync(const RestartDBInstanceRequest& request, const RestartDBInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, restartDBInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::RestartDBInstanceOutcomeCallable RdsClient::restartDBInstanceCallable(const RestartDBInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->restartDBInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::ImportDataForSQLServerOutcome RdsClient::importDataForSQLServer(const ImportDataForSQLServerRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ImportDataForSQLServerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ImportDataForSQLServerOutcome(ImportDataForSQLServerResult(outcome.result())); + else + return ImportDataForSQLServerOutcome(outcome.error()); +} + +void RdsClient::importDataForSQLServerAsync(const ImportDataForSQLServerRequest& request, const ImportDataForSQLServerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, importDataForSQLServer(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::ImportDataForSQLServerOutcomeCallable RdsClient::importDataForSQLServerCallable(const ImportDataForSQLServerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->importDataForSQLServer(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeLogicDBInstanceTopologyOutcome RdsClient::describeLogicDBInstanceTopology(const DescribeLogicDBInstanceTopologyRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeLogicDBInstanceTopologyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeLogicDBInstanceTopologyOutcome(DescribeLogicDBInstanceTopologyResult(outcome.result())); + else + return DescribeLogicDBInstanceTopologyOutcome(outcome.error()); +} + +void RdsClient::describeLogicDBInstanceTopologyAsync(const DescribeLogicDBInstanceTopologyRequest& request, const DescribeLogicDBInstanceTopologyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeLogicDBInstanceTopology(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeLogicDBInstanceTopologyOutcomeCallable RdsClient::describeLogicDBInstanceTopologyCallable(const DescribeLogicDBInstanceTopologyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeLogicDBInstanceTopology(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::CheckResourceOutcome RdsClient::checkResource(const CheckResourceRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return CheckResourceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CheckResourceOutcome(CheckResourceResult(outcome.result())); + else + return CheckResourceOutcome(outcome.error()); +} + +void RdsClient::checkResourceAsync(const CheckResourceRequest& request, const CheckResourceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, checkResource(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::CheckResourceOutcomeCallable RdsClient::checkResourceCallable(const CheckResourceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->checkResource(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeTagsOutcome RdsClient::describeTags(const DescribeTagsRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeTagsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeTagsOutcome(DescribeTagsResult(outcome.result())); + else + return DescribeTagsOutcome(outcome.error()); +} + +void RdsClient::describeTagsAsync(const DescribeTagsRequest& request, const DescribeTagsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeTags(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeTagsOutcomeCallable RdsClient::describeTagsCallable(const DescribeTagsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeTags(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::StartDBInstanceDiagnoseOutcome RdsClient::startDBInstanceDiagnose(const StartDBInstanceDiagnoseRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return StartDBInstanceDiagnoseOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StartDBInstanceDiagnoseOutcome(StartDBInstanceDiagnoseResult(outcome.result())); + else + return StartDBInstanceDiagnoseOutcome(outcome.error()); +} + +void RdsClient::startDBInstanceDiagnoseAsync(const StartDBInstanceDiagnoseRequest& request, const StartDBInstanceDiagnoseAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, startDBInstanceDiagnose(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::StartDBInstanceDiagnoseOutcomeCallable RdsClient::startDBInstanceDiagnoseCallable(const StartDBInstanceDiagnoseRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->startDBInstanceDiagnose(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeCharacterSetNameOutcome RdsClient::describeCharacterSetName(const DescribeCharacterSetNameRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeCharacterSetNameOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeCharacterSetNameOutcome(DescribeCharacterSetNameResult(outcome.result())); + else + return DescribeCharacterSetNameOutcome(outcome.error()); +} + +void RdsClient::describeCharacterSetNameAsync(const DescribeCharacterSetNameRequest& request, const DescribeCharacterSetNameAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeCharacterSetName(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeCharacterSetNameOutcomeCallable RdsClient::describeCharacterSetNameCallable(const DescribeCharacterSetNameRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeCharacterSetName(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::ImportDataFromDatabaseOutcome RdsClient::importDataFromDatabase(const ImportDataFromDatabaseRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ImportDataFromDatabaseOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ImportDataFromDatabaseOutcome(ImportDataFromDatabaseResult(outcome.result())); + else + return ImportDataFromDatabaseOutcome(outcome.error()); +} + +void RdsClient::importDataFromDatabaseAsync(const ImportDataFromDatabaseRequest& request, const ImportDataFromDatabaseAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, importDataFromDatabase(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::ImportDataFromDatabaseOutcomeCallable RdsClient::importDataFromDatabaseCallable(const ImportDataFromDatabaseRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->importDataFromDatabase(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeMigrateTasksOutcome RdsClient::describeMigrateTasks(const DescribeMigrateTasksRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeMigrateTasksOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeMigrateTasksOutcome(DescribeMigrateTasksResult(outcome.result())); + else + return DescribeMigrateTasksOutcome(outcome.error()); +} + +void RdsClient::describeMigrateTasksAsync(const DescribeMigrateTasksRequest& request, const DescribeMigrateTasksAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeMigrateTasks(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeMigrateTasksOutcomeCallable RdsClient::describeMigrateTasksCallable(const DescribeMigrateTasksRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeMigrateTasks(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::ModifyDBInstanceNetworkExpireTimeOutcome RdsClient::modifyDBInstanceNetworkExpireTime(const ModifyDBInstanceNetworkExpireTimeRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDBInstanceNetworkExpireTimeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDBInstanceNetworkExpireTimeOutcome(ModifyDBInstanceNetworkExpireTimeResult(outcome.result())); + else + return ModifyDBInstanceNetworkExpireTimeOutcome(outcome.error()); +} + +void RdsClient::modifyDBInstanceNetworkExpireTimeAsync(const ModifyDBInstanceNetworkExpireTimeRequest& request, const ModifyDBInstanceNetworkExpireTimeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDBInstanceNetworkExpireTime(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::ModifyDBInstanceNetworkExpireTimeOutcomeCallable RdsClient::modifyDBInstanceNetworkExpireTimeCallable(const ModifyDBInstanceNetworkExpireTimeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDBInstanceNetworkExpireTime(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::CreateAccountOutcome RdsClient::createAccount(const CreateAccountRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return CreateAccountOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateAccountOutcome(CreateAccountResult(outcome.result())); + else + return CreateAccountOutcome(outcome.error()); +} + +void RdsClient::createAccountAsync(const CreateAccountRequest& request, const CreateAccountAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createAccount(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::CreateAccountOutcomeCallable RdsClient::createAccountCallable(const CreateAccountRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createAccount(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeModifyParameterLogOutcome RdsClient::describeModifyParameterLog(const DescribeModifyParameterLogRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeModifyParameterLogOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeModifyParameterLogOutcome(DescribeModifyParameterLogResult(outcome.result())); + else + return DescribeModifyParameterLogOutcome(outcome.error()); +} + +void RdsClient::describeModifyParameterLogAsync(const DescribeModifyParameterLogRequest& request, const DescribeModifyParameterLogAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeModifyParameterLog(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeModifyParameterLogOutcomeCallable RdsClient::describeModifyParameterLogCallable(const DescribeModifyParameterLogRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeModifyParameterLog(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeOperatorPermissionOutcome RdsClient::describeOperatorPermission(const DescribeOperatorPermissionRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeOperatorPermissionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeOperatorPermissionOutcome(DescribeOperatorPermissionResult(outcome.result())); + else + return DescribeOperatorPermissionOutcome(outcome.error()); +} + +void RdsClient::describeOperatorPermissionAsync(const DescribeOperatorPermissionRequest& request, const DescribeOperatorPermissionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeOperatorPermission(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeOperatorPermissionOutcomeCallable RdsClient::describeOperatorPermissionCallable(const DescribeOperatorPermissionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeOperatorPermission(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeOptimizeAdviceOnMissIndexOutcome RdsClient::describeOptimizeAdviceOnMissIndex(const DescribeOptimizeAdviceOnMissIndexRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeOptimizeAdviceOnMissIndexOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeOptimizeAdviceOnMissIndexOutcome(DescribeOptimizeAdviceOnMissIndexResult(outcome.result())); + else + return DescribeOptimizeAdviceOnMissIndexOutcome(outcome.error()); +} + +void RdsClient::describeOptimizeAdviceOnMissIndexAsync(const DescribeOptimizeAdviceOnMissIndexRequest& request, const DescribeOptimizeAdviceOnMissIndexAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeOptimizeAdviceOnMissIndex(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeOptimizeAdviceOnMissIndexOutcomeCallable RdsClient::describeOptimizeAdviceOnMissIndexCallable(const DescribeOptimizeAdviceOnMissIndexRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeOptimizeAdviceOnMissIndex(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeDampPoliciesByCidOutcome RdsClient::describeDampPoliciesByCid(const DescribeDampPoliciesByCidRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDampPoliciesByCidOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDampPoliciesByCidOutcome(DescribeDampPoliciesByCidResult(outcome.result())); + else + return DescribeDampPoliciesByCidOutcome(outcome.error()); +} + +void RdsClient::describeDampPoliciesByCidAsync(const DescribeDampPoliciesByCidRequest& request, const DescribeDampPoliciesByCidAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDampPoliciesByCid(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeDampPoliciesByCidOutcomeCallable RdsClient::describeDampPoliciesByCidCallable(const DescribeDampPoliciesByCidRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDampPoliciesByCid(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::ModifyDBDescriptionOutcome RdsClient::modifyDBDescription(const ModifyDBDescriptionRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDBDescriptionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDBDescriptionOutcome(ModifyDBDescriptionResult(outcome.result())); + else + return ModifyDBDescriptionOutcome(outcome.error()); +} + +void RdsClient::modifyDBDescriptionAsync(const ModifyDBDescriptionRequest& request, const ModifyDBDescriptionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDBDescription(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::ModifyDBDescriptionOutcomeCallable RdsClient::modifyDBDescriptionCallable(const ModifyDBDescriptionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDBDescription(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::ImportDatabaseBetweenInstancesOutcome RdsClient::importDatabaseBetweenInstances(const ImportDatabaseBetweenInstancesRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ImportDatabaseBetweenInstancesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ImportDatabaseBetweenInstancesOutcome(ImportDatabaseBetweenInstancesResult(outcome.result())); + else + return ImportDatabaseBetweenInstancesOutcome(outcome.error()); +} + +void RdsClient::importDatabaseBetweenInstancesAsync(const ImportDatabaseBetweenInstancesRequest& request, const ImportDatabaseBetweenInstancesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, importDatabaseBetweenInstances(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::ImportDatabaseBetweenInstancesOutcomeCallable RdsClient::importDatabaseBetweenInstancesCallable(const ImportDatabaseBetweenInstancesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->importDatabaseBetweenInstances(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::RenewInstanceOutcome RdsClient::renewInstance(const RenewInstanceRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return RenewInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RenewInstanceOutcome(RenewInstanceResult(outcome.result())); + else + return RenewInstanceOutcome(outcome.error()); +} + +void RdsClient::renewInstanceAsync(const RenewInstanceRequest& request, const RenewInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, renewInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::RenewInstanceOutcomeCallable RdsClient::renewInstanceCallable(const RenewInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->renewInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::CheckDBNameAvailableOutcome RdsClient::checkDBNameAvailable(const CheckDBNameAvailableRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return CheckDBNameAvailableOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CheckDBNameAvailableOutcome(CheckDBNameAvailableResult(outcome.result())); + else + return CheckDBNameAvailableOutcome(outcome.error()); +} + +void RdsClient::checkDBNameAvailableAsync(const CheckDBNameAvailableRequest& request, const CheckDBNameAvailableAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, checkDBNameAvailable(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::CheckDBNameAvailableOutcomeCallable RdsClient::checkDBNameAvailableCallable(const CheckDBNameAvailableRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->checkDBNameAvailable(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::ModifyDBInstanceMonitorOutcome RdsClient::modifyDBInstanceMonitor(const ModifyDBInstanceMonitorRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDBInstanceMonitorOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDBInstanceMonitorOutcome(ModifyDBInstanceMonitorResult(outcome.result())); + else + return ModifyDBInstanceMonitorOutcome(outcome.error()); +} + +void RdsClient::modifyDBInstanceMonitorAsync(const ModifyDBInstanceMonitorRequest& request, const ModifyDBInstanceMonitorAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDBInstanceMonitor(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::ModifyDBInstanceMonitorOutcomeCallable RdsClient::modifyDBInstanceMonitorCallable(const ModifyDBInstanceMonitorRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDBInstanceMonitor(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeSQLLogFilesOutcome RdsClient::describeSQLLogFiles(const DescribeSQLLogFilesRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSQLLogFilesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSQLLogFilesOutcome(DescribeSQLLogFilesResult(outcome.result())); + else + return DescribeSQLLogFilesOutcome(outcome.error()); +} + +void RdsClient::describeSQLLogFilesAsync(const DescribeSQLLogFilesRequest& request, const DescribeSQLLogFilesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSQLLogFiles(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeSQLLogFilesOutcomeCallable RdsClient::describeSQLLogFilesCallable(const DescribeSQLLogFilesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSQLLogFiles(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::CancelImportOutcome RdsClient::cancelImport(const CancelImportRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return CancelImportOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CancelImportOutcome(CancelImportResult(outcome.result())); + else + return CancelImportOutcome(outcome.error()); +} + +void RdsClient::cancelImportAsync(const CancelImportRequest& request, const CancelImportAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, cancelImport(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::CancelImportOutcomeCallable RdsClient::cancelImportCallable(const CancelImportRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->cancelImport(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeReplicaInitializeProgressOutcome RdsClient::describeReplicaInitializeProgress(const DescribeReplicaInitializeProgressRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeReplicaInitializeProgressOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeReplicaInitializeProgressOutcome(DescribeReplicaInitializeProgressResult(outcome.result())); + else + return DescribeReplicaInitializeProgressOutcome(outcome.error()); +} + +void RdsClient::describeReplicaInitializeProgressAsync(const DescribeReplicaInitializeProgressRequest& request, const DescribeReplicaInitializeProgressAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeReplicaInitializeProgress(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeReplicaInitializeProgressOutcomeCallable RdsClient::describeReplicaInitializeProgressCallable(const DescribeReplicaInitializeProgressRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeReplicaInitializeProgress(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::ModifyBackupPolicyOutcome RdsClient::modifyBackupPolicy(const ModifyBackupPolicyRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyBackupPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyBackupPolicyOutcome(ModifyBackupPolicyResult(outcome.result())); + else + return ModifyBackupPolicyOutcome(outcome.error()); +} + +void RdsClient::modifyBackupPolicyAsync(const ModifyBackupPolicyRequest& request, const ModifyBackupPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyBackupPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::ModifyBackupPolicyOutcomeCallable RdsClient::modifyBackupPolicyCallable(const ModifyBackupPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyBackupPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::ModifyReplicaDescriptionOutcome RdsClient::modifyReplicaDescription(const ModifyReplicaDescriptionRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyReplicaDescriptionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyReplicaDescriptionOutcome(ModifyReplicaDescriptionResult(outcome.result())); + else + return ModifyReplicaDescriptionOutcome(outcome.error()); +} + +void RdsClient::modifyReplicaDescriptionAsync(const ModifyReplicaDescriptionRequest& request, const ModifyReplicaDescriptionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyReplicaDescription(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::ModifyReplicaDescriptionOutcomeCallable RdsClient::modifyReplicaDescriptionCallable(const ModifyReplicaDescriptionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyReplicaDescription(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::UpgradeDBInstanceNetWorkInfoOutcome RdsClient::upgradeDBInstanceNetWorkInfo(const UpgradeDBInstanceNetWorkInfoRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return UpgradeDBInstanceNetWorkInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpgradeDBInstanceNetWorkInfoOutcome(UpgradeDBInstanceNetWorkInfoResult(outcome.result())); + else + return UpgradeDBInstanceNetWorkInfoOutcome(outcome.error()); +} + +void RdsClient::upgradeDBInstanceNetWorkInfoAsync(const UpgradeDBInstanceNetWorkInfoRequest& request, const UpgradeDBInstanceNetWorkInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, upgradeDBInstanceNetWorkInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::UpgradeDBInstanceNetWorkInfoOutcomeCallable RdsClient::upgradeDBInstanceNetWorkInfoCallable(const UpgradeDBInstanceNetWorkInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->upgradeDBInstanceNetWorkInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::AddTagsToResourceOutcome RdsClient::addTagsToResource(const AddTagsToResourceRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return AddTagsToResourceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddTagsToResourceOutcome(AddTagsToResourceResult(outcome.result())); + else + return AddTagsToResourceOutcome(outcome.error()); +} + +void RdsClient::addTagsToResourceAsync(const AddTagsToResourceRequest& request, const AddTagsToResourceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addTagsToResource(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::AddTagsToResourceOutcomeCallable RdsClient::addTagsToResourceCallable(const AddTagsToResourceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addTagsToResource(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeBinlogFilesOutcome RdsClient::describeBinlogFiles(const DescribeBinlogFilesRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeBinlogFilesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeBinlogFilesOutcome(DescribeBinlogFilesResult(outcome.result())); + else + return DescribeBinlogFilesOutcome(outcome.error()); +} + +void RdsClient::describeBinlogFilesAsync(const DescribeBinlogFilesRequest& request, const DescribeBinlogFilesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeBinlogFiles(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeBinlogFilesOutcomeCallable RdsClient::describeBinlogFilesCallable(const DescribeBinlogFilesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeBinlogFiles(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeBackupsForSecurityOutcome RdsClient::describeBackupsForSecurity(const DescribeBackupsForSecurityRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeBackupsForSecurityOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeBackupsForSecurityOutcome(DescribeBackupsForSecurityResult(outcome.result())); + else + return DescribeBackupsForSecurityOutcome(outcome.error()); +} + +void RdsClient::describeBackupsForSecurityAsync(const DescribeBackupsForSecurityRequest& request, const DescribeBackupsForSecurityAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeBackupsForSecurity(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeBackupsForSecurityOutcomeCallable RdsClient::describeBackupsForSecurityCallable(const DescribeBackupsForSecurityRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeBackupsForSecurity(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::CreateDiagnosticReportOutcome RdsClient::createDiagnosticReport(const CreateDiagnosticReportRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return CreateDiagnosticReportOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateDiagnosticReportOutcome(CreateDiagnosticReportResult(outcome.result())); + else + return CreateDiagnosticReportOutcome(outcome.error()); +} + +void RdsClient::createDiagnosticReportAsync(const CreateDiagnosticReportRequest& request, const CreateDiagnosticReportAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createDiagnosticReport(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::CreateDiagnosticReportOutcomeCallable RdsClient::createDiagnosticReportCallable(const CreateDiagnosticReportRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createDiagnosticReport(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeSQLLogReportListOutcome RdsClient::describeSQLLogReportList(const DescribeSQLLogReportListRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSQLLogReportListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSQLLogReportListOutcome(DescribeSQLLogReportListResult(outcome.result())); + else + return DescribeSQLLogReportListOutcome(outcome.error()); +} + +void RdsClient::describeSQLLogReportListAsync(const DescribeSQLLogReportListRequest& request, const DescribeSQLLogReportListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSQLLogReportList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeSQLLogReportListOutcomeCallable RdsClient::describeSQLLogReportListCallable(const DescribeSQLLogReportListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSQLLogReportList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeResourceDiagnosisOutcome RdsClient::describeResourceDiagnosis(const DescribeResourceDiagnosisRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeResourceDiagnosisOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeResourceDiagnosisOutcome(DescribeResourceDiagnosisResult(outcome.result())); + else + return DescribeResourceDiagnosisOutcome(outcome.error()); +} + +void RdsClient::describeResourceDiagnosisAsync(const DescribeResourceDiagnosisRequest& request, const DescribeResourceDiagnosisAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeResourceDiagnosis(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeResourceDiagnosisOutcomeCallable RdsClient::describeResourceDiagnosisCallable(const DescribeResourceDiagnosisRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeResourceDiagnosis(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::CloneDBInstanceOutcome RdsClient::cloneDBInstance(const CloneDBInstanceRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return CloneDBInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CloneDBInstanceOutcome(CloneDBInstanceResult(outcome.result())); + else + return CloneDBInstanceOutcome(outcome.error()); +} + +void RdsClient::cloneDBInstanceAsync(const CloneDBInstanceRequest& request, const CloneDBInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, cloneDBInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::CloneDBInstanceOutcomeCallable RdsClient::cloneDBInstanceCallable(const CloneDBInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->cloneDBInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeTasksOutcome RdsClient::describeTasks(const DescribeTasksRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeTasksOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeTasksOutcome(DescribeTasksResult(outcome.result())); + else + return DescribeTasksOutcome(outcome.error()); +} + +void RdsClient::describeTasksAsync(const DescribeTasksRequest& request, const DescribeTasksAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeTasks(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeTasksOutcomeCallable RdsClient::describeTasksCallable(const DescribeTasksRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeTasks(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::CreateUploadPathForSQLServerOutcome RdsClient::createUploadPathForSQLServer(const CreateUploadPathForSQLServerRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return CreateUploadPathForSQLServerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateUploadPathForSQLServerOutcome(CreateUploadPathForSQLServerResult(outcome.result())); + else + return CreateUploadPathForSQLServerOutcome(outcome.error()); +} + +void RdsClient::createUploadPathForSQLServerAsync(const CreateUploadPathForSQLServerRequest& request, const CreateUploadPathForSQLServerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createUploadPathForSQLServer(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::CreateUploadPathForSQLServerOutcomeCallable RdsClient::createUploadPathForSQLServerCallable(const CreateUploadPathForSQLServerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createUploadPathForSQLServer(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeRenewalPriceOutcome RdsClient::describeRenewalPrice(const DescribeRenewalPriceRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRenewalPriceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRenewalPriceOutcome(DescribeRenewalPriceResult(outcome.result())); + else + return DescribeRenewalPriceOutcome(outcome.error()); +} + +void RdsClient::describeRenewalPriceAsync(const DescribeRenewalPriceRequest& request, const DescribeRenewalPriceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRenewalPrice(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeRenewalPriceOutcomeCallable RdsClient::describeRenewalPriceCallable(const DescribeRenewalPriceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRenewalPrice(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::AllocateInstancePublicConnectionOutcome RdsClient::allocateInstancePublicConnection(const AllocateInstancePublicConnectionRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return AllocateInstancePublicConnectionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AllocateInstancePublicConnectionOutcome(AllocateInstancePublicConnectionResult(outcome.result())); + else + return AllocateInstancePublicConnectionOutcome(outcome.error()); +} + +void RdsClient::allocateInstancePublicConnectionAsync(const AllocateInstancePublicConnectionRequest& request, const AllocateInstancePublicConnectionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, allocateInstancePublicConnection(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::AllocateInstancePublicConnectionOutcomeCallable RdsClient::allocateInstancePublicConnectionCallable(const AllocateInstancePublicConnectionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->allocateInstancePublicConnection(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeOptimizeAdviceOnStorageOutcome RdsClient::describeOptimizeAdviceOnStorage(const DescribeOptimizeAdviceOnStorageRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeOptimizeAdviceOnStorageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeOptimizeAdviceOnStorageOutcome(DescribeOptimizeAdviceOnStorageResult(outcome.result())); + else + return DescribeOptimizeAdviceOnStorageOutcome(outcome.error()); +} + +void RdsClient::describeOptimizeAdviceOnStorageAsync(const DescribeOptimizeAdviceOnStorageRequest& request, const DescribeOptimizeAdviceOnStorageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeOptimizeAdviceOnStorage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeOptimizeAdviceOnStorageOutcomeCallable RdsClient::describeOptimizeAdviceOnStorageCallable(const DescribeOptimizeAdviceOnStorageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeOptimizeAdviceOnStorage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeInstanceAutoRenewAttributeOutcome RdsClient::describeInstanceAutoRenewAttribute(const DescribeInstanceAutoRenewAttributeRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeInstanceAutoRenewAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeInstanceAutoRenewAttributeOutcome(DescribeInstanceAutoRenewAttributeResult(outcome.result())); + else + return DescribeInstanceAutoRenewAttributeOutcome(outcome.error()); +} + +void RdsClient::describeInstanceAutoRenewAttributeAsync(const DescribeInstanceAutoRenewAttributeRequest& request, const DescribeInstanceAutoRenewAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeInstanceAutoRenewAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeInstanceAutoRenewAttributeOutcomeCallable RdsClient::describeInstanceAutoRenewAttributeCallable(const DescribeInstanceAutoRenewAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeInstanceAutoRenewAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeDBInstanceAttributeOutcome RdsClient::describeDBInstanceAttribute(const DescribeDBInstanceAttributeRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDBInstanceAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDBInstanceAttributeOutcome(DescribeDBInstanceAttributeResult(outcome.result())); + else + return DescribeDBInstanceAttributeOutcome(outcome.error()); +} + +void RdsClient::describeDBInstanceAttributeAsync(const DescribeDBInstanceAttributeRequest& request, const DescribeDBInstanceAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDBInstanceAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeDBInstanceAttributeOutcomeCallable RdsClient::describeDBInstanceAttributeCallable(const DescribeDBInstanceAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDBInstanceAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeDBInstanceUserOutcome RdsClient::describeDBInstanceUser(const DescribeDBInstanceUserRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDBInstanceUserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDBInstanceUserOutcome(DescribeDBInstanceUserResult(outcome.result())); + else + return DescribeDBInstanceUserOutcome(outcome.error()); +} + +void RdsClient::describeDBInstanceUserAsync(const DescribeDBInstanceUserRequest& request, const DescribeDBInstanceUserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDBInstanceUser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeDBInstanceUserOutcomeCallable RdsClient::describeDBInstanceUserCallable(const DescribeDBInstanceUserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDBInstanceUser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::CreateTempDBInstanceOutcome RdsClient::createTempDBInstance(const CreateTempDBInstanceRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return CreateTempDBInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateTempDBInstanceOutcome(CreateTempDBInstanceResult(outcome.result())); + else + return CreateTempDBInstanceOutcome(outcome.error()); +} + +void RdsClient::createTempDBInstanceAsync(const CreateTempDBInstanceRequest& request, const CreateTempDBInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createTempDBInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::CreateTempDBInstanceOutcomeCallable RdsClient::createTempDBInstanceCallable(const CreateTempDBInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createTempDBInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeImportsForSQLServerOutcome RdsClient::describeImportsForSQLServer(const DescribeImportsForSQLServerRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeImportsForSQLServerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeImportsForSQLServerOutcome(DescribeImportsForSQLServerResult(outcome.result())); + else + return DescribeImportsForSQLServerOutcome(outcome.error()); +} + +void RdsClient::describeImportsForSQLServerAsync(const DescribeImportsForSQLServerRequest& request, const DescribeImportsForSQLServerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeImportsForSQLServer(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeImportsForSQLServerOutcomeCallable RdsClient::describeImportsForSQLServerCallable(const DescribeImportsForSQLServerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeImportsForSQLServer(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeSQLCollectorPolicyOutcome RdsClient::describeSQLCollectorPolicy(const DescribeSQLCollectorPolicyRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSQLCollectorPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSQLCollectorPolicyOutcome(DescribeSQLCollectorPolicyResult(outcome.result())); + else + return DescribeSQLCollectorPolicyOutcome(outcome.error()); +} + +void RdsClient::describeSQLCollectorPolicyAsync(const DescribeSQLCollectorPolicyRequest& request, const DescribeSQLCollectorPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSQLCollectorPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeSQLCollectorPolicyOutcomeCallable RdsClient::describeSQLCollectorPolicyCallable(const DescribeSQLCollectorPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSQLCollectorPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::ModifyInstanceAutoRenewalAttributeOutcome RdsClient::modifyInstanceAutoRenewalAttribute(const ModifyInstanceAutoRenewalAttributeRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyInstanceAutoRenewalAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyInstanceAutoRenewalAttributeOutcome(ModifyInstanceAutoRenewalAttributeResult(outcome.result())); + else + return ModifyInstanceAutoRenewalAttributeOutcome(outcome.error()); +} + +void RdsClient::modifyInstanceAutoRenewalAttributeAsync(const ModifyInstanceAutoRenewalAttributeRequest& request, const ModifyInstanceAutoRenewalAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyInstanceAutoRenewalAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::ModifyInstanceAutoRenewalAttributeOutcomeCallable RdsClient::modifyInstanceAutoRenewalAttributeCallable(const ModifyInstanceAutoRenewalAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyInstanceAutoRenewalAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::ModifySQLCollectorPolicyOutcome RdsClient::modifySQLCollectorPolicy(const ModifySQLCollectorPolicyRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifySQLCollectorPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifySQLCollectorPolicyOutcome(ModifySQLCollectorPolicyResult(outcome.result())); + else + return ModifySQLCollectorPolicyOutcome(outcome.error()); +} + +void RdsClient::modifySQLCollectorPolicyAsync(const ModifySQLCollectorPolicyRequest& request, const ModifySQLCollectorPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifySQLCollectorPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::ModifySQLCollectorPolicyOutcomeCallable RdsClient::modifySQLCollectorPolicyCallable(const ModifySQLCollectorPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifySQLCollectorPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeBackupsOutcome RdsClient::describeBackups(const DescribeBackupsRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeBackupsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeBackupsOutcome(DescribeBackupsResult(outcome.result())); + else + return DescribeBackupsOutcome(outcome.error()); +} + +void RdsClient::describeBackupsAsync(const DescribeBackupsRequest& request, const DescribeBackupsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeBackups(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeBackupsOutcomeCallable RdsClient::describeBackupsCallable(const DescribeBackupsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeBackups(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::CreateDatabaseOutcome RdsClient::createDatabase(const CreateDatabaseRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return CreateDatabaseOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateDatabaseOutcome(CreateDatabaseResult(outcome.result())); + else + return CreateDatabaseOutcome(outcome.error()); +} + +void RdsClient::createDatabaseAsync(const CreateDatabaseRequest& request, const CreateDatabaseAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createDatabase(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::CreateDatabaseOutcomeCallable RdsClient::createDatabaseCallable(const CreateDatabaseRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createDatabase(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DeleteDBInstanceOutcome RdsClient::deleteDBInstance(const DeleteDBInstanceRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteDBInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteDBInstanceOutcome(DeleteDBInstanceResult(outcome.result())); + else + return DeleteDBInstanceOutcome(outcome.error()); +} + +void RdsClient::deleteDBInstanceAsync(const DeleteDBInstanceRequest& request, const DeleteDBInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteDBInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DeleteDBInstanceOutcomeCallable RdsClient::deleteDBInstanceCallable(const DeleteDBInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteDBInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeRealtimeDiagnosesOutcome RdsClient::describeRealtimeDiagnoses(const DescribeRealtimeDiagnosesRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRealtimeDiagnosesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRealtimeDiagnosesOutcome(DescribeRealtimeDiagnosesResult(outcome.result())); + else + return DescribeRealtimeDiagnosesOutcome(outcome.error()); +} + +void RdsClient::describeRealtimeDiagnosesAsync(const DescribeRealtimeDiagnosesRequest& request, const DescribeRealtimeDiagnosesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRealtimeDiagnoses(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeRealtimeDiagnosesOutcomeCallable RdsClient::describeRealtimeDiagnosesCallable(const DescribeRealtimeDiagnosesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRealtimeDiagnoses(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeSQLInjectionInfosOutcome RdsClient::describeSQLInjectionInfos(const DescribeSQLInjectionInfosRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSQLInjectionInfosOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSQLInjectionInfosOutcome(DescribeSQLInjectionInfosResult(outcome.result())); + else + return DescribeSQLInjectionInfosOutcome(outcome.error()); +} + +void RdsClient::describeSQLInjectionInfosAsync(const DescribeSQLInjectionInfosRequest& request, const DescribeSQLInjectionInfosAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSQLInjectionInfos(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeSQLInjectionInfosOutcomeCallable RdsClient::describeSQLInjectionInfosCallable(const DescribeSQLInjectionInfosRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSQLInjectionInfos(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeInstanceAutoRenewalAttributeOutcome RdsClient::describeInstanceAutoRenewalAttribute(const DescribeInstanceAutoRenewalAttributeRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeInstanceAutoRenewalAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeInstanceAutoRenewalAttributeOutcome(DescribeInstanceAutoRenewalAttributeResult(outcome.result())); + else + return DescribeInstanceAutoRenewalAttributeOutcome(outcome.error()); +} + +void RdsClient::describeInstanceAutoRenewalAttributeAsync(const DescribeInstanceAutoRenewalAttributeRequest& request, const DescribeInstanceAutoRenewalAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeInstanceAutoRenewalAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeInstanceAutoRenewalAttributeOutcomeCallable RdsClient::describeInstanceAutoRenewalAttributeCallable(const DescribeInstanceAutoRenewalAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeInstanceAutoRenewalAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::AddBuDBInstanceRelationOutcome RdsClient::addBuDBInstanceRelation(const AddBuDBInstanceRelationRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return AddBuDBInstanceRelationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddBuDBInstanceRelationOutcome(AddBuDBInstanceRelationResult(outcome.result())); + else + return AddBuDBInstanceRelationOutcome(outcome.error()); +} + +void RdsClient::addBuDBInstanceRelationAsync(const AddBuDBInstanceRelationRequest& request, const AddBuDBInstanceRelationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addBuDBInstanceRelation(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::AddBuDBInstanceRelationOutcomeCallable RdsClient::addBuDBInstanceRelationCallable(const AddBuDBInstanceRelationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addBuDBInstanceRelation(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::RestoreDBInstanceOutcome RdsClient::restoreDBInstance(const RestoreDBInstanceRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return RestoreDBInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RestoreDBInstanceOutcome(RestoreDBInstanceResult(outcome.result())); + else + return RestoreDBInstanceOutcome(outcome.error()); +} + +void RdsClient::restoreDBInstanceAsync(const RestoreDBInstanceRequest& request, const RestoreDBInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, restoreDBInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::RestoreDBInstanceOutcomeCallable RdsClient::restoreDBInstanceCallable(const RestoreDBInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->restoreDBInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::RevokeOperatorPermissionOutcome RdsClient::revokeOperatorPermission(const RevokeOperatorPermissionRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return RevokeOperatorPermissionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RevokeOperatorPermissionOutcome(RevokeOperatorPermissionResult(outcome.result())); + else + return RevokeOperatorPermissionOutcome(outcome.error()); +} + +void RdsClient::revokeOperatorPermissionAsync(const RevokeOperatorPermissionRequest& request, const RevokeOperatorPermissionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, revokeOperatorPermission(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::RevokeOperatorPermissionOutcomeCallable RdsClient::revokeOperatorPermissionCallable(const RevokeOperatorPermissionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->revokeOperatorPermission(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::ModifyDBInstanceSpecOutcome RdsClient::modifyDBInstanceSpec(const ModifyDBInstanceSpecRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDBInstanceSpecOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDBInstanceSpecOutcome(ModifyDBInstanceSpecResult(outcome.result())); + else + return ModifyDBInstanceSpecOutcome(outcome.error()); +} + +void RdsClient::modifyDBInstanceSpecAsync(const ModifyDBInstanceSpecRequest& request, const ModifyDBInstanceSpecAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDBInstanceSpec(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::ModifyDBInstanceSpecOutcomeCallable RdsClient::modifyDBInstanceSpecCallable(const ModifyDBInstanceSpecRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDBInstanceSpec(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeDiagnosticReportListOutcome RdsClient::describeDiagnosticReportList(const DescribeDiagnosticReportListRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDiagnosticReportListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDiagnosticReportListOutcome(DescribeDiagnosticReportListResult(outcome.result())); + else + return DescribeDiagnosticReportListOutcome(outcome.error()); +} + +void RdsClient::describeDiagnosticReportListAsync(const DescribeDiagnosticReportListRequest& request, const DescribeDiagnosticReportListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDiagnosticReportList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeDiagnosticReportListOutcomeCallable RdsClient::describeDiagnosticReportListCallable(const DescribeDiagnosticReportListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDiagnosticReportList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeDBInstanceECSSGRelationOutcome RdsClient::describeDBInstanceECSSGRelation(const DescribeDBInstanceECSSGRelationRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDBInstanceECSSGRelationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDBInstanceECSSGRelationOutcome(DescribeDBInstanceECSSGRelationResult(outcome.result())); + else + return DescribeDBInstanceECSSGRelationOutcome(outcome.error()); +} + +void RdsClient::describeDBInstanceECSSGRelationAsync(const DescribeDBInstanceECSSGRelationRequest& request, const DescribeDBInstanceECSSGRelationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDBInstanceECSSGRelation(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeDBInstanceECSSGRelationOutcomeCallable RdsClient::describeDBInstanceECSSGRelationCallable(const DescribeDBInstanceECSSGRelationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDBInstanceECSSGRelation(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::RemoveTagsFromResourceOutcome RdsClient::removeTagsFromResource(const RemoveTagsFromResourceRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return RemoveTagsFromResourceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemoveTagsFromResourceOutcome(RemoveTagsFromResourceResult(outcome.result())); + else + return RemoveTagsFromResourceOutcome(outcome.error()); +} + +void RdsClient::removeTagsFromResourceAsync(const RemoveTagsFromResourceRequest& request, const RemoveTagsFromResourceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, removeTagsFromResource(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::RemoveTagsFromResourceOutcomeCallable RdsClient::removeTagsFromResourceCallable(const RemoveTagsFromResourceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->removeTagsFromResource(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeSQLLogRecordsOutcome RdsClient::describeSQLLogRecords(const DescribeSQLLogRecordsRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSQLLogRecordsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSQLLogRecordsOutcome(DescribeSQLLogRecordsResult(outcome.result())); + else + return DescribeSQLLogRecordsOutcome(outcome.error()); +} + +void RdsClient::describeSQLLogRecordsAsync(const DescribeSQLLogRecordsRequest& request, const DescribeSQLLogRecordsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSQLLogRecords(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeSQLLogRecordsOutcomeCallable RdsClient::describeSQLLogRecordsCallable(const DescribeSQLLogRecordsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSQLLogRecords(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::ModifySecurityIpsOutcome RdsClient::modifySecurityIps(const ModifySecurityIpsRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifySecurityIpsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifySecurityIpsOutcome(ModifySecurityIpsResult(outcome.result())); + else + return ModifySecurityIpsOutcome(outcome.error()); +} + +void RdsClient::modifySecurityIpsAsync(const ModifySecurityIpsRequest& request, const ModifySecurityIpsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifySecurityIps(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::ModifySecurityIpsOutcomeCallable RdsClient::modifySecurityIpsCallable(const ModifySecurityIpsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifySecurityIps(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeMigrateTasksForSQLServerOutcome RdsClient::describeMigrateTasksForSQLServer(const DescribeMigrateTasksForSQLServerRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeMigrateTasksForSQLServerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeMigrateTasksForSQLServerOutcome(DescribeMigrateTasksForSQLServerResult(outcome.result())); + else + return DescribeMigrateTasksForSQLServerOutcome(outcome.error()); +} + +void RdsClient::describeMigrateTasksForSQLServerAsync(const DescribeMigrateTasksForSQLServerRequest& request, const DescribeMigrateTasksForSQLServerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeMigrateTasksForSQLServer(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeMigrateTasksForSQLServerOutcomeCallable RdsClient::describeMigrateTasksForSQLServerCallable(const DescribeMigrateTasksForSQLServerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeMigrateTasksForSQLServer(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::ModifyReplicaModeOutcome RdsClient::modifyReplicaMode(const ModifyReplicaModeRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyReplicaModeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyReplicaModeOutcome(ModifyReplicaModeResult(outcome.result())); + else + return ModifyReplicaModeOutcome(outcome.error()); +} + +void RdsClient::modifyReplicaModeAsync(const ModifyReplicaModeRequest& request, const ModifyReplicaModeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyReplicaMode(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::ModifyReplicaModeOutcomeCallable RdsClient::modifyReplicaModeCallable(const ModifyReplicaModeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyReplicaMode(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DeleteDampPolicyOutcome RdsClient::deleteDampPolicy(const DeleteDampPolicyRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteDampPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteDampPolicyOutcome(DeleteDampPolicyResult(outcome.result())); + else + return DeleteDampPolicyOutcome(outcome.error()); +} + +void RdsClient::deleteDampPolicyAsync(const DeleteDampPolicyRequest& request, const DeleteDampPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteDampPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DeleteDampPolicyOutcomeCallable RdsClient::deleteDampPolicyCallable(const DeleteDampPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteDampPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::GrantAccountPrivilegeOutcome RdsClient::grantAccountPrivilege(const GrantAccountPrivilegeRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return GrantAccountPrivilegeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GrantAccountPrivilegeOutcome(GrantAccountPrivilegeResult(outcome.result())); + else + return GrantAccountPrivilegeOutcome(outcome.error()); +} + +void RdsClient::grantAccountPrivilegeAsync(const GrantAccountPrivilegeRequest& request, const GrantAccountPrivilegeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, grantAccountPrivilege(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::GrantAccountPrivilegeOutcomeCallable RdsClient::grantAccountPrivilegeCallable(const GrantAccountPrivilegeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->grantAccountPrivilege(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::GrantOperatorPermissionOutcome RdsClient::grantOperatorPermission(const GrantOperatorPermissionRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return GrantOperatorPermissionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GrantOperatorPermissionOutcome(GrantOperatorPermissionResult(outcome.result())); + else + return GrantOperatorPermissionOutcome(outcome.error()); +} + +void RdsClient::grantOperatorPermissionAsync(const GrantOperatorPermissionRequest& request, const GrantOperatorPermissionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, grantOperatorPermission(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::GrantOperatorPermissionOutcomeCallable RdsClient::grantOperatorPermissionCallable(const GrantOperatorPermissionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->grantOperatorPermission(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::ModifyPostpaidDBInstanceSpecOutcome RdsClient::modifyPostpaidDBInstanceSpec(const ModifyPostpaidDBInstanceSpecRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyPostpaidDBInstanceSpecOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyPostpaidDBInstanceSpecOutcome(ModifyPostpaidDBInstanceSpecResult(outcome.result())); + else + return ModifyPostpaidDBInstanceSpecOutcome(outcome.error()); +} + +void RdsClient::modifyPostpaidDBInstanceSpecAsync(const ModifyPostpaidDBInstanceSpecRequest& request, const ModifyPostpaidDBInstanceSpecAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyPostpaidDBInstanceSpec(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::ModifyPostpaidDBInstanceSpecOutcomeCallable RdsClient::modifyPostpaidDBInstanceSpecCallable(const ModifyPostpaidDBInstanceSpecRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyPostpaidDBInstanceSpec(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::CreatePolicyWithSpecifiedPolicyOutcome RdsClient::createPolicyWithSpecifiedPolicy(const CreatePolicyWithSpecifiedPolicyRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return CreatePolicyWithSpecifiedPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreatePolicyWithSpecifiedPolicyOutcome(CreatePolicyWithSpecifiedPolicyResult(outcome.result())); + else + return CreatePolicyWithSpecifiedPolicyOutcome(outcome.error()); +} + +void RdsClient::createPolicyWithSpecifiedPolicyAsync(const CreatePolicyWithSpecifiedPolicyRequest& request, const CreatePolicyWithSpecifiedPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createPolicyWithSpecifiedPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::CreatePolicyWithSpecifiedPolicyOutcomeCallable RdsClient::createPolicyWithSpecifiedPolicyCallable(const CreatePolicyWithSpecifiedPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createPolicyWithSpecifiedPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::ModifyDBInstanceTDEOutcome RdsClient::modifyDBInstanceTDE(const ModifyDBInstanceTDERequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDBInstanceTDEOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDBInstanceTDEOutcome(ModifyDBInstanceTDEResult(outcome.result())); + else + return ModifyDBInstanceTDEOutcome(outcome.error()); +} + +void RdsClient::modifyDBInstanceTDEAsync(const ModifyDBInstanceTDERequest& request, const ModifyDBInstanceTDEAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDBInstanceTDE(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::ModifyDBInstanceTDEOutcomeCallable RdsClient::modifyDBInstanceTDECallable(const ModifyDBInstanceTDERequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDBInstanceTDE(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeDBInstancePerformanceOutcome RdsClient::describeDBInstancePerformance(const DescribeDBInstancePerformanceRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDBInstancePerformanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDBInstancePerformanceOutcome(DescribeDBInstancePerformanceResult(outcome.result())); + else + return DescribeDBInstancePerformanceOutcome(outcome.error()); +} + +void RdsClient::describeDBInstancePerformanceAsync(const DescribeDBInstancePerformanceRequest& request, const DescribeDBInstancePerformanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDBInstancePerformance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeDBInstancePerformanceOutcomeCallable RdsClient::describeDBInstancePerformanceCallable(const DescribeDBInstancePerformanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDBInstancePerformance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeOptimizeAdviceOnBigTableOutcome RdsClient::describeOptimizeAdviceOnBigTable(const DescribeOptimizeAdviceOnBigTableRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeOptimizeAdviceOnBigTableOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeOptimizeAdviceOnBigTableOutcome(DescribeOptimizeAdviceOnBigTableResult(outcome.result())); + else + return DescribeOptimizeAdviceOnBigTableOutcome(outcome.error()); +} + +void RdsClient::describeOptimizeAdviceOnBigTableAsync(const DescribeOptimizeAdviceOnBigTableRequest& request, const DescribeOptimizeAdviceOnBigTableAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeOptimizeAdviceOnBigTable(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeOptimizeAdviceOnBigTableOutcomeCallable RdsClient::describeOptimizeAdviceOnBigTableCallable(const DescribeOptimizeAdviceOnBigTableRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeOptimizeAdviceOnBigTable(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeVpcZoneNosOutcome RdsClient::describeVpcZoneNos(const DescribeVpcZoneNosRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeVpcZoneNosOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeVpcZoneNosOutcome(DescribeVpcZoneNosResult(outcome.result())); + else + return DescribeVpcZoneNosOutcome(outcome.error()); +} + +void RdsClient::describeVpcZoneNosAsync(const DescribeVpcZoneNosRequest& request, const DescribeVpcZoneNosAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeVpcZoneNos(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeVpcZoneNosOutcomeCallable RdsClient::describeVpcZoneNosCallable(const DescribeVpcZoneNosRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeVpcZoneNos(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeDampPolicyByCommentOutcome RdsClient::describeDampPolicyByComment(const DescribeDampPolicyByCommentRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDampPolicyByCommentOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDampPolicyByCommentOutcome(DescribeDampPolicyByCommentResult(outcome.result())); + else + return DescribeDampPolicyByCommentOutcome(outcome.error()); +} + +void RdsClient::describeDampPolicyByCommentAsync(const DescribeDampPolicyByCommentRequest& request, const DescribeDampPolicyByCommentAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDampPolicyByComment(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeDampPolicyByCommentOutcomeCallable RdsClient::describeDampPolicyByCommentCallable(const DescribeDampPolicyByCommentRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDampPolicyByComment(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeDBInstanceExtendAttributeOutcome RdsClient::describeDBInstanceExtendAttribute(const DescribeDBInstanceExtendAttributeRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDBInstanceExtendAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDBInstanceExtendAttributeOutcome(DescribeDBInstanceExtendAttributeResult(outcome.result())); + else + return DescribeDBInstanceExtendAttributeOutcome(outcome.error()); +} + +void RdsClient::describeDBInstanceExtendAttributeAsync(const DescribeDBInstanceExtendAttributeRequest& request, const DescribeDBInstanceExtendAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDBInstanceExtendAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeDBInstanceExtendAttributeOutcomeCallable RdsClient::describeDBInstanceExtendAttributeCallable(const DescribeDBInstanceExtendAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDBInstanceExtendAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeDBInstancesOutcome RdsClient::describeDBInstances(const DescribeDBInstancesRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDBInstancesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDBInstancesOutcome(DescribeDBInstancesResult(outcome.result())); + else + return DescribeDBInstancesOutcome(outcome.error()); +} + +void RdsClient::describeDBInstancesAsync(const DescribeDBInstancesRequest& request, const DescribeDBInstancesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDBInstances(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeDBInstancesOutcomeCallable RdsClient::describeDBInstancesCallable(const DescribeDBInstancesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDBInstances(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribePreCheckResultsOutcome RdsClient::describePreCheckResults(const DescribePreCheckResultsRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribePreCheckResultsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribePreCheckResultsOutcome(DescribePreCheckResultsResult(outcome.result())); + else + return DescribePreCheckResultsOutcome(outcome.error()); +} + +void RdsClient::describePreCheckResultsAsync(const DescribePreCheckResultsRequest& request, const DescribePreCheckResultsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describePreCheckResults(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribePreCheckResultsOutcomeCallable RdsClient::describePreCheckResultsCallable(const DescribePreCheckResultsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describePreCheckResults(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::StartArchiveSQLLogOutcome RdsClient::startArchiveSQLLog(const StartArchiveSQLLogRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return StartArchiveSQLLogOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StartArchiveSQLLogOutcome(StartArchiveSQLLogResult(outcome.result())); + else + return StartArchiveSQLLogOutcome(outcome.error()); +} + +void RdsClient::startArchiveSQLLogAsync(const StartArchiveSQLLogRequest& request, const StartArchiveSQLLogAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, startArchiveSQLLog(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::StartArchiveSQLLogOutcomeCallable RdsClient::startArchiveSQLLogCallable(const StartArchiveSQLLogRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->startArchiveSQLLog(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::CreateDBInstanceReplicaOutcome RdsClient::createDBInstanceReplica(const CreateDBInstanceReplicaRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return CreateDBInstanceReplicaOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateDBInstanceReplicaOutcome(CreateDBInstanceReplicaResult(outcome.result())); + else + return CreateDBInstanceReplicaOutcome(outcome.error()); +} + +void RdsClient::createDBInstanceReplicaAsync(const CreateDBInstanceReplicaRequest& request, const CreateDBInstanceReplicaAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createDBInstanceReplica(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::CreateDBInstanceReplicaOutcomeCallable RdsClient::createDBInstanceReplicaCallable(const CreateDBInstanceReplicaRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createDBInstanceReplica(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::ModifyDampPolicyOutcome RdsClient::modifyDampPolicy(const ModifyDampPolicyRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDampPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDampPolicyOutcome(ModifyDampPolicyResult(outcome.result())); + else + return ModifyDampPolicyOutcome(outcome.error()); +} + +void RdsClient::modifyDampPolicyAsync(const ModifyDampPolicyRequest& request, const ModifyDampPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDampPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::ModifyDampPolicyOutcomeCallable RdsClient::modifyDampPolicyCallable(const ModifyDampPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDampPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::AllocateInstancePrivateConnectionOutcome RdsClient::allocateInstancePrivateConnection(const AllocateInstancePrivateConnectionRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return AllocateInstancePrivateConnectionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AllocateInstancePrivateConnectionOutcome(AllocateInstancePrivateConnectionResult(outcome.result())); + else + return AllocateInstancePrivateConnectionOutcome(outcome.error()); +} + +void RdsClient::allocateInstancePrivateConnectionAsync(const AllocateInstancePrivateConnectionRequest& request, const AllocateInstancePrivateConnectionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, allocateInstancePrivateConnection(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::AllocateInstancePrivateConnectionOutcomeCallable RdsClient::allocateInstancePrivateConnectionCallable(const AllocateInstancePrivateConnectionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->allocateInstancePrivateConnection(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::RevokeAccountPrivilegeOutcome RdsClient::revokeAccountPrivilege(const RevokeAccountPrivilegeRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return RevokeAccountPrivilegeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RevokeAccountPrivilegeOutcome(RevokeAccountPrivilegeResult(outcome.result())); + else + return RevokeAccountPrivilegeOutcome(outcome.error()); +} + +void RdsClient::revokeAccountPrivilegeAsync(const RevokeAccountPrivilegeRequest& request, const RevokeAccountPrivilegeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, revokeAccountPrivilege(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::RevokeAccountPrivilegeOutcomeCallable RdsClient::revokeAccountPrivilegeCallable(const RevokeAccountPrivilegeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->revokeAccountPrivilege(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DegradeDBInstanceSpecOutcome RdsClient::degradeDBInstanceSpec(const DegradeDBInstanceSpecRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DegradeDBInstanceSpecOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DegradeDBInstanceSpecOutcome(DegradeDBInstanceSpecResult(outcome.result())); + else + return DegradeDBInstanceSpecOutcome(outcome.error()); +} + +void RdsClient::degradeDBInstanceSpecAsync(const DegradeDBInstanceSpecRequest& request, const DegradeDBInstanceSpecAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, degradeDBInstanceSpec(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DegradeDBInstanceSpecOutcomeCallable RdsClient::degradeDBInstanceSpecCallable(const DegradeDBInstanceSpecRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->degradeDBInstanceSpec(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescibeImportsFromDatabaseOutcome RdsClient::descibeImportsFromDatabase(const DescibeImportsFromDatabaseRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescibeImportsFromDatabaseOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescibeImportsFromDatabaseOutcome(DescibeImportsFromDatabaseResult(outcome.result())); + else + return DescibeImportsFromDatabaseOutcome(outcome.error()); +} + +void RdsClient::descibeImportsFromDatabaseAsync(const DescibeImportsFromDatabaseRequest& request, const DescibeImportsFromDatabaseAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, descibeImportsFromDatabase(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescibeImportsFromDatabaseOutcomeCallable RdsClient::descibeImportsFromDatabaseCallable(const DescibeImportsFromDatabaseRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->descibeImportsFromDatabase(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeParameterTemplatesOutcome RdsClient::describeParameterTemplates(const DescribeParameterTemplatesRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeParameterTemplatesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeParameterTemplatesOutcome(DescribeParameterTemplatesResult(outcome.result())); + else + return DescribeParameterTemplatesOutcome(outcome.error()); +} + +void RdsClient::describeParameterTemplatesAsync(const DescribeParameterTemplatesRequest& request, const DescribeParameterTemplatesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeParameterTemplates(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeParameterTemplatesOutcomeCallable RdsClient::describeParameterTemplatesCallable(const DescribeParameterTemplatesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeParameterTemplates(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeDatabaseLockDiagnosisOutcome RdsClient::describeDatabaseLockDiagnosis(const DescribeDatabaseLockDiagnosisRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDatabaseLockDiagnosisOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDatabaseLockDiagnosisOutcome(DescribeDatabaseLockDiagnosisResult(outcome.result())); + else + return DescribeDatabaseLockDiagnosisOutcome(outcome.error()); +} + +void RdsClient::describeDatabaseLockDiagnosisAsync(const DescribeDatabaseLockDiagnosisRequest& request, const DescribeDatabaseLockDiagnosisAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDatabaseLockDiagnosis(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeDatabaseLockDiagnosisOutcomeCallable RdsClient::describeDatabaseLockDiagnosisCallable(const DescribeDatabaseLockDiagnosisRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDatabaseLockDiagnosis(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeOptimizeAdviceOnExcessIndexOutcome RdsClient::describeOptimizeAdviceOnExcessIndex(const DescribeOptimizeAdviceOnExcessIndexRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeOptimizeAdviceOnExcessIndexOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeOptimizeAdviceOnExcessIndexOutcome(DescribeOptimizeAdviceOnExcessIndexResult(outcome.result())); + else + return DescribeOptimizeAdviceOnExcessIndexOutcome(outcome.error()); +} + +void RdsClient::describeOptimizeAdviceOnExcessIndexAsync(const DescribeOptimizeAdviceOnExcessIndexRequest& request, const DescribeOptimizeAdviceOnExcessIndexAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeOptimizeAdviceOnExcessIndex(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeOptimizeAdviceOnExcessIndexOutcomeCallable RdsClient::describeOptimizeAdviceOnExcessIndexCallable(const DescribeOptimizeAdviceOnExcessIndexRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeOptimizeAdviceOnExcessIndex(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::CopyDatabaseOutcome RdsClient::copyDatabase(const CopyDatabaseRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return CopyDatabaseOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CopyDatabaseOutcome(CopyDatabaseResult(outcome.result())); + else + return CopyDatabaseOutcome(outcome.error()); +} + +void RdsClient::copyDatabaseAsync(const CopyDatabaseRequest& request, const CopyDatabaseAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, copyDatabase(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::CopyDatabaseOutcomeCallable RdsClient::copyDatabaseCallable(const CopyDatabaseRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->copyDatabase(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::CreateDBInstanceOutcome RdsClient::createDBInstance(const CreateDBInstanceRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return CreateDBInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateDBInstanceOutcome(CreateDBInstanceResult(outcome.result())); + else + return CreateDBInstanceOutcome(outcome.error()); +} + +void RdsClient::createDBInstanceAsync(const CreateDBInstanceRequest& request, const CreateDBInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createDBInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::CreateDBInstanceOutcomeCallable RdsClient::createDBInstanceCallable(const CreateDBInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createDBInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeDBInstanceTDEOutcome RdsClient::describeDBInstanceTDE(const DescribeDBInstanceTDERequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDBInstanceTDEOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDBInstanceTDEOutcome(DescribeDBInstanceTDEResult(outcome.result())); + else + return DescribeDBInstanceTDEOutcome(outcome.error()); +} + +void RdsClient::describeDBInstanceTDEAsync(const DescribeDBInstanceTDERequest& request, const DescribeDBInstanceTDEAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDBInstanceTDE(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeDBInstanceTDEOutcomeCallable RdsClient::describeDBInstanceTDECallable(const DescribeDBInstanceTDERequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDBInstanceTDE(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::ModifyDBInstanceSSLOutcome RdsClient::modifyDBInstanceSSL(const ModifyDBInstanceSSLRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDBInstanceSSLOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDBInstanceSSLOutcome(ModifyDBInstanceSSLResult(outcome.result())); + else + return ModifyDBInstanceSSLOutcome(outcome.error()); +} + +void RdsClient::modifyDBInstanceSSLAsync(const ModifyDBInstanceSSLRequest& request, const ModifyDBInstanceSSLAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDBInstanceSSL(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::ModifyDBInstanceSSLOutcomeCallable RdsClient::modifyDBInstanceSSLCallable(const ModifyDBInstanceSSLRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDBInstanceSSL(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeSQLLogReportsOutcome RdsClient::describeSQLLogReports(const DescribeSQLLogReportsRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSQLLogReportsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSQLLogReportsOutcome(DescribeSQLLogReportsResult(outcome.result())); + else + return DescribeSQLLogReportsOutcome(outcome.error()); +} + +void RdsClient::describeSQLLogReportsAsync(const DescribeSQLLogReportsRequest& request, const DescribeSQLLogReportsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSQLLogReports(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeSQLLogReportsOutcomeCallable RdsClient::describeSQLLogReportsCallable(const DescribeSQLLogReportsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSQLLogReports(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeSQLDiagnosisListOutcome RdsClient::describeSQLDiagnosisList(const DescribeSQLDiagnosisListRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSQLDiagnosisListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSQLDiagnosisListOutcome(DescribeSQLDiagnosisListResult(outcome.result())); + else + return DescribeSQLDiagnosisListOutcome(outcome.error()); +} + +void RdsClient::describeSQLDiagnosisListAsync(const DescribeSQLDiagnosisListRequest& request, const DescribeSQLDiagnosisListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSQLDiagnosisList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeSQLDiagnosisListOutcomeCallable RdsClient::describeSQLDiagnosisListCallable(const DescribeSQLDiagnosisListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSQLDiagnosisList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::ModifyDBInstanceConnectionModeOutcome RdsClient::modifyDBInstanceConnectionMode(const ModifyDBInstanceConnectionModeRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDBInstanceConnectionModeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDBInstanceConnectionModeOutcome(ModifyDBInstanceConnectionModeResult(outcome.result())); + else + return ModifyDBInstanceConnectionModeOutcome(outcome.error()); +} + +void RdsClient::modifyDBInstanceConnectionModeAsync(const ModifyDBInstanceConnectionModeRequest& request, const ModifyDBInstanceConnectionModeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDBInstanceConnectionMode(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::ModifyDBInstanceConnectionModeOutcomeCallable RdsClient::modifyDBInstanceConnectionModeCallable(const ModifyDBInstanceConnectionModeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDBInstanceConnectionMode(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeDBInstanceNetInfoOutcome RdsClient::describeDBInstanceNetInfo(const DescribeDBInstanceNetInfoRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDBInstanceNetInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDBInstanceNetInfoOutcome(DescribeDBInstanceNetInfoResult(outcome.result())); + else + return DescribeDBInstanceNetInfoOutcome(outcome.error()); +} + +void RdsClient::describeDBInstanceNetInfoAsync(const DescribeDBInstanceNetInfoRequest& request, const DescribeDBInstanceNetInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDBInstanceNetInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeDBInstanceNetInfoOutcomeCallable RdsClient::describeDBInstanceNetInfoCallable(const DescribeDBInstanceNetInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDBInstanceNetInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::AllocateReadWriteSplittingConnectionOutcome RdsClient::allocateReadWriteSplittingConnection(const AllocateReadWriteSplittingConnectionRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return AllocateReadWriteSplittingConnectionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AllocateReadWriteSplittingConnectionOutcome(AllocateReadWriteSplittingConnectionResult(outcome.result())); + else + return AllocateReadWriteSplittingConnectionOutcome(outcome.error()); +} + +void RdsClient::allocateReadWriteSplittingConnectionAsync(const AllocateReadWriteSplittingConnectionRequest& request, const AllocateReadWriteSplittingConnectionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, allocateReadWriteSplittingConnection(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::AllocateReadWriteSplittingConnectionOutcomeCallable RdsClient::allocateReadWriteSplittingConnectionCallable(const AllocateReadWriteSplittingConnectionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->allocateReadWriteSplittingConnection(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::ReleaseInstancePublicConnectionOutcome RdsClient::releaseInstancePublicConnection(const ReleaseInstancePublicConnectionRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ReleaseInstancePublicConnectionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ReleaseInstancePublicConnectionOutcome(ReleaseInstancePublicConnectionResult(outcome.result())); + else + return ReleaseInstancePublicConnectionOutcome(outcome.error()); +} + +void RdsClient::releaseInstancePublicConnectionAsync(const ReleaseInstancePublicConnectionRequest& request, const ReleaseInstancePublicConnectionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, releaseInstancePublicConnection(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::ReleaseInstancePublicConnectionOutcomeCallable RdsClient::releaseInstancePublicConnectionCallable(const ReleaseInstancePublicConnectionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->releaseInstancePublicConnection(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::CalculateDBInstanceWeightOutcome RdsClient::calculateDBInstanceWeight(const CalculateDBInstanceWeightRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return CalculateDBInstanceWeightOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CalculateDBInstanceWeightOutcome(CalculateDBInstanceWeightResult(outcome.result())); + else + return CalculateDBInstanceWeightOutcome(outcome.error()); +} + +void RdsClient::calculateDBInstanceWeightAsync(const CalculateDBInstanceWeightRequest& request, const CalculateDBInstanceWeightAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, calculateDBInstanceWeight(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::CalculateDBInstanceWeightOutcomeCallable RdsClient::calculateDBInstanceWeightCallable(const CalculateDBInstanceWeightRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->calculateDBInstanceWeight(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::ModifyReplicaRelationOutcome RdsClient::modifyReplicaRelation(const ModifyReplicaRelationRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyReplicaRelationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyReplicaRelationOutcome(ModifyReplicaRelationResult(outcome.result())); + else + return ModifyReplicaRelationOutcome(outcome.error()); +} + +void RdsClient::modifyReplicaRelationAsync(const ModifyReplicaRelationRequest& request, const ModifyReplicaRelationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyReplicaRelation(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::ModifyReplicaRelationOutcomeCallable RdsClient::modifyReplicaRelationCallable(const ModifyReplicaRelationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyReplicaRelation(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::ModifyDBInstanceNetworkTypeOutcome RdsClient::modifyDBInstanceNetworkType(const ModifyDBInstanceNetworkTypeRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDBInstanceNetworkTypeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDBInstanceNetworkTypeOutcome(ModifyDBInstanceNetworkTypeResult(outcome.result())); + else + return ModifyDBInstanceNetworkTypeOutcome(outcome.error()); +} + +void RdsClient::modifyDBInstanceNetworkTypeAsync(const ModifyDBInstanceNetworkTypeRequest& request, const ModifyDBInstanceNetworkTypeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDBInstanceNetworkType(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::ModifyDBInstanceNetworkTypeOutcomeCallable RdsClient::modifyDBInstanceNetworkTypeCallable(const ModifyDBInstanceNetworkTypeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDBInstanceNetworkType(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeAbnormalDBInstancesOutcome RdsClient::describeAbnormalDBInstances(const DescribeAbnormalDBInstancesRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAbnormalDBInstancesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAbnormalDBInstancesOutcome(DescribeAbnormalDBInstancesResult(outcome.result())); + else + return DescribeAbnormalDBInstancesOutcome(outcome.error()); +} + +void RdsClient::describeAbnormalDBInstancesAsync(const DescribeAbnormalDBInstancesRequest& request, const DescribeAbnormalDBInstancesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAbnormalDBInstances(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeAbnormalDBInstancesOutcomeCallable RdsClient::describeAbnormalDBInstancesCallable(const DescribeAbnormalDBInstancesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAbnormalDBInstances(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeDBInstanceNetworkOutcome RdsClient::describeDBInstanceNetwork(const DescribeDBInstanceNetworkRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDBInstanceNetworkOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDBInstanceNetworkOutcome(DescribeDBInstanceNetworkResult(outcome.result())); + else + return DescribeDBInstanceNetworkOutcome(outcome.error()); +} + +void RdsClient::describeDBInstanceNetworkAsync(const DescribeDBInstanceNetworkRequest& request, const DescribeDBInstanceNetworkAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDBInstanceNetwork(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeDBInstanceNetworkOutcomeCallable RdsClient::describeDBInstanceNetworkCallable(const DescribeDBInstanceNetworkRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDBInstanceNetwork(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeSlowLogsOutcome RdsClient::describeSlowLogs(const DescribeSlowLogsRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSlowLogsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSlowLogsOutcome(DescribeSlowLogsResult(outcome.result())); + else + return DescribeSlowLogsOutcome(outcome.error()); +} + +void RdsClient::describeSlowLogsAsync(const DescribeSlowLogsRequest& request, const DescribeSlowLogsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSlowLogs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeSlowLogsOutcomeCallable RdsClient::describeSlowLogsCallable(const DescribeSlowLogsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSlowLogs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::CreateBackupOutcome RdsClient::createBackup(const CreateBackupRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return CreateBackupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateBackupOutcome(CreateBackupResult(outcome.result())); + else + return CreateBackupOutcome(outcome.error()); +} + +void RdsClient::createBackupAsync(const CreateBackupRequest& request, const CreateBackupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createBackup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::CreateBackupOutcomeCallable RdsClient::createBackupCallable(const CreateBackupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createBackup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::CreateSQLDiagnosisOutcome RdsClient::createSQLDiagnosis(const CreateSQLDiagnosisRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return CreateSQLDiagnosisOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateSQLDiagnosisOutcome(CreateSQLDiagnosisResult(outcome.result())); + else + return CreateSQLDiagnosisOutcome(outcome.error()); +} + +void RdsClient::createSQLDiagnosisAsync(const CreateSQLDiagnosisRequest& request, const CreateSQLDiagnosisAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createSQLDiagnosis(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::CreateSQLDiagnosisOutcomeCallable RdsClient::createSQLDiagnosisCallable(const CreateSQLDiagnosisRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createSQLDiagnosis(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeReplicaUsageOutcome RdsClient::describeReplicaUsage(const DescribeReplicaUsageRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeReplicaUsageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeReplicaUsageOutcome(DescribeReplicaUsageResult(outcome.result())); + else + return DescribeReplicaUsageOutcome(outcome.error()); +} + +void RdsClient::describeReplicaUsageAsync(const DescribeReplicaUsageRequest& request, const DescribeReplicaUsageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeReplicaUsage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeReplicaUsageOutcomeCallable RdsClient::describeReplicaUsageCallable(const DescribeReplicaUsageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeReplicaUsage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::ModifyReadWriteSplittingConnectionOutcome RdsClient::modifyReadWriteSplittingConnection(const ModifyReadWriteSplittingConnectionRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyReadWriteSplittingConnectionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyReadWriteSplittingConnectionOutcome(ModifyReadWriteSplittingConnectionResult(outcome.result())); + else + return ModifyReadWriteSplittingConnectionOutcome(outcome.error()); +} + +void RdsClient::modifyReadWriteSplittingConnectionAsync(const ModifyReadWriteSplittingConnectionRequest& request, const ModifyReadWriteSplittingConnectionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyReadWriteSplittingConnection(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::ModifyReadWriteSplittingConnectionOutcomeCallable RdsClient::modifyReadWriteSplittingConnectionCallable(const ModifyReadWriteSplittingConnectionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyReadWriteSplittingConnection(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeDBInstanceNetworkDetailOutcome RdsClient::describeDBInstanceNetworkDetail(const DescribeDBInstanceNetworkDetailRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDBInstanceNetworkDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDBInstanceNetworkDetailOutcome(DescribeDBInstanceNetworkDetailResult(outcome.result())); + else + return DescribeDBInstanceNetworkDetailOutcome(outcome.error()); +} + +void RdsClient::describeDBInstanceNetworkDetailAsync(const DescribeDBInstanceNetworkDetailRequest& request, const DescribeDBInstanceNetworkDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDBInstanceNetworkDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeDBInstanceNetworkDetailOutcomeCallable RdsClient::describeDBInstanceNetworkDetailCallable(const DescribeDBInstanceNetworkDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDBInstanceNetworkDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::ModifyDBInstanceDescriptionOutcome RdsClient::modifyDBInstanceDescription(const ModifyDBInstanceDescriptionRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDBInstanceDescriptionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDBInstanceDescriptionOutcome(ModifyDBInstanceDescriptionResult(outcome.result())); + else + return ModifyDBInstanceDescriptionOutcome(outcome.error()); +} + +void RdsClient::modifyDBInstanceDescriptionAsync(const ModifyDBInstanceDescriptionRequest& request, const ModifyDBInstanceDescriptionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDBInstanceDescription(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::ModifyDBInstanceDescriptionOutcomeCallable RdsClient::modifyDBInstanceDescriptionCallable(const ModifyDBInstanceDescriptionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDBInstanceDescription(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::ModifyDBInstanceMaintainTimeOutcome RdsClient::modifyDBInstanceMaintainTime(const ModifyDBInstanceMaintainTimeRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDBInstanceMaintainTimeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDBInstanceMaintainTimeOutcome(ModifyDBInstanceMaintainTimeResult(outcome.result())); + else + return ModifyDBInstanceMaintainTimeOutcome(outcome.error()); +} + +void RdsClient::modifyDBInstanceMaintainTimeAsync(const ModifyDBInstanceMaintainTimeRequest& request, const ModifyDBInstanceMaintainTimeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDBInstanceMaintainTime(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::ModifyDBInstanceMaintainTimeOutcomeCallable RdsClient::modifyDBInstanceMaintainTimeCallable(const ModifyDBInstanceMaintainTimeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDBInstanceMaintainTime(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeReplicaPerformanceOutcome RdsClient::describeReplicaPerformance(const DescribeReplicaPerformanceRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeReplicaPerformanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeReplicaPerformanceOutcome(DescribeReplicaPerformanceResult(outcome.result())); + else + return DescribeReplicaPerformanceOutcome(outcome.error()); +} + +void RdsClient::describeReplicaPerformanceAsync(const DescribeReplicaPerformanceRequest& request, const DescribeReplicaPerformanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeReplicaPerformance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeReplicaPerformanceOutcomeCallable RdsClient::describeReplicaPerformanceCallable(const DescribeReplicaPerformanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeReplicaPerformance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeSQLDiagnosisOutcome RdsClient::describeSQLDiagnosis(const DescribeSQLDiagnosisRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSQLDiagnosisOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSQLDiagnosisOutcome(DescribeSQLDiagnosisResult(outcome.result())); + else + return DescribeSQLDiagnosisOutcome(outcome.error()); +} + +void RdsClient::describeSQLDiagnosisAsync(const DescribeSQLDiagnosisRequest& request, const DescribeSQLDiagnosisAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSQLDiagnosis(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeSQLDiagnosisOutcomeCallable RdsClient::describeSQLDiagnosisCallable(const DescribeSQLDiagnosisRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSQLDiagnosis(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeDampPolicyByPolicyNameOutcome RdsClient::describeDampPolicyByPolicyName(const DescribeDampPolicyByPolicyNameRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDampPolicyByPolicyNameOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDampPolicyByPolicyNameOutcome(DescribeDampPolicyByPolicyNameResult(outcome.result())); + else + return DescribeDampPolicyByPolicyNameOutcome(outcome.error()); +} + +void RdsClient::describeDampPolicyByPolicyNameAsync(const DescribeDampPolicyByPolicyNameRequest& request, const DescribeDampPolicyByPolicyNameAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDampPolicyByPolicyName(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeDampPolicyByPolicyNameOutcomeCallable RdsClient::describeDampPolicyByPolicyNameCallable(const DescribeDampPolicyByPolicyNameRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDampPolicyByPolicyName(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::ModifyResourceGroupOutcome RdsClient::modifyResourceGroup(const ModifyResourceGroupRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyResourceGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyResourceGroupOutcome(ModifyResourceGroupResult(outcome.result())); + else + return ModifyResourceGroupOutcome(outcome.error()); +} + +void RdsClient::modifyResourceGroupAsync(const ModifyResourceGroupRequest& request, const ModifyResourceGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyResourceGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::ModifyResourceGroupOutcomeCallable RdsClient::modifyResourceGroupCallable(const ModifyResourceGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyResourceGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeOssDownloadsForSQLServerOutcome RdsClient::describeOssDownloadsForSQLServer(const DescribeOssDownloadsForSQLServerRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeOssDownloadsForSQLServerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeOssDownloadsForSQLServerOutcome(DescribeOssDownloadsForSQLServerResult(outcome.result())); + else + return DescribeOssDownloadsForSQLServerOutcome(outcome.error()); +} + +void RdsClient::describeOssDownloadsForSQLServerAsync(const DescribeOssDownloadsForSQLServerRequest& request, const DescribeOssDownloadsForSQLServerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeOssDownloadsForSQLServer(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeOssDownloadsForSQLServerOutcomeCallable RdsClient::describeOssDownloadsForSQLServerCallable(const DescribeOssDownloadsForSQLServerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeOssDownloadsForSQLServer(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::RequestServiceOfCloudDBAOutcome RdsClient::requestServiceOfCloudDBA(const RequestServiceOfCloudDBARequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return RequestServiceOfCloudDBAOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RequestServiceOfCloudDBAOutcome(RequestServiceOfCloudDBAResult(outcome.result())); + else + return RequestServiceOfCloudDBAOutcome(outcome.error()); +} + +void RdsClient::requestServiceOfCloudDBAAsync(const RequestServiceOfCloudDBARequest& request, const RequestServiceOfCloudDBAAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, requestServiceOfCloudDBA(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::RequestServiceOfCloudDBAOutcomeCallable RdsClient::requestServiceOfCloudDBACallable(const RequestServiceOfCloudDBARequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->requestServiceOfCloudDBA(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::ResetAccountOutcome RdsClient::resetAccount(const ResetAccountRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ResetAccountOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ResetAccountOutcome(ResetAccountResult(outcome.result())); + else + return ResetAccountOutcome(outcome.error()); +} + +void RdsClient::resetAccountAsync(const ResetAccountRequest& request, const ResetAccountAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, resetAccount(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::ResetAccountOutcomeCallable RdsClient::resetAccountCallable(const ResetAccountRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->resetAccount(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeResourceUsageOutcome RdsClient::describeResourceUsage(const DescribeResourceUsageRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeResourceUsageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeResourceUsageOutcome(DescribeResourceUsageResult(outcome.result())); + else + return DescribeResourceUsageOutcome(outcome.error()); +} + +void RdsClient::describeResourceUsageAsync(const DescribeResourceUsageRequest& request, const DescribeResourceUsageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeResourceUsage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeResourceUsageOutcomeCallable RdsClient::describeResourceUsageCallable(const DescribeResourceUsageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeResourceUsage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::PreCheckBeforeImportDataOutcome RdsClient::preCheckBeforeImportData(const PreCheckBeforeImportDataRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return PreCheckBeforeImportDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PreCheckBeforeImportDataOutcome(PreCheckBeforeImportDataResult(outcome.result())); + else + return PreCheckBeforeImportDataOutcome(outcome.error()); +} + +void RdsClient::preCheckBeforeImportDataAsync(const PreCheckBeforeImportDataRequest& request, const PreCheckBeforeImportDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, preCheckBeforeImportData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::PreCheckBeforeImportDataOutcomeCallable RdsClient::preCheckBeforeImportDataCallable(const PreCheckBeforeImportDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->preCheckBeforeImportData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::PurgeDBInstanceLogOutcome RdsClient::purgeDBInstanceLog(const PurgeDBInstanceLogRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return PurgeDBInstanceLogOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PurgeDBInstanceLogOutcome(PurgeDBInstanceLogResult(outcome.result())); + else + return PurgeDBInstanceLogOutcome(outcome.error()); +} + +void RdsClient::purgeDBInstanceLogAsync(const PurgeDBInstanceLogRequest& request, const PurgeDBInstanceLogAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, purgeDBInstanceLog(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::PurgeDBInstanceLogOutcomeCallable RdsClient::purgeDBInstanceLogCallable(const PurgeDBInstanceLogRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->purgeDBInstanceLog(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeTaskInfoOutcome RdsClient::describeTaskInfo(const DescribeTaskInfoRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeTaskInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeTaskInfoOutcome(DescribeTaskInfoResult(outcome.result())); + else + return DescribeTaskInfoOutcome(outcome.error()); +} + +void RdsClient::describeTaskInfoAsync(const DescribeTaskInfoRequest& request, const DescribeTaskInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeTaskInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeTaskInfoOutcomeCallable RdsClient::describeTaskInfoCallable(const DescribeTaskInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeTaskInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeRegionsOutcome RdsClient::describeRegions(const DescribeRegionsRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRegionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRegionsOutcome(DescribeRegionsResult(outcome.result())); + else + return DescribeRegionsOutcome(outcome.error()); +} + +void RdsClient::describeRegionsAsync(const DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRegions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeRegionsOutcomeCallable RdsClient::describeRegionsCallable(const DescribeRegionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRegions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::MigrateToOtherZoneOutcome RdsClient::migrateToOtherZone(const MigrateToOtherZoneRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return MigrateToOtherZoneOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return MigrateToOtherZoneOutcome(MigrateToOtherZoneResult(outcome.result())); + else + return MigrateToOtherZoneOutcome(outcome.error()); +} + +void RdsClient::migrateToOtherZoneAsync(const MigrateToOtherZoneRequest& request, const MigrateToOtherZoneAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, migrateToOtherZone(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::MigrateToOtherZoneOutcomeCallable RdsClient::migrateToOtherZoneCallable(const MigrateToOtherZoneRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->migrateToOtherZone(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DeleteAccountOutcome RdsClient::deleteAccount(const DeleteAccountRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteAccountOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteAccountOutcome(DeleteAccountResult(outcome.result())); + else + return DeleteAccountOutcome(outcome.error()); +} + +void RdsClient::deleteAccountAsync(const DeleteAccountRequest& request, const DeleteAccountAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteAccount(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DeleteAccountOutcomeCallable RdsClient::deleteAccountCallable(const DeleteAccountRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteAccount(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeOptimizeAdviceOnMissPKOutcome RdsClient::describeOptimizeAdviceOnMissPK(const DescribeOptimizeAdviceOnMissPKRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeOptimizeAdviceOnMissPKOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeOptimizeAdviceOnMissPKOutcome(DescribeOptimizeAdviceOnMissPKResult(outcome.result())); + else + return DescribeOptimizeAdviceOnMissPKOutcome(outcome.error()); +} + +void RdsClient::describeOptimizeAdviceOnMissPKAsync(const DescribeOptimizeAdviceOnMissPKRequest& request, const DescribeOptimizeAdviceOnMissPKAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeOptimizeAdviceOnMissPK(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeOptimizeAdviceOnMissPKOutcomeCallable RdsClient::describeOptimizeAdviceOnMissPKCallable(const DescribeOptimizeAdviceOnMissPKRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeOptimizeAdviceOnMissPK(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeSlowLogRecordsOutcome RdsClient::describeSlowLogRecords(const DescribeSlowLogRecordsRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSlowLogRecordsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSlowLogRecordsOutcome(DescribeSlowLogRecordsResult(outcome.result())); + else + return DescribeSlowLogRecordsOutcome(outcome.error()); +} + +void RdsClient::describeSlowLogRecordsAsync(const DescribeSlowLogRecordsRequest& request, const DescribeSlowLogRecordsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSlowLogRecords(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeSlowLogRecordsOutcomeCallable RdsClient::describeSlowLogRecordsCallable(const DescribeSlowLogRecordsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSlowLogRecords(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::ReleaseReadWriteSplittingConnectionOutcome RdsClient::releaseReadWriteSplittingConnection(const ReleaseReadWriteSplittingConnectionRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ReleaseReadWriteSplittingConnectionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ReleaseReadWriteSplittingConnectionOutcome(ReleaseReadWriteSplittingConnectionResult(outcome.result())); + else + return ReleaseReadWriteSplittingConnectionOutcome(outcome.error()); +} + +void RdsClient::releaseReadWriteSplittingConnectionAsync(const ReleaseReadWriteSplittingConnectionRequest& request, const ReleaseReadWriteSplittingConnectionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, releaseReadWriteSplittingConnection(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::ReleaseReadWriteSplittingConnectionOutcomeCallable RdsClient::releaseReadWriteSplittingConnectionCallable(const ReleaseReadWriteSplittingConnectionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->releaseReadWriteSplittingConnection(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::UpgradeDBInstanceNetworkOutcome RdsClient::upgradeDBInstanceNetwork(const UpgradeDBInstanceNetworkRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return UpgradeDBInstanceNetworkOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpgradeDBInstanceNetworkOutcome(UpgradeDBInstanceNetworkResult(outcome.result())); + else + return UpgradeDBInstanceNetworkOutcome(outcome.error()); +} + +void RdsClient::upgradeDBInstanceNetworkAsync(const UpgradeDBInstanceNetworkRequest& request, const UpgradeDBInstanceNetworkAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, upgradeDBInstanceNetwork(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::UpgradeDBInstanceNetworkOutcomeCallable RdsClient::upgradeDBInstanceNetworkCallable(const UpgradeDBInstanceNetworkRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->upgradeDBInstanceNetwork(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeFilesForSQLServerOutcome RdsClient::describeFilesForSQLServer(const DescribeFilesForSQLServerRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeFilesForSQLServerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeFilesForSQLServerOutcome(DescribeFilesForSQLServerResult(outcome.result())); + else + return DescribeFilesForSQLServerOutcome(outcome.error()); +} + +void RdsClient::describeFilesForSQLServerAsync(const DescribeFilesForSQLServerRequest& request, const DescribeFilesForSQLServerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeFilesForSQLServer(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeFilesForSQLServerOutcomeCallable RdsClient::describeFilesForSQLServerCallable(const DescribeFilesForSQLServerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeFilesForSQLServer(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::ModifyDBInstanceECSSGRelationOutcome RdsClient::modifyDBInstanceECSSGRelation(const ModifyDBInstanceECSSGRelationRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDBInstanceECSSGRelationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDBInstanceECSSGRelationOutcome(ModifyDBInstanceECSSGRelationResult(outcome.result())); + else + return ModifyDBInstanceECSSGRelationOutcome(outcome.error()); +} + +void RdsClient::modifyDBInstanceECSSGRelationAsync(const ModifyDBInstanceECSSGRelationRequest& request, const ModifyDBInstanceECSSGRelationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDBInstanceECSSGRelation(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::ModifyDBInstanceECSSGRelationOutcomeCallable RdsClient::modifyDBInstanceECSSGRelationCallable(const ModifyDBInstanceECSSGRelationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDBInstanceECSSGRelation(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeErrorLogsOutcome RdsClient::describeErrorLogs(const DescribeErrorLogsRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeErrorLogsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeErrorLogsOutcome(DescribeErrorLogsResult(outcome.result())); + else + return DescribeErrorLogsOutcome(outcome.error()); +} + +void RdsClient::describeErrorLogsAsync(const DescribeErrorLogsRequest& request, const DescribeErrorLogsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeErrorLogs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeErrorLogsOutcomeCallable RdsClient::describeErrorLogsCallable(const DescribeErrorLogsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeErrorLogs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::ModifyDBInstanceHAConfigOutcome RdsClient::modifyDBInstanceHAConfig(const ModifyDBInstanceHAConfigRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDBInstanceHAConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDBInstanceHAConfigOutcome(ModifyDBInstanceHAConfigResult(outcome.result())); + else + return ModifyDBInstanceHAConfigOutcome(outcome.error()); +} + +void RdsClient::modifyDBInstanceHAConfigAsync(const ModifyDBInstanceHAConfigRequest& request, const ModifyDBInstanceHAConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDBInstanceHAConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::ModifyDBInstanceHAConfigOutcomeCallable RdsClient::modifyDBInstanceHAConfigCallable(const ModifyDBInstanceHAConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDBInstanceHAConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeDBInstancesAsCsvOutcome RdsClient::describeDBInstancesAsCsv(const DescribeDBInstancesAsCsvRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDBInstancesAsCsvOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDBInstancesAsCsvOutcome(DescribeDBInstancesAsCsvResult(outcome.result())); + else + return DescribeDBInstancesAsCsvOutcome(outcome.error()); +} + +void RdsClient::describeDBInstancesAsCsvAsync(const DescribeDBInstancesAsCsvRequest& request, const DescribeDBInstancesAsCsvAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDBInstancesAsCsv(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeDBInstancesAsCsvOutcomeCallable RdsClient::describeDBInstancesAsCsvCallable(const DescribeDBInstancesAsCsvRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDBInstancesAsCsv(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::ResetAccountPasswordOutcome RdsClient::resetAccountPassword(const ResetAccountPasswordRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ResetAccountPasswordOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ResetAccountPasswordOutcome(ResetAccountPasswordResult(outcome.result())); + else + return ResetAccountPasswordOutcome(outcome.error()); +} + +void RdsClient::resetAccountPasswordAsync(const ResetAccountPasswordRequest& request, const ResetAccountPasswordAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, resetAccountPassword(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::ResetAccountPasswordOutcomeCallable RdsClient::resetAccountPasswordCallable(const ResetAccountPasswordRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->resetAccountPassword(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeAccountsOutcome RdsClient::describeAccounts(const DescribeAccountsRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAccountsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAccountsOutcome(DescribeAccountsResult(outcome.result())); + else + return DescribeAccountsOutcome(outcome.error()); +} + +void RdsClient::describeAccountsAsync(const DescribeAccountsRequest& request, const DescribeAccountsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAccounts(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeAccountsOutcomeCallable RdsClient::describeAccountsCallable(const DescribeAccountsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAccounts(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribePriceOutcome RdsClient::describePrice(const DescribePriceRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribePriceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribePriceOutcome(DescribePriceResult(outcome.result())); + else + return DescribePriceOutcome(outcome.error()); +} + +void RdsClient::describePriceAsync(const DescribePriceRequest& request, const DescribePriceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describePrice(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribePriceOutcomeCallable RdsClient::describePriceCallable(const DescribePriceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describePrice(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeDBInstanceByTagsOutcome RdsClient::describeDBInstanceByTags(const DescribeDBInstanceByTagsRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDBInstanceByTagsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDBInstanceByTagsOutcome(DescribeDBInstanceByTagsResult(outcome.result())); + else + return DescribeDBInstanceByTagsOutcome(outcome.error()); +} + +void RdsClient::describeDBInstanceByTagsAsync(const DescribeDBInstanceByTagsRequest& request, const DescribeDBInstanceByTagsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDBInstanceByTags(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeDBInstanceByTagsOutcomeCallable RdsClient::describeDBInstanceByTagsCallable(const DescribeDBInstanceByTagsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDBInstanceByTags(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeDBInstanceSSLOutcome RdsClient::describeDBInstanceSSL(const DescribeDBInstanceSSLRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDBInstanceSSLOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDBInstanceSSLOutcome(DescribeDBInstanceSSLResult(outcome.result())); + else + return DescribeDBInstanceSSLOutcome(outcome.error()); +} + +void RdsClient::describeDBInstanceSSLAsync(const DescribeDBInstanceSSLRequest& request, const DescribeDBInstanceSSLAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDBInstanceSSL(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeDBInstanceSSLOutcomeCallable RdsClient::describeDBInstanceSSLCallable(const DescribeDBInstanceSSLRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDBInstanceSSL(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::CreateDampPolicyOutcome RdsClient::createDampPolicy(const CreateDampPolicyRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return CreateDampPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateDampPolicyOutcome(CreateDampPolicyResult(outcome.result())); + else + return CreateDampPolicyOutcome(outcome.error()); +} + +void RdsClient::createDampPolicyAsync(const CreateDampPolicyRequest& request, const CreateDampPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createDampPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::CreateDampPolicyOutcomeCallable RdsClient::createDampPolicyCallable(const CreateDampPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createDampPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeDBInstancesByPerformanceOutcome RdsClient::describeDBInstancesByPerformance(const DescribeDBInstancesByPerformanceRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDBInstancesByPerformanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDBInstancesByPerformanceOutcome(DescribeDBInstancesByPerformanceResult(outcome.result())); + else + return DescribeDBInstancesByPerformanceOutcome(outcome.error()); +} + +void RdsClient::describeDBInstancesByPerformanceAsync(const DescribeDBInstancesByPerformanceRequest& request, const DescribeDBInstancesByPerformanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDBInstancesByPerformance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeDBInstancesByPerformanceOutcomeCallable RdsClient::describeDBInstancesByPerformanceCallable(const DescribeDBInstancesByPerformanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDBInstancesByPerformance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::RenewDBInstanceOutcome RdsClient::renewDBInstance(const RenewDBInstanceRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return RenewDBInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RenewDBInstanceOutcome(RenewDBInstanceResult(outcome.result())); + else + return RenewDBInstanceOutcome(outcome.error()); +} + +void RdsClient::renewDBInstanceAsync(const RenewDBInstanceRequest& request, const RenewDBInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, renewDBInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::RenewDBInstanceOutcomeCallable RdsClient::renewDBInstanceCallable(const RenewDBInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->renewDBInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeSQLReportsOutcome RdsClient::describeSQLReports(const DescribeSQLReportsRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSQLReportsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSQLReportsOutcome(DescribeSQLReportsResult(outcome.result())); + else + return DescribeSQLReportsOutcome(outcome.error()); +} + +void RdsClient::describeSQLReportsAsync(const DescribeSQLReportsRequest& request, const DescribeSQLReportsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSQLReports(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeSQLReportsOutcomeCallable RdsClient::describeSQLReportsCallable(const DescribeSQLReportsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSQLReports(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::QueryPriceForBuyOutcome RdsClient::queryPriceForBuy(const QueryPriceForBuyRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return QueryPriceForBuyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryPriceForBuyOutcome(QueryPriceForBuyResult(outcome.result())); + else + return QueryPriceForBuyOutcome(outcome.error()); +} + +void RdsClient::queryPriceForBuyAsync(const QueryPriceForBuyRequest& request, const QueryPriceForBuyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryPriceForBuy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::QueryPriceForBuyOutcomeCallable RdsClient::queryPriceForBuyCallable(const QueryPriceForBuyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryPriceForBuy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeBackupTasksOutcome RdsClient::describeBackupTasks(const DescribeBackupTasksRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeBackupTasksOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeBackupTasksOutcome(DescribeBackupTasksResult(outcome.result())); + else + return DescribeBackupTasksOutcome(outcome.error()); +} + +void RdsClient::describeBackupTasksAsync(const DescribeBackupTasksRequest& request, const DescribeBackupTasksAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeBackupTasks(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeBackupTasksOutcomeCallable RdsClient::describeBackupTasksCallable(const DescribeBackupTasksRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeBackupTasks(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DeleteDatabaseOutcome RdsClient::deleteDatabase(const DeleteDatabaseRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteDatabaseOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteDatabaseOutcome(DeleteDatabaseResult(outcome.result())); + else + return DeleteDatabaseOutcome(outcome.error()); +} + +void RdsClient::deleteDatabaseAsync(const DeleteDatabaseRequest& request, const DeleteDatabaseAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteDatabase(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DeleteDatabaseOutcomeCallable RdsClient::deleteDatabaseCallable(const DeleteDatabaseRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteDatabase(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::ModifyGuardDomainModeOutcome RdsClient::modifyGuardDomainMode(const ModifyGuardDomainModeRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyGuardDomainModeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyGuardDomainModeOutcome(ModifyGuardDomainModeResult(outcome.result())); + else + return ModifyGuardDomainModeOutcome(outcome.error()); +} + +void RdsClient::modifyGuardDomainModeAsync(const ModifyGuardDomainModeRequest& request, const ModifyGuardDomainModeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyGuardDomainMode(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::ModifyGuardDomainModeOutcomeCallable RdsClient::modifyGuardDomainModeCallable(const ModifyGuardDomainModeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyGuardDomainMode(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeBackupPolicyOutcome RdsClient::describeBackupPolicy(const DescribeBackupPolicyRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeBackupPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeBackupPolicyOutcome(DescribeBackupPolicyResult(outcome.result())); + else + return DescribeBackupPolicyOutcome(outcome.error()); +} + +void RdsClient::describeBackupPolicyAsync(const DescribeBackupPolicyRequest& request, const DescribeBackupPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeBackupPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeBackupPolicyOutcomeCallable RdsClient::describeBackupPolicyCallable(const DescribeBackupPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeBackupPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::CreateMigrateTaskForSQLServerOutcome RdsClient::createMigrateTaskForSQLServer(const CreateMigrateTaskForSQLServerRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return CreateMigrateTaskForSQLServerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateMigrateTaskForSQLServerOutcome(CreateMigrateTaskForSQLServerResult(outcome.result())); + else + return CreateMigrateTaskForSQLServerOutcome(outcome.error()); +} + +void RdsClient::createMigrateTaskForSQLServerAsync(const CreateMigrateTaskForSQLServerRequest& request, const CreateMigrateTaskForSQLServerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createMigrateTaskForSQLServer(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::CreateMigrateTaskForSQLServerOutcomeCallable RdsClient::createMigrateTaskForSQLServerCallable(const CreateMigrateTaskForSQLServerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createMigrateTaskForSQLServer(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeDBInstanceIPArrayListOutcome RdsClient::describeDBInstanceIPArrayList(const DescribeDBInstanceIPArrayListRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDBInstanceIPArrayListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDBInstanceIPArrayListOutcome(DescribeDBInstanceIPArrayListResult(outcome.result())); + else + return DescribeDBInstanceIPArrayListOutcome(outcome.error()); +} + +void RdsClient::describeDBInstanceIPArrayListAsync(const DescribeDBInstanceIPArrayListRequest& request, const DescribeDBInstanceIPArrayListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDBInstanceIPArrayList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeDBInstanceIPArrayListOutcomeCallable RdsClient::describeDBInstanceIPArrayListCallable(const DescribeDBInstanceIPArrayListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDBInstanceIPArrayList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::SwitchDBInstanceHAOutcome RdsClient::switchDBInstanceHA(const SwitchDBInstanceHARequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return SwitchDBInstanceHAOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SwitchDBInstanceHAOutcome(SwitchDBInstanceHAResult(outcome.result())); + else + return SwitchDBInstanceHAOutcome(outcome.error()); +} + +void RdsClient::switchDBInstanceHAAsync(const SwitchDBInstanceHARequest& request, const SwitchDBInstanceHAAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, switchDBInstanceHA(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::SwitchDBInstanceHAOutcomeCallable RdsClient::switchDBInstanceHACallable(const SwitchDBInstanceHARequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->switchDBInstanceHA(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::DescribeBackupSetsForSecurityOutcome RdsClient::describeBackupSetsForSecurity(const DescribeBackupSetsForSecurityRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeBackupSetsForSecurityOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeBackupSetsForSecurityOutcome(DescribeBackupSetsForSecurityResult(outcome.result())); + else + return DescribeBackupSetsForSecurityOutcome(outcome.error()); +} + +void RdsClient::describeBackupSetsForSecurityAsync(const DescribeBackupSetsForSecurityRequest& request, const DescribeBackupSetsForSecurityAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeBackupSetsForSecurity(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::DescribeBackupSetsForSecurityOutcomeCallable RdsClient::describeBackupSetsForSecurityCallable(const DescribeBackupSetsForSecurityRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeBackupSetsForSecurity(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +RdsClient::ResetAccountForPGOutcome RdsClient::resetAccountForPG(const ResetAccountForPGRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ResetAccountForPGOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ResetAccountForPGOutcome(ResetAccountForPGResult(outcome.result())); + else + return ResetAccountForPGOutcome(outcome.error()); +} + +void RdsClient::resetAccountForPGAsync(const ResetAccountForPGRequest& request, const ResetAccountForPGAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, resetAccountForPG(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +RdsClient::ResetAccountForPGOutcomeCallable RdsClient::resetAccountForPGCallable(const ResetAccountForPGRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->resetAccountForPG(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/rds/src/RdsRequest.cc b/rds/src/RdsRequest.cc new file mode 100644 index 000000000..ae3d28c36 --- /dev/null +++ b/rds/src/RdsRequest.cc @@ -0,0 +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 namespace AlibabaCloud; +using namespace AlibabaCloud::Rds; + +RdsRequest::RdsRequest(const std::string & action) : + RpcServiceRequest("rds", "2014-08-15", action) +{ } + +RdsRequest::~RdsRequest() +{ } \ No newline at end of file diff --git a/rds/src/model/AddBuDBInstanceRelationRequest.cc b/rds/src/model/AddBuDBInstanceRelationRequest.cc new file mode 100644 index 000000000..b660766f1 --- /dev/null +++ b/rds/src/model/AddBuDBInstanceRelationRequest.cc @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +AddBuDBInstanceRelationRequest::AddBuDBInstanceRelationRequest() : + RdsRequest("AddBuDBInstanceRelation") +{} + +AddBuDBInstanceRelationRequest::~AddBuDBInstanceRelationRequest() +{} + +std::string AddBuDBInstanceRelationRequest::getBusinessUnit()const +{ + return businessUnit_; +} + +void AddBuDBInstanceRelationRequest::setBusinessUnit(const std::string& businessUnit) +{ + businessUnit_ = businessUnit; + setParameter("BusinessUnit", businessUnit); +} + +long AddBuDBInstanceRelationRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void AddBuDBInstanceRelationRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string AddBuDBInstanceRelationRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void AddBuDBInstanceRelationRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string AddBuDBInstanceRelationRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void AddBuDBInstanceRelationRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long AddBuDBInstanceRelationRequest::getOwnerId()const +{ + return ownerId_; +} + +void AddBuDBInstanceRelationRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string AddBuDBInstanceRelationRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void AddBuDBInstanceRelationRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/AddBuDBInstanceRelationResult.cc b/rds/src/model/AddBuDBInstanceRelationResult.cc new file mode 100644 index 000000000..135b9f67e --- /dev/null +++ b/rds/src/model/AddBuDBInstanceRelationResult.cc @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +AddBuDBInstanceRelationResult::AddBuDBInstanceRelationResult() : + ServiceResult() +{} + +AddBuDBInstanceRelationResult::AddBuDBInstanceRelationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddBuDBInstanceRelationResult::~AddBuDBInstanceRelationResult() +{} + +void AddBuDBInstanceRelationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + businessUnit_ = value["BusinessUnit"].asString(); + dBInstanceName_ = value["DBInstanceName"].asString(); + +} + +std::string AddBuDBInstanceRelationResult::getBusinessUnit()const +{ + return businessUnit_; +} + +void AddBuDBInstanceRelationResult::setBusinessUnit(const std::string& businessUnit) +{ + businessUnit_ = businessUnit; +} + +std::string AddBuDBInstanceRelationResult::getDBInstanceName()const +{ + return dBInstanceName_; +} + +void AddBuDBInstanceRelationResult::setDBInstanceName(const std::string& dBInstanceName) +{ + dBInstanceName_ = dBInstanceName; +} + diff --git a/rds/src/model/AddTagsToResourceRequest.cc b/rds/src/model/AddTagsToResourceRequest.cc new file mode 100644 index 000000000..3079cab31 --- /dev/null +++ b/rds/src/model/AddTagsToResourceRequest.cc @@ -0,0 +1,248 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +AddTagsToResourceRequest::AddTagsToResourceRequest() : + RdsRequest("AddTagsToResource") +{} + +AddTagsToResourceRequest::~AddTagsToResourceRequest() +{} + +std::string AddTagsToResourceRequest::getTag4value()const +{ + return tag4value_; +} + +void AddTagsToResourceRequest::setTag4value(const std::string& tag4value) +{ + tag4value_ = tag4value; + setParameter("Tag4value", tag4value); +} + +long AddTagsToResourceRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void AddTagsToResourceRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string AddTagsToResourceRequest::getTag2key()const +{ + return tag2key_; +} + +void AddTagsToResourceRequest::setTag2key(const std::string& tag2key) +{ + tag2key_ = tag2key; + setParameter("Tag2key", tag2key); +} + +std::string AddTagsToResourceRequest::getTag5key()const +{ + return tag5key_; +} + +void AddTagsToResourceRequest::setTag5key(const std::string& tag5key) +{ + tag5key_ = tag5key; + setParameter("Tag5key", tag5key); +} + +std::string AddTagsToResourceRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void AddTagsToResourceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string AddTagsToResourceRequest::getClientToken()const +{ + return clientToken_; +} + +void AddTagsToResourceRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string AddTagsToResourceRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void AddTagsToResourceRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string AddTagsToResourceRequest::getTag3key()const +{ + return tag3key_; +} + +void AddTagsToResourceRequest::setTag3key(const std::string& tag3key) +{ + tag3key_ = tag3key; + setParameter("Tag3key", tag3key); +} + +long AddTagsToResourceRequest::getOwnerId()const +{ + return ownerId_; +} + +void AddTagsToResourceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string AddTagsToResourceRequest::getTag5value()const +{ + return tag5value_; +} + +void AddTagsToResourceRequest::setTag5value(const std::string& tag5value) +{ + tag5value_ = tag5value; + setParameter("Tag5value", tag5value); +} + +std::string AddTagsToResourceRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void AddTagsToResourceRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string AddTagsToResourceRequest::getTags()const +{ + return tags_; +} + +void AddTagsToResourceRequest::setTags(const std::string& tags) +{ + tags_ = tags; + setParameter("Tags", tags); +} + +std::string AddTagsToResourceRequest::getTag1key()const +{ + return tag1key_; +} + +void AddTagsToResourceRequest::setTag1key(const std::string& tag1key) +{ + tag1key_ = tag1key; + setParameter("Tag1key", tag1key); +} + +std::string AddTagsToResourceRequest::getTag1value()const +{ + return tag1value_; +} + +void AddTagsToResourceRequest::setTag1value(const std::string& tag1value) +{ + tag1value_ = tag1value; + setParameter("Tag1value", tag1value); +} + +std::string AddTagsToResourceRequest::getRegionId()const +{ + return regionId_; +} + +void AddTagsToResourceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string AddTagsToResourceRequest::getTag2value()const +{ + return tag2value_; +} + +void AddTagsToResourceRequest::setTag2value(const std::string& tag2value) +{ + tag2value_ = tag2value; + setParameter("Tag2value", tag2value); +} + +std::string AddTagsToResourceRequest::getTag4key()const +{ + return tag4key_; +} + +void AddTagsToResourceRequest::setTag4key(const std::string& tag4key) +{ + tag4key_ = tag4key; + setParameter("Tag4key", tag4key); +} + +std::string AddTagsToResourceRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void AddTagsToResourceRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +std::string AddTagsToResourceRequest::getTag3value()const +{ + return tag3value_; +} + +void AddTagsToResourceRequest::setTag3value(const std::string& tag3value) +{ + tag3value_ = tag3value; + setParameter("Tag3value", tag3value); +} + +std::string AddTagsToResourceRequest::getProxyId()const +{ + return proxyId_; +} + +void AddTagsToResourceRequest::setProxyId(const std::string& proxyId) +{ + proxyId_ = proxyId; + setParameter("ProxyId", proxyId); +} + diff --git a/rds/src/model/AddTagsToResourceResult.cc b/rds/src/model/AddTagsToResourceResult.cc new file mode 100644 index 000000000..97c73b85b --- /dev/null +++ b/rds/src/model/AddTagsToResourceResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +AddTagsToResourceResult::AddTagsToResourceResult() : + ServiceResult() +{} + +AddTagsToResourceResult::AddTagsToResourceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddTagsToResourceResult::~AddTagsToResourceResult() +{} + +void AddTagsToResourceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/AllocateInstancePrivateConnectionRequest.cc b/rds/src/model/AllocateInstancePrivateConnectionRequest.cc new file mode 100644 index 000000000..f713e79a4 --- /dev/null +++ b/rds/src/model/AllocateInstancePrivateConnectionRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +AllocateInstancePrivateConnectionRequest::AllocateInstancePrivateConnectionRequest() : + RdsRequest("AllocateInstancePrivateConnection") +{} + +AllocateInstancePrivateConnectionRequest::~AllocateInstancePrivateConnectionRequest() +{} + +long AllocateInstancePrivateConnectionRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void AllocateInstancePrivateConnectionRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string AllocateInstancePrivateConnectionRequest::getConnectionStringPrefix()const +{ + return connectionStringPrefix_; +} + +void AllocateInstancePrivateConnectionRequest::setConnectionStringPrefix(const std::string& connectionStringPrefix) +{ + connectionStringPrefix_ = connectionStringPrefix; + setParameter("ConnectionStringPrefix", connectionStringPrefix); +} + +std::string AllocateInstancePrivateConnectionRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void AllocateInstancePrivateConnectionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string AllocateInstancePrivateConnectionRequest::getPort()const +{ + return port_; +} + +void AllocateInstancePrivateConnectionRequest::setPort(const std::string& port) +{ + port_ = port; + setParameter("Port", port); +} + +std::string AllocateInstancePrivateConnectionRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void AllocateInstancePrivateConnectionRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string AllocateInstancePrivateConnectionRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void AllocateInstancePrivateConnectionRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long AllocateInstancePrivateConnectionRequest::getOwnerId()const +{ + return ownerId_; +} + +void AllocateInstancePrivateConnectionRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string AllocateInstancePrivateConnectionRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void AllocateInstancePrivateConnectionRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/AllocateInstancePrivateConnectionResult.cc b/rds/src/model/AllocateInstancePrivateConnectionResult.cc new file mode 100644 index 000000000..f0ad8188a --- /dev/null +++ b/rds/src/model/AllocateInstancePrivateConnectionResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +AllocateInstancePrivateConnectionResult::AllocateInstancePrivateConnectionResult() : + ServiceResult() +{} + +AllocateInstancePrivateConnectionResult::AllocateInstancePrivateConnectionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AllocateInstancePrivateConnectionResult::~AllocateInstancePrivateConnectionResult() +{} + +void AllocateInstancePrivateConnectionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/AllocateInstancePublicConnectionRequest.cc b/rds/src/model/AllocateInstancePublicConnectionRequest.cc new file mode 100644 index 000000000..595c2b008 --- /dev/null +++ b/rds/src/model/AllocateInstancePublicConnectionRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +AllocateInstancePublicConnectionRequest::AllocateInstancePublicConnectionRequest() : + RdsRequest("AllocateInstancePublicConnection") +{} + +AllocateInstancePublicConnectionRequest::~AllocateInstancePublicConnectionRequest() +{} + +long AllocateInstancePublicConnectionRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void AllocateInstancePublicConnectionRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string AllocateInstancePublicConnectionRequest::getConnectionStringPrefix()const +{ + return connectionStringPrefix_; +} + +void AllocateInstancePublicConnectionRequest::setConnectionStringPrefix(const std::string& connectionStringPrefix) +{ + connectionStringPrefix_ = connectionStringPrefix; + setParameter("ConnectionStringPrefix", connectionStringPrefix); +} + +std::string AllocateInstancePublicConnectionRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void AllocateInstancePublicConnectionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string AllocateInstancePublicConnectionRequest::getPort()const +{ + return port_; +} + +void AllocateInstancePublicConnectionRequest::setPort(const std::string& port) +{ + port_ = port; + setParameter("Port", port); +} + +std::string AllocateInstancePublicConnectionRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void AllocateInstancePublicConnectionRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string AllocateInstancePublicConnectionRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void AllocateInstancePublicConnectionRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long AllocateInstancePublicConnectionRequest::getOwnerId()const +{ + return ownerId_; +} + +void AllocateInstancePublicConnectionRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string AllocateInstancePublicConnectionRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void AllocateInstancePublicConnectionRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/AllocateInstancePublicConnectionResult.cc b/rds/src/model/AllocateInstancePublicConnectionResult.cc new file mode 100644 index 000000000..d6872c234 --- /dev/null +++ b/rds/src/model/AllocateInstancePublicConnectionResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +AllocateInstancePublicConnectionResult::AllocateInstancePublicConnectionResult() : + ServiceResult() +{} + +AllocateInstancePublicConnectionResult::AllocateInstancePublicConnectionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AllocateInstancePublicConnectionResult::~AllocateInstancePublicConnectionResult() +{} + +void AllocateInstancePublicConnectionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/AllocateReadWriteSplittingConnectionRequest.cc b/rds/src/model/AllocateReadWriteSplittingConnectionRequest.cc new file mode 100644 index 000000000..2e1d60c5f --- /dev/null +++ b/rds/src/model/AllocateReadWriteSplittingConnectionRequest.cc @@ -0,0 +1,160 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +AllocateReadWriteSplittingConnectionRequest::AllocateReadWriteSplittingConnectionRequest() : + RdsRequest("AllocateReadWriteSplittingConnection") +{} + +AllocateReadWriteSplittingConnectionRequest::~AllocateReadWriteSplittingConnectionRequest() +{} + +long AllocateReadWriteSplittingConnectionRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void AllocateReadWriteSplittingConnectionRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string AllocateReadWriteSplittingConnectionRequest::getConnectionStringPrefix()const +{ + return connectionStringPrefix_; +} + +void AllocateReadWriteSplittingConnectionRequest::setConnectionStringPrefix(const std::string& connectionStringPrefix) +{ + connectionStringPrefix_ = connectionStringPrefix; + setParameter("ConnectionStringPrefix", connectionStringPrefix); +} + +std::string AllocateReadWriteSplittingConnectionRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void AllocateReadWriteSplittingConnectionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string AllocateReadWriteSplittingConnectionRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void AllocateReadWriteSplittingConnectionRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string AllocateReadWriteSplittingConnectionRequest::getWeight()const +{ + return weight_; +} + +void AllocateReadWriteSplittingConnectionRequest::setWeight(const std::string& weight) +{ + weight_ = weight; + setParameter("Weight", weight); +} + +long AllocateReadWriteSplittingConnectionRequest::getOwnerId()const +{ + return ownerId_; +} + +void AllocateReadWriteSplittingConnectionRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string AllocateReadWriteSplittingConnectionRequest::getIPType()const +{ + return iPType_; +} + +void AllocateReadWriteSplittingConnectionRequest::setIPType(const std::string& iPType) +{ + iPType_ = iPType; + setParameter("IPType", iPType); +} + +std::string AllocateReadWriteSplittingConnectionRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void AllocateReadWriteSplittingConnectionRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string AllocateReadWriteSplittingConnectionRequest::getPort()const +{ + return port_; +} + +void AllocateReadWriteSplittingConnectionRequest::setPort(const std::string& port) +{ + port_ = port; + setParameter("Port", port); +} + +std::string AllocateReadWriteSplittingConnectionRequest::getDistributionType()const +{ + return distributionType_; +} + +void AllocateReadWriteSplittingConnectionRequest::setDistributionType(const std::string& distributionType) +{ + distributionType_ = distributionType; + setParameter("DistributionType", distributionType); +} + +std::string AllocateReadWriteSplittingConnectionRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void AllocateReadWriteSplittingConnectionRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +std::string AllocateReadWriteSplittingConnectionRequest::getMaxDelayTime()const +{ + return maxDelayTime_; +} + +void AllocateReadWriteSplittingConnectionRequest::setMaxDelayTime(const std::string& maxDelayTime) +{ + maxDelayTime_ = maxDelayTime; + setParameter("MaxDelayTime", maxDelayTime); +} + diff --git a/rds/src/model/AllocateReadWriteSplittingConnectionResult.cc b/rds/src/model/AllocateReadWriteSplittingConnectionResult.cc new file mode 100644 index 000000000..c756caa3e --- /dev/null +++ b/rds/src/model/AllocateReadWriteSplittingConnectionResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +AllocateReadWriteSplittingConnectionResult::AllocateReadWriteSplittingConnectionResult() : + ServiceResult() +{} + +AllocateReadWriteSplittingConnectionResult::AllocateReadWriteSplittingConnectionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AllocateReadWriteSplittingConnectionResult::~AllocateReadWriteSplittingConnectionResult() +{} + +void AllocateReadWriteSplittingConnectionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/CalculateDBInstanceWeightRequest.cc b/rds/src/model/CalculateDBInstanceWeightRequest.cc new file mode 100644 index 000000000..8ef1b77c2 --- /dev/null +++ b/rds/src/model/CalculateDBInstanceWeightRequest.cc @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +CalculateDBInstanceWeightRequest::CalculateDBInstanceWeightRequest() : + RdsRequest("CalculateDBInstanceWeight") +{} + +CalculateDBInstanceWeightRequest::~CalculateDBInstanceWeightRequest() +{} + +long CalculateDBInstanceWeightRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CalculateDBInstanceWeightRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CalculateDBInstanceWeightRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CalculateDBInstanceWeightRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CalculateDBInstanceWeightRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CalculateDBInstanceWeightRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string CalculateDBInstanceWeightRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void CalculateDBInstanceWeightRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long CalculateDBInstanceWeightRequest::getOwnerId()const +{ + return ownerId_; +} + +void CalculateDBInstanceWeightRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CalculateDBInstanceWeightRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CalculateDBInstanceWeightRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/CalculateDBInstanceWeightResult.cc b/rds/src/model/CalculateDBInstanceWeightResult.cc new file mode 100644 index 000000000..750238c57 --- /dev/null +++ b/rds/src/model/CalculateDBInstanceWeightResult.cc @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +CalculateDBInstanceWeightResult::CalculateDBInstanceWeightResult() : + ServiceResult() +{} + +CalculateDBInstanceWeightResult::CalculateDBInstanceWeightResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CalculateDBInstanceWeightResult::~CalculateDBInstanceWeightResult() +{} + +void CalculateDBInstanceWeightResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["DBInstanceWeight"]; + for (auto value : allItems) + { + DBInstanceWeight dBInstanceWeightObject; + dBInstanceWeightObject.dBInstanceId = value["DBInstanceId"].asString(); + dBInstanceWeightObject.dBInstanceType = value["DBInstanceType"].asString(); + dBInstanceWeightObject.availability = value["Availability"].asString(); + dBInstanceWeightObject.weight = value["Weight"].asString(); + items_.push_back(dBInstanceWeightObject); + } + +} + diff --git a/rds/src/model/CancelImportRequest.cc b/rds/src/model/CancelImportRequest.cc new file mode 100644 index 000000000..c2d0fce23 --- /dev/null +++ b/rds/src/model/CancelImportRequest.cc @@ -0,0 +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. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +CancelImportRequest::CancelImportRequest() : + RdsRequest("CancelImport") +{} + +CancelImportRequest::~CancelImportRequest() +{} + +long CancelImportRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CancelImportRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +int CancelImportRequest::getImportId()const +{ + return importId_; +} + +void CancelImportRequest::setImportId(int importId) +{ + importId_ = importId; + setParameter("ImportId", std::to_string(importId)); +} + +std::string CancelImportRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CancelImportRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CancelImportRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CancelImportRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string CancelImportRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void CancelImportRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long CancelImportRequest::getOwnerId()const +{ + return ownerId_; +} + +void CancelImportRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CancelImportRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CancelImportRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/CancelImportResult.cc b/rds/src/model/CancelImportResult.cc new file mode 100644 index 000000000..0480af025 --- /dev/null +++ b/rds/src/model/CancelImportResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +CancelImportResult::CancelImportResult() : + ServiceResult() +{} + +CancelImportResult::CancelImportResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CancelImportResult::~CancelImportResult() +{} + +void CancelImportResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/CheckAccountNameAvailableRequest.cc b/rds/src/model/CheckAccountNameAvailableRequest.cc new file mode 100644 index 000000000..08a5d354f --- /dev/null +++ b/rds/src/model/CheckAccountNameAvailableRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +CheckAccountNameAvailableRequest::CheckAccountNameAvailableRequest() : + RdsRequest("CheckAccountNameAvailable") +{} + +CheckAccountNameAvailableRequest::~CheckAccountNameAvailableRequest() +{} + +long CheckAccountNameAvailableRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CheckAccountNameAvailableRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CheckAccountNameAvailableRequest::getAccountName()const +{ + return accountName_; +} + +void CheckAccountNameAvailableRequest::setAccountName(const std::string& accountName) +{ + accountName_ = accountName; + setParameter("AccountName", accountName); +} + +std::string CheckAccountNameAvailableRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CheckAccountNameAvailableRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CheckAccountNameAvailableRequest::getClientToken()const +{ + return clientToken_; +} + +void CheckAccountNameAvailableRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string CheckAccountNameAvailableRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CheckAccountNameAvailableRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string CheckAccountNameAvailableRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void CheckAccountNameAvailableRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long CheckAccountNameAvailableRequest::getOwnerId()const +{ + return ownerId_; +} + +void CheckAccountNameAvailableRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CheckAccountNameAvailableRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CheckAccountNameAvailableRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/CheckAccountNameAvailableResult.cc b/rds/src/model/CheckAccountNameAvailableResult.cc new file mode 100644 index 000000000..0418c44c5 --- /dev/null +++ b/rds/src/model/CheckAccountNameAvailableResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +CheckAccountNameAvailableResult::CheckAccountNameAvailableResult() : + ServiceResult() +{} + +CheckAccountNameAvailableResult::CheckAccountNameAvailableResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CheckAccountNameAvailableResult::~CheckAccountNameAvailableResult() +{} + +void CheckAccountNameAvailableResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/CheckDBNameAvailableRequest.cc b/rds/src/model/CheckDBNameAvailableRequest.cc new file mode 100644 index 000000000..91808ecb8 --- /dev/null +++ b/rds/src/model/CheckDBNameAvailableRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +CheckDBNameAvailableRequest::CheckDBNameAvailableRequest() : + RdsRequest("CheckDBNameAvailable") +{} + +CheckDBNameAvailableRequest::~CheckDBNameAvailableRequest() +{} + +long CheckDBNameAvailableRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CheckDBNameAvailableRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CheckDBNameAvailableRequest::getDBName()const +{ + return dBName_; +} + +void CheckDBNameAvailableRequest::setDBName(const std::string& dBName) +{ + dBName_ = dBName; + setParameter("DBName", dBName); +} + +std::string CheckDBNameAvailableRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CheckDBNameAvailableRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CheckDBNameAvailableRequest::getClientToken()const +{ + return clientToken_; +} + +void CheckDBNameAvailableRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string CheckDBNameAvailableRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CheckDBNameAvailableRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string CheckDBNameAvailableRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void CheckDBNameAvailableRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long CheckDBNameAvailableRequest::getOwnerId()const +{ + return ownerId_; +} + +void CheckDBNameAvailableRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CheckDBNameAvailableRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CheckDBNameAvailableRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/CheckDBNameAvailableResult.cc b/rds/src/model/CheckDBNameAvailableResult.cc new file mode 100644 index 000000000..e20b550f5 --- /dev/null +++ b/rds/src/model/CheckDBNameAvailableResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +CheckDBNameAvailableResult::CheckDBNameAvailableResult() : + ServiceResult() +{} + +CheckDBNameAvailableResult::CheckDBNameAvailableResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CheckDBNameAvailableResult::~CheckDBNameAvailableResult() +{} + +void CheckDBNameAvailableResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/CheckRecoveryConditionsRequest.cc b/rds/src/model/CheckRecoveryConditionsRequest.cc new file mode 100644 index 000000000..7e3fa475b --- /dev/null +++ b/rds/src/model/CheckRecoveryConditionsRequest.cc @@ -0,0 +1,127 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +CheckRecoveryConditionsRequest::CheckRecoveryConditionsRequest() : + RdsRequest("CheckRecoveryConditions") +{} + +CheckRecoveryConditionsRequest::~CheckRecoveryConditionsRequest() +{} + +long CheckRecoveryConditionsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CheckRecoveryConditionsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CheckRecoveryConditionsRequest::getRestoreTime()const +{ + return restoreTime_; +} + +void CheckRecoveryConditionsRequest::setRestoreTime(const std::string& restoreTime) +{ + restoreTime_ = restoreTime; + setParameter("RestoreTime", restoreTime); +} + +std::string CheckRecoveryConditionsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CheckRecoveryConditionsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CheckRecoveryConditionsRequest::getBackupFile()const +{ + return backupFile_; +} + +void CheckRecoveryConditionsRequest::setBackupFile(const std::string& backupFile) +{ + backupFile_ = backupFile; + setParameter("BackupFile", backupFile); +} + +std::string CheckRecoveryConditionsRequest::getBackupId()const +{ + return backupId_; +} + +void CheckRecoveryConditionsRequest::setBackupId(const std::string& backupId) +{ + backupId_ = backupId; + setParameter("BackupId", backupId); +} + +std::string CheckRecoveryConditionsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CheckRecoveryConditionsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string CheckRecoveryConditionsRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void CheckRecoveryConditionsRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long CheckRecoveryConditionsRequest::getOwnerId()const +{ + return ownerId_; +} + +void CheckRecoveryConditionsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CheckRecoveryConditionsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CheckRecoveryConditionsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/CheckRecoveryConditionsResult.cc b/rds/src/model/CheckRecoveryConditionsResult.cc new file mode 100644 index 000000000..ca03ab663 --- /dev/null +++ b/rds/src/model/CheckRecoveryConditionsResult.cc @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +CheckRecoveryConditionsResult::CheckRecoveryConditionsResult() : + ServiceResult() +{} + +CheckRecoveryConditionsResult::CheckRecoveryConditionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CheckRecoveryConditionsResult::~CheckRecoveryConditionsResult() +{} + +void CheckRecoveryConditionsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + dBInstanceId_ = value["DBInstanceId"].asString(); + recoveryStatus_ = value["RecoveryStatus"].asString(); + +} + +std::string CheckRecoveryConditionsResult::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void CheckRecoveryConditionsResult::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; +} + +std::string CheckRecoveryConditionsResult::getRecoveryStatus()const +{ + return recoveryStatus_; +} + +void CheckRecoveryConditionsResult::setRecoveryStatus(const std::string& recoveryStatus) +{ + recoveryStatus_ = recoveryStatus; +} + diff --git a/rds/src/model/CheckResourceRequest.cc b/rds/src/model/CheckResourceRequest.cc new file mode 100644 index 000000000..a8cc156aa --- /dev/null +++ b/rds/src/model/CheckResourceRequest.cc @@ -0,0 +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 namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +CheckResourceRequest::CheckResourceRequest() : + RdsRequest("CheckResource") +{} + +CheckResourceRequest::~CheckResourceRequest() +{} + +long CheckResourceRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CheckResourceRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CheckResourceRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CheckResourceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CheckResourceRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CheckResourceRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string CheckResourceRequest::getSpecifyCount()const +{ + return specifyCount_; +} + +void CheckResourceRequest::setSpecifyCount(const std::string& specifyCount) +{ + specifyCount_ = specifyCount; + setParameter("SpecifyCount", specifyCount); +} + +std::string CheckResourceRequest::getEngineVersion()const +{ + return engineVersion_; +} + +void CheckResourceRequest::setEngineVersion(const std::string& engineVersion) +{ + engineVersion_ = engineVersion; + setParameter("EngineVersion", engineVersion); +} + +long CheckResourceRequest::getOwnerId()const +{ + return ownerId_; +} + +void CheckResourceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CheckResourceRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CheckResourceRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string CheckResourceRequest::getDBInstanceClass()const +{ + return dBInstanceClass_; +} + +void CheckResourceRequest::setDBInstanceClass(const std::string& dBInstanceClass) +{ + dBInstanceClass_ = dBInstanceClass; + setParameter("DBInstanceClass", dBInstanceClass); +} + +std::string CheckResourceRequest::getEngine()const +{ + return engine_; +} + +void CheckResourceRequest::setEngine(const std::string& engine) +{ + engine_ = engine; + setParameter("Engine", engine); +} + +std::string CheckResourceRequest::getRegionId()const +{ + return regionId_; +} + +void CheckResourceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string CheckResourceRequest::getZoneId()const +{ + return zoneId_; +} + +void CheckResourceRequest::setZoneId(const std::string& zoneId) +{ + zoneId_ = zoneId; + setParameter("ZoneId", zoneId); +} + +std::string CheckResourceRequest::getDBInstanceUseType()const +{ + return dBInstanceUseType_; +} + +void CheckResourceRequest::setDBInstanceUseType(const std::string& dBInstanceUseType) +{ + dBInstanceUseType_ = dBInstanceUseType; + setParameter("DBInstanceUseType", dBInstanceUseType); +} + +std::string CheckResourceRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void CheckResourceRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + diff --git a/rds/src/model/CheckResourceResult.cc b/rds/src/model/CheckResourceResult.cc new file mode 100644 index 000000000..89fdc33b7 --- /dev/null +++ b/rds/src/model/CheckResourceResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +CheckResourceResult::CheckResourceResult() : + ServiceResult() +{} + +CheckResourceResult::CheckResourceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CheckResourceResult::~CheckResourceResult() +{} + +void CheckResourceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allResources = value["Resources"]["Resource"]; + for (auto value : allResources) + { + Resource resourceObject; + resourceObject.dBInstanceAvailable = value["DBInstanceAvailable"].asString(); + resourceObject.engine = value["Engine"].asString(); + resourceObject.engineVersion = value["EngineVersion"].asString(); + resources_.push_back(resourceObject); + } + specifyCount_ = value["SpecifyCount"].asString(); + +} + +std::string CheckResourceResult::getSpecifyCount()const +{ + return specifyCount_; +} + +void CheckResourceResult::setSpecifyCount(const std::string& specifyCount) +{ + specifyCount_ = specifyCount; +} + diff --git a/rds/src/model/CloneDBInstanceRequest.cc b/rds/src/model/CloneDBInstanceRequest.cc new file mode 100644 index 000000000..d6aeeb9ac --- /dev/null +++ b/rds/src/model/CloneDBInstanceRequest.cc @@ -0,0 +1,248 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +CloneDBInstanceRequest::CloneDBInstanceRequest() : + RdsRequest("CloneDBInstance") +{} + +CloneDBInstanceRequest::~CloneDBInstanceRequest() +{} + +long CloneDBInstanceRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CloneDBInstanceRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CloneDBInstanceRequest::getRestoreTime()const +{ + return restoreTime_; +} + +void CloneDBInstanceRequest::setRestoreTime(const std::string& restoreTime) +{ + restoreTime_ = restoreTime; + setParameter("RestoreTime", restoreTime); +} + +std::string CloneDBInstanceRequest::getPeriod()const +{ + return period_; +} + +void CloneDBInstanceRequest::setPeriod(const std::string& period) +{ + period_ = period; + setParameter("Period", period); +} + +int CloneDBInstanceRequest::getDBInstanceStorage()const +{ + return dBInstanceStorage_; +} + +void CloneDBInstanceRequest::setDBInstanceStorage(int dBInstanceStorage) +{ + dBInstanceStorage_ = dBInstanceStorage; + setParameter("DBInstanceStorage", std::to_string(dBInstanceStorage)); +} + +std::string CloneDBInstanceRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CloneDBInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CloneDBInstanceRequest::getClientToken()const +{ + return clientToken_; +} + +void CloneDBInstanceRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string CloneDBInstanceRequest::getBackupId()const +{ + return backupId_; +} + +void CloneDBInstanceRequest::setBackupId(const std::string& backupId) +{ + backupId_ = backupId; + setParameter("BackupId", backupId); +} + +std::string CloneDBInstanceRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CloneDBInstanceRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long CloneDBInstanceRequest::getOwnerId()const +{ + return ownerId_; +} + +void CloneDBInstanceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CloneDBInstanceRequest::getUsedTime()const +{ + return usedTime_; +} + +void CloneDBInstanceRequest::setUsedTime(const std::string& usedTime) +{ + usedTime_ = usedTime; + setParameter("UsedTime", usedTime); +} + +std::string CloneDBInstanceRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CloneDBInstanceRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string CloneDBInstanceRequest::getDBInstanceClass()const +{ + return dBInstanceClass_; +} + +void CloneDBInstanceRequest::setDBInstanceClass(const std::string& dBInstanceClass) +{ + dBInstanceClass_ = dBInstanceClass; + setParameter("DBInstanceClass", dBInstanceClass); +} + +std::string CloneDBInstanceRequest::getVSwitchId()const +{ + return vSwitchId_; +} + +void CloneDBInstanceRequest::setVSwitchId(const std::string& vSwitchId) +{ + vSwitchId_ = vSwitchId; + setParameter("VSwitchId", vSwitchId); +} + +std::string CloneDBInstanceRequest::getPrivateIpAddress()const +{ + return privateIpAddress_; +} + +void CloneDBInstanceRequest::setPrivateIpAddress(const std::string& privateIpAddress) +{ + privateIpAddress_ = privateIpAddress; + setParameter("PrivateIpAddress", privateIpAddress); +} + +std::string CloneDBInstanceRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void CloneDBInstanceRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setParameter("ResourceGroupId", resourceGroupId); +} + +std::string CloneDBInstanceRequest::getVPCId()const +{ + return vPCId_; +} + +void CloneDBInstanceRequest::setVPCId(const std::string& vPCId) +{ + vPCId_ = vPCId; + setParameter("VPCId", vPCId); +} + +std::string CloneDBInstanceRequest::getDBInstanceDescription()const +{ + return dBInstanceDescription_; +} + +void CloneDBInstanceRequest::setDBInstanceDescription(const std::string& dBInstanceDescription) +{ + dBInstanceDescription_ = dBInstanceDescription; + setParameter("DBInstanceDescription", dBInstanceDescription); +} + +std::string CloneDBInstanceRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void CloneDBInstanceRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +std::string CloneDBInstanceRequest::getPayType()const +{ + return payType_; +} + +void CloneDBInstanceRequest::setPayType(const std::string& payType) +{ + payType_ = payType; + setParameter("PayType", payType); +} + +std::string CloneDBInstanceRequest::getInstanceNetworkType()const +{ + return instanceNetworkType_; +} + +void CloneDBInstanceRequest::setInstanceNetworkType(const std::string& instanceNetworkType) +{ + instanceNetworkType_ = instanceNetworkType; + setParameter("InstanceNetworkType", instanceNetworkType); +} + diff --git a/rds/src/model/CloneDBInstanceResult.cc b/rds/src/model/CloneDBInstanceResult.cc new file mode 100644 index 000000000..dfb56b39f --- /dev/null +++ b/rds/src/model/CloneDBInstanceResult.cc @@ -0,0 +1,89 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +CloneDBInstanceResult::CloneDBInstanceResult() : + ServiceResult() +{} + +CloneDBInstanceResult::CloneDBInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CloneDBInstanceResult::~CloneDBInstanceResult() +{} + +void CloneDBInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + dBInstanceId_ = value["DBInstanceId"].asString(); + orderId_ = value["OrderId"].asString(); + connectionString_ = value["ConnectionString"].asString(); + port_ = value["Port"].asString(); + +} + +std::string CloneDBInstanceResult::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void CloneDBInstanceResult::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; +} + +std::string CloneDBInstanceResult::getPort()const +{ + return port_; +} + +void CloneDBInstanceResult::setPort(const std::string& port) +{ + port_ = port; +} + +std::string CloneDBInstanceResult::getOrderId()const +{ + return orderId_; +} + +void CloneDBInstanceResult::setOrderId(const std::string& orderId) +{ + orderId_ = orderId; +} + +std::string CloneDBInstanceResult::getConnectionString()const +{ + return connectionString_; +} + +void CloneDBInstanceResult::setConnectionString(const std::string& connectionString) +{ + connectionString_ = connectionString; +} + diff --git a/rds/src/model/CopyDatabaseRequest.cc b/rds/src/model/CopyDatabaseRequest.cc new file mode 100644 index 000000000..0faaab032 --- /dev/null +++ b/rds/src/model/CopyDatabaseRequest.cc @@ -0,0 +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 namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +CopyDatabaseRequest::CopyDatabaseRequest() : + RdsRequest("CopyDatabase") +{} + +CopyDatabaseRequest::~CopyDatabaseRequest() +{} + +long CopyDatabaseRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CopyDatabaseRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CopyDatabaseRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CopyDatabaseRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +long CopyDatabaseRequest::getOwnerId()const +{ + return ownerId_; +} + +void CopyDatabaseRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CopyDatabaseRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CopyDatabaseRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/CopyDatabaseResult.cc b/rds/src/model/CopyDatabaseResult.cc new file mode 100644 index 000000000..bf9128b34 --- /dev/null +++ b/rds/src/model/CopyDatabaseResult.cc @@ -0,0 +1,78 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +CopyDatabaseResult::CopyDatabaseResult() : + ServiceResult() +{} + +CopyDatabaseResult::CopyDatabaseResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CopyDatabaseResult::~CopyDatabaseResult() +{} + +void CopyDatabaseResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + dBName_ = value["DBName"].asString(); + dBStatus_ = value["DBStatus"].asString(); + taskId_ = value["TaskId"].asString(); + +} + +std::string CopyDatabaseResult::getTaskId()const +{ + return taskId_; +} + +void CopyDatabaseResult::setTaskId(const std::string& taskId) +{ + taskId_ = taskId; +} + +std::string CopyDatabaseResult::getDBName()const +{ + return dBName_; +} + +void CopyDatabaseResult::setDBName(const std::string& dBName) +{ + dBName_ = dBName; +} + +std::string CopyDatabaseResult::getDBStatus()const +{ + return dBStatus_; +} + +void CopyDatabaseResult::setDBStatus(const std::string& dBStatus) +{ + dBStatus_ = dBStatus; +} + diff --git a/rds/src/model/CreateAccountRequest.cc b/rds/src/model/CreateAccountRequest.cc new file mode 100644 index 000000000..bd0b38834 --- /dev/null +++ b/rds/src/model/CreateAccountRequest.cc @@ -0,0 +1,138 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +CreateAccountRequest::CreateAccountRequest() : + RdsRequest("CreateAccount") +{} + +CreateAccountRequest::~CreateAccountRequest() +{} + +long CreateAccountRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateAccountRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateAccountRequest::getAccountPassword()const +{ + return accountPassword_; +} + +void CreateAccountRequest::setAccountPassword(const std::string& accountPassword) +{ + accountPassword_ = accountPassword; + setParameter("AccountPassword", accountPassword); +} + +std::string CreateAccountRequest::getAccountName()const +{ + return accountName_; +} + +void CreateAccountRequest::setAccountName(const std::string& accountName) +{ + accountName_ = accountName; + setParameter("AccountName", accountName); +} + +std::string CreateAccountRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateAccountRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateAccountRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateAccountRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string CreateAccountRequest::getAccountType()const +{ + return accountType_; +} + +void CreateAccountRequest::setAccountType(const std::string& accountType) +{ + accountType_ = accountType; + setParameter("AccountType", accountType); +} + +std::string CreateAccountRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void CreateAccountRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long CreateAccountRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateAccountRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateAccountRequest::getAccountDescription()const +{ + return accountDescription_; +} + +void CreateAccountRequest::setAccountDescription(const std::string& accountDescription) +{ + accountDescription_ = accountDescription; + setParameter("AccountDescription", accountDescription); +} + +std::string CreateAccountRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CreateAccountRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/CreateAccountResult.cc b/rds/src/model/CreateAccountResult.cc new file mode 100644 index 000000000..06f67b14a --- /dev/null +++ b/rds/src/model/CreateAccountResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +CreateAccountResult::CreateAccountResult() : + ServiceResult() +{} + +CreateAccountResult::CreateAccountResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateAccountResult::~CreateAccountResult() +{} + +void CreateAccountResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/CreateBackupRequest.cc b/rds/src/model/CreateBackupRequest.cc new file mode 100644 index 000000000..63c575a1a --- /dev/null +++ b/rds/src/model/CreateBackupRequest.cc @@ -0,0 +1,127 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +CreateBackupRequest::CreateBackupRequest() : + RdsRequest("CreateBackup") +{} + +CreateBackupRequest::~CreateBackupRequest() +{} + +std::string CreateBackupRequest::getBackupMethod()const +{ + return backupMethod_; +} + +void CreateBackupRequest::setBackupMethod(const std::string& backupMethod) +{ + backupMethod_ = backupMethod; + setParameter("BackupMethod", backupMethod); +} + +long CreateBackupRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateBackupRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateBackupRequest::getDBName()const +{ + return dBName_; +} + +void CreateBackupRequest::setDBName(const std::string& dBName) +{ + dBName_ = dBName; + setParameter("DBName", dBName); +} + +std::string CreateBackupRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateBackupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateBackupRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateBackupRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string CreateBackupRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void CreateBackupRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long CreateBackupRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateBackupRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateBackupRequest::getBackupType()const +{ + return backupType_; +} + +void CreateBackupRequest::setBackupType(const std::string& backupType) +{ + backupType_ = backupType; + setParameter("BackupType", backupType); +} + +std::string CreateBackupRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CreateBackupRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/CreateBackupResult.cc b/rds/src/model/CreateBackupResult.cc new file mode 100644 index 000000000..c3dd9cf0b --- /dev/null +++ b/rds/src/model/CreateBackupResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +CreateBackupResult::CreateBackupResult() : + ServiceResult() +{} + +CreateBackupResult::CreateBackupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateBackupResult::~CreateBackupResult() +{} + +void CreateBackupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/CreateDBInstanceReplicaRequest.cc b/rds/src/model/CreateDBInstanceReplicaRequest.cc new file mode 100644 index 000000000..936b7fcd8 --- /dev/null +++ b/rds/src/model/CreateDBInstanceReplicaRequest.cc @@ -0,0 +1,336 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +CreateDBInstanceReplicaRequest::CreateDBInstanceReplicaRequest() : + RdsRequest("CreateDBInstanceReplica") +{} + +CreateDBInstanceReplicaRequest::~CreateDBInstanceReplicaRequest() +{} + +std::string CreateDBInstanceReplicaRequest::getConnectionMode()const +{ + return connectionMode_; +} + +void CreateDBInstanceReplicaRequest::setConnectionMode(const std::string& connectionMode) +{ + connectionMode_ = connectionMode; + setParameter("ConnectionMode", connectionMode); +} + +std::string CreateDBInstanceReplicaRequest::getDomainMode()const +{ + return domainMode_; +} + +void CreateDBInstanceReplicaRequest::setDomainMode(const std::string& domainMode) +{ + domainMode_ = domainMode; + setParameter("DomainMode", domainMode); +} + +std::string CreateDBInstanceReplicaRequest::getReplicaDescription()const +{ + return replicaDescription_; +} + +void CreateDBInstanceReplicaRequest::setReplicaDescription(const std::string& replicaDescription) +{ + replicaDescription_ = replicaDescription; + setParameter("ReplicaDescription", replicaDescription); +} + +long CreateDBInstanceReplicaRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateDBInstanceReplicaRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +int CreateDBInstanceReplicaRequest::getDBInstanceStorage()const +{ + return dBInstanceStorage_; +} + +void CreateDBInstanceReplicaRequest::setDBInstanceStorage(int dBInstanceStorage) +{ + dBInstanceStorage_ = dBInstanceStorage; + setParameter("DBInstanceStorage", std::to_string(dBInstanceStorage)); +} + +std::string CreateDBInstanceReplicaRequest::getSystemDBCharset()const +{ + return systemDBCharset_; +} + +void CreateDBInstanceReplicaRequest::setSystemDBCharset(const std::string& systemDBCharset) +{ + systemDBCharset_ = systemDBCharset; + setParameter("SystemDBCharset", systemDBCharset); +} + +std::string CreateDBInstanceReplicaRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateDBInstanceReplicaRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string CreateDBInstanceReplicaRequest::getEngineVersion()const +{ + return engineVersion_; +} + +void CreateDBInstanceReplicaRequest::setEngineVersion(const std::string& engineVersion) +{ + engineVersion_ = engineVersion; + setParameter("EngineVersion", engineVersion); +} + +std::string CreateDBInstanceReplicaRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CreateDBInstanceReplicaRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string CreateDBInstanceReplicaRequest::getRegionId()const +{ + return regionId_; +} + +void CreateDBInstanceReplicaRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string CreateDBInstanceReplicaRequest::getEngine()const +{ + return engine_; +} + +void CreateDBInstanceReplicaRequest::setEngine(const std::string& engine) +{ + engine_ = engine; + setParameter("Engine", engine); +} + +std::string CreateDBInstanceReplicaRequest::getDBInstanceDescription()const +{ + return dBInstanceDescription_; +} + +void CreateDBInstanceReplicaRequest::setDBInstanceDescription(const std::string& dBInstanceDescription) +{ + dBInstanceDescription_ = dBInstanceDescription; + setParameter("DBInstanceDescription", dBInstanceDescription); +} + +std::string CreateDBInstanceReplicaRequest::getDBInstanceNetType()const +{ + return dBInstanceNetType_; +} + +void CreateDBInstanceReplicaRequest::setDBInstanceNetType(const std::string& dBInstanceNetType) +{ + dBInstanceNetType_ = dBInstanceNetType; + setParameter("DBInstanceNetType", dBInstanceNetType); +} + +std::string CreateDBInstanceReplicaRequest::getPeriod()const +{ + return period_; +} + +void CreateDBInstanceReplicaRequest::setPeriod(const std::string& period) +{ + period_ = period; + setParameter("Period", period); +} + +std::string CreateDBInstanceReplicaRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateDBInstanceReplicaRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateDBInstanceReplicaRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateDBInstanceReplicaRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long CreateDBInstanceReplicaRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateDBInstanceReplicaRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateDBInstanceReplicaRequest::getUsedTime()const +{ + return usedTime_; +} + +void CreateDBInstanceReplicaRequest::setUsedTime(const std::string& usedTime) +{ + usedTime_ = usedTime; + setParameter("UsedTime", usedTime); +} + +std::string CreateDBInstanceReplicaRequest::getDBInstanceClass()const +{ + return dBInstanceClass_; +} + +void CreateDBInstanceReplicaRequest::setDBInstanceClass(const std::string& dBInstanceClass) +{ + dBInstanceClass_ = dBInstanceClass; + setParameter("DBInstanceClass", dBInstanceClass); +} + +std::string CreateDBInstanceReplicaRequest::getSecurityIPList()const +{ + return securityIPList_; +} + +void CreateDBInstanceReplicaRequest::setSecurityIPList(const std::string& securityIPList) +{ + securityIPList_ = securityIPList; + setParameter("SecurityIPList", securityIPList); +} + +std::string CreateDBInstanceReplicaRequest::getVSwitchId()const +{ + return vSwitchId_; +} + +void CreateDBInstanceReplicaRequest::setVSwitchId(const std::string& vSwitchId) +{ + vSwitchId_ = vSwitchId; + setParameter("VSwitchId", vSwitchId); +} + +std::string CreateDBInstanceReplicaRequest::getPrivateIpAddress()const +{ + return privateIpAddress_; +} + +void CreateDBInstanceReplicaRequest::setPrivateIpAddress(const std::string& privateIpAddress) +{ + privateIpAddress_ = privateIpAddress; + setParameter("PrivateIpAddress", privateIpAddress); +} + +std::string CreateDBInstanceReplicaRequest::getSourceDBInstanceId()const +{ + return sourceDBInstanceId_; +} + +void CreateDBInstanceReplicaRequest::setSourceDBInstanceId(const std::string& sourceDBInstanceId) +{ + sourceDBInstanceId_ = sourceDBInstanceId; + setParameter("SourceDBInstanceId", sourceDBInstanceId); +} + +std::string CreateDBInstanceReplicaRequest::getReplicaMode()const +{ + return replicaMode_; +} + +void CreateDBInstanceReplicaRequest::setReplicaMode(const std::string& replicaMode) +{ + replicaMode_ = replicaMode; + setParameter("ReplicaMode", replicaMode); +} + +std::string CreateDBInstanceReplicaRequest::getVPCId()const +{ + return vPCId_; +} + +void CreateDBInstanceReplicaRequest::setVPCId(const std::string& vPCId) +{ + vPCId_ = vPCId; + setParameter("VPCId", vPCId); +} + +std::string CreateDBInstanceReplicaRequest::getZoneId()const +{ + return zoneId_; +} + +void CreateDBInstanceReplicaRequest::setZoneId(const std::string& zoneId) +{ + zoneId_ = zoneId; + setParameter("ZoneId", zoneId); +} + +std::string CreateDBInstanceReplicaRequest::getPayType()const +{ + return payType_; +} + +void CreateDBInstanceReplicaRequest::setPayType(const std::string& payType) +{ + payType_ = payType; + setParameter("PayType", payType); +} + +std::string CreateDBInstanceReplicaRequest::getInstanceNetworkType()const +{ + return instanceNetworkType_; +} + +void CreateDBInstanceReplicaRequest::setInstanceNetworkType(const std::string& instanceNetworkType) +{ + instanceNetworkType_ = instanceNetworkType; + setParameter("InstanceNetworkType", instanceNetworkType); +} + diff --git a/rds/src/model/CreateDBInstanceReplicaResult.cc b/rds/src/model/CreateDBInstanceReplicaResult.cc new file mode 100644 index 000000000..899a9de68 --- /dev/null +++ b/rds/src/model/CreateDBInstanceReplicaResult.cc @@ -0,0 +1,89 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +CreateDBInstanceReplicaResult::CreateDBInstanceReplicaResult() : + ServiceResult() +{} + +CreateDBInstanceReplicaResult::CreateDBInstanceReplicaResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateDBInstanceReplicaResult::~CreateDBInstanceReplicaResult() +{} + +void CreateDBInstanceReplicaResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + dBInstanceId_ = value["DBInstanceId"].asString(); + orderId_ = std::stol(value["OrderId"].asString()); + replicaId_ = value["ReplicaId"].asString(); + workflowId_ = value["WorkflowId"].asString(); + +} + +std::string CreateDBInstanceReplicaResult::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void CreateDBInstanceReplicaResult::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; +} + +long CreateDBInstanceReplicaResult::getOrderId()const +{ + return orderId_; +} + +void CreateDBInstanceReplicaResult::setOrderId(long orderId) +{ + orderId_ = orderId; +} + +std::string CreateDBInstanceReplicaResult::getWorkflowId()const +{ + return workflowId_; +} + +void CreateDBInstanceReplicaResult::setWorkflowId(const std::string& workflowId) +{ + workflowId_ = workflowId; +} + +std::string CreateDBInstanceReplicaResult::getReplicaId()const +{ + return replicaId_; +} + +void CreateDBInstanceReplicaResult::setReplicaId(const std::string& replicaId) +{ + replicaId_ = replicaId; +} + diff --git a/rds/src/model/CreateDBInstanceRequest.cc b/rds/src/model/CreateDBInstanceRequest.cc new file mode 100644 index 000000000..b562f04b8 --- /dev/null +++ b/rds/src/model/CreateDBInstanceRequest.cc @@ -0,0 +1,314 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +CreateDBInstanceRequest::CreateDBInstanceRequest() : + RdsRequest("CreateDBInstance") +{} + +CreateDBInstanceRequest::~CreateDBInstanceRequest() +{} + +std::string CreateDBInstanceRequest::getConnectionMode()const +{ + return connectionMode_; +} + +void CreateDBInstanceRequest::setConnectionMode(const std::string& connectionMode) +{ + connectionMode_ = connectionMode; + setParameter("ConnectionMode", connectionMode); +} + +long CreateDBInstanceRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateDBInstanceRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +int CreateDBInstanceRequest::getDBInstanceStorage()const +{ + return dBInstanceStorage_; +} + +void CreateDBInstanceRequest::setDBInstanceStorage(int dBInstanceStorage) +{ + dBInstanceStorage_ = dBInstanceStorage; + setParameter("DBInstanceStorage", std::to_string(dBInstanceStorage)); +} + +std::string CreateDBInstanceRequest::getSystemDBCharset()const +{ + return systemDBCharset_; +} + +void CreateDBInstanceRequest::setSystemDBCharset(const std::string& systemDBCharset) +{ + systemDBCharset_ = systemDBCharset; + setParameter("SystemDBCharset", systemDBCharset); +} + +std::string CreateDBInstanceRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateDBInstanceRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string CreateDBInstanceRequest::getEngineVersion()const +{ + return engineVersion_; +} + +void CreateDBInstanceRequest::setEngineVersion(const std::string& engineVersion) +{ + engineVersion_ = engineVersion; + setParameter("EngineVersion", engineVersion); +} + +std::string CreateDBInstanceRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CreateDBInstanceRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string CreateDBInstanceRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void CreateDBInstanceRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setParameter("ResourceGroupId", resourceGroupId); +} + +std::string CreateDBInstanceRequest::getRegionId()const +{ + return regionId_; +} + +void CreateDBInstanceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string CreateDBInstanceRequest::getEngine()const +{ + return engine_; +} + +void CreateDBInstanceRequest::setEngine(const std::string& engine) +{ + engine_ = engine; + setParameter("Engine", engine); +} + +std::string CreateDBInstanceRequest::getDBInstanceDescription()const +{ + return dBInstanceDescription_; +} + +void CreateDBInstanceRequest::setDBInstanceDescription(const std::string& dBInstanceDescription) +{ + dBInstanceDescription_ = dBInstanceDescription; + setParameter("DBInstanceDescription", dBInstanceDescription); +} + +std::string CreateDBInstanceRequest::getDBInstanceNetType()const +{ + return dBInstanceNetType_; +} + +void CreateDBInstanceRequest::setDBInstanceNetType(const std::string& dBInstanceNetType) +{ + dBInstanceNetType_ = dBInstanceNetType; + setParameter("DBInstanceNetType", dBInstanceNetType); +} + +std::string CreateDBInstanceRequest::getPeriod()const +{ + return period_; +} + +void CreateDBInstanceRequest::setPeriod(const std::string& period) +{ + period_ = period; + setParameter("Period", period); +} + +std::string CreateDBInstanceRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateDBInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateDBInstanceRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateDBInstanceRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long CreateDBInstanceRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateDBInstanceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateDBInstanceRequest::getUsedTime()const +{ + return usedTime_; +} + +void CreateDBInstanceRequest::setUsedTime(const std::string& usedTime) +{ + usedTime_ = usedTime; + setParameter("UsedTime", usedTime); +} + +std::string CreateDBInstanceRequest::getDBInstanceClass()const +{ + return dBInstanceClass_; +} + +void CreateDBInstanceRequest::setDBInstanceClass(const std::string& dBInstanceClass) +{ + dBInstanceClass_ = dBInstanceClass; + setParameter("DBInstanceClass", dBInstanceClass); +} + +std::string CreateDBInstanceRequest::getSecurityIPList()const +{ + return securityIPList_; +} + +void CreateDBInstanceRequest::setSecurityIPList(const std::string& securityIPList) +{ + securityIPList_ = securityIPList; + setParameter("SecurityIPList", securityIPList); +} + +std::string CreateDBInstanceRequest::getVSwitchId()const +{ + return vSwitchId_; +} + +void CreateDBInstanceRequest::setVSwitchId(const std::string& vSwitchId) +{ + vSwitchId_ = vSwitchId; + setParameter("VSwitchId", vSwitchId); +} + +std::string CreateDBInstanceRequest::getPrivateIpAddress()const +{ + return privateIpAddress_; +} + +void CreateDBInstanceRequest::setPrivateIpAddress(const std::string& privateIpAddress) +{ + privateIpAddress_ = privateIpAddress; + setParameter("PrivateIpAddress", privateIpAddress); +} + +std::string CreateDBInstanceRequest::getVPCId()const +{ + return vPCId_; +} + +void CreateDBInstanceRequest::setVPCId(const std::string& vPCId) +{ + vPCId_ = vPCId; + setParameter("VPCId", vPCId); +} + +std::string CreateDBInstanceRequest::getTunnelId()const +{ + return tunnelId_; +} + +void CreateDBInstanceRequest::setTunnelId(const std::string& tunnelId) +{ + tunnelId_ = tunnelId; + setParameter("TunnelId", tunnelId); +} + +std::string CreateDBInstanceRequest::getZoneId()const +{ + return zoneId_; +} + +void CreateDBInstanceRequest::setZoneId(const std::string& zoneId) +{ + zoneId_ = zoneId; + setParameter("ZoneId", zoneId); +} + +std::string CreateDBInstanceRequest::getPayType()const +{ + return payType_; +} + +void CreateDBInstanceRequest::setPayType(const std::string& payType) +{ + payType_ = payType; + setParameter("PayType", payType); +} + +std::string CreateDBInstanceRequest::getInstanceNetworkType()const +{ + return instanceNetworkType_; +} + +void CreateDBInstanceRequest::setInstanceNetworkType(const std::string& instanceNetworkType) +{ + instanceNetworkType_ = instanceNetworkType; + setParameter("InstanceNetworkType", instanceNetworkType); +} + diff --git a/rds/src/model/CreateDBInstanceResult.cc b/rds/src/model/CreateDBInstanceResult.cc new file mode 100644 index 000000000..8703cb72f --- /dev/null +++ b/rds/src/model/CreateDBInstanceResult.cc @@ -0,0 +1,89 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +CreateDBInstanceResult::CreateDBInstanceResult() : + ServiceResult() +{} + +CreateDBInstanceResult::CreateDBInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateDBInstanceResult::~CreateDBInstanceResult() +{} + +void CreateDBInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + dBInstanceId_ = value["DBInstanceId"].asString(); + orderId_ = value["OrderId"].asString(); + connectionString_ = value["ConnectionString"].asString(); + port_ = value["Port"].asString(); + +} + +std::string CreateDBInstanceResult::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void CreateDBInstanceResult::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; +} + +std::string CreateDBInstanceResult::getPort()const +{ + return port_; +} + +void CreateDBInstanceResult::setPort(const std::string& port) +{ + port_ = port; +} + +std::string CreateDBInstanceResult::getOrderId()const +{ + return orderId_; +} + +void CreateDBInstanceResult::setOrderId(const std::string& orderId) +{ + orderId_ = orderId; +} + +std::string CreateDBInstanceResult::getConnectionString()const +{ + return connectionString_; +} + +void CreateDBInstanceResult::setConnectionString(const std::string& connectionString) +{ + connectionString_ = connectionString; +} + diff --git a/rds/src/model/CreateDampPolicyRequest.cc b/rds/src/model/CreateDampPolicyRequest.cc new file mode 100644 index 000000000..e1f2114f7 --- /dev/null +++ b/rds/src/model/CreateDampPolicyRequest.cc @@ -0,0 +1,182 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +CreateDampPolicyRequest::CreateDampPolicyRequest() : + RdsRequest("CreateDampPolicy") +{} + +CreateDampPolicyRequest::~CreateDampPolicyRequest() +{} + +long CreateDampPolicyRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateDampPolicyRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateDampPolicyRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateDampPolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateDampPolicyRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateDampPolicyRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long CreateDampPolicyRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateDampPolicyRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int CreateDampPolicyRequest::getPriority()const +{ + return priority_; +} + +void CreateDampPolicyRequest::setPriority(int priority) +{ + priority_ = priority; + setParameter("Priority", std::to_string(priority)); +} + +std::string CreateDampPolicyRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CreateDampPolicyRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string CreateDampPolicyRequest::getTimeRules()const +{ + return timeRules_; +} + +void CreateDampPolicyRequest::setTimeRules(const std::string& timeRules) +{ + timeRules_ = timeRules; + setParameter("TimeRules", timeRules); +} + +std::string CreateDampPolicyRequest::getActionRules()const +{ + return actionRules_; +} + +void CreateDampPolicyRequest::setActionRules(const std::string& actionRules) +{ + actionRules_ = actionRules; + setParameter("ActionRules", actionRules); +} + +std::string CreateDampPolicyRequest::getSecurityToken()const +{ + return securityToken_; +} + +void CreateDampPolicyRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string CreateDampPolicyRequest::getRegionId()const +{ + return regionId_; +} + +void CreateDampPolicyRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string CreateDampPolicyRequest::getHandlers()const +{ + return handlers_; +} + +void CreateDampPolicyRequest::setHandlers(const std::string& handlers) +{ + handlers_ = handlers; + setParameter("Handlers", handlers); +} + +std::string CreateDampPolicyRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void CreateDampPolicyRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +std::string CreateDampPolicyRequest::getPolicyName()const +{ + return policyName_; +} + +void CreateDampPolicyRequest::setPolicyName(const std::string& policyName) +{ + policyName_ = policyName; + setParameter("PolicyName", policyName); +} + +std::string CreateDampPolicyRequest::getSourceRules()const +{ + return sourceRules_; +} + +void CreateDampPolicyRequest::setSourceRules(const std::string& sourceRules) +{ + sourceRules_ = sourceRules; + setParameter("SourceRules", sourceRules); +} + diff --git a/rds/src/model/CreateDampPolicyResult.cc b/rds/src/model/CreateDampPolicyResult.cc new file mode 100644 index 000000000..44b2dae23 --- /dev/null +++ b/rds/src/model/CreateDampPolicyResult.cc @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +CreateDampPolicyResult::CreateDampPolicyResult() : + ServiceResult() +{} + +CreateDampPolicyResult::CreateDampPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateDampPolicyResult::~CreateDampPolicyResult() +{} + +void CreateDampPolicyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + policyId_ = value["PolicyId"].asString(); + policyName_ = value["PolicyName"].asString(); + +} + +std::string CreateDampPolicyResult::getPolicyName()const +{ + return policyName_; +} + +void CreateDampPolicyResult::setPolicyName(const std::string& policyName) +{ + policyName_ = policyName; +} + +std::string CreateDampPolicyResult::getPolicyId()const +{ + return policyId_; +} + +void CreateDampPolicyResult::setPolicyId(const std::string& policyId) +{ + policyId_ = policyId; +} + diff --git a/rds/src/model/CreateDatabaseRequest.cc b/rds/src/model/CreateDatabaseRequest.cc new file mode 100644 index 000000000..7fcf7a04a --- /dev/null +++ b/rds/src/model/CreateDatabaseRequest.cc @@ -0,0 +1,127 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +CreateDatabaseRequest::CreateDatabaseRequest() : + RdsRequest("CreateDatabase") +{} + +CreateDatabaseRequest::~CreateDatabaseRequest() +{} + +long CreateDatabaseRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateDatabaseRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateDatabaseRequest::getDBName()const +{ + return dBName_; +} + +void CreateDatabaseRequest::setDBName(const std::string& dBName) +{ + dBName_ = dBName; + setParameter("DBName", dBName); +} + +std::string CreateDatabaseRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateDatabaseRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateDatabaseRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateDatabaseRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string CreateDatabaseRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void CreateDatabaseRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +std::string CreateDatabaseRequest::getDBDescription()const +{ + return dBDescription_; +} + +void CreateDatabaseRequest::setDBDescription(const std::string& dBDescription) +{ + dBDescription_ = dBDescription; + setParameter("DBDescription", dBDescription); +} + +long CreateDatabaseRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateDatabaseRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateDatabaseRequest::getCharacterSetName()const +{ + return characterSetName_; +} + +void CreateDatabaseRequest::setCharacterSetName(const std::string& characterSetName) +{ + characterSetName_ = characterSetName; + setParameter("CharacterSetName", characterSetName); +} + +std::string CreateDatabaseRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CreateDatabaseRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/CreateDatabaseResult.cc b/rds/src/model/CreateDatabaseResult.cc new file mode 100644 index 000000000..1dc21c9fd --- /dev/null +++ b/rds/src/model/CreateDatabaseResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +CreateDatabaseResult::CreateDatabaseResult() : + ServiceResult() +{} + +CreateDatabaseResult::CreateDatabaseResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateDatabaseResult::~CreateDatabaseResult() +{} + +void CreateDatabaseResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/CreateDiagnosticReportRequest.cc b/rds/src/model/CreateDiagnosticReportRequest.cc new file mode 100644 index 000000000..4aee3db0c --- /dev/null +++ b/rds/src/model/CreateDiagnosticReportRequest.cc @@ -0,0 +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 namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +CreateDiagnosticReportRequest::CreateDiagnosticReportRequest() : + RdsRequest("CreateDiagnosticReport") +{} + +CreateDiagnosticReportRequest::~CreateDiagnosticReportRequest() +{} + +std::string CreateDiagnosticReportRequest::getEndTime()const +{ + return endTime_; +} + +void CreateDiagnosticReportRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +std::string CreateDiagnosticReportRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void CreateDiagnosticReportRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +std::string CreateDiagnosticReportRequest::getStartTime()const +{ + return startTime_; +} + +void CreateDiagnosticReportRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + +std::string CreateDiagnosticReportRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CreateDiagnosticReportRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/CreateDiagnosticReportResult.cc b/rds/src/model/CreateDiagnosticReportResult.cc new file mode 100644 index 000000000..382fd052e --- /dev/null +++ b/rds/src/model/CreateDiagnosticReportResult.cc @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +CreateDiagnosticReportResult::CreateDiagnosticReportResult() : + ServiceResult() +{} + +CreateDiagnosticReportResult::CreateDiagnosticReportResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateDiagnosticReportResult::~CreateDiagnosticReportResult() +{} + +void CreateDiagnosticReportResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + reportId_ = value["ReportId"].asString(); + +} + +std::string CreateDiagnosticReportResult::getReportId()const +{ + return reportId_; +} + +void CreateDiagnosticReportResult::setReportId(const std::string& reportId) +{ + reportId_ = reportId; +} + diff --git a/rds/src/model/CreateMigrateTaskForSQLServerRequest.cc b/rds/src/model/CreateMigrateTaskForSQLServerRequest.cc new file mode 100644 index 000000000..6f5b9f71e --- /dev/null +++ b/rds/src/model/CreateMigrateTaskForSQLServerRequest.cc @@ -0,0 +1,127 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +CreateMigrateTaskForSQLServerRequest::CreateMigrateTaskForSQLServerRequest() : + RdsRequest("CreateMigrateTaskForSQLServer") +{} + +CreateMigrateTaskForSQLServerRequest::~CreateMigrateTaskForSQLServerRequest() +{} + +long CreateMigrateTaskForSQLServerRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateMigrateTaskForSQLServerRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateMigrateTaskForSQLServerRequest::getTaskType()const +{ + return taskType_; +} + +void CreateMigrateTaskForSQLServerRequest::setTaskType(const std::string& taskType) +{ + taskType_ = taskType; + setParameter("TaskType", taskType); +} + +std::string CreateMigrateTaskForSQLServerRequest::getDBName()const +{ + return dBName_; +} + +void CreateMigrateTaskForSQLServerRequest::setDBName(const std::string& dBName) +{ + dBName_ = dBName; + setParameter("DBName", dBName); +} + +std::string CreateMigrateTaskForSQLServerRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateMigrateTaskForSQLServerRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateMigrateTaskForSQLServerRequest::getIsOnlineDB()const +{ + return isOnlineDB_; +} + +void CreateMigrateTaskForSQLServerRequest::setIsOnlineDB(const std::string& isOnlineDB) +{ + isOnlineDB_ = isOnlineDB; + setParameter("IsOnlineDB", isOnlineDB); +} + +std::string CreateMigrateTaskForSQLServerRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void CreateMigrateTaskForSQLServerRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long CreateMigrateTaskForSQLServerRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateMigrateTaskForSQLServerRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateMigrateTaskForSQLServerRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CreateMigrateTaskForSQLServerRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string CreateMigrateTaskForSQLServerRequest::getOSSUrls()const +{ + return oSSUrls_; +} + +void CreateMigrateTaskForSQLServerRequest::setOSSUrls(const std::string& oSSUrls) +{ + oSSUrls_ = oSSUrls; + setParameter("OSSUrls", oSSUrls); +} + diff --git a/rds/src/model/CreateMigrateTaskForSQLServerResult.cc b/rds/src/model/CreateMigrateTaskForSQLServerResult.cc new file mode 100644 index 000000000..047739745 --- /dev/null +++ b/rds/src/model/CreateMigrateTaskForSQLServerResult.cc @@ -0,0 +1,111 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +CreateMigrateTaskForSQLServerResult::CreateMigrateTaskForSQLServerResult() : + ServiceResult() +{} + +CreateMigrateTaskForSQLServerResult::CreateMigrateTaskForSQLServerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateMigrateTaskForSQLServerResult::~CreateMigrateTaskForSQLServerResult() +{} + +void CreateMigrateTaskForSQLServerResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + dBInstanceId_ = value["DBInstanceId"].asString(); + dBInstanceName_ = value["DBInstanceName"].asString(); + taskId_ = value["TaskId"].asString(); + dBName_ = value["DBName"].asString(); + migrateIaskId_ = value["MigrateIaskId"].asString(); + taskType_ = value["TaskType"].asString(); + +} + +std::string CreateMigrateTaskForSQLServerResult::getTaskId()const +{ + return taskId_; +} + +void CreateMigrateTaskForSQLServerResult::setTaskId(const std::string& taskId) +{ + taskId_ = taskId; +} + +std::string CreateMigrateTaskForSQLServerResult::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void CreateMigrateTaskForSQLServerResult::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; +} + +std::string CreateMigrateTaskForSQLServerResult::getTaskType()const +{ + return taskType_; +} + +void CreateMigrateTaskForSQLServerResult::setTaskType(const std::string& taskType) +{ + taskType_ = taskType; +} + +std::string CreateMigrateTaskForSQLServerResult::getDBName()const +{ + return dBName_; +} + +void CreateMigrateTaskForSQLServerResult::setDBName(const std::string& dBName) +{ + dBName_ = dBName; +} + +std::string CreateMigrateTaskForSQLServerResult::getMigrateIaskId()const +{ + return migrateIaskId_; +} + +void CreateMigrateTaskForSQLServerResult::setMigrateIaskId(const std::string& migrateIaskId) +{ + migrateIaskId_ = migrateIaskId; +} + +std::string CreateMigrateTaskForSQLServerResult::getDBInstanceName()const +{ + return dBInstanceName_; +} + +void CreateMigrateTaskForSQLServerResult::setDBInstanceName(const std::string& dBInstanceName) +{ + dBInstanceName_ = dBInstanceName; +} + diff --git a/rds/src/model/CreateMigrateTaskRequest.cc b/rds/src/model/CreateMigrateTaskRequest.cc new file mode 100644 index 000000000..25faa7e20 --- /dev/null +++ b/rds/src/model/CreateMigrateTaskRequest.cc @@ -0,0 +1,127 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +CreateMigrateTaskRequest::CreateMigrateTaskRequest() : + RdsRequest("CreateMigrateTask") +{} + +CreateMigrateTaskRequest::~CreateMigrateTaskRequest() +{} + +long CreateMigrateTaskRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateMigrateTaskRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateMigrateTaskRequest::getDBName()const +{ + return dBName_; +} + +void CreateMigrateTaskRequest::setDBName(const std::string& dBName) +{ + dBName_ = dBName; + setParameter("DBName", dBName); +} + +std::string CreateMigrateTaskRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateMigrateTaskRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateMigrateTaskRequest::getIsOnlineDB()const +{ + return isOnlineDB_; +} + +void CreateMigrateTaskRequest::setIsOnlineDB(const std::string& isOnlineDB) +{ + isOnlineDB_ = isOnlineDB; + setParameter("IsOnlineDB", isOnlineDB); +} + +std::string CreateMigrateTaskRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void CreateMigrateTaskRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +std::string CreateMigrateTaskRequest::getBackupMode()const +{ + return backupMode_; +} + +void CreateMigrateTaskRequest::setBackupMode(const std::string& backupMode) +{ + backupMode_ = backupMode; + setParameter("BackupMode", backupMode); +} + +long CreateMigrateTaskRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateMigrateTaskRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateMigrateTaskRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CreateMigrateTaskRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string CreateMigrateTaskRequest::getOSSUrls()const +{ + return oSSUrls_; +} + +void CreateMigrateTaskRequest::setOSSUrls(const std::string& oSSUrls) +{ + oSSUrls_ = oSSUrls; + setParameter("OSSUrls", oSSUrls); +} + diff --git a/rds/src/model/CreateMigrateTaskResult.cc b/rds/src/model/CreateMigrateTaskResult.cc new file mode 100644 index 000000000..ae5cbbcf6 --- /dev/null +++ b/rds/src/model/CreateMigrateTaskResult.cc @@ -0,0 +1,100 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +CreateMigrateTaskResult::CreateMigrateTaskResult() : + ServiceResult() +{} + +CreateMigrateTaskResult::CreateMigrateTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateMigrateTaskResult::~CreateMigrateTaskResult() +{} + +void CreateMigrateTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + dBInstanceId_ = value["DBInstanceId"].asString(); + taskId_ = value["TaskId"].asString(); + dBName_ = value["DBName"].asString(); + migrateIaskId_ = value["MigrateIaskId"].asString(); + backupMode_ = value["BackupMode"].asString(); + +} + +std::string CreateMigrateTaskResult::getTaskId()const +{ + return taskId_; +} + +void CreateMigrateTaskResult::setTaskId(const std::string& taskId) +{ + taskId_ = taskId; +} + +std::string CreateMigrateTaskResult::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void CreateMigrateTaskResult::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; +} + +std::string CreateMigrateTaskResult::getBackupMode()const +{ + return backupMode_; +} + +void CreateMigrateTaskResult::setBackupMode(const std::string& backupMode) +{ + backupMode_ = backupMode; +} + +std::string CreateMigrateTaskResult::getDBName()const +{ + return dBName_; +} + +void CreateMigrateTaskResult::setDBName(const std::string& dBName) +{ + dBName_ = dBName; +} + +std::string CreateMigrateTaskResult::getMigrateIaskId()const +{ + return migrateIaskId_; +} + +void CreateMigrateTaskResult::setMigrateIaskId(const std::string& migrateIaskId) +{ + migrateIaskId_ = migrateIaskId; +} + diff --git a/rds/src/model/CreatePolicyWithSpecifiedPolicyRequest.cc b/rds/src/model/CreatePolicyWithSpecifiedPolicyRequest.cc new file mode 100644 index 000000000..c3b274e03 --- /dev/null +++ b/rds/src/model/CreatePolicyWithSpecifiedPolicyRequest.cc @@ -0,0 +1,127 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +CreatePolicyWithSpecifiedPolicyRequest::CreatePolicyWithSpecifiedPolicyRequest() : + RdsRequest("CreatePolicyWithSpecifiedPolicy") +{} + +CreatePolicyWithSpecifiedPolicyRequest::~CreatePolicyWithSpecifiedPolicyRequest() +{} + +long CreatePolicyWithSpecifiedPolicyRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreatePolicyWithSpecifiedPolicyRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreatePolicyWithSpecifiedPolicyRequest::getPolicyId()const +{ + return policyId_; +} + +void CreatePolicyWithSpecifiedPolicyRequest::setPolicyId(const std::string& policyId) +{ + policyId_ = policyId; + setParameter("PolicyId", policyId); +} + +std::string CreatePolicyWithSpecifiedPolicyRequest::getSecurityToken()const +{ + return securityToken_; +} + +void CreatePolicyWithSpecifiedPolicyRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string CreatePolicyWithSpecifiedPolicyRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreatePolicyWithSpecifiedPolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreatePolicyWithSpecifiedPolicyRequest::getRegionId()const +{ + return regionId_; +} + +void CreatePolicyWithSpecifiedPolicyRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string CreatePolicyWithSpecifiedPolicyRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreatePolicyWithSpecifiedPolicyRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string CreatePolicyWithSpecifiedPolicyRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void CreatePolicyWithSpecifiedPolicyRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long CreatePolicyWithSpecifiedPolicyRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreatePolicyWithSpecifiedPolicyRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreatePolicyWithSpecifiedPolicyRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CreatePolicyWithSpecifiedPolicyRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/CreatePolicyWithSpecifiedPolicyResult.cc b/rds/src/model/CreatePolicyWithSpecifiedPolicyResult.cc new file mode 100644 index 000000000..bb32b4136 --- /dev/null +++ b/rds/src/model/CreatePolicyWithSpecifiedPolicyResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +CreatePolicyWithSpecifiedPolicyResult::CreatePolicyWithSpecifiedPolicyResult() : + ServiceResult() +{} + +CreatePolicyWithSpecifiedPolicyResult::CreatePolicyWithSpecifiedPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreatePolicyWithSpecifiedPolicyResult::~CreatePolicyWithSpecifiedPolicyResult() +{} + +void CreatePolicyWithSpecifiedPolicyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/CreateReadOnlyDBInstanceRequest.cc b/rds/src/model/CreateReadOnlyDBInstanceRequest.cc new file mode 100644 index 000000000..1a548a213 --- /dev/null +++ b/rds/src/model/CreateReadOnlyDBInstanceRequest.cc @@ -0,0 +1,237 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +CreateReadOnlyDBInstanceRequest::CreateReadOnlyDBInstanceRequest() : + RdsRequest("CreateReadOnlyDBInstance") +{} + +CreateReadOnlyDBInstanceRequest::~CreateReadOnlyDBInstanceRequest() +{} + +long CreateReadOnlyDBInstanceRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateReadOnlyDBInstanceRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +int CreateReadOnlyDBInstanceRequest::getDBInstanceStorage()const +{ + return dBInstanceStorage_; +} + +void CreateReadOnlyDBInstanceRequest::setDBInstanceStorage(int dBInstanceStorage) +{ + dBInstanceStorage_ = dBInstanceStorage; + setParameter("DBInstanceStorage", std::to_string(dBInstanceStorage)); +} + +std::string CreateReadOnlyDBInstanceRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateReadOnlyDBInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateReadOnlyDBInstanceRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateReadOnlyDBInstanceRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string CreateReadOnlyDBInstanceRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateReadOnlyDBInstanceRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string CreateReadOnlyDBInstanceRequest::getEngineVersion()const +{ + return engineVersion_; +} + +void CreateReadOnlyDBInstanceRequest::setEngineVersion(const std::string& engineVersion) +{ + engineVersion_ = engineVersion; + setParameter("EngineVersion", engineVersion); +} + +long CreateReadOnlyDBInstanceRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateReadOnlyDBInstanceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateReadOnlyDBInstanceRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CreateReadOnlyDBInstanceRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string CreateReadOnlyDBInstanceRequest::getDBInstanceClass()const +{ + return dBInstanceClass_; +} + +void CreateReadOnlyDBInstanceRequest::setDBInstanceClass(const std::string& dBInstanceClass) +{ + dBInstanceClass_ = dBInstanceClass; + setParameter("DBInstanceClass", dBInstanceClass); +} + +std::string CreateReadOnlyDBInstanceRequest::getVSwitchId()const +{ + return vSwitchId_; +} + +void CreateReadOnlyDBInstanceRequest::setVSwitchId(const std::string& vSwitchId) +{ + vSwitchId_ = vSwitchId; + setParameter("VSwitchId", vSwitchId); +} + +std::string CreateReadOnlyDBInstanceRequest::getPrivateIpAddress()const +{ + return privateIpAddress_; +} + +void CreateReadOnlyDBInstanceRequest::setPrivateIpAddress(const std::string& privateIpAddress) +{ + privateIpAddress_ = privateIpAddress; + setParameter("PrivateIpAddress", privateIpAddress); +} + +std::string CreateReadOnlyDBInstanceRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void CreateReadOnlyDBInstanceRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setParameter("ResourceGroupId", resourceGroupId); +} + +std::string CreateReadOnlyDBInstanceRequest::getRegionId()const +{ + return regionId_; +} + +void CreateReadOnlyDBInstanceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string CreateReadOnlyDBInstanceRequest::getVPCId()const +{ + return vPCId_; +} + +void CreateReadOnlyDBInstanceRequest::setVPCId(const std::string& vPCId) +{ + vPCId_ = vPCId; + setParameter("VPCId", vPCId); +} + +std::string CreateReadOnlyDBInstanceRequest::getZoneId()const +{ + return zoneId_; +} + +void CreateReadOnlyDBInstanceRequest::setZoneId(const std::string& zoneId) +{ + zoneId_ = zoneId; + setParameter("ZoneId", zoneId); +} + +std::string CreateReadOnlyDBInstanceRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void CreateReadOnlyDBInstanceRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +std::string CreateReadOnlyDBInstanceRequest::getDBInstanceDescription()const +{ + return dBInstanceDescription_; +} + +void CreateReadOnlyDBInstanceRequest::setDBInstanceDescription(const std::string& dBInstanceDescription) +{ + dBInstanceDescription_ = dBInstanceDescription; + setParameter("DBInstanceDescription", dBInstanceDescription); +} + +std::string CreateReadOnlyDBInstanceRequest::getPayType()const +{ + return payType_; +} + +void CreateReadOnlyDBInstanceRequest::setPayType(const std::string& payType) +{ + payType_ = payType; + setParameter("PayType", payType); +} + +std::string CreateReadOnlyDBInstanceRequest::getInstanceNetworkType()const +{ + return instanceNetworkType_; +} + +void CreateReadOnlyDBInstanceRequest::setInstanceNetworkType(const std::string& instanceNetworkType) +{ + instanceNetworkType_ = instanceNetworkType; + setParameter("InstanceNetworkType", instanceNetworkType); +} + diff --git a/rds/src/model/CreateReadOnlyDBInstanceResult.cc b/rds/src/model/CreateReadOnlyDBInstanceResult.cc new file mode 100644 index 000000000..ba073ffe1 --- /dev/null +++ b/rds/src/model/CreateReadOnlyDBInstanceResult.cc @@ -0,0 +1,89 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +CreateReadOnlyDBInstanceResult::CreateReadOnlyDBInstanceResult() : + ServiceResult() +{} + +CreateReadOnlyDBInstanceResult::CreateReadOnlyDBInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateReadOnlyDBInstanceResult::~CreateReadOnlyDBInstanceResult() +{} + +void CreateReadOnlyDBInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + dBInstanceId_ = value["DBInstanceId"].asString(); + orderId_ = value["OrderId"].asString(); + connectionString_ = value["ConnectionString"].asString(); + port_ = value["Port"].asString(); + +} + +std::string CreateReadOnlyDBInstanceResult::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void CreateReadOnlyDBInstanceResult::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; +} + +std::string CreateReadOnlyDBInstanceResult::getPort()const +{ + return port_; +} + +void CreateReadOnlyDBInstanceResult::setPort(const std::string& port) +{ + port_ = port; +} + +std::string CreateReadOnlyDBInstanceResult::getOrderId()const +{ + return orderId_; +} + +void CreateReadOnlyDBInstanceResult::setOrderId(const std::string& orderId) +{ + orderId_ = orderId; +} + +std::string CreateReadOnlyDBInstanceResult::getConnectionString()const +{ + return connectionString_; +} + +void CreateReadOnlyDBInstanceResult::setConnectionString(const std::string& connectionString) +{ + connectionString_ = connectionString; +} + diff --git a/rds/src/model/CreateSQLDiagnosisRequest.cc b/rds/src/model/CreateSQLDiagnosisRequest.cc new file mode 100644 index 000000000..843491c57 --- /dev/null +++ b/rds/src/model/CreateSQLDiagnosisRequest.cc @@ -0,0 +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 namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +CreateSQLDiagnosisRequest::CreateSQLDiagnosisRequest() : + RdsRequest("CreateSQLDiagnosis") +{} + +CreateSQLDiagnosisRequest::~CreateSQLDiagnosisRequest() +{} + +std::string CreateSQLDiagnosisRequest::getEndTime()const +{ + return endTime_; +} + +void CreateSQLDiagnosisRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +std::string CreateSQLDiagnosisRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void CreateSQLDiagnosisRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +std::string CreateSQLDiagnosisRequest::getStartTime()const +{ + return startTime_; +} + +void CreateSQLDiagnosisRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + +std::string CreateSQLDiagnosisRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CreateSQLDiagnosisRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/CreateSQLDiagnosisResult.cc b/rds/src/model/CreateSQLDiagnosisResult.cc new file mode 100644 index 000000000..069b70385 --- /dev/null +++ b/rds/src/model/CreateSQLDiagnosisResult.cc @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +CreateSQLDiagnosisResult::CreateSQLDiagnosisResult() : + ServiceResult() +{} + +CreateSQLDiagnosisResult::CreateSQLDiagnosisResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateSQLDiagnosisResult::~CreateSQLDiagnosisResult() +{} + +void CreateSQLDiagnosisResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + sQLDiagId_ = value["SQLDiagId"].asString(); + +} + +std::string CreateSQLDiagnosisResult::getSQLDiagId()const +{ + return sQLDiagId_; +} + +void CreateSQLDiagnosisResult::setSQLDiagId(const std::string& sQLDiagId) +{ + sQLDiagId_ = sQLDiagId; +} + diff --git a/rds/src/model/CreateTempDBInstanceRequest.cc b/rds/src/model/CreateTempDBInstanceRequest.cc new file mode 100644 index 000000000..9600199fc --- /dev/null +++ b/rds/src/model/CreateTempDBInstanceRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +CreateTempDBInstanceRequest::CreateTempDBInstanceRequest() : + RdsRequest("CreateTempDBInstance") +{} + +CreateTempDBInstanceRequest::~CreateTempDBInstanceRequest() +{} + +long CreateTempDBInstanceRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateTempDBInstanceRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateTempDBInstanceRequest::getRestoreTime()const +{ + return restoreTime_; +} + +void CreateTempDBInstanceRequest::setRestoreTime(const std::string& restoreTime) +{ + restoreTime_ = restoreTime; + setParameter("RestoreTime", restoreTime); +} + +std::string CreateTempDBInstanceRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateTempDBInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +int CreateTempDBInstanceRequest::getBackupId()const +{ + return backupId_; +} + +void CreateTempDBInstanceRequest::setBackupId(int backupId) +{ + backupId_ = backupId; + setParameter("BackupId", std::to_string(backupId)); +} + +std::string CreateTempDBInstanceRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateTempDBInstanceRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string CreateTempDBInstanceRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void CreateTempDBInstanceRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long CreateTempDBInstanceRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateTempDBInstanceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateTempDBInstanceRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CreateTempDBInstanceRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/CreateTempDBInstanceResult.cc b/rds/src/model/CreateTempDBInstanceResult.cc new file mode 100644 index 000000000..ded2fd291 --- /dev/null +++ b/rds/src/model/CreateTempDBInstanceResult.cc @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +CreateTempDBInstanceResult::CreateTempDBInstanceResult() : + ServiceResult() +{} + +CreateTempDBInstanceResult::CreateTempDBInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateTempDBInstanceResult::~CreateTempDBInstanceResult() +{} + +void CreateTempDBInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + tempDBInstanceId_ = value["TempDBInstanceId"].asString(); + +} + +std::string CreateTempDBInstanceResult::getTempDBInstanceId()const +{ + return tempDBInstanceId_; +} + +void CreateTempDBInstanceResult::setTempDBInstanceId(const std::string& tempDBInstanceId) +{ + tempDBInstanceId_ = tempDBInstanceId; +} + diff --git a/rds/src/model/CreateUploadPathForSQLServerRequest.cc b/rds/src/model/CreateUploadPathForSQLServerRequest.cc new file mode 100644 index 000000000..4068c36a0 --- /dev/null +++ b/rds/src/model/CreateUploadPathForSQLServerRequest.cc @@ -0,0 +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. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +CreateUploadPathForSQLServerRequest::CreateUploadPathForSQLServerRequest() : + RdsRequest("CreateUploadPathForSQLServer") +{} + +CreateUploadPathForSQLServerRequest::~CreateUploadPathForSQLServerRequest() +{} + +long CreateUploadPathForSQLServerRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateUploadPathForSQLServerRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateUploadPathForSQLServerRequest::getDBName()const +{ + return dBName_; +} + +void CreateUploadPathForSQLServerRequest::setDBName(const std::string& dBName) +{ + dBName_ = dBName; + setParameter("DBName", dBName); +} + +std::string CreateUploadPathForSQLServerRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateUploadPathForSQLServerRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateUploadPathForSQLServerRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateUploadPathForSQLServerRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string CreateUploadPathForSQLServerRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void CreateUploadPathForSQLServerRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long CreateUploadPathForSQLServerRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateUploadPathForSQLServerRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateUploadPathForSQLServerRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CreateUploadPathForSQLServerRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/CreateUploadPathForSQLServerResult.cc b/rds/src/model/CreateUploadPathForSQLServerResult.cc new file mode 100644 index 000000000..7aa7d2c50 --- /dev/null +++ b/rds/src/model/CreateUploadPathForSQLServerResult.cc @@ -0,0 +1,122 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +CreateUploadPathForSQLServerResult::CreateUploadPathForSQLServerResult() : + ServiceResult() +{} + +CreateUploadPathForSQLServerResult::CreateUploadPathForSQLServerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateUploadPathForSQLServerResult::~CreateUploadPathForSQLServerResult() +{} + +void CreateUploadPathForSQLServerResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + internetFtpServer_ = value["InternetFtpServer"].asString(); + internetPort_ = std::stoi(value["InternetPort"].asString()); + intranetFtpserver_ = value["IntranetFtpserver"].asString(); + intranetport_ = std::stoi(value["Intranetport"].asString()); + userName_ = value["UserName"].asString(); + password_ = value["Password"].asString(); + fileName_ = value["FileName"].asString(); + +} + +std::string CreateUploadPathForSQLServerResult::getIntranetFtpserver()const +{ + return intranetFtpserver_; +} + +void CreateUploadPathForSQLServerResult::setIntranetFtpserver(const std::string& intranetFtpserver) +{ + intranetFtpserver_ = intranetFtpserver; +} + +std::string CreateUploadPathForSQLServerResult::getUserName()const +{ + return userName_; +} + +void CreateUploadPathForSQLServerResult::setUserName(const std::string& userName) +{ + userName_ = userName; +} + +std::string CreateUploadPathForSQLServerResult::getFileName()const +{ + return fileName_; +} + +void CreateUploadPathForSQLServerResult::setFileName(const std::string& fileName) +{ + fileName_ = fileName; +} + +int CreateUploadPathForSQLServerResult::getInternetPort()const +{ + return internetPort_; +} + +void CreateUploadPathForSQLServerResult::setInternetPort(int internetPort) +{ + internetPort_ = internetPort; +} + +std::string CreateUploadPathForSQLServerResult::getInternetFtpServer()const +{ + return internetFtpServer_; +} + +void CreateUploadPathForSQLServerResult::setInternetFtpServer(const std::string& internetFtpServer) +{ + internetFtpServer_ = internetFtpServer; +} + +int CreateUploadPathForSQLServerResult::getIntranetport()const +{ + return intranetport_; +} + +void CreateUploadPathForSQLServerResult::setIntranetport(int intranetport) +{ + intranetport_ = intranetport; +} + +std::string CreateUploadPathForSQLServerResult::getPassword()const +{ + return password_; +} + +void CreateUploadPathForSQLServerResult::setPassword(const std::string& password) +{ + password_ = password; +} + diff --git a/rds/src/model/DegradeDBInstanceSpecRequest.cc b/rds/src/model/DegradeDBInstanceSpecRequest.cc new file mode 100644 index 000000000..542f242fe --- /dev/null +++ b/rds/src/model/DegradeDBInstanceSpecRequest.cc @@ -0,0 +1,127 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DegradeDBInstanceSpecRequest::DegradeDBInstanceSpecRequest() : + RdsRequest("DegradeDBInstanceSpec") +{} + +DegradeDBInstanceSpecRequest::~DegradeDBInstanceSpecRequest() +{} + +long DegradeDBInstanceSpecRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DegradeDBInstanceSpecRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +int DegradeDBInstanceSpecRequest::getDBInstanceStorage()const +{ + return dBInstanceStorage_; +} + +void DegradeDBInstanceSpecRequest::setDBInstanceStorage(int dBInstanceStorage) +{ + dBInstanceStorage_ = dBInstanceStorage; + setParameter("DBInstanceStorage", std::to_string(dBInstanceStorage)); +} + +std::string DegradeDBInstanceSpecRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DegradeDBInstanceSpecRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DegradeDBInstanceSpecRequest::getClientToken()const +{ + return clientToken_; +} + +void DegradeDBInstanceSpecRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string DegradeDBInstanceSpecRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DegradeDBInstanceSpecRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DegradeDBInstanceSpecRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DegradeDBInstanceSpecRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long DegradeDBInstanceSpecRequest::getOwnerId()const +{ + return ownerId_; +} + +void DegradeDBInstanceSpecRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DegradeDBInstanceSpecRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DegradeDBInstanceSpecRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DegradeDBInstanceSpecRequest::getDBInstanceClass()const +{ + return dBInstanceClass_; +} + +void DegradeDBInstanceSpecRequest::setDBInstanceClass(const std::string& dBInstanceClass) +{ + dBInstanceClass_ = dBInstanceClass; + setParameter("DBInstanceClass", dBInstanceClass); +} + diff --git a/rds/src/model/DegradeDBInstanceSpecResult.cc b/rds/src/model/DegradeDBInstanceSpecResult.cc new file mode 100644 index 000000000..c2da624a7 --- /dev/null +++ b/rds/src/model/DegradeDBInstanceSpecResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DegradeDBInstanceSpecResult::DegradeDBInstanceSpecResult() : + ServiceResult() +{} + +DegradeDBInstanceSpecResult::DegradeDBInstanceSpecResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DegradeDBInstanceSpecResult::~DegradeDBInstanceSpecResult() +{} + +void DegradeDBInstanceSpecResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/DeleteAccountRequest.cc b/rds/src/model/DeleteAccountRequest.cc new file mode 100644 index 000000000..9f81b7494 --- /dev/null +++ b/rds/src/model/DeleteAccountRequest.cc @@ -0,0 +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. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DeleteAccountRequest::DeleteAccountRequest() : + RdsRequest("DeleteAccount") +{} + +DeleteAccountRequest::~DeleteAccountRequest() +{} + +long DeleteAccountRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteAccountRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteAccountRequest::getAccountName()const +{ + return accountName_; +} + +void DeleteAccountRequest::setAccountName(const std::string& accountName) +{ + accountName_ = accountName; + setParameter("AccountName", accountName); +} + +std::string DeleteAccountRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteAccountRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteAccountRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteAccountRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DeleteAccountRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DeleteAccountRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long DeleteAccountRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteAccountRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DeleteAccountRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DeleteAccountRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/DeleteAccountResult.cc b/rds/src/model/DeleteAccountResult.cc new file mode 100644 index 000000000..32a3f4fcc --- /dev/null +++ b/rds/src/model/DeleteAccountResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DeleteAccountResult::DeleteAccountResult() : + ServiceResult() +{} + +DeleteAccountResult::DeleteAccountResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteAccountResult::~DeleteAccountResult() +{} + +void DeleteAccountResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/DeleteBackupRequest.cc b/rds/src/model/DeleteBackupRequest.cc new file mode 100644 index 000000000..4237578d7 --- /dev/null +++ b/rds/src/model/DeleteBackupRequest.cc @@ -0,0 +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. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DeleteBackupRequest::DeleteBackupRequest() : + RdsRequest("DeleteBackup") +{} + +DeleteBackupRequest::~DeleteBackupRequest() +{} + +long DeleteBackupRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteBackupRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteBackupRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteBackupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteBackupRequest::getBackupId()const +{ + return backupId_; +} + +void DeleteBackupRequest::setBackupId(const std::string& backupId) +{ + backupId_ = backupId; + setParameter("BackupId", backupId); +} + +std::string DeleteBackupRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteBackupRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DeleteBackupRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DeleteBackupRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long DeleteBackupRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteBackupRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DeleteBackupRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DeleteBackupRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/DeleteBackupResult.cc b/rds/src/model/DeleteBackupResult.cc new file mode 100644 index 000000000..08bccb056 --- /dev/null +++ b/rds/src/model/DeleteBackupResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DeleteBackupResult::DeleteBackupResult() : + ServiceResult() +{} + +DeleteBackupResult::DeleteBackupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteBackupResult::~DeleteBackupResult() +{} + +void DeleteBackupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/DeleteDBInstanceRequest.cc b/rds/src/model/DeleteDBInstanceRequest.cc new file mode 100644 index 000000000..080555458 --- /dev/null +++ b/rds/src/model/DeleteDBInstanceRequest.cc @@ -0,0 +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. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DeleteDBInstanceRequest::DeleteDBInstanceRequest() : + RdsRequest("DeleteDBInstance") +{} + +DeleteDBInstanceRequest::~DeleteDBInstanceRequest() +{} + +long DeleteDBInstanceRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteDBInstanceRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteDBInstanceRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteDBInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteDBInstanceRequest::getClientToken()const +{ + return clientToken_; +} + +void DeleteDBInstanceRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string DeleteDBInstanceRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteDBInstanceRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DeleteDBInstanceRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DeleteDBInstanceRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long DeleteDBInstanceRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteDBInstanceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DeleteDBInstanceRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DeleteDBInstanceRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/DeleteDBInstanceResult.cc b/rds/src/model/DeleteDBInstanceResult.cc new file mode 100644 index 000000000..766f091d3 --- /dev/null +++ b/rds/src/model/DeleteDBInstanceResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DeleteDBInstanceResult::DeleteDBInstanceResult() : + ServiceResult() +{} + +DeleteDBInstanceResult::DeleteDBInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteDBInstanceResult::~DeleteDBInstanceResult() +{} + +void DeleteDBInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/DeleteDampPolicyRequest.cc b/rds/src/model/DeleteDampPolicyRequest.cc new file mode 100644 index 000000000..91c7d2188 --- /dev/null +++ b/rds/src/model/DeleteDampPolicyRequest.cc @@ -0,0 +1,127 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DeleteDampPolicyRequest::DeleteDampPolicyRequest() : + RdsRequest("DeleteDampPolicy") +{} + +DeleteDampPolicyRequest::~DeleteDampPolicyRequest() +{} + +long DeleteDampPolicyRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteDampPolicyRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteDampPolicyRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DeleteDampPolicyRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DeleteDampPolicyRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteDampPolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteDampPolicyRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteDampPolicyRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DeleteDampPolicyRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteDampPolicyRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DeleteDampPolicyRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DeleteDampPolicyRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +std::string DeleteDampPolicyRequest::getPolicyName()const +{ + return policyName_; +} + +void DeleteDampPolicyRequest::setPolicyName(const std::string& policyName) +{ + policyName_ = policyName; + setParameter("PolicyName", policyName); +} + +long DeleteDampPolicyRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteDampPolicyRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DeleteDampPolicyRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DeleteDampPolicyRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/DeleteDampPolicyResult.cc b/rds/src/model/DeleteDampPolicyResult.cc new file mode 100644 index 000000000..d6b148b18 --- /dev/null +++ b/rds/src/model/DeleteDampPolicyResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DeleteDampPolicyResult::DeleteDampPolicyResult() : + ServiceResult() +{} + +DeleteDampPolicyResult::DeleteDampPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteDampPolicyResult::~DeleteDampPolicyResult() +{} + +void DeleteDampPolicyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/DeleteDatabaseRequest.cc b/rds/src/model/DeleteDatabaseRequest.cc new file mode 100644 index 000000000..f6df6cc67 --- /dev/null +++ b/rds/src/model/DeleteDatabaseRequest.cc @@ -0,0 +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. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DeleteDatabaseRequest::DeleteDatabaseRequest() : + RdsRequest("DeleteDatabase") +{} + +DeleteDatabaseRequest::~DeleteDatabaseRequest() +{} + +long DeleteDatabaseRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteDatabaseRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteDatabaseRequest::getDBName()const +{ + return dBName_; +} + +void DeleteDatabaseRequest::setDBName(const std::string& dBName) +{ + dBName_ = dBName; + setParameter("DBName", dBName); +} + +std::string DeleteDatabaseRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteDatabaseRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteDatabaseRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteDatabaseRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DeleteDatabaseRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DeleteDatabaseRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long DeleteDatabaseRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteDatabaseRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DeleteDatabaseRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DeleteDatabaseRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/DeleteDatabaseResult.cc b/rds/src/model/DeleteDatabaseResult.cc new file mode 100644 index 000000000..aad1f9430 --- /dev/null +++ b/rds/src/model/DeleteDatabaseResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DeleteDatabaseResult::DeleteDatabaseResult() : + ServiceResult() +{} + +DeleteDatabaseResult::DeleteDatabaseResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteDatabaseResult::~DeleteDatabaseResult() +{} + +void DeleteDatabaseResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/DescibeImportsFromDatabaseRequest.cc b/rds/src/model/DescibeImportsFromDatabaseRequest.cc new file mode 100644 index 000000000..0a9a8acfa --- /dev/null +++ b/rds/src/model/DescibeImportsFromDatabaseRequest.cc @@ -0,0 +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 namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescibeImportsFromDatabaseRequest::DescibeImportsFromDatabaseRequest() : + RdsRequest("DescibeImportsFromDatabase") +{} + +DescibeImportsFromDatabaseRequest::~DescibeImportsFromDatabaseRequest() +{} + +long DescibeImportsFromDatabaseRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescibeImportsFromDatabaseRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescibeImportsFromDatabaseRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescibeImportsFromDatabaseRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescibeImportsFromDatabaseRequest::getClientToken()const +{ + return clientToken_; +} + +void DescibeImportsFromDatabaseRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string DescibeImportsFromDatabaseRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescibeImportsFromDatabaseRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescibeImportsFromDatabaseRequest::getEndTime()const +{ + return endTime_; +} + +void DescibeImportsFromDatabaseRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +std::string DescibeImportsFromDatabaseRequest::getStartTime()const +{ + return startTime_; +} + +void DescibeImportsFromDatabaseRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + +long DescibeImportsFromDatabaseRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescibeImportsFromDatabaseRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescibeImportsFromDatabaseRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescibeImportsFromDatabaseRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescibeImportsFromDatabaseRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescibeImportsFromDatabaseRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +int DescibeImportsFromDatabaseRequest::getImportId()const +{ + return importId_; +} + +void DescibeImportsFromDatabaseRequest::setImportId(int importId) +{ + importId_ = importId; + setParameter("ImportId", std::to_string(importId)); +} + +std::string DescibeImportsFromDatabaseRequest::getEngine()const +{ + return engine_; +} + +void DescibeImportsFromDatabaseRequest::setEngine(const std::string& engine) +{ + engine_ = engine; + setParameter("Engine", engine); +} + +int DescibeImportsFromDatabaseRequest::getPageSize()const +{ + return pageSize_; +} + +void DescibeImportsFromDatabaseRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescibeImportsFromDatabaseRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescibeImportsFromDatabaseRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + diff --git a/rds/src/model/DescibeImportsFromDatabaseResult.cc b/rds/src/model/DescibeImportsFromDatabaseResult.cc new file mode 100644 index 000000000..c4b8c78f2 --- /dev/null +++ b/rds/src/model/DescibeImportsFromDatabaseResult.cc @@ -0,0 +1,89 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescibeImportsFromDatabaseResult::DescibeImportsFromDatabaseResult() : + ServiceResult() +{} + +DescibeImportsFromDatabaseResult::DescibeImportsFromDatabaseResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescibeImportsFromDatabaseResult::~DescibeImportsFromDatabaseResult() +{} + +void DescibeImportsFromDatabaseResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["ImportResultFromDB"]; + for (auto value : allItems) + { + ImportResultFromDB importResultFromDBObject; + importResultFromDBObject.importId = std::stoi(value["ImportId"].asString()); + importResultFromDBObject.importDataType = value["ImportDataType"].asString(); + importResultFromDBObject.importDataStatus = value["ImportDataStatus"].asString(); + importResultFromDBObject.importDataStatusDescription = value["ImportDataStatusDescription"].asString(); + importResultFromDBObject.incrementalImportingTime = value["IncrementalImportingTime"].asString(); + items_.push_back(importResultFromDBObject); + } + totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); + +} + +int DescibeImportsFromDatabaseResult::getTotalRecordCount()const +{ + return totalRecordCount_; +} + +void DescibeImportsFromDatabaseResult::setTotalRecordCount(int totalRecordCount) +{ + totalRecordCount_ = totalRecordCount; +} + +int DescibeImportsFromDatabaseResult::getPageRecordCount()const +{ + return pageRecordCount_; +} + +void DescibeImportsFromDatabaseResult::setPageRecordCount(int pageRecordCount) +{ + pageRecordCount_ = pageRecordCount; +} + +int DescibeImportsFromDatabaseResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescibeImportsFromDatabaseResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/rds/src/model/DescribeAbnormalDBInstancesRequest.cc b/rds/src/model/DescribeAbnormalDBInstancesRequest.cc new file mode 100644 index 000000000..6c6233037 --- /dev/null +++ b/rds/src/model/DescribeAbnormalDBInstancesRequest.cc @@ -0,0 +1,259 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeAbnormalDBInstancesRequest::DescribeAbnormalDBInstancesRequest() : + RdsRequest("DescribeAbnormalDBInstances") +{} + +DescribeAbnormalDBInstancesRequest::~DescribeAbnormalDBInstancesRequest() +{} + +std::string DescribeAbnormalDBInstancesRequest::getTag4value()const +{ + return tag4value_; +} + +void DescribeAbnormalDBInstancesRequest::setTag4value(const std::string& tag4value) +{ + tag4value_ = tag4value; + setParameter("Tag4value", tag4value); +} + +long DescribeAbnormalDBInstancesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeAbnormalDBInstancesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeAbnormalDBInstancesRequest::getTag2key()const +{ + return tag2key_; +} + +void DescribeAbnormalDBInstancesRequest::setTag2key(const std::string& tag2key) +{ + tag2key_ = tag2key; + setParameter("Tag2key", tag2key); +} + +std::string DescribeAbnormalDBInstancesRequest::getTag5key()const +{ + return tag5key_; +} + +void DescribeAbnormalDBInstancesRequest::setTag5key(const std::string& tag5key) +{ + tag5key_ = tag5key; + setParameter("Tag5key", tag5key); +} + +std::string DescribeAbnormalDBInstancesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeAbnormalDBInstancesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeAbnormalDBInstancesRequest::getClientToken()const +{ + return clientToken_; +} + +void DescribeAbnormalDBInstancesRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string DescribeAbnormalDBInstancesRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeAbnormalDBInstancesRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeAbnormalDBInstancesRequest::getTag3key()const +{ + return tag3key_; +} + +void DescribeAbnormalDBInstancesRequest::setTag3key(const std::string& tag3key) +{ + tag3key_ = tag3key; + setParameter("Tag3key", tag3key); +} + +long DescribeAbnormalDBInstancesRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeAbnormalDBInstancesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeAbnormalDBInstancesRequest::getTag5value()const +{ + return tag5value_; +} + +void DescribeAbnormalDBInstancesRequest::setTag5value(const std::string& tag5value) +{ + tag5value_ = tag5value; + setParameter("Tag5value", tag5value); +} + +int DescribeAbnormalDBInstancesRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeAbnormalDBInstancesRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeAbnormalDBInstancesRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeAbnormalDBInstancesRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeAbnormalDBInstancesRequest::getTags()const +{ + return tags_; +} + +void DescribeAbnormalDBInstancesRequest::setTags(const std::string& tags) +{ + tags_ = tags; + setParameter("Tags", tags); +} + +std::string DescribeAbnormalDBInstancesRequest::getTag1key()const +{ + return tag1key_; +} + +void DescribeAbnormalDBInstancesRequest::setTag1key(const std::string& tag1key) +{ + tag1key_ = tag1key; + setParameter("Tag1key", tag1key); +} + +std::string DescribeAbnormalDBInstancesRequest::getTag1value()const +{ + return tag1value_; +} + +void DescribeAbnormalDBInstancesRequest::setTag1value(const std::string& tag1value) +{ + tag1value_ = tag1value; + setParameter("Tag1value", tag1value); +} + +std::string DescribeAbnormalDBInstancesRequest::getTag2value()const +{ + return tag2value_; +} + +void DescribeAbnormalDBInstancesRequest::setTag2value(const std::string& tag2value) +{ + tag2value_ = tag2value; + setParameter("Tag2value", tag2value); +} + +int DescribeAbnormalDBInstancesRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeAbnormalDBInstancesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeAbnormalDBInstancesRequest::getTag4key()const +{ + return tag4key_; +} + +void DescribeAbnormalDBInstancesRequest::setTag4key(const std::string& tag4key) +{ + tag4key_ = tag4key; + setParameter("Tag4key", tag4key); +} + +std::string DescribeAbnormalDBInstancesRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeAbnormalDBInstancesRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +std::string DescribeAbnormalDBInstancesRequest::getTag3value()const +{ + return tag3value_; +} + +void DescribeAbnormalDBInstancesRequest::setTag3value(const std::string& tag3value) +{ + tag3value_ = tag3value; + setParameter("Tag3value", tag3value); +} + +std::string DescribeAbnormalDBInstancesRequest::getProxyId()const +{ + return proxyId_; +} + +void DescribeAbnormalDBInstancesRequest::setProxyId(const std::string& proxyId) +{ + proxyId_ = proxyId; + setParameter("ProxyId", proxyId); +} + diff --git a/rds/src/model/DescribeAbnormalDBInstancesResult.cc b/rds/src/model/DescribeAbnormalDBInstancesResult.cc new file mode 100644 index 000000000..6207568c9 --- /dev/null +++ b/rds/src/model/DescribeAbnormalDBInstancesResult.cc @@ -0,0 +1,101 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeAbnormalDBInstancesResult::DescribeAbnormalDBInstancesResult() : + ServiceResult() +{} + +DescribeAbnormalDBInstancesResult::DescribeAbnormalDBInstancesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAbnormalDBInstancesResult::~DescribeAbnormalDBInstancesResult() +{} + +void DescribeAbnormalDBInstancesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["InstanceResult"]; + for (auto value : allItems) + { + InstanceResult instanceResultObject; + instanceResultObject.dBInstanceDescription = value["DBInstanceDescription"].asString(); + instanceResultObject.dBInstanceId = value["DBInstanceId"].asString(); + auto allAbnormalItems = value["AbnormalItems"]["AbnormalItem"]; + for (auto value : allAbnormalItems) + { + InstanceResult::AbnormalItem abnormalItemObject; + abnormalItemObject.checkTime = value["CheckTime"].asString(); + abnormalItemObject.checkItem = value["CheckItem"].asString(); + abnormalItemObject.abnormalReason = value["AbnormalReason"].asString(); + abnormalItemObject.abnormalValue = value["AbnormalValue"].asString(); + abnormalItemObject.abnormalDetail = value["AbnormalDetail"].asString(); + abnormalItemObject.adviceKey = value["AdviceKey"].asString(); + auto allAdviseValue = value["AdviseValue"]["String"]; + for (auto value : allAdviseValue) + abnormalItemObject.adviseValue.push_back(value.asString()); + instanceResultObject.abnormalItems.push_back(abnormalItemObject); + } + items_.push_back(instanceResultObject); + } + totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); + +} + +int DescribeAbnormalDBInstancesResult::getTotalRecordCount()const +{ + return totalRecordCount_; +} + +void DescribeAbnormalDBInstancesResult::setTotalRecordCount(int totalRecordCount) +{ + totalRecordCount_ = totalRecordCount; +} + +int DescribeAbnormalDBInstancesResult::getPageRecordCount()const +{ + return pageRecordCount_; +} + +void DescribeAbnormalDBInstancesResult::setPageRecordCount(int pageRecordCount) +{ + pageRecordCount_ = pageRecordCount; +} + +int DescribeAbnormalDBInstancesResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeAbnormalDBInstancesResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/rds/src/model/DescribeAccountsRequest.cc b/rds/src/model/DescribeAccountsRequest.cc new file mode 100644 index 000000000..b49a53c3a --- /dev/null +++ b/rds/src/model/DescribeAccountsRequest.cc @@ -0,0 +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. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeAccountsRequest::DescribeAccountsRequest() : + RdsRequest("DescribeAccounts") +{} + +DescribeAccountsRequest::~DescribeAccountsRequest() +{} + +long DescribeAccountsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeAccountsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeAccountsRequest::getAccountName()const +{ + return accountName_; +} + +void DescribeAccountsRequest::setAccountName(const std::string& accountName) +{ + accountName_ = accountName; + setParameter("AccountName", accountName); +} + +std::string DescribeAccountsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeAccountsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeAccountsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeAccountsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeAccountsRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeAccountsRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long DescribeAccountsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeAccountsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeAccountsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeAccountsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/DescribeAccountsResult.cc b/rds/src/model/DescribeAccountsResult.cc new file mode 100644 index 000000000..d4a2a6cc8 --- /dev/null +++ b/rds/src/model/DescribeAccountsResult.cc @@ -0,0 +1,64 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeAccountsResult::DescribeAccountsResult() : + ServiceResult() +{} + +DescribeAccountsResult::DescribeAccountsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAccountsResult::~DescribeAccountsResult() +{} + +void DescribeAccountsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allAccounts = value["Accounts"]["DBInstanceAccount"]; + for (auto value : allAccounts) + { + DBInstanceAccount dBInstanceAccountObject; + dBInstanceAccountObject.dBInstanceId = value["DBInstanceId"].asString(); + dBInstanceAccountObject.accountName = value["AccountName"].asString(); + dBInstanceAccountObject.accountStatus = value["AccountStatus"].asString(); + dBInstanceAccountObject.accountType = value["AccountType"].asString(); + dBInstanceAccountObject.accountDescription = value["AccountDescription"].asString(); + auto allDatabasePrivileges = value["DatabasePrivileges"]["DatabasePrivilege"]; + for (auto value : allDatabasePrivileges) + { + DBInstanceAccount::DatabasePrivilege databasePrivilegeObject; + databasePrivilegeObject.dBName = value["DBName"].asString(); + databasePrivilegeObject.accountPrivilege = value["AccountPrivilege"].asString(); + dBInstanceAccountObject.databasePrivileges.push_back(databasePrivilegeObject); + } + accounts_.push_back(dBInstanceAccountObject); + } + +} + diff --git a/rds/src/model/DescribeBackupPolicyRequest.cc b/rds/src/model/DescribeBackupPolicyRequest.cc new file mode 100644 index 000000000..07807ec20 --- /dev/null +++ b/rds/src/model/DescribeBackupPolicyRequest.cc @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeBackupPolicyRequest::DescribeBackupPolicyRequest() : + RdsRequest("DescribeBackupPolicy") +{} + +DescribeBackupPolicyRequest::~DescribeBackupPolicyRequest() +{} + +long DescribeBackupPolicyRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeBackupPolicyRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeBackupPolicyRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeBackupPolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeBackupPolicyRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeBackupPolicyRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeBackupPolicyRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeBackupPolicyRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long DescribeBackupPolicyRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeBackupPolicyRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeBackupPolicyRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeBackupPolicyRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/DescribeBackupPolicyResult.cc b/rds/src/model/DescribeBackupPolicyResult.cc new file mode 100644 index 000000000..373bc0e25 --- /dev/null +++ b/rds/src/model/DescribeBackupPolicyResult.cc @@ -0,0 +1,111 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeBackupPolicyResult::DescribeBackupPolicyResult() : + ServiceResult() +{} + +DescribeBackupPolicyResult::DescribeBackupPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeBackupPolicyResult::~DescribeBackupPolicyResult() +{} + +void DescribeBackupPolicyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + backupRetentionPeriod_ = std::stoi(value["BackupRetentionPeriod"].asString()); + preferredNextBackupTime_ = value["PreferredNextBackupTime"].asString(); + preferredBackupTime_ = value["PreferredBackupTime"].asString(); + preferredBackupPeriod_ = value["PreferredBackupPeriod"].asString(); + backupLog_ = value["BackupLog"].asString(); + logBackupRetentionPeriod_ = std::stoi(value["LogBackupRetentionPeriod"].asString()); + +} + +std::string DescribeBackupPolicyResult::getPreferredBackupPeriod()const +{ + return preferredBackupPeriod_; +} + +void DescribeBackupPolicyResult::setPreferredBackupPeriod(const std::string& preferredBackupPeriod) +{ + preferredBackupPeriod_ = preferredBackupPeriod; +} + +int DescribeBackupPolicyResult::getLogBackupRetentionPeriod()const +{ + return logBackupRetentionPeriod_; +} + +void DescribeBackupPolicyResult::setLogBackupRetentionPeriod(int logBackupRetentionPeriod) +{ + logBackupRetentionPeriod_ = logBackupRetentionPeriod; +} + +std::string DescribeBackupPolicyResult::getPreferredBackupTime()const +{ + return preferredBackupTime_; +} + +void DescribeBackupPolicyResult::setPreferredBackupTime(const std::string& preferredBackupTime) +{ + preferredBackupTime_ = preferredBackupTime; +} + +std::string DescribeBackupPolicyResult::getBackupLog()const +{ + return backupLog_; +} + +void DescribeBackupPolicyResult::setBackupLog(const std::string& backupLog) +{ + backupLog_ = backupLog; +} + +int DescribeBackupPolicyResult::getBackupRetentionPeriod()const +{ + return backupRetentionPeriod_; +} + +void DescribeBackupPolicyResult::setBackupRetentionPeriod(int backupRetentionPeriod) +{ + backupRetentionPeriod_ = backupRetentionPeriod; +} + +std::string DescribeBackupPolicyResult::getPreferredNextBackupTime()const +{ + return preferredNextBackupTime_; +} + +void DescribeBackupPolicyResult::setPreferredNextBackupTime(const std::string& preferredNextBackupTime) +{ + preferredNextBackupTime_ = preferredNextBackupTime; +} + diff --git a/rds/src/model/DescribeBackupSetsForSecurityRequest.cc b/rds/src/model/DescribeBackupSetsForSecurityRequest.cc new file mode 100644 index 000000000..590e39b78 --- /dev/null +++ b/rds/src/model/DescribeBackupSetsForSecurityRequest.cc @@ -0,0 +1,204 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeBackupSetsForSecurityRequest::DescribeBackupSetsForSecurityRequest() : + RdsRequest("DescribeBackupSetsForSecurity") +{} + +DescribeBackupSetsForSecurityRequest::~DescribeBackupSetsForSecurityRequest() +{} + +long DescribeBackupSetsForSecurityRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeBackupSetsForSecurityRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeBackupSetsForSecurityRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeBackupSetsForSecurityRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeBackupSetsForSecurityRequest::getTargetAliBid()const +{ + return targetAliBid_; +} + +void DescribeBackupSetsForSecurityRequest::setTargetAliBid(const std::string& targetAliBid) +{ + targetAliBid_ = targetAliBid; + setParameter("TargetAliBid", targetAliBid); +} + +std::string DescribeBackupSetsForSecurityRequest::getBackupId()const +{ + return backupId_; +} + +void DescribeBackupSetsForSecurityRequest::setBackupId(const std::string& backupId) +{ + backupId_ = backupId; + setParameter("BackupId", backupId); +} + +std::string DescribeBackupSetsForSecurityRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeBackupSetsForSecurityRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeBackupSetsForSecurityRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeBackupSetsForSecurityRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +std::string DescribeBackupSetsForSecurityRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeBackupSetsForSecurityRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + +long DescribeBackupSetsForSecurityRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeBackupSetsForSecurityRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeBackupSetsForSecurityRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeBackupSetsForSecurityRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeBackupSetsForSecurityRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeBackupSetsForSecurityRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeBackupSetsForSecurityRequest::getBackupStatus()const +{ + return backupStatus_; +} + +void DescribeBackupSetsForSecurityRequest::setBackupStatus(const std::string& backupStatus) +{ + backupStatus_ = backupStatus; + setParameter("BackupStatus", backupStatus); +} + +std::string DescribeBackupSetsForSecurityRequest::getBackupLocation()const +{ + return backupLocation_; +} + +void DescribeBackupSetsForSecurityRequest::setBackupLocation(const std::string& backupLocation) +{ + backupLocation_ = backupLocation; + setParameter("BackupLocation", backupLocation); +} + +std::string DescribeBackupSetsForSecurityRequest::getTargetAliUid()const +{ + return targetAliUid_; +} + +void DescribeBackupSetsForSecurityRequest::setTargetAliUid(const std::string& targetAliUid) +{ + targetAliUid_ = targetAliUid; + setParameter("TargetAliUid", targetAliUid); +} + +int DescribeBackupSetsForSecurityRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeBackupSetsForSecurityRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeBackupSetsForSecurityRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeBackupSetsForSecurityRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +std::string DescribeBackupSetsForSecurityRequest::getBackupMode()const +{ + return backupMode_; +} + +void DescribeBackupSetsForSecurityRequest::setBackupMode(const std::string& backupMode) +{ + backupMode_ = backupMode; + setParameter("BackupMode", backupMode); +} + diff --git a/rds/src/model/DescribeBackupSetsForSecurityResult.cc b/rds/src/model/DescribeBackupSetsForSecurityResult.cc new file mode 100644 index 000000000..221d6e2c4 --- /dev/null +++ b/rds/src/model/DescribeBackupSetsForSecurityResult.cc @@ -0,0 +1,113 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeBackupSetsForSecurityResult::DescribeBackupSetsForSecurityResult() : + ServiceResult() +{} + +DescribeBackupSetsForSecurityResult::DescribeBackupSetsForSecurityResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeBackupSetsForSecurityResult::~DescribeBackupSetsForSecurityResult() +{} + +void DescribeBackupSetsForSecurityResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["Backup"]; + for (auto value : allItems) + { + Backup backupObject; + backupObject.backupId = value["BackupId"].asString(); + backupObject.dBInstanceId = value["DBInstanceId"].asString(); + backupObject.backupStatus = value["BackupStatus"].asString(); + backupObject.backupStartTime = value["BackupStartTime"].asString(); + backupObject.backupEndTime = value["BackupEndTime"].asString(); + backupObject.backupType = value["BackupType"].asString(); + backupObject.backupMode = value["BackupMode"].asString(); + backupObject.backupMethod = value["BackupMethod"].asString(); + backupObject.backupDownloadURL = value["BackupDownloadURL"].asString(); + backupObject.backupIntranetDownloadURL = value["BackupIntranetDownloadURL"].asString(); + backupObject.backupLocation = value["BackupLocation"].asString(); + backupObject.backupExtractionStatus = value["BackupExtractionStatus"].asString(); + backupObject.backupScale = value["BackupScale"].asString(); + backupObject.backupDBNames = value["BackupDBNames"].asString(); + backupObject.totalBackupSize = std::stol(value["TotalBackupSize"].asString()); + backupObject.backupSize = std::stol(value["BackupSize"].asString()); + backupObject.hostInstanceID = value["HostInstanceID"].asString(); + backupObject.storeStatus = value["StoreStatus"].asString(); + items_.push_back(backupObject); + } + totalRecordCount_ = value["TotalRecordCount"].asString(); + pageNumber_ = value["PageNumber"].asString(); + pageRecordCount_ = value["PageRecordCount"].asString(); + totalBackupSize_ = std::stol(value["TotalBackupSize"].asString()); + +} + +std::string DescribeBackupSetsForSecurityResult::getTotalRecordCount()const +{ + return totalRecordCount_; +} + +void DescribeBackupSetsForSecurityResult::setTotalRecordCount(const std::string& totalRecordCount) +{ + totalRecordCount_ = totalRecordCount; +} + +std::string DescribeBackupSetsForSecurityResult::getPageRecordCount()const +{ + return pageRecordCount_; +} + +void DescribeBackupSetsForSecurityResult::setPageRecordCount(const std::string& pageRecordCount) +{ + pageRecordCount_ = pageRecordCount; +} + +std::string DescribeBackupSetsForSecurityResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeBackupSetsForSecurityResult::setPageNumber(const std::string& pageNumber) +{ + pageNumber_ = pageNumber; +} + +long DescribeBackupSetsForSecurityResult::getTotalBackupSize()const +{ + return totalBackupSize_; +} + +void DescribeBackupSetsForSecurityResult::setTotalBackupSize(long totalBackupSize) +{ + totalBackupSize_ = totalBackupSize; +} + diff --git a/rds/src/model/DescribeBackupTasksRequest.cc b/rds/src/model/DescribeBackupTasksRequest.cc new file mode 100644 index 000000000..6109c66ce --- /dev/null +++ b/rds/src/model/DescribeBackupTasksRequest.cc @@ -0,0 +1,149 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeBackupTasksRequest::DescribeBackupTasksRequest() : + RdsRequest("DescribeBackupTasks") +{} + +DescribeBackupTasksRequest::~DescribeBackupTasksRequest() +{} + +std::string DescribeBackupTasksRequest::getBackupJobId()const +{ + return backupJobId_; +} + +void DescribeBackupTasksRequest::setBackupJobId(const std::string& backupJobId) +{ + backupJobId_ = backupJobId; + setParameter("BackupJobId", backupJobId); +} + +long DescribeBackupTasksRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeBackupTasksRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeBackupTasksRequest::getFlag()const +{ + return flag_; +} + +void DescribeBackupTasksRequest::setFlag(const std::string& flag) +{ + flag_ = flag; + setParameter("Flag", flag); +} + +std::string DescribeBackupTasksRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeBackupTasksRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeBackupTasksRequest::getClientToken()const +{ + return clientToken_; +} + +void DescribeBackupTasksRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string DescribeBackupTasksRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeBackupTasksRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeBackupTasksRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeBackupTasksRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +std::string DescribeBackupTasksRequest::getBackupMode()const +{ + return backupMode_; +} + +void DescribeBackupTasksRequest::setBackupMode(const std::string& backupMode) +{ + backupMode_ = backupMode; + setParameter("BackupMode", backupMode); +} + +long DescribeBackupTasksRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeBackupTasksRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeBackupTasksRequest::getBackupJobStatus()const +{ + return backupJobStatus_; +} + +void DescribeBackupTasksRequest::setBackupJobStatus(const std::string& backupJobStatus) +{ + backupJobStatus_ = backupJobStatus; + setParameter("BackupJobStatus", backupJobStatus); +} + +std::string DescribeBackupTasksRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeBackupTasksRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/DescribeBackupTasksResult.cc b/rds/src/model/DescribeBackupTasksResult.cc new file mode 100644 index 000000000..4a8a34dff --- /dev/null +++ b/rds/src/model/DescribeBackupTasksResult.cc @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeBackupTasksResult::DescribeBackupTasksResult() : + ServiceResult() +{} + +DescribeBackupTasksResult::DescribeBackupTasksResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeBackupTasksResult::~DescribeBackupTasksResult() +{} + +void DescribeBackupTasksResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["BackupJob"]; + for (auto value : allItems) + { + BackupJob backupJobObject; + backupJobObject.backupProgressStatus = value["BackupProgressStatus"].asString(); + backupJobObject.jobMode = value["JobMode"].asString(); + backupJobObject.process = value["Process"].asString(); + backupJobObject.taskAction = value["TaskAction"].asString(); + backupJobObject.backupjobId = value["BackupjobId"].asString(); + items_.push_back(backupJobObject); + } + +} + diff --git a/rds/src/model/DescribeBackupsForSecurityRequest.cc b/rds/src/model/DescribeBackupsForSecurityRequest.cc new file mode 100644 index 000000000..574d36e41 --- /dev/null +++ b/rds/src/model/DescribeBackupsForSecurityRequest.cc @@ -0,0 +1,204 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeBackupsForSecurityRequest::DescribeBackupsForSecurityRequest() : + RdsRequest("DescribeBackupsForSecurity") +{} + +DescribeBackupsForSecurityRequest::~DescribeBackupsForSecurityRequest() +{} + +long DescribeBackupsForSecurityRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeBackupsForSecurityRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeBackupsForSecurityRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeBackupsForSecurityRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeBackupsForSecurityRequest::getTargetAliBid()const +{ + return targetAliBid_; +} + +void DescribeBackupsForSecurityRequest::setTargetAliBid(const std::string& targetAliBid) +{ + targetAliBid_ = targetAliBid; + setParameter("TargetAliBid", targetAliBid); +} + +std::string DescribeBackupsForSecurityRequest::getBackupId()const +{ + return backupId_; +} + +void DescribeBackupsForSecurityRequest::setBackupId(const std::string& backupId) +{ + backupId_ = backupId; + setParameter("BackupId", backupId); +} + +std::string DescribeBackupsForSecurityRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeBackupsForSecurityRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeBackupsForSecurityRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeBackupsForSecurityRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +std::string DescribeBackupsForSecurityRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeBackupsForSecurityRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + +long DescribeBackupsForSecurityRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeBackupsForSecurityRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeBackupsForSecurityRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeBackupsForSecurityRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeBackupsForSecurityRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeBackupsForSecurityRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeBackupsForSecurityRequest::getBackupStatus()const +{ + return backupStatus_; +} + +void DescribeBackupsForSecurityRequest::setBackupStatus(const std::string& backupStatus) +{ + backupStatus_ = backupStatus; + setParameter("BackupStatus", backupStatus); +} + +std::string DescribeBackupsForSecurityRequest::getBackupLocation()const +{ + return backupLocation_; +} + +void DescribeBackupsForSecurityRequest::setBackupLocation(const std::string& backupLocation) +{ + backupLocation_ = backupLocation; + setParameter("BackupLocation", backupLocation); +} + +std::string DescribeBackupsForSecurityRequest::getTargetAliUid()const +{ + return targetAliUid_; +} + +void DescribeBackupsForSecurityRequest::setTargetAliUid(const std::string& targetAliUid) +{ + targetAliUid_ = targetAliUid; + setParameter("TargetAliUid", targetAliUid); +} + +int DescribeBackupsForSecurityRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeBackupsForSecurityRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeBackupsForSecurityRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeBackupsForSecurityRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +std::string DescribeBackupsForSecurityRequest::getBackupMode()const +{ + return backupMode_; +} + +void DescribeBackupsForSecurityRequest::setBackupMode(const std::string& backupMode) +{ + backupMode_ = backupMode; + setParameter("BackupMode", backupMode); +} + diff --git a/rds/src/model/DescribeBackupsForSecurityResult.cc b/rds/src/model/DescribeBackupsForSecurityResult.cc new file mode 100644 index 000000000..31cb50e9c --- /dev/null +++ b/rds/src/model/DescribeBackupsForSecurityResult.cc @@ -0,0 +1,113 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeBackupsForSecurityResult::DescribeBackupsForSecurityResult() : + ServiceResult() +{} + +DescribeBackupsForSecurityResult::DescribeBackupsForSecurityResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeBackupsForSecurityResult::~DescribeBackupsForSecurityResult() +{} + +void DescribeBackupsForSecurityResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["Backup"]; + for (auto value : allItems) + { + Backup backupObject; + backupObject.backupId = value["BackupId"].asString(); + backupObject.dBInstanceId = value["DBInstanceId"].asString(); + backupObject.backupStatus = value["BackupStatus"].asString(); + backupObject.backupStartTime = value["BackupStartTime"].asString(); + backupObject.backupEndTime = value["BackupEndTime"].asString(); + backupObject.backupType = value["BackupType"].asString(); + backupObject.backupMode = value["BackupMode"].asString(); + backupObject.backupMethod = value["BackupMethod"].asString(); + backupObject.backupDownloadURL = value["BackupDownloadURL"].asString(); + backupObject.backupIntranetDownloadURL = value["BackupIntranetDownloadURL"].asString(); + backupObject.backupLocation = value["BackupLocation"].asString(); + backupObject.backupExtractionStatus = value["BackupExtractionStatus"].asString(); + backupObject.backupScale = value["BackupScale"].asString(); + backupObject.backupDBNames = value["BackupDBNames"].asString(); + backupObject.totalBackupSize = std::stol(value["TotalBackupSize"].asString()); + backupObject.backupSize = std::stol(value["BackupSize"].asString()); + backupObject.hostInstanceID = value["HostInstanceID"].asString(); + backupObject.storeStatus = value["StoreStatus"].asString(); + items_.push_back(backupObject); + } + totalRecordCount_ = value["TotalRecordCount"].asString(); + pageNumber_ = value["PageNumber"].asString(); + pageRecordCount_ = value["PageRecordCount"].asString(); + totalBackupSize_ = std::stol(value["TotalBackupSize"].asString()); + +} + +std::string DescribeBackupsForSecurityResult::getTotalRecordCount()const +{ + return totalRecordCount_; +} + +void DescribeBackupsForSecurityResult::setTotalRecordCount(const std::string& totalRecordCount) +{ + totalRecordCount_ = totalRecordCount; +} + +std::string DescribeBackupsForSecurityResult::getPageRecordCount()const +{ + return pageRecordCount_; +} + +void DescribeBackupsForSecurityResult::setPageRecordCount(const std::string& pageRecordCount) +{ + pageRecordCount_ = pageRecordCount; +} + +std::string DescribeBackupsForSecurityResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeBackupsForSecurityResult::setPageNumber(const std::string& pageNumber) +{ + pageNumber_ = pageNumber; +} + +long DescribeBackupsForSecurityResult::getTotalBackupSize()const +{ + return totalBackupSize_; +} + +void DescribeBackupsForSecurityResult::setTotalBackupSize(long totalBackupSize) +{ + totalBackupSize_ = totalBackupSize; +} + diff --git a/rds/src/model/DescribeBackupsRequest.cc b/rds/src/model/DescribeBackupsRequest.cc new file mode 100644 index 000000000..e04a5d170 --- /dev/null +++ b/rds/src/model/DescribeBackupsRequest.cc @@ -0,0 +1,182 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeBackupsRequest::DescribeBackupsRequest() : + RdsRequest("DescribeBackups") +{} + +DescribeBackupsRequest::~DescribeBackupsRequest() +{} + +long DescribeBackupsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeBackupsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeBackupsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeBackupsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeBackupsRequest::getBackupId()const +{ + return backupId_; +} + +void DescribeBackupsRequest::setBackupId(const std::string& backupId) +{ + backupId_ = backupId; + setParameter("BackupId", backupId); +} + +std::string DescribeBackupsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeBackupsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeBackupsRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeBackupsRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +std::string DescribeBackupsRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeBackupsRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + +long DescribeBackupsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeBackupsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeBackupsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeBackupsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeBackupsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeBackupsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeBackupsRequest::getBackupStatus()const +{ + return backupStatus_; +} + +void DescribeBackupsRequest::setBackupStatus(const std::string& backupStatus) +{ + backupStatus_ = backupStatus; + setParameter("BackupStatus", backupStatus); +} + +std::string DescribeBackupsRequest::getBackupLocation()const +{ + return backupLocation_; +} + +void DescribeBackupsRequest::setBackupLocation(const std::string& backupLocation) +{ + backupLocation_ = backupLocation; + setParameter("BackupLocation", backupLocation); +} + +int DescribeBackupsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeBackupsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeBackupsRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeBackupsRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +std::string DescribeBackupsRequest::getBackupMode()const +{ + return backupMode_; +} + +void DescribeBackupsRequest::setBackupMode(const std::string& backupMode) +{ + backupMode_ = backupMode; + setParameter("BackupMode", backupMode); +} + diff --git a/rds/src/model/DescribeBackupsResult.cc b/rds/src/model/DescribeBackupsResult.cc new file mode 100644 index 000000000..09b0a0831 --- /dev/null +++ b/rds/src/model/DescribeBackupsResult.cc @@ -0,0 +1,113 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeBackupsResult::DescribeBackupsResult() : + ServiceResult() +{} + +DescribeBackupsResult::DescribeBackupsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeBackupsResult::~DescribeBackupsResult() +{} + +void DescribeBackupsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["Backup"]; + for (auto value : allItems) + { + Backup backupObject; + backupObject.backupId = value["BackupId"].asString(); + backupObject.dBInstanceId = value["DBInstanceId"].asString(); + backupObject.backupStatus = value["BackupStatus"].asString(); + backupObject.backupStartTime = value["BackupStartTime"].asString(); + backupObject.backupEndTime = value["BackupEndTime"].asString(); + backupObject.backupType = value["BackupType"].asString(); + backupObject.backupMode = value["BackupMode"].asString(); + backupObject.backupMethod = value["BackupMethod"].asString(); + backupObject.backupDownloadURL = value["BackupDownloadURL"].asString(); + backupObject.backupIntranetDownloadURL = value["BackupIntranetDownloadURL"].asString(); + backupObject.backupLocation = value["BackupLocation"].asString(); + backupObject.backupExtractionStatus = value["BackupExtractionStatus"].asString(); + backupObject.backupScale = value["BackupScale"].asString(); + backupObject.backupDBNames = value["BackupDBNames"].asString(); + backupObject.totalBackupSize = std::stol(value["TotalBackupSize"].asString()); + backupObject.backupSize = std::stol(value["BackupSize"].asString()); + backupObject.hostInstanceID = value["HostInstanceID"].asString(); + backupObject.storeStatus = value["StoreStatus"].asString(); + items_.push_back(backupObject); + } + totalRecordCount_ = value["TotalRecordCount"].asString(); + pageNumber_ = value["PageNumber"].asString(); + pageRecordCount_ = value["PageRecordCount"].asString(); + totalBackupSize_ = std::stol(value["TotalBackupSize"].asString()); + +} + +std::string DescribeBackupsResult::getTotalRecordCount()const +{ + return totalRecordCount_; +} + +void DescribeBackupsResult::setTotalRecordCount(const std::string& totalRecordCount) +{ + totalRecordCount_ = totalRecordCount; +} + +std::string DescribeBackupsResult::getPageRecordCount()const +{ + return pageRecordCount_; +} + +void DescribeBackupsResult::setPageRecordCount(const std::string& pageRecordCount) +{ + pageRecordCount_ = pageRecordCount; +} + +std::string DescribeBackupsResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeBackupsResult::setPageNumber(const std::string& pageNumber) +{ + pageNumber_ = pageNumber; +} + +long DescribeBackupsResult::getTotalBackupSize()const +{ + return totalBackupSize_; +} + +void DescribeBackupsResult::setTotalBackupSize(long totalBackupSize) +{ + totalBackupSize_ = totalBackupSize; +} + diff --git a/rds/src/model/DescribeBinlogFilesRequest.cc b/rds/src/model/DescribeBinlogFilesRequest.cc new file mode 100644 index 000000000..961b35aa3 --- /dev/null +++ b/rds/src/model/DescribeBinlogFilesRequest.cc @@ -0,0 +1,138 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeBinlogFilesRequest::DescribeBinlogFilesRequest() : + RdsRequest("DescribeBinlogFiles") +{} + +DescribeBinlogFilesRequest::~DescribeBinlogFilesRequest() +{} + +long DescribeBinlogFilesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeBinlogFilesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeBinlogFilesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeBinlogFilesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeBinlogFilesRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeBinlogFilesRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +int DescribeBinlogFilesRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeBinlogFilesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeBinlogFilesRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeBinlogFilesRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +std::string DescribeBinlogFilesRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeBinlogFilesRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +std::string DescribeBinlogFilesRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeBinlogFilesRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + +long DescribeBinlogFilesRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeBinlogFilesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeBinlogFilesRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeBinlogFilesRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeBinlogFilesRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeBinlogFilesRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/DescribeBinlogFilesResult.cc b/rds/src/model/DescribeBinlogFilesResult.cc new file mode 100644 index 000000000..f436dd566 --- /dev/null +++ b/rds/src/model/DescribeBinlogFilesResult.cc @@ -0,0 +1,103 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeBinlogFilesResult::DescribeBinlogFilesResult() : + ServiceResult() +{} + +DescribeBinlogFilesResult::DescribeBinlogFilesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeBinlogFilesResult::~DescribeBinlogFilesResult() +{} + +void DescribeBinlogFilesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["BinLogFile"]; + for (auto value : allItems) + { + BinLogFile binLogFileObject; + binLogFileObject.fileSize = std::stol(value["FileSize"].asString()); + binLogFileObject.logBeginTime = value["LogBeginTime"].asString(); + binLogFileObject.logEndTime = value["LogEndTime"].asString(); + binLogFileObject.downloadLink = value["DownloadLink"].asString(); + binLogFileObject.intranetDownloadLink = value["IntranetDownloadLink"].asString(); + binLogFileObject.linkExpiredTime = value["LinkExpiredTime"].asString(); + binLogFileObject.checksum = value["Checksum"].asString(); + binLogFileObject.hostInstanceID = value["HostInstanceID"].asString(); + items_.push_back(binLogFileObject); + } + totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); + totalFileSize_ = std::stol(value["TotalFileSize"].asString()); + +} + +int DescribeBinlogFilesResult::getTotalRecordCount()const +{ + return totalRecordCount_; +} + +void DescribeBinlogFilesResult::setTotalRecordCount(int totalRecordCount) +{ + totalRecordCount_ = totalRecordCount; +} + +int DescribeBinlogFilesResult::getPageRecordCount()const +{ + return pageRecordCount_; +} + +void DescribeBinlogFilesResult::setPageRecordCount(int pageRecordCount) +{ + pageRecordCount_ = pageRecordCount; +} + +int DescribeBinlogFilesResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeBinlogFilesResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + +long DescribeBinlogFilesResult::getTotalFileSize()const +{ + return totalFileSize_; +} + +void DescribeBinlogFilesResult::setTotalFileSize(long totalFileSize) +{ + totalFileSize_ = totalFileSize; +} + diff --git a/rds/src/model/DescribeCharacterSetNameRequest.cc b/rds/src/model/DescribeCharacterSetNameRequest.cc new file mode 100644 index 000000000..164317c8b --- /dev/null +++ b/rds/src/model/DescribeCharacterSetNameRequest.cc @@ -0,0 +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. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeCharacterSetNameRequest::DescribeCharacterSetNameRequest() : + RdsRequest("DescribeCharacterSetName") +{} + +DescribeCharacterSetNameRequest::~DescribeCharacterSetNameRequest() +{} + +long DescribeCharacterSetNameRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeCharacterSetNameRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeCharacterSetNameRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeCharacterSetNameRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeCharacterSetNameRequest::getEngine()const +{ + return engine_; +} + +void DescribeCharacterSetNameRequest::setEngine(const std::string& engine) +{ + engine_ = engine; + setParameter("Engine", engine); +} + +std::string DescribeCharacterSetNameRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeCharacterSetNameRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeCharacterSetNameRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeCharacterSetNameRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DescribeCharacterSetNameRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeCharacterSetNameRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeCharacterSetNameRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeCharacterSetNameRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/DescribeCharacterSetNameResult.cc b/rds/src/model/DescribeCharacterSetNameResult.cc new file mode 100644 index 000000000..2932466b8 --- /dev/null +++ b/rds/src/model/DescribeCharacterSetNameResult.cc @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeCharacterSetNameResult::DescribeCharacterSetNameResult() : + ServiceResult() +{} + +DescribeCharacterSetNameResult::DescribeCharacterSetNameResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeCharacterSetNameResult::~DescribeCharacterSetNameResult() +{} + +void DescribeCharacterSetNameResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allCharacterSetNameItems = value["CharacterSetNameItems"]["CharacterSetName"]; + for (const auto &item : allCharacterSetNameItems) + characterSetNameItems_.push_back(item.asString()); + engine_ = value["Engine"].asString(); + +} + +std::vector DescribeCharacterSetNameResult::getCharacterSetNameItems()const +{ + return characterSetNameItems_; +} + +void DescribeCharacterSetNameResult::setCharacterSetNameItems(const std::vector& characterSetNameItems) +{ + characterSetNameItems_ = characterSetNameItems; +} + +std::string DescribeCharacterSetNameResult::getEngine()const +{ + return engine_; +} + +void DescribeCharacterSetNameResult::setEngine(const std::string& engine) +{ + engine_ = engine; +} + diff --git a/rds/src/model/DescribeDBInstanceAttributeRequest.cc b/rds/src/model/DescribeDBInstanceAttributeRequest.cc new file mode 100644 index 000000000..dbca5d4ca --- /dev/null +++ b/rds/src/model/DescribeDBInstanceAttributeRequest.cc @@ -0,0 +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. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeDBInstanceAttributeRequest::DescribeDBInstanceAttributeRequest() : + RdsRequest("DescribeDBInstanceAttribute") +{} + +DescribeDBInstanceAttributeRequest::~DescribeDBInstanceAttributeRequest() +{} + +std::string DescribeDBInstanceAttributeRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void DescribeDBInstanceAttributeRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setParameter("ResourceGroupId", resourceGroupId); +} + +long DescribeDBInstanceAttributeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeDBInstanceAttributeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeDBInstanceAttributeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeDBInstanceAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeDBInstanceAttributeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeDBInstanceAttributeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeDBInstanceAttributeRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeDBInstanceAttributeRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long DescribeDBInstanceAttributeRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeDBInstanceAttributeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeDBInstanceAttributeRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeDBInstanceAttributeRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/DescribeDBInstanceAttributeResult.cc b/rds/src/model/DescribeDBInstanceAttributeResult.cc new file mode 100644 index 000000000..6eaca9fc8 --- /dev/null +++ b/rds/src/model/DescribeDBInstanceAttributeResult.cc @@ -0,0 +1,112 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeDBInstanceAttributeResult::DescribeDBInstanceAttributeResult() : + ServiceResult() +{} + +DescribeDBInstanceAttributeResult::DescribeDBInstanceAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDBInstanceAttributeResult::~DescribeDBInstanceAttributeResult() +{} + +void DescribeDBInstanceAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["DBInstanceAttribute"]; + for (auto value : allItems) + { + DBInstanceAttribute dBInstanceAttributeObject; + dBInstanceAttributeObject.dBInstanceDiskUsed = value["DBInstanceDiskUsed"].asString(); + dBInstanceAttributeObject.guardDBInstanceName = value["GuardDBInstanceName"].asString(); + dBInstanceAttributeObject.canTempUpgrade = std::stoi(value["CanTempUpgrade"].asString()); + dBInstanceAttributeObject.tempUpgradeTimeStart = value["TempUpgradeTimeStart"].asString(); + dBInstanceAttributeObject.tempUpgradeTimeEnd = value["TempUpgradeTimeEnd"].asString(); + dBInstanceAttributeObject.tempUpgradeRecoveryTime = value["TempUpgradeRecoveryTime"].asString(); + dBInstanceAttributeObject.tempUpgradeRecoveryClass = value["TempUpgradeRecoveryClass"].asString(); + dBInstanceAttributeObject.tempUpgradeRecoveryCpu = std::stoi(value["TempUpgradeRecoveryCpu"].asString()); + dBInstanceAttributeObject.tempUpgradeRecoveryMemory = std::stoi(value["TempUpgradeRecoveryMemory"].asString()); + dBInstanceAttributeObject.tempUpgradeRecoveryMaxIOPS = value["TempUpgradeRecoveryMaxIOPS"].asString(); + dBInstanceAttributeObject.tempUpgradeRecoveryMaxConnections = value["TempUpgradeRecoveryMaxConnections"].asString(); + dBInstanceAttributeObject.insId = std::stoi(value["InsId"].asString()); + dBInstanceAttributeObject.dBInstanceId = value["DBInstanceId"].asString(); + dBInstanceAttributeObject.payType = value["PayType"].asString(); + dBInstanceAttributeObject.dBInstanceClassType = value["DBInstanceClassType"].asString(); + dBInstanceAttributeObject.dBInstanceType = value["DBInstanceType"].asString(); + dBInstanceAttributeObject.regionId = value["RegionId"].asString(); + dBInstanceAttributeObject.connectionString = value["ConnectionString"].asString(); + dBInstanceAttributeObject.port = value["Port"].asString(); + dBInstanceAttributeObject.engine = value["Engine"].asString(); + dBInstanceAttributeObject.engineVersion = value["EngineVersion"].asString(); + dBInstanceAttributeObject.dBInstanceClass = value["DBInstanceClass"].asString(); + dBInstanceAttributeObject.dBInstanceMemory = std::stol(value["DBInstanceMemory"].asString()); + dBInstanceAttributeObject.dBInstanceStorage = std::stoi(value["DBInstanceStorage"].asString()); + dBInstanceAttributeObject.dBInstanceNetType = value["DBInstanceNetType"].asString(); + dBInstanceAttributeObject.dBInstanceStatus = value["DBInstanceStatus"].asString(); + dBInstanceAttributeObject.dBInstanceDescription = value["DBInstanceDescription"].asString(); + dBInstanceAttributeObject.lockMode = value["LockMode"].asString(); + dBInstanceAttributeObject.lockReason = value["LockReason"].asString(); + dBInstanceAttributeObject.readDelayTime = value["ReadDelayTime"].asString(); + dBInstanceAttributeObject.dBMaxQuantity = std::stoi(value["DBMaxQuantity"].asString()); + dBInstanceAttributeObject.accountMaxQuantity = std::stoi(value["AccountMaxQuantity"].asString()); + dBInstanceAttributeObject.creationTime = value["CreationTime"].asString(); + dBInstanceAttributeObject.expireTime = value["ExpireTime"].asString(); + dBInstanceAttributeObject.maintainTime = value["MaintainTime"].asString(); + dBInstanceAttributeObject.availabilityValue = value["AvailabilityValue"].asString(); + dBInstanceAttributeObject.maxIOPS = std::stoi(value["MaxIOPS"].asString()); + dBInstanceAttributeObject.maxConnections = std::stoi(value["MaxConnections"].asString()); + dBInstanceAttributeObject.masterInstanceId = value["MasterInstanceId"].asString(); + dBInstanceAttributeObject.dBInstanceCPU = value["DBInstanceCPU"].asString(); + dBInstanceAttributeObject.incrementSourceDBInstanceId = value["IncrementSourceDBInstanceId"].asString(); + dBInstanceAttributeObject.guardDBInstanceId = value["GuardDBInstanceId"].asString(); + dBInstanceAttributeObject.replicateId = value["ReplicateId"].asString(); + dBInstanceAttributeObject.tempDBInstanceId = value["TempDBInstanceId"].asString(); + dBInstanceAttributeObject.securityIPList = value["SecurityIPList"].asString(); + dBInstanceAttributeObject.zoneId = value["ZoneId"].asString(); + dBInstanceAttributeObject.instanceNetworkType = value["InstanceNetworkType"].asString(); + dBInstanceAttributeObject.category = value["Category"].asString(); + dBInstanceAttributeObject.accountType = value["AccountType"].asString(); + dBInstanceAttributeObject.supportUpgradeAccountType = value["SupportUpgradeAccountType"].asString(); + dBInstanceAttributeObject.vpcId = value["VpcId"].asString(); + dBInstanceAttributeObject.vSwitchId = value["VSwitchId"].asString(); + dBInstanceAttributeObject.connectionMode = value["ConnectionMode"].asString(); + dBInstanceAttributeObject.resourceGroupId = value["ResourceGroupId"].asString(); + auto allReadOnlyDBInstanceIds = value["ReadOnlyDBInstanceIds"]["ReadOnlyDBInstanceId"]; + for (auto value : allReadOnlyDBInstanceIds) + { + DBInstanceAttribute::ReadOnlyDBInstanceId readOnlyDBInstanceIdObject; + readOnlyDBInstanceIdObject.dBInstanceId = value["DBInstanceId"].asString(); + dBInstanceAttributeObject.readOnlyDBInstanceIds.push_back(readOnlyDBInstanceIdObject); + } + items_.push_back(dBInstanceAttributeObject); + } + +} + diff --git a/rds/src/model/DescribeDBInstanceByTagsRequest.cc b/rds/src/model/DescribeDBInstanceByTagsRequest.cc new file mode 100644 index 000000000..0f64cccbb --- /dev/null +++ b/rds/src/model/DescribeDBInstanceByTagsRequest.cc @@ -0,0 +1,149 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeDBInstanceByTagsRequest::DescribeDBInstanceByTagsRequest() : + RdsRequest("DescribeDBInstanceByTags") +{} + +DescribeDBInstanceByTagsRequest::~DescribeDBInstanceByTagsRequest() +{} + +long DescribeDBInstanceByTagsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeDBInstanceByTagsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeDBInstanceByTagsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeDBInstanceByTagsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeDBInstanceByTagsRequest::getClientToken()const +{ + return clientToken_; +} + +void DescribeDBInstanceByTagsRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string DescribeDBInstanceByTagsRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeDBInstanceByTagsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeDBInstanceByTagsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeDBInstanceByTagsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +int DescribeDBInstanceByTagsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeDBInstanceByTagsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeDBInstanceByTagsRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeDBInstanceByTagsRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long DescribeDBInstanceByTagsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeDBInstanceByTagsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeDBInstanceByTagsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeDBInstanceByTagsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeDBInstanceByTagsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeDBInstanceByTagsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeDBInstanceByTagsRequest::getProxyId()const +{ + return proxyId_; +} + +void DescribeDBInstanceByTagsRequest::setProxyId(const std::string& proxyId) +{ + proxyId_ = proxyId; + setParameter("ProxyId", proxyId); +} + diff --git a/rds/src/model/DescribeDBInstanceByTagsResult.cc b/rds/src/model/DescribeDBInstanceByTagsResult.cc new file mode 100644 index 000000000..027284a4e --- /dev/null +++ b/rds/src/model/DescribeDBInstanceByTagsResult.cc @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeDBInstanceByTagsResult::DescribeDBInstanceByTagsResult() : + ServiceResult() +{} + +DescribeDBInstanceByTagsResult::DescribeDBInstanceByTagsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDBInstanceByTagsResult::~DescribeDBInstanceByTagsResult() +{} + +void DescribeDBInstanceByTagsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["DBInstanceTag"]; + for (auto value : allItems) + { + DBInstanceTag dBInstanceTagObject; + dBInstanceTagObject.dBInstanceId = value["DBInstanceId"].asString(); + auto allTags = value["Tags"]["Tag"]; + for (auto value : allTags) + { + DBInstanceTag::Tag tagObject; + tagObject.tagKey = value["TagKey"].asString(); + tagObject.tagValue = value["TagValue"].asString(); + dBInstanceTagObject.tags.push_back(tagObject); + } + items_.push_back(dBInstanceTagObject); + } + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); + totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString()); + +} + +int DescribeDBInstanceByTagsResult::getTotalRecordCount()const +{ + return totalRecordCount_; +} + +void DescribeDBInstanceByTagsResult::setTotalRecordCount(int totalRecordCount) +{ + totalRecordCount_ = totalRecordCount; +} + +int DescribeDBInstanceByTagsResult::getPageRecordCount()const +{ + return pageRecordCount_; +} + +void DescribeDBInstanceByTagsResult::setPageRecordCount(int pageRecordCount) +{ + pageRecordCount_ = pageRecordCount; +} + +int DescribeDBInstanceByTagsResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeDBInstanceByTagsResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/rds/src/model/DescribeDBInstanceECSSGRelationRequest.cc b/rds/src/model/DescribeDBInstanceECSSGRelationRequest.cc new file mode 100644 index 000000000..649184e07 --- /dev/null +++ b/rds/src/model/DescribeDBInstanceECSSGRelationRequest.cc @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeDBInstanceECSSGRelationRequest::DescribeDBInstanceECSSGRelationRequest() : + RdsRequest("DescribeDBInstanceECSSGRelation") +{} + +DescribeDBInstanceECSSGRelationRequest::~DescribeDBInstanceECSSGRelationRequest() +{} + +long DescribeDBInstanceECSSGRelationRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeDBInstanceECSSGRelationRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeDBInstanceECSSGRelationRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeDBInstanceECSSGRelationRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeDBInstanceECSSGRelationRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeDBInstanceECSSGRelationRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long DescribeDBInstanceECSSGRelationRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeDBInstanceECSSGRelationRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeDBInstanceECSSGRelationRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeDBInstanceECSSGRelationRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/DescribeDBInstanceECSSGRelationResult.cc b/rds/src/model/DescribeDBInstanceECSSGRelationResult.cc new file mode 100644 index 000000000..4d20df59e --- /dev/null +++ b/rds/src/model/DescribeDBInstanceECSSGRelationResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeDBInstanceECSSGRelationResult::DescribeDBInstanceECSSGRelationResult() : + ServiceResult() +{} + +DescribeDBInstanceECSSGRelationResult::DescribeDBInstanceECSSGRelationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDBInstanceECSSGRelationResult::~DescribeDBInstanceECSSGRelationResult() +{} + +void DescribeDBInstanceECSSGRelationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["RdsEcsSecurityGroupRel"]; + for (auto value : allItems) + { + RdsEcsSecurityGroupRel rdsEcsSecurityGroupRelObject; + rdsEcsSecurityGroupRelObject.regionId = value["RegionId"].asString(); + rdsEcsSecurityGroupRelObject.securityGroupId = value["SecurityGroupId"].asString(); + rdsEcsSecurityGroupRelObject.netType = value["NetType"].asString(); + items_.push_back(rdsEcsSecurityGroupRelObject); + } + dBInstanceName_ = value["DBInstanceName"].asString(); + +} + +std::string DescribeDBInstanceECSSGRelationResult::getDBInstanceName()const +{ + return dBInstanceName_; +} + +void DescribeDBInstanceECSSGRelationResult::setDBInstanceName(const std::string& dBInstanceName) +{ + dBInstanceName_ = dBInstanceName; +} + diff --git a/rds/src/model/DescribeDBInstanceExtendAttributeRequest.cc b/rds/src/model/DescribeDBInstanceExtendAttributeRequest.cc new file mode 100644 index 000000000..138ca92f4 --- /dev/null +++ b/rds/src/model/DescribeDBInstanceExtendAttributeRequest.cc @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeDBInstanceExtendAttributeRequest::DescribeDBInstanceExtendAttributeRequest() : + RdsRequest("DescribeDBInstanceExtendAttribute") +{} + +DescribeDBInstanceExtendAttributeRequest::~DescribeDBInstanceExtendAttributeRequest() +{} + +long DescribeDBInstanceExtendAttributeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeDBInstanceExtendAttributeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeDBInstanceExtendAttributeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeDBInstanceExtendAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeDBInstanceExtendAttributeRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeDBInstanceExtendAttributeRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long DescribeDBInstanceExtendAttributeRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeDBInstanceExtendAttributeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeDBInstanceExtendAttributeRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeDBInstanceExtendAttributeRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/DescribeDBInstanceExtendAttributeResult.cc b/rds/src/model/DescribeDBInstanceExtendAttributeResult.cc new file mode 100644 index 000000000..f3b77eba1 --- /dev/null +++ b/rds/src/model/DescribeDBInstanceExtendAttributeResult.cc @@ -0,0 +1,144 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeDBInstanceExtendAttributeResult::DescribeDBInstanceExtendAttributeResult() : + ServiceResult() +{} + +DescribeDBInstanceExtendAttributeResult::DescribeDBInstanceExtendAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDBInstanceExtendAttributeResult::~DescribeDBInstanceExtendAttributeResult() +{} + +void DescribeDBInstanceExtendAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + canTempUpgrade_ = std::stoi(value["CanTempUpgrade"].asString()); + tempUpgradeTimeStart_ = value["TempUpgradeTimeStart"].asString(); + tempUpgradeTimeEnd_ = value["TempUpgradeTimeEnd"].asString(); + tempUpgradeRecoveryTime_ = value["TempUpgradeRecoveryTime"].asString(); + tempUpgradeRecoveryClass_ = value["TempUpgradeRecoveryClass"].asString(); + tempUpgradeRecoveryCpu_ = std::stoi(value["TempUpgradeRecoveryCpu"].asString()); + tempUpgradeRecoveryMemory_ = std::stoi(value["TempUpgradeRecoveryMemory"].asString()); + tempUpgradeRecoveryMaxIOPS_ = value["TempUpgradeRecoveryMaxIOPS"].asString(); + tempUpgradeRecoveryMaxConnections_ = value["TempUpgradeRecoveryMaxConnections"].asString(); + +} + +std::string DescribeDBInstanceExtendAttributeResult::getTempUpgradeRecoveryMaxIOPS()const +{ + return tempUpgradeRecoveryMaxIOPS_; +} + +void DescribeDBInstanceExtendAttributeResult::setTempUpgradeRecoveryMaxIOPS(const std::string& tempUpgradeRecoveryMaxIOPS) +{ + tempUpgradeRecoveryMaxIOPS_ = tempUpgradeRecoveryMaxIOPS; +} + +int DescribeDBInstanceExtendAttributeResult::getTempUpgradeRecoveryMemory()const +{ + return tempUpgradeRecoveryMemory_; +} + +void DescribeDBInstanceExtendAttributeResult::setTempUpgradeRecoveryMemory(int tempUpgradeRecoveryMemory) +{ + tempUpgradeRecoveryMemory_ = tempUpgradeRecoveryMemory; +} + +std::string DescribeDBInstanceExtendAttributeResult::getTempUpgradeRecoveryTime()const +{ + return tempUpgradeRecoveryTime_; +} + +void DescribeDBInstanceExtendAttributeResult::setTempUpgradeRecoveryTime(const std::string& tempUpgradeRecoveryTime) +{ + tempUpgradeRecoveryTime_ = tempUpgradeRecoveryTime; +} + +std::string DescribeDBInstanceExtendAttributeResult::getTempUpgradeRecoveryMaxConnections()const +{ + return tempUpgradeRecoveryMaxConnections_; +} + +void DescribeDBInstanceExtendAttributeResult::setTempUpgradeRecoveryMaxConnections(const std::string& tempUpgradeRecoveryMaxConnections) +{ + tempUpgradeRecoveryMaxConnections_ = tempUpgradeRecoveryMaxConnections; +} + +int DescribeDBInstanceExtendAttributeResult::getTempUpgradeRecoveryCpu()const +{ + return tempUpgradeRecoveryCpu_; +} + +void DescribeDBInstanceExtendAttributeResult::setTempUpgradeRecoveryCpu(int tempUpgradeRecoveryCpu) +{ + tempUpgradeRecoveryCpu_ = tempUpgradeRecoveryCpu; +} + +std::string DescribeDBInstanceExtendAttributeResult::getTempUpgradeTimeStart()const +{ + return tempUpgradeTimeStart_; +} + +void DescribeDBInstanceExtendAttributeResult::setTempUpgradeTimeStart(const std::string& tempUpgradeTimeStart) +{ + tempUpgradeTimeStart_ = tempUpgradeTimeStart; +} + +std::string DescribeDBInstanceExtendAttributeResult::getTempUpgradeTimeEnd()const +{ + return tempUpgradeTimeEnd_; +} + +void DescribeDBInstanceExtendAttributeResult::setTempUpgradeTimeEnd(const std::string& tempUpgradeTimeEnd) +{ + tempUpgradeTimeEnd_ = tempUpgradeTimeEnd; +} + +bool DescribeDBInstanceExtendAttributeResult::getCanTempUpgrade()const +{ + return canTempUpgrade_; +} + +void DescribeDBInstanceExtendAttributeResult::setCanTempUpgrade(bool canTempUpgrade) +{ + canTempUpgrade_ = canTempUpgrade; +} + +std::string DescribeDBInstanceExtendAttributeResult::getTempUpgradeRecoveryClass()const +{ + return tempUpgradeRecoveryClass_; +} + +void DescribeDBInstanceExtendAttributeResult::setTempUpgradeRecoveryClass(const std::string& tempUpgradeRecoveryClass) +{ + tempUpgradeRecoveryClass_ = tempUpgradeRecoveryClass; +} + diff --git a/rds/src/model/DescribeDBInstanceHAConfigRequest.cc b/rds/src/model/DescribeDBInstanceHAConfigRequest.cc new file mode 100644 index 000000000..3edda8735 --- /dev/null +++ b/rds/src/model/DescribeDBInstanceHAConfigRequest.cc @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeDBInstanceHAConfigRequest::DescribeDBInstanceHAConfigRequest() : + RdsRequest("DescribeDBInstanceHAConfig") +{} + +DescribeDBInstanceHAConfigRequest::~DescribeDBInstanceHAConfigRequest() +{} + +long DescribeDBInstanceHAConfigRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeDBInstanceHAConfigRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeDBInstanceHAConfigRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeDBInstanceHAConfigRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeDBInstanceHAConfigRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeDBInstanceHAConfigRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeDBInstanceHAConfigRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeDBInstanceHAConfigRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long DescribeDBInstanceHAConfigRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeDBInstanceHAConfigRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeDBInstanceHAConfigRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeDBInstanceHAConfigRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/DescribeDBInstanceHAConfigResult.cc b/rds/src/model/DescribeDBInstanceHAConfigResult.cc new file mode 100644 index 000000000..1795bb861 --- /dev/null +++ b/rds/src/model/DescribeDBInstanceHAConfigResult.cc @@ -0,0 +1,91 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeDBInstanceHAConfigResult::DescribeDBInstanceHAConfigResult() : + ServiceResult() +{} + +DescribeDBInstanceHAConfigResult::DescribeDBInstanceHAConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDBInstanceHAConfigResult::~DescribeDBInstanceHAConfigResult() +{} + +void DescribeDBInstanceHAConfigResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allHostInstanceInfos = value["HostInstanceInfos"]["NodeInfo"]; + for (auto value : allHostInstanceInfos) + { + NodeInfo nodeInfoObject; + nodeInfoObject.nodeId = value["NodeId"].asString(); + nodeInfoObject.regionId = value["RegionId"].asString(); + nodeInfoObject.logSyncTime = value["LogSyncTime"].asString(); + nodeInfoObject.dataSyncTime = value["DataSyncTime"].asString(); + nodeInfoObject.nodeType = value["NodeType"].asString(); + nodeInfoObject.zoneId = value["ZoneId"].asString(); + nodeInfoObject.syncStatus = value["SyncStatus"].asString(); + hostInstanceInfos_.push_back(nodeInfoObject); + } + dBInstanceId_ = value["DBInstanceId"].asString(); + syncMode_ = value["SyncMode"].asString(); + hAMode_ = value["HAMode"].asString(); + +} + +std::string DescribeDBInstanceHAConfigResult::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeDBInstanceHAConfigResult::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; +} + +std::string DescribeDBInstanceHAConfigResult::getHAMode()const +{ + return hAMode_; +} + +void DescribeDBInstanceHAConfigResult::setHAMode(const std::string& hAMode) +{ + hAMode_ = hAMode; +} + +std::string DescribeDBInstanceHAConfigResult::getSyncMode()const +{ + return syncMode_; +} + +void DescribeDBInstanceHAConfigResult::setSyncMode(const std::string& syncMode) +{ + syncMode_ = syncMode; +} + diff --git a/rds/src/model/DescribeDBInstanceIPArrayListRequest.cc b/rds/src/model/DescribeDBInstanceIPArrayListRequest.cc new file mode 100644 index 000000000..e557e5f4e --- /dev/null +++ b/rds/src/model/DescribeDBInstanceIPArrayListRequest.cc @@ -0,0 +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. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeDBInstanceIPArrayListRequest::DescribeDBInstanceIPArrayListRequest() : + RdsRequest("DescribeDBInstanceIPArrayList") +{} + +DescribeDBInstanceIPArrayListRequest::~DescribeDBInstanceIPArrayListRequest() +{} + +long DescribeDBInstanceIPArrayListRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeDBInstanceIPArrayListRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeDBInstanceIPArrayListRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeDBInstanceIPArrayListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeDBInstanceIPArrayListRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeDBInstanceIPArrayListRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeDBInstanceIPArrayListRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeDBInstanceIPArrayListRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long DescribeDBInstanceIPArrayListRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeDBInstanceIPArrayListRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeDBInstanceIPArrayListRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeDBInstanceIPArrayListRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeDBInstanceIPArrayListRequest::getWhitelistNetType()const +{ + return whitelistNetType_; +} + +void DescribeDBInstanceIPArrayListRequest::setWhitelistNetType(const std::string& whitelistNetType) +{ + whitelistNetType_ = whitelistNetType; + setParameter("WhitelistNetType", whitelistNetType); +} + diff --git a/rds/src/model/DescribeDBInstanceIPArrayListResult.cc b/rds/src/model/DescribeDBInstanceIPArrayListResult.cc new file mode 100644 index 000000000..47234b1b0 --- /dev/null +++ b/rds/src/model/DescribeDBInstanceIPArrayListResult.cc @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeDBInstanceIPArrayListResult::DescribeDBInstanceIPArrayListResult() : + ServiceResult() +{} + +DescribeDBInstanceIPArrayListResult::DescribeDBInstanceIPArrayListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDBInstanceIPArrayListResult::~DescribeDBInstanceIPArrayListResult() +{} + +void DescribeDBInstanceIPArrayListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["DBInstanceIPArray"]; + for (auto value : allItems) + { + DBInstanceIPArray dBInstanceIPArrayObject; + dBInstanceIPArrayObject.dBInstanceIPArrayName = value["DBInstanceIPArrayName"].asString(); + dBInstanceIPArrayObject.dBInstanceIPArrayAttribute = value["DBInstanceIPArrayAttribute"].asString(); + dBInstanceIPArrayObject.securityIPList = value["SecurityIPList"].asString(); + dBInstanceIPArrayObject.whitelistNetType = value["WhitelistNetType"].asString(); + items_.push_back(dBInstanceIPArrayObject); + } + +} + diff --git a/rds/src/model/DescribeDBInstanceMonitorRequest.cc b/rds/src/model/DescribeDBInstanceMonitorRequest.cc new file mode 100644 index 000000000..24e217d7d --- /dev/null +++ b/rds/src/model/DescribeDBInstanceMonitorRequest.cc @@ -0,0 +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. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeDBInstanceMonitorRequest::DescribeDBInstanceMonitorRequest() : + RdsRequest("DescribeDBInstanceMonitor") +{} + +DescribeDBInstanceMonitorRequest::~DescribeDBInstanceMonitorRequest() +{} + +long DescribeDBInstanceMonitorRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeDBInstanceMonitorRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeDBInstanceMonitorRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeDBInstanceMonitorRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeDBInstanceMonitorRequest::getClientToken()const +{ + return clientToken_; +} + +void DescribeDBInstanceMonitorRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string DescribeDBInstanceMonitorRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeDBInstanceMonitorRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeDBInstanceMonitorRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeDBInstanceMonitorRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long DescribeDBInstanceMonitorRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeDBInstanceMonitorRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeDBInstanceMonitorRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeDBInstanceMonitorRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/DescribeDBInstanceMonitorResult.cc b/rds/src/model/DescribeDBInstanceMonitorResult.cc new file mode 100644 index 000000000..99f9c6e2b --- /dev/null +++ b/rds/src/model/DescribeDBInstanceMonitorResult.cc @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeDBInstanceMonitorResult::DescribeDBInstanceMonitorResult() : + ServiceResult() +{} + +DescribeDBInstanceMonitorResult::DescribeDBInstanceMonitorResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDBInstanceMonitorResult::~DescribeDBInstanceMonitorResult() +{} + +void DescribeDBInstanceMonitorResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + period_ = value["Period"].asString(); + +} + +std::string DescribeDBInstanceMonitorResult::getPeriod()const +{ + return period_; +} + +void DescribeDBInstanceMonitorResult::setPeriod(const std::string& period) +{ + period_ = period; +} + diff --git a/rds/src/model/DescribeDBInstanceNetInfoRequest.cc b/rds/src/model/DescribeDBInstanceNetInfoRequest.cc new file mode 100644 index 000000000..205ac262a --- /dev/null +++ b/rds/src/model/DescribeDBInstanceNetInfoRequest.cc @@ -0,0 +1,127 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeDBInstanceNetInfoRequest::DescribeDBInstanceNetInfoRequest() : + RdsRequest("DescribeDBInstanceNetInfo") +{} + +DescribeDBInstanceNetInfoRequest::~DescribeDBInstanceNetInfoRequest() +{} + +long DescribeDBInstanceNetInfoRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeDBInstanceNetInfoRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeDBInstanceNetInfoRequest::getFlag()const +{ + return flag_; +} + +void DescribeDBInstanceNetInfoRequest::setFlag(const std::string& flag) +{ + flag_ = flag; + setParameter("Flag", flag); +} + +std::string DescribeDBInstanceNetInfoRequest::getDBInstanceNetRWSplitType()const +{ + return dBInstanceNetRWSplitType_; +} + +void DescribeDBInstanceNetInfoRequest::setDBInstanceNetRWSplitType(const std::string& dBInstanceNetRWSplitType) +{ + dBInstanceNetRWSplitType_ = dBInstanceNetRWSplitType; + setParameter("DBInstanceNetRWSplitType", dBInstanceNetRWSplitType); +} + +std::string DescribeDBInstanceNetInfoRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeDBInstanceNetInfoRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeDBInstanceNetInfoRequest::getClientToken()const +{ + return clientToken_; +} + +void DescribeDBInstanceNetInfoRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string DescribeDBInstanceNetInfoRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeDBInstanceNetInfoRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeDBInstanceNetInfoRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeDBInstanceNetInfoRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long DescribeDBInstanceNetInfoRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeDBInstanceNetInfoRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeDBInstanceNetInfoRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeDBInstanceNetInfoRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/DescribeDBInstanceNetInfoResult.cc b/rds/src/model/DescribeDBInstanceNetInfoResult.cc new file mode 100644 index 000000000..8414c2121 --- /dev/null +++ b/rds/src/model/DescribeDBInstanceNetInfoResult.cc @@ -0,0 +1,91 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeDBInstanceNetInfoResult::DescribeDBInstanceNetInfoResult() : + ServiceResult() +{} + +DescribeDBInstanceNetInfoResult::DescribeDBInstanceNetInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDBInstanceNetInfoResult::~DescribeDBInstanceNetInfoResult() +{} + +void DescribeDBInstanceNetInfoResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allDBInstanceNetInfos = value["DBInstanceNetInfos"]["DBInstanceNetInfo"]; + for (auto value : allDBInstanceNetInfos) + { + DBInstanceNetInfo dBInstanceNetInfoObject; + dBInstanceNetInfoObject.upgradeable = value["Upgradeable"].asString(); + dBInstanceNetInfoObject.expiredTime = value["ExpiredTime"].asString(); + dBInstanceNetInfoObject.connectionString = value["ConnectionString"].asString(); + dBInstanceNetInfoObject.iPAddress = value["IPAddress"].asString(); + dBInstanceNetInfoObject.iPType = value["IPType"].asString(); + dBInstanceNetInfoObject.port = value["Port"].asString(); + dBInstanceNetInfoObject.vPCId = value["VPCId"].asString(); + dBInstanceNetInfoObject.vSwitchId = value["VSwitchId"].asString(); + dBInstanceNetInfoObject.connectionStringType = value["ConnectionStringType"].asString(); + dBInstanceNetInfoObject.maxDelayTime = value["MaxDelayTime"].asString(); + dBInstanceNetInfoObject.distributionType = value["DistributionType"].asString(); + auto allSecurityIPGroups = value["SecurityIPGroups"]["securityIPGroup"]; + for (auto value : allSecurityIPGroups) + { + DBInstanceNetInfo::securityIPGroup securityIPGroupObject; + securityIPGroupObject.securityIPGroupName = value["SecurityIPGroupName"].asString(); + securityIPGroupObject.securityIPs = value["SecurityIPs"].asString(); + dBInstanceNetInfoObject.securityIPGroups.push_back(securityIPGroupObject); + } + auto allDBInstanceWeights = value["DBInstanceWeights"]["DBInstanceWeight"]; + for (auto value : allDBInstanceWeights) + { + DBInstanceNetInfo::DBInstanceWeight dBInstanceWeightObject; + dBInstanceWeightObject.dBInstanceId = value["DBInstanceId"].asString(); + dBInstanceWeightObject.dBInstanceType = value["DBInstanceType"].asString(); + dBInstanceWeightObject.availability = value["Availability"].asString(); + dBInstanceWeightObject.weight = value["Weight"].asString(); + dBInstanceNetInfoObject.dBInstanceWeights.push_back(dBInstanceWeightObject); + } + dBInstanceNetInfos_.push_back(dBInstanceNetInfoObject); + } + instanceNetworkType_ = value["InstanceNetworkType"].asString(); + +} + +std::string DescribeDBInstanceNetInfoResult::getInstanceNetworkType()const +{ + return instanceNetworkType_; +} + +void DescribeDBInstanceNetInfoResult::setInstanceNetworkType(const std::string& instanceNetworkType) +{ + instanceNetworkType_ = instanceNetworkType; +} + diff --git a/rds/src/model/DescribeDBInstanceNetworkDetailRequest.cc b/rds/src/model/DescribeDBInstanceNetworkDetailRequest.cc new file mode 100644 index 000000000..5303bfe0c --- /dev/null +++ b/rds/src/model/DescribeDBInstanceNetworkDetailRequest.cc @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeDBInstanceNetworkDetailRequest::DescribeDBInstanceNetworkDetailRequest() : + RdsRequest("DescribeDBInstanceNetworkDetail") +{} + +DescribeDBInstanceNetworkDetailRequest::~DescribeDBInstanceNetworkDetailRequest() +{} + +std::string DescribeDBInstanceNetworkDetailRequest::getEndPoint()const +{ + return endPoint_; +} + +void DescribeDBInstanceNetworkDetailRequest::setEndPoint(const std::string& endPoint) +{ + endPoint_ = endPoint; + setParameter("EndPoint", endPoint); +} + +std::string DescribeDBInstanceNetworkDetailRequest::getStartPoint()const +{ + return startPoint_; +} + +void DescribeDBInstanceNetworkDetailRequest::setStartPoint(const std::string& startPoint) +{ + startPoint_ = startPoint; + setParameter("StartPoint", startPoint); +} + +std::string DescribeDBInstanceNetworkDetailRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeDBInstanceNetworkDetailRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +std::string DescribeDBInstanceNetworkDetailRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeDBInstanceNetworkDetailRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +std::string DescribeDBInstanceNetworkDetailRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeDBInstanceNetworkDetailRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + +std::string DescribeDBInstanceNetworkDetailRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeDBInstanceNetworkDetailRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/DescribeDBInstanceNetworkDetailResult.cc b/rds/src/model/DescribeDBInstanceNetworkDetailResult.cc new file mode 100644 index 000000000..e4bc9e681 --- /dev/null +++ b/rds/src/model/DescribeDBInstanceNetworkDetailResult.cc @@ -0,0 +1,193 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeDBInstanceNetworkDetailResult::DescribeDBInstanceNetworkDetailResult() : + ServiceResult() +{} + +DescribeDBInstanceNetworkDetailResult::DescribeDBInstanceNetworkDetailResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDBInstanceNetworkDetailResult::~DescribeDBInstanceNetworkDetailResult() +{} + +void DescribeDBInstanceNetworkDetailResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allNetworkDetail = value["NetworkDetail"]["NetworkKey"]; + for (auto value : allNetworkDetail) + { + NetworkKey networkKeyObject; + networkKeyObject.key = value["Key"].asString(); + networkKeyObject.unit = value["Unit"].asString(); + auto allValues = value["Values"]["NetworkValue"]; + for (auto value : allValues) + { + NetworkKey::NetworkValue networkValueObject; + networkValueObject.value = value["Value"].asString(); + networkValueObject.dateTime = value["DateTime"].asString(); + networkKeyObject.values.push_back(networkValueObject); + } + networkDetail_.push_back(networkKeyObject); + } + dBInstanceId_ = value["DBInstanceId"].asString(); + startTime_ = value["StartTime"].asString(); + endTime_ = value["EndTime"].asString(); + newConnection_ = value["NewConnection"].asString(); + activeConnection_ = value["ActiveConnection"].asString(); + abortedConnection_ = value["AbortedConnection"].asString(); + networkRequest_ = value["NetworkRequest"].asString(); + networkTrafficIn_ = value["NetworkTrafficIn"].asString(); + networkTrafficOut_ = value["NetworkTrafficOut"].asString(); + networkLatency_ = value["NetworkLatency"].asString(); + backendLatency_ = value["BackendLatency"].asString(); + networkErrors_ = value["NetworkErrors"].asString(); + +} + +std::string DescribeDBInstanceNetworkDetailResult::getEndTime()const +{ + return endTime_; +} + +void DescribeDBInstanceNetworkDetailResult::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; +} + +std::string DescribeDBInstanceNetworkDetailResult::getNetworkLatency()const +{ + return networkLatency_; +} + +void DescribeDBInstanceNetworkDetailResult::setNetworkLatency(const std::string& networkLatency) +{ + networkLatency_ = networkLatency; +} + +std::string DescribeDBInstanceNetworkDetailResult::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeDBInstanceNetworkDetailResult::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; +} + +std::string DescribeDBInstanceNetworkDetailResult::getNetworkTrafficOut()const +{ + return networkTrafficOut_; +} + +void DescribeDBInstanceNetworkDetailResult::setNetworkTrafficOut(const std::string& networkTrafficOut) +{ + networkTrafficOut_ = networkTrafficOut; +} + +std::string DescribeDBInstanceNetworkDetailResult::getActiveConnection()const +{ + return activeConnection_; +} + +void DescribeDBInstanceNetworkDetailResult::setActiveConnection(const std::string& activeConnection) +{ + activeConnection_ = activeConnection; +} + +std::string DescribeDBInstanceNetworkDetailResult::getNetworkErrors()const +{ + return networkErrors_; +} + +void DescribeDBInstanceNetworkDetailResult::setNetworkErrors(const std::string& networkErrors) +{ + networkErrors_ = networkErrors; +} + +std::string DescribeDBInstanceNetworkDetailResult::getStartTime()const +{ + return startTime_; +} + +void DescribeDBInstanceNetworkDetailResult::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; +} + +std::string DescribeDBInstanceNetworkDetailResult::getNetworkRequest()const +{ + return networkRequest_; +} + +void DescribeDBInstanceNetworkDetailResult::setNetworkRequest(const std::string& networkRequest) +{ + networkRequest_ = networkRequest; +} + +std::string DescribeDBInstanceNetworkDetailResult::getNewConnection()const +{ + return newConnection_; +} + +void DescribeDBInstanceNetworkDetailResult::setNewConnection(const std::string& newConnection) +{ + newConnection_ = newConnection; +} + +std::string DescribeDBInstanceNetworkDetailResult::getNetworkTrafficIn()const +{ + return networkTrafficIn_; +} + +void DescribeDBInstanceNetworkDetailResult::setNetworkTrafficIn(const std::string& networkTrafficIn) +{ + networkTrafficIn_ = networkTrafficIn; +} + +std::string DescribeDBInstanceNetworkDetailResult::getAbortedConnection()const +{ + return abortedConnection_; +} + +void DescribeDBInstanceNetworkDetailResult::setAbortedConnection(const std::string& abortedConnection) +{ + abortedConnection_ = abortedConnection; +} + +std::string DescribeDBInstanceNetworkDetailResult::getBackendLatency()const +{ + return backendLatency_; +} + +void DescribeDBInstanceNetworkDetailResult::setBackendLatency(const std::string& backendLatency) +{ + backendLatency_ = backendLatency; +} + diff --git a/rds/src/model/DescribeDBInstanceNetworkRequest.cc b/rds/src/model/DescribeDBInstanceNetworkRequest.cc new file mode 100644 index 000000000..4cb83d0e5 --- /dev/null +++ b/rds/src/model/DescribeDBInstanceNetworkRequest.cc @@ -0,0 +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 namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeDBInstanceNetworkRequest::DescribeDBInstanceNetworkRequest() : + RdsRequest("DescribeDBInstanceNetwork") +{} + +DescribeDBInstanceNetworkRequest::~DescribeDBInstanceNetworkRequest() +{} + +std::string DescribeDBInstanceNetworkRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeDBInstanceNetworkRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +std::string DescribeDBInstanceNetworkRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeDBInstanceNetworkRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +std::string DescribeDBInstanceNetworkRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeDBInstanceNetworkRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + +std::string DescribeDBInstanceNetworkRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeDBInstanceNetworkRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/DescribeDBInstanceNetworkResult.cc b/rds/src/model/DescribeDBInstanceNetworkResult.cc new file mode 100644 index 000000000..d5eb880e5 --- /dev/null +++ b/rds/src/model/DescribeDBInstanceNetworkResult.cc @@ -0,0 +1,91 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeDBInstanceNetworkResult::DescribeDBInstanceNetworkResult() : + ServiceResult() +{} + +DescribeDBInstanceNetworkResult::DescribeDBInstanceNetworkResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDBInstanceNetworkResult::~DescribeDBInstanceNetworkResult() +{} + +void DescribeDBInstanceNetworkResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allTopology = value["Topology"]["TopologyItem"]; + for (auto value : allTopology) + { + TopologyItem topologyItemObject; + topologyItemObject.startPoint = value["StartPoint"].asString(); + topologyItemObject.endPoint = value["EndPoint"].asString(); + topologyItemObject.networkTrafficIn = value["NetworkTrafficIn"].asString(); + topologyItemObject.networkTrafficOut = value["NetworkTrafficOut"].asString(); + topologyItemObject.networkLatency = value["NetworkLatency"].asString(); + topologyItemObject.backendLatency = value["BackendLatency"].asString(); + topologyItemObject.networkErrors = value["NetworkErrors"].asString(); + topology_.push_back(topologyItemObject); + } + dBInstanceId_ = value["DBInstanceId"].asString(); + startTime_ = value["StartTime"].asString(); + endTime_ = value["EndTime"].asString(); + +} + +std::string DescribeDBInstanceNetworkResult::getEndTime()const +{ + return endTime_; +} + +void DescribeDBInstanceNetworkResult::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; +} + +std::string DescribeDBInstanceNetworkResult::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeDBInstanceNetworkResult::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; +} + +std::string DescribeDBInstanceNetworkResult::getStartTime()const +{ + return startTime_; +} + +void DescribeDBInstanceNetworkResult::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; +} + diff --git a/rds/src/model/DescribeDBInstancePerformanceRequest.cc b/rds/src/model/DescribeDBInstancePerformanceRequest.cc new file mode 100644 index 000000000..e78ed4051 --- /dev/null +++ b/rds/src/model/DescribeDBInstancePerformanceRequest.cc @@ -0,0 +1,127 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeDBInstancePerformanceRequest::DescribeDBInstancePerformanceRequest() : + RdsRequest("DescribeDBInstancePerformance") +{} + +DescribeDBInstancePerformanceRequest::~DescribeDBInstancePerformanceRequest() +{} + +long DescribeDBInstancePerformanceRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeDBInstancePerformanceRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeDBInstancePerformanceRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeDBInstancePerformanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeDBInstancePerformanceRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeDBInstancePerformanceRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeDBInstancePerformanceRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeDBInstancePerformanceRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +std::string DescribeDBInstancePerformanceRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeDBInstancePerformanceRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +std::string DescribeDBInstancePerformanceRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeDBInstancePerformanceRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + +long DescribeDBInstancePerformanceRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeDBInstancePerformanceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeDBInstancePerformanceRequest::getKey()const +{ + return key_; +} + +void DescribeDBInstancePerformanceRequest::setKey(const std::string& key) +{ + key_ = key; + setParameter("Key", key); +} + +std::string DescribeDBInstancePerformanceRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeDBInstancePerformanceRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/DescribeDBInstancePerformanceResult.cc b/rds/src/model/DescribeDBInstancePerformanceResult.cc new file mode 100644 index 000000000..a8893e4e4 --- /dev/null +++ b/rds/src/model/DescribeDBInstancePerformanceResult.cc @@ -0,0 +1,106 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeDBInstancePerformanceResult::DescribeDBInstancePerformanceResult() : + ServiceResult() +{} + +DescribeDBInstancePerformanceResult::DescribeDBInstancePerformanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDBInstancePerformanceResult::~DescribeDBInstancePerformanceResult() +{} + +void DescribeDBInstancePerformanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allPerformanceKeys = value["PerformanceKeys"]["PerformanceKey"]; + for (auto value : allPerformanceKeys) + { + PerformanceKey performanceKeyObject; + performanceKeyObject.key = value["Key"].asString(); + performanceKeyObject.unit = value["Unit"].asString(); + performanceKeyObject.valueFormat = value["ValueFormat"].asString(); + auto allValues = value["Values"]["PerformanceValue"]; + for (auto value : allValues) + { + PerformanceKey::PerformanceValue performanceValueObject; + performanceValueObject.value = value["Value"].asString(); + performanceValueObject.date = value["Date"].asString(); + performanceKeyObject.values.push_back(performanceValueObject); + } + performanceKeys_.push_back(performanceKeyObject); + } + dBInstanceId_ = value["DBInstanceId"].asString(); + engine_ = value["Engine"].asString(); + startTime_ = value["StartTime"].asString(); + endTime_ = value["EndTime"].asString(); + +} + +std::string DescribeDBInstancePerformanceResult::getEndTime()const +{ + return endTime_; +} + +void DescribeDBInstancePerformanceResult::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; +} + +std::string DescribeDBInstancePerformanceResult::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeDBInstancePerformanceResult::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; +} + +std::string DescribeDBInstancePerformanceResult::getStartTime()const +{ + return startTime_; +} + +void DescribeDBInstancePerformanceResult::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; +} + +std::string DescribeDBInstancePerformanceResult::getEngine()const +{ + return engine_; +} + +void DescribeDBInstancePerformanceResult::setEngine(const std::string& engine) +{ + engine_ = engine; +} + diff --git a/rds/src/model/DescribeDBInstanceSSLRequest.cc b/rds/src/model/DescribeDBInstanceSSLRequest.cc new file mode 100644 index 000000000..72627c0b3 --- /dev/null +++ b/rds/src/model/DescribeDBInstanceSSLRequest.cc @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeDBInstanceSSLRequest::DescribeDBInstanceSSLRequest() : + RdsRequest("DescribeDBInstanceSSL") +{} + +DescribeDBInstanceSSLRequest::~DescribeDBInstanceSSLRequest() +{} + +long DescribeDBInstanceSSLRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeDBInstanceSSLRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeDBInstanceSSLRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeDBInstanceSSLRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeDBInstanceSSLRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeDBInstanceSSLRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeDBInstanceSSLRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeDBInstanceSSLRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long DescribeDBInstanceSSLRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeDBInstanceSSLRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeDBInstanceSSLRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeDBInstanceSSLRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/DescribeDBInstanceSSLResult.cc b/rds/src/model/DescribeDBInstanceSSLResult.cc new file mode 100644 index 000000000..193e0fcc6 --- /dev/null +++ b/rds/src/model/DescribeDBInstanceSSLResult.cc @@ -0,0 +1,89 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeDBInstanceSSLResult::DescribeDBInstanceSSLResult() : + ServiceResult() +{} + +DescribeDBInstanceSSLResult::DescribeDBInstanceSSLResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDBInstanceSSLResult::~DescribeDBInstanceSSLResult() +{} + +void DescribeDBInstanceSSLResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + connectionString_ = value["ConnectionString"].asString(); + sSLExpireTime_ = value["SSLExpireTime"].asString(); + requireUpdate_ = value["RequireUpdate"].asString(); + requireUpdateReason_ = value["RequireUpdateReason"].asString(); + +} + +std::string DescribeDBInstanceSSLResult::getSSLExpireTime()const +{ + return sSLExpireTime_; +} + +void DescribeDBInstanceSSLResult::setSSLExpireTime(const std::string& sSLExpireTime) +{ + sSLExpireTime_ = sSLExpireTime; +} + +std::string DescribeDBInstanceSSLResult::getRequireUpdateReason()const +{ + return requireUpdateReason_; +} + +void DescribeDBInstanceSSLResult::setRequireUpdateReason(const std::string& requireUpdateReason) +{ + requireUpdateReason_ = requireUpdateReason; +} + +std::string DescribeDBInstanceSSLResult::getConnectionString()const +{ + return connectionString_; +} + +void DescribeDBInstanceSSLResult::setConnectionString(const std::string& connectionString) +{ + connectionString_ = connectionString; +} + +std::string DescribeDBInstanceSSLResult::getRequireUpdate()const +{ + return requireUpdate_; +} + +void DescribeDBInstanceSSLResult::setRequireUpdate(const std::string& requireUpdate) +{ + requireUpdate_ = requireUpdate; +} + diff --git a/rds/src/model/DescribeDBInstanceTDERequest.cc b/rds/src/model/DescribeDBInstanceTDERequest.cc new file mode 100644 index 000000000..7971c9342 --- /dev/null +++ b/rds/src/model/DescribeDBInstanceTDERequest.cc @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeDBInstanceTDERequest::DescribeDBInstanceTDERequest() : + RdsRequest("DescribeDBInstanceTDE") +{} + +DescribeDBInstanceTDERequest::~DescribeDBInstanceTDERequest() +{} + +long DescribeDBInstanceTDERequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeDBInstanceTDERequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeDBInstanceTDERequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeDBInstanceTDERequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeDBInstanceTDERequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeDBInstanceTDERequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeDBInstanceTDERequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeDBInstanceTDERequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long DescribeDBInstanceTDERequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeDBInstanceTDERequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeDBInstanceTDERequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeDBInstanceTDERequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/DescribeDBInstanceTDEResult.cc b/rds/src/model/DescribeDBInstanceTDEResult.cc new file mode 100644 index 000000000..d3cb18c37 --- /dev/null +++ b/rds/src/model/DescribeDBInstanceTDEResult.cc @@ -0,0 +1,64 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeDBInstanceTDEResult::DescribeDBInstanceTDEResult() : + ServiceResult() +{} + +DescribeDBInstanceTDEResult::DescribeDBInstanceTDEResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDBInstanceTDEResult::~DescribeDBInstanceTDEResult() +{} + +void DescribeDBInstanceTDEResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allDatabases = value["Databases"]["Database"]; + for (auto value : allDatabases) + { + Database databaseObject; + databaseObject.dBName = value["DBName"].asString(); + databaseObject.tDEStatus = value["TDEStatus"].asString(); + databases_.push_back(databaseObject); + } + tDEStatus_ = value["TDEStatus"].asString(); + +} + +std::string DescribeDBInstanceTDEResult::getTDEStatus()const +{ + return tDEStatus_; +} + +void DescribeDBInstanceTDEResult::setTDEStatus(const std::string& tDEStatus) +{ + tDEStatus_ = tDEStatus; +} + diff --git a/rds/src/model/DescribeDBInstanceUserRequest.cc b/rds/src/model/DescribeDBInstanceUserRequest.cc new file mode 100644 index 000000000..67f6e961c --- /dev/null +++ b/rds/src/model/DescribeDBInstanceUserRequest.cc @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeDBInstanceUserRequest::DescribeDBInstanceUserRequest() : + RdsRequest("DescribeDBInstanceUser") +{} + +DescribeDBInstanceUserRequest::~DescribeDBInstanceUserRequest() +{} + +long DescribeDBInstanceUserRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeDBInstanceUserRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeDBInstanceUserRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeDBInstanceUserRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeDBInstanceUserRequest::getConnectionString()const +{ + return connectionString_; +} + +void DescribeDBInstanceUserRequest::setConnectionString(const std::string& connectionString) +{ + connectionString_ = connectionString; + setParameter("ConnectionString", connectionString); +} + +std::string DescribeDBInstanceUserRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeDBInstanceUserRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long DescribeDBInstanceUserRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeDBInstanceUserRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeDBInstanceUserRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeDBInstanceUserRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/DescribeDBInstanceUserResult.cc b/rds/src/model/DescribeDBInstanceUserResult.cc new file mode 100644 index 000000000..deb0ed124 --- /dev/null +++ b/rds/src/model/DescribeDBInstanceUserResult.cc @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeDBInstanceUserResult::DescribeDBInstanceUserResult() : + ServiceResult() +{} + +DescribeDBInstanceUserResult::DescribeDBInstanceUserResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDBInstanceUserResult::~DescribeDBInstanceUserResult() +{} + +void DescribeDBInstanceUserResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + dBInstanceName_ = value["DBInstanceName"].asString(); + internalDBFlag_ = value["InternalDBFlag"].asString(); + +} + +std::string DescribeDBInstanceUserResult::getInternalDBFlag()const +{ + return internalDBFlag_; +} + +void DescribeDBInstanceUserResult::setInternalDBFlag(const std::string& internalDBFlag) +{ + internalDBFlag_ = internalDBFlag; +} + +std::string DescribeDBInstanceUserResult::getDBInstanceName()const +{ + return dBInstanceName_; +} + +void DescribeDBInstanceUserResult::setDBInstanceName(const std::string& dBInstanceName) +{ + dBInstanceName_ = dBInstanceName; +} + diff --git a/rds/src/model/DescribeDBInstancesAsCsvRequest.cc b/rds/src/model/DescribeDBInstancesAsCsvRequest.cc new file mode 100644 index 000000000..ae900c3c2 --- /dev/null +++ b/rds/src/model/DescribeDBInstancesAsCsvRequest.cc @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeDBInstancesAsCsvRequest::DescribeDBInstancesAsCsvRequest() : + RdsRequest("DescribeDBInstancesAsCsv") +{} + +DescribeDBInstancesAsCsvRequest::~DescribeDBInstancesAsCsvRequest() +{} + +long DescribeDBInstancesAsCsvRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeDBInstancesAsCsvRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeDBInstancesAsCsvRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeDBInstancesAsCsvRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeDBInstancesAsCsvRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeDBInstancesAsCsvRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeDBInstancesAsCsvRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeDBInstancesAsCsvRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long DescribeDBInstancesAsCsvRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeDBInstancesAsCsvRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeDBInstancesAsCsvRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeDBInstancesAsCsvRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/DescribeDBInstancesAsCsvResult.cc b/rds/src/model/DescribeDBInstancesAsCsvResult.cc new file mode 100644 index 000000000..c00352760 --- /dev/null +++ b/rds/src/model/DescribeDBInstancesAsCsvResult.cc @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeDBInstancesAsCsvResult::DescribeDBInstancesAsCsvResult() : + ServiceResult() +{} + +DescribeDBInstancesAsCsvResult::DescribeDBInstancesAsCsvResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDBInstancesAsCsvResult::~DescribeDBInstancesAsCsvResult() +{} + +void DescribeDBInstancesAsCsvResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["DBInstanceAttribute"]; + for (auto value : allItems) + { + DBInstanceAttribute dBInstanceAttributeObject; + dBInstanceAttributeObject.insId = std::stoi(value["InsId"].asString()); + dBInstanceAttributeObject.dBInstanceId = value["DBInstanceId"].asString(); + dBInstanceAttributeObject.dBInstanceName = value["DBInstanceName"].asString(); + dBInstanceAttributeObject.payType = value["PayType"].asString(); + dBInstanceAttributeObject.dBInstanceClassType = value["DBInstanceClassType"].asString(); + dBInstanceAttributeObject.dBInstanceType = value["DBInstanceType"].asString(); + dBInstanceAttributeObject.regionId = value["RegionId"].asString(); + dBInstanceAttributeObject.connectionString = value["ConnectionString"].asString(); + dBInstanceAttributeObject.port = value["Port"].asString(); + dBInstanceAttributeObject.engine = value["Engine"].asString(); + dBInstanceAttributeObject.engineVersion = value["EngineVersion"].asString(); + dBInstanceAttributeObject.dBInstanceClass = value["DBInstanceClass"].asString(); + dBInstanceAttributeObject.dBInstanceMemory = std::stol(value["DBInstanceMemory"].asString()); + dBInstanceAttributeObject.dBInstanceStorage = std::stoi(value["DBInstanceStorage"].asString()); + dBInstanceAttributeObject.dBInstanceNetType = value["DBInstanceNetType"].asString(); + dBInstanceAttributeObject.dBInstanceStatus = value["DBInstanceStatus"].asString(); + dBInstanceAttributeObject.dBInstanceDescription = value["DBInstanceDescription"].asString(); + dBInstanceAttributeObject.lockMode = value["LockMode"].asString(); + dBInstanceAttributeObject.lockReason = value["LockReason"].asString(); + dBInstanceAttributeObject.readDelayTime = value["ReadDelayTime"].asString(); + dBInstanceAttributeObject.dBMaxQuantity = std::stoi(value["DBMaxQuantity"].asString()); + dBInstanceAttributeObject.accountMaxQuantity = std::stoi(value["AccountMaxQuantity"].asString()); + dBInstanceAttributeObject.creationTime = value["CreationTime"].asString(); + dBInstanceAttributeObject.expireTime = value["ExpireTime"].asString(); + dBInstanceAttributeObject.maintainTime = value["MaintainTime"].asString(); + dBInstanceAttributeObject.availabilityValue = value["AvailabilityValue"].asString(); + dBInstanceAttributeObject.maxIOPS = std::stoi(value["MaxIOPS"].asString()); + dBInstanceAttributeObject.maxConnections = std::stoi(value["MaxConnections"].asString()); + dBInstanceAttributeObject.masterInstanceId = value["MasterInstanceId"].asString(); + dBInstanceAttributeObject.dBInstanceCPU = value["DBInstanceCPU"].asString(); + dBInstanceAttributeObject.incrementSourceDBInstanceId = value["IncrementSourceDBInstanceId"].asString(); + dBInstanceAttributeObject.guardDBInstanceId = value["GuardDBInstanceId"].asString(); + dBInstanceAttributeObject.tempDBInstanceId = value["TempDBInstanceId"].asString(); + dBInstanceAttributeObject.securityIPList = value["SecurityIPList"].asString(); + dBInstanceAttributeObject.zoneId = value["ZoneId"].asString(); + dBInstanceAttributeObject.instanceNetworkType = value["InstanceNetworkType"].asString(); + dBInstanceAttributeObject.category = value["Category"].asString(); + dBInstanceAttributeObject.accountType = value["AccountType"].asString(); + dBInstanceAttributeObject.supportUpgradeAccountType = value["SupportUpgradeAccountType"].asString(); + dBInstanceAttributeObject.vpcId = value["VpcId"].asString(); + dBInstanceAttributeObject.vSwitchId = value["VSwitchId"].asString(); + dBInstanceAttributeObject.connectionMode = value["ConnectionMode"].asString(); + dBInstanceAttributeObject.tags = value["Tags"].asString(); + items_.push_back(dBInstanceAttributeObject); + } + +} + diff --git a/rds/src/model/DescribeDBInstancesByExpireTimeRequest.cc b/rds/src/model/DescribeDBInstancesByExpireTimeRequest.cc new file mode 100644 index 000000000..f68e86180 --- /dev/null +++ b/rds/src/model/DescribeDBInstancesByExpireTimeRequest.cc @@ -0,0 +1,160 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeDBInstancesByExpireTimeRequest::DescribeDBInstancesByExpireTimeRequest() : + RdsRequest("DescribeDBInstancesByExpireTime") +{} + +DescribeDBInstancesByExpireTimeRequest::~DescribeDBInstancesByExpireTimeRequest() +{} + +long DescribeDBInstancesByExpireTimeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeDBInstancesByExpireTimeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeDBInstancesByExpireTimeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeDBInstancesByExpireTimeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeDBInstancesByExpireTimeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeDBInstancesByExpireTimeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DescribeDBInstancesByExpireTimeRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeDBInstancesByExpireTimeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeDBInstancesByExpireTimeRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeDBInstancesByExpireTimeRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeDBInstancesByExpireTimeRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeDBInstancesByExpireTimeRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeDBInstancesByExpireTimeRequest::getTags()const +{ + return tags_; +} + +void DescribeDBInstancesByExpireTimeRequest::setTags(const std::string& tags) +{ + tags_ = tags; + setParameter("Tags", tags); +} + +bool DescribeDBInstancesByExpireTimeRequest::getExpired()const +{ + return expired_; +} + +void DescribeDBInstancesByExpireTimeRequest::setExpired(bool expired) +{ + expired_ = expired; + setParameter("Expired", std::to_string(expired)); +} + +std::string DescribeDBInstancesByExpireTimeRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeDBInstancesByExpireTimeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +int DescribeDBInstancesByExpireTimeRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeDBInstancesByExpireTimeRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +int DescribeDBInstancesByExpireTimeRequest::getExpirePeriod()const +{ + return expirePeriod_; +} + +void DescribeDBInstancesByExpireTimeRequest::setExpirePeriod(int expirePeriod) +{ + expirePeriod_ = expirePeriod; + setParameter("ExpirePeriod", std::to_string(expirePeriod)); +} + +std::string DescribeDBInstancesByExpireTimeRequest::getProxyId()const +{ + return proxyId_; +} + +void DescribeDBInstancesByExpireTimeRequest::setProxyId(const std::string& proxyId) +{ + proxyId_ = proxyId; + setParameter("ProxyId", proxyId); +} + diff --git a/rds/src/model/DescribeDBInstancesByExpireTimeResult.cc b/rds/src/model/DescribeDBInstancesByExpireTimeResult.cc new file mode 100644 index 000000000..c50cd5205 --- /dev/null +++ b/rds/src/model/DescribeDBInstancesByExpireTimeResult.cc @@ -0,0 +1,89 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeDBInstancesByExpireTimeResult::DescribeDBInstancesByExpireTimeResult() : + ServiceResult() +{} + +DescribeDBInstancesByExpireTimeResult::DescribeDBInstancesByExpireTimeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDBInstancesByExpireTimeResult::~DescribeDBInstancesByExpireTimeResult() +{} + +void DescribeDBInstancesByExpireTimeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["DBInstanceExpireTime"]; + for (auto value : allItems) + { + DBInstanceExpireTime dBInstanceExpireTimeObject; + dBInstanceExpireTimeObject.dBInstanceId = value["DBInstanceId"].asString(); + dBInstanceExpireTimeObject.dBInstanceDescription = value["DBInstanceDescription"].asString(); + dBInstanceExpireTimeObject.expireTime = value["ExpireTime"].asString(); + dBInstanceExpireTimeObject.dBInstanceStatus = value["DBInstanceStatus"].asString(); + dBInstanceExpireTimeObject.lockMode = value["LockMode"].asString(); + items_.push_back(dBInstanceExpireTimeObject); + } + pageNumber_ = std::stoi(value["PageNumber"].asString()); + totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString()); + pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); + +} + +int DescribeDBInstancesByExpireTimeResult::getTotalRecordCount()const +{ + return totalRecordCount_; +} + +void DescribeDBInstancesByExpireTimeResult::setTotalRecordCount(int totalRecordCount) +{ + totalRecordCount_ = totalRecordCount; +} + +int DescribeDBInstancesByExpireTimeResult::getPageRecordCount()const +{ + return pageRecordCount_; +} + +void DescribeDBInstancesByExpireTimeResult::setPageRecordCount(int pageRecordCount) +{ + pageRecordCount_ = pageRecordCount; +} + +int DescribeDBInstancesByExpireTimeResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeDBInstancesByExpireTimeResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/rds/src/model/DescribeDBInstancesByPerformanceRequest.cc b/rds/src/model/DescribeDBInstancesByPerformanceRequest.cc new file mode 100644 index 000000000..d8922a82e --- /dev/null +++ b/rds/src/model/DescribeDBInstancesByPerformanceRequest.cc @@ -0,0 +1,281 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeDBInstancesByPerformanceRequest::DescribeDBInstancesByPerformanceRequest() : + RdsRequest("DescribeDBInstancesByPerformance") +{} + +DescribeDBInstancesByPerformanceRequest::~DescribeDBInstancesByPerformanceRequest() +{} + +std::string DescribeDBInstancesByPerformanceRequest::getTag4value()const +{ + return tag4value_; +} + +void DescribeDBInstancesByPerformanceRequest::setTag4value(const std::string& tag4value) +{ + tag4value_ = tag4value; + setParameter("Tag4value", tag4value); +} + +long DescribeDBInstancesByPerformanceRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeDBInstancesByPerformanceRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeDBInstancesByPerformanceRequest::getTag2key()const +{ + return tag2key_; +} + +void DescribeDBInstancesByPerformanceRequest::setTag2key(const std::string& tag2key) +{ + tag2key_ = tag2key; + setParameter("Tag2key", tag2key); +} + +std::string DescribeDBInstancesByPerformanceRequest::getTag5key()const +{ + return tag5key_; +} + +void DescribeDBInstancesByPerformanceRequest::setTag5key(const std::string& tag5key) +{ + tag5key_ = tag5key; + setParameter("Tag5key", tag5key); +} + +std::string DescribeDBInstancesByPerformanceRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeDBInstancesByPerformanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeDBInstancesByPerformanceRequest::getClientToken()const +{ + return clientToken_; +} + +void DescribeDBInstancesByPerformanceRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string DescribeDBInstancesByPerformanceRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeDBInstancesByPerformanceRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeDBInstancesByPerformanceRequest::getTag3key()const +{ + return tag3key_; +} + +void DescribeDBInstancesByPerformanceRequest::setTag3key(const std::string& tag3key) +{ + tag3key_ = tag3key; + setParameter("Tag3key", tag3key); +} + +long DescribeDBInstancesByPerformanceRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeDBInstancesByPerformanceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeDBInstancesByPerformanceRequest::getTag5value()const +{ + return tag5value_; +} + +void DescribeDBInstancesByPerformanceRequest::setTag5value(const std::string& tag5value) +{ + tag5value_ = tag5value; + setParameter("Tag5value", tag5value); +} + +int DescribeDBInstancesByPerformanceRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeDBInstancesByPerformanceRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeDBInstancesByPerformanceRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeDBInstancesByPerformanceRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeDBInstancesByPerformanceRequest::getTags()const +{ + return tags_; +} + +void DescribeDBInstancesByPerformanceRequest::setTags(const std::string& tags) +{ + tags_ = tags; + setParameter("Tags", tags); +} + +std::string DescribeDBInstancesByPerformanceRequest::getTag1key()const +{ + return tag1key_; +} + +void DescribeDBInstancesByPerformanceRequest::setTag1key(const std::string& tag1key) +{ + tag1key_ = tag1key; + setParameter("Tag1key", tag1key); +} + +std::string DescribeDBInstancesByPerformanceRequest::getTag1value()const +{ + return tag1value_; +} + +void DescribeDBInstancesByPerformanceRequest::setTag1value(const std::string& tag1value) +{ + tag1value_ = tag1value; + setParameter("Tag1value", tag1value); +} + +std::string DescribeDBInstancesByPerformanceRequest::getSortKey()const +{ + return sortKey_; +} + +void DescribeDBInstancesByPerformanceRequest::setSortKey(const std::string& sortKey) +{ + sortKey_ = sortKey; + setParameter("SortKey", sortKey); +} + +std::string DescribeDBInstancesByPerformanceRequest::getSortMethod()const +{ + return sortMethod_; +} + +void DescribeDBInstancesByPerformanceRequest::setSortMethod(const std::string& sortMethod) +{ + sortMethod_ = sortMethod; + setParameter("SortMethod", sortMethod); +} + +std::string DescribeDBInstancesByPerformanceRequest::getTag2value()const +{ + return tag2value_; +} + +void DescribeDBInstancesByPerformanceRequest::setTag2value(const std::string& tag2value) +{ + tag2value_ = tag2value; + setParameter("Tag2value", tag2value); +} + +int DescribeDBInstancesByPerformanceRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeDBInstancesByPerformanceRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeDBInstancesByPerformanceRequest::getTag4key()const +{ + return tag4key_; +} + +void DescribeDBInstancesByPerformanceRequest::setTag4key(const std::string& tag4key) +{ + tag4key_ = tag4key; + setParameter("Tag4key", tag4key); +} + +std::string DescribeDBInstancesByPerformanceRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeDBInstancesByPerformanceRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +std::string DescribeDBInstancesByPerformanceRequest::getTag3value()const +{ + return tag3value_; +} + +void DescribeDBInstancesByPerformanceRequest::setTag3value(const std::string& tag3value) +{ + tag3value_ = tag3value; + setParameter("Tag3value", tag3value); +} + +std::string DescribeDBInstancesByPerformanceRequest::getProxyId()const +{ + return proxyId_; +} + +void DescribeDBInstancesByPerformanceRequest::setProxyId(const std::string& proxyId) +{ + proxyId_ = proxyId; + setParameter("ProxyId", proxyId); +} + diff --git a/rds/src/model/DescribeDBInstancesByPerformanceResult.cc b/rds/src/model/DescribeDBInstancesByPerformanceResult.cc new file mode 100644 index 000000000..8cb4cf847 --- /dev/null +++ b/rds/src/model/DescribeDBInstancesByPerformanceResult.cc @@ -0,0 +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 +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeDBInstancesByPerformanceResult::DescribeDBInstancesByPerformanceResult() : + ServiceResult() +{} + +DescribeDBInstancesByPerformanceResult::DescribeDBInstancesByPerformanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDBInstancesByPerformanceResult::~DescribeDBInstancesByPerformanceResult() +{} + +void DescribeDBInstancesByPerformanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["DBInstancePerformance"]; + for (auto value : allItems) + { + DBInstancePerformance dBInstancePerformanceObject; + dBInstancePerformanceObject.cPUUsage = value["CPUUsage"].asString(); + dBInstancePerformanceObject.iOPSUsage = value["IOPSUsage"].asString(); + dBInstancePerformanceObject.diskUsage = value["DiskUsage"].asString(); + dBInstancePerformanceObject.sessionUsage = value["SessionUsage"].asString(); + dBInstancePerformanceObject.dBInstanceId = value["DBInstanceId"].asString(); + dBInstancePerformanceObject.dBInstanceDescription = value["DBInstanceDescription"].asString(); + items_.push_back(dBInstancePerformanceObject); + } + pageNumber_ = std::stoi(value["PageNumber"].asString()); + totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString()); + pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); + +} + +int DescribeDBInstancesByPerformanceResult::getTotalRecordCount()const +{ + return totalRecordCount_; +} + +void DescribeDBInstancesByPerformanceResult::setTotalRecordCount(int totalRecordCount) +{ + totalRecordCount_ = totalRecordCount; +} + +int DescribeDBInstancesByPerformanceResult::getPageRecordCount()const +{ + return pageRecordCount_; +} + +void DescribeDBInstancesByPerformanceResult::setPageRecordCount(int pageRecordCount) +{ + pageRecordCount_ = pageRecordCount; +} + +int DescribeDBInstancesByPerformanceResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeDBInstancesByPerformanceResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/rds/src/model/DescribeDBInstancesRequest.cc b/rds/src/model/DescribeDBInstancesRequest.cc new file mode 100644 index 000000000..b20ba433d --- /dev/null +++ b/rds/src/model/DescribeDBInstancesRequest.cc @@ -0,0 +1,358 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeDBInstancesRequest::DescribeDBInstancesRequest() : + RdsRequest("DescribeDBInstances") +{} + +DescribeDBInstancesRequest::~DescribeDBInstancesRequest() +{} + +std::string DescribeDBInstancesRequest::getConnectionMode()const +{ + return connectionMode_; +} + +void DescribeDBInstancesRequest::setConnectionMode(const std::string& connectionMode) +{ + connectionMode_ = connectionMode; + setParameter("ConnectionMode", connectionMode); +} + +std::string DescribeDBInstancesRequest::getTag4value()const +{ + return tag4value_; +} + +void DescribeDBInstancesRequest::setTag4value(const std::string& tag4value) +{ + tag4value_ = tag4value; + setParameter("Tag4value", tag4value); +} + +long DescribeDBInstancesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeDBInstancesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeDBInstancesRequest::getTag2key()const +{ + return tag2key_; +} + +void DescribeDBInstancesRequest::setTag2key(const std::string& tag2key) +{ + tag2key_ = tag2key; + setParameter("Tag2key", tag2key); +} + +std::string DescribeDBInstancesRequest::getClientToken()const +{ + return clientToken_; +} + +void DescribeDBInstancesRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string DescribeDBInstancesRequest::getSearchKey()const +{ + return searchKey_; +} + +void DescribeDBInstancesRequest::setSearchKey(const std::string& searchKey) +{ + searchKey_ = searchKey; + setParameter("SearchKey", searchKey); +} + +std::string DescribeDBInstancesRequest::getTag3key()const +{ + return tag3key_; +} + +void DescribeDBInstancesRequest::setTag3key(const std::string& tag3key) +{ + tag3key_ = tag3key; + setParameter("Tag3key", tag3key); +} + +int DescribeDBInstancesRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeDBInstancesRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeDBInstancesRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeDBInstancesRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeDBInstancesRequest::getTag1value()const +{ + return tag1value_; +} + +void DescribeDBInstancesRequest::setTag1value(const std::string& tag1value) +{ + tag1value_ = tag1value; + setParameter("Tag1value", tag1value); +} + +std::string DescribeDBInstancesRequest::getEngine()const +{ + return engine_; +} + +void DescribeDBInstancesRequest::setEngine(const std::string& engine) +{ + engine_ = engine; + setParameter("Engine", engine); +} + +std::string DescribeDBInstancesRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeDBInstancesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +int DescribeDBInstancesRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeDBInstancesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeDBInstancesRequest::getDBInstanceStatus()const +{ + return dBInstanceStatus_; +} + +void DescribeDBInstancesRequest::setDBInstanceStatus(const std::string& dBInstanceStatus) +{ + dBInstanceStatus_ = dBInstanceStatus; + setParameter("DBInstanceStatus", dBInstanceStatus); +} + +std::string DescribeDBInstancesRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeDBInstancesRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +std::string DescribeDBInstancesRequest::getTag3value()const +{ + return tag3value_; +} + +void DescribeDBInstancesRequest::setTag3value(const std::string& tag3value) +{ + tag3value_ = tag3value; + setParameter("Tag3value", tag3value); +} + +std::string DescribeDBInstancesRequest::getProxyId()const +{ + return proxyId_; +} + +void DescribeDBInstancesRequest::setProxyId(const std::string& proxyId) +{ + proxyId_ = proxyId; + setParameter("ProxyId", proxyId); +} + +std::string DescribeDBInstancesRequest::getTag5key()const +{ + return tag5key_; +} + +void DescribeDBInstancesRequest::setTag5key(const std::string& tag5key) +{ + tag5key_ = tag5key; + setParameter("Tag5key", tag5key); +} + +std::string DescribeDBInstancesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeDBInstancesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeDBInstancesRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeDBInstancesRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DescribeDBInstancesRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeDBInstancesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeDBInstancesRequest::getTag5value()const +{ + return tag5value_; +} + +void DescribeDBInstancesRequest::setTag5value(const std::string& tag5value) +{ + tag5value_ = tag5value; + setParameter("Tag5value", tag5value); +} + +std::string DescribeDBInstancesRequest::getDBInstanceType()const +{ + return dBInstanceType_; +} + +void DescribeDBInstancesRequest::setDBInstanceType(const std::string& dBInstanceType) +{ + dBInstanceType_ = dBInstanceType; + setParameter("DBInstanceType", dBInstanceType); +} + +std::string DescribeDBInstancesRequest::getTags()const +{ + return tags_; +} + +void DescribeDBInstancesRequest::setTags(const std::string& tags) +{ + tags_ = tags; + setParameter("Tags", tags); +} + +std::string DescribeDBInstancesRequest::getVSwitchId()const +{ + return vSwitchId_; +} + +void DescribeDBInstancesRequest::setVSwitchId(const std::string& vSwitchId) +{ + vSwitchId_ = vSwitchId; + setParameter("VSwitchId", vSwitchId); +} + +std::string DescribeDBInstancesRequest::getTag1key()const +{ + return tag1key_; +} + +void DescribeDBInstancesRequest::setTag1key(const std::string& tag1key) +{ + tag1key_ = tag1key; + setParameter("Tag1key", tag1key); +} + +std::string DescribeDBInstancesRequest::getVpcId()const +{ + return vpcId_; +} + +void DescribeDBInstancesRequest::setVpcId(const std::string& vpcId) +{ + vpcId_ = vpcId; + setParameter("VpcId", vpcId); +} + +std::string DescribeDBInstancesRequest::getTag2value()const +{ + return tag2value_; +} + +void DescribeDBInstancesRequest::setTag2value(const std::string& tag2value) +{ + tag2value_ = tag2value; + setParameter("Tag2value", tag2value); +} + +std::string DescribeDBInstancesRequest::getTag4key()const +{ + return tag4key_; +} + +void DescribeDBInstancesRequest::setTag4key(const std::string& tag4key) +{ + tag4key_ = tag4key; + setParameter("Tag4key", tag4key); +} + +std::string DescribeDBInstancesRequest::getInstanceNetworkType()const +{ + return instanceNetworkType_; +} + +void DescribeDBInstancesRequest::setInstanceNetworkType(const std::string& instanceNetworkType) +{ + instanceNetworkType_ = instanceNetworkType; + setParameter("InstanceNetworkType", instanceNetworkType); +} + diff --git a/rds/src/model/DescribeDBInstancesResult.cc b/rds/src/model/DescribeDBInstancesResult.cc new file mode 100644 index 000000000..569a27f0f --- /dev/null +++ b/rds/src/model/DescribeDBInstancesResult.cc @@ -0,0 +1,117 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeDBInstancesResult::DescribeDBInstancesResult() : + ServiceResult() +{} + +DescribeDBInstancesResult::DescribeDBInstancesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDBInstancesResult::~DescribeDBInstancesResult() +{} + +void DescribeDBInstancesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["DBInstance"]; + for (auto value : allItems) + { + DBInstance dBInstanceObject; + dBInstanceObject.insId = std::stoi(value["InsId"].asString()); + dBInstanceObject.dBInstanceId = value["DBInstanceId"].asString(); + dBInstanceObject.dBInstanceDescription = value["DBInstanceDescription"].asString(); + dBInstanceObject.payType = value["PayType"].asString(); + dBInstanceObject.dBInstanceType = value["DBInstanceType"].asString(); + dBInstanceObject.regionId = value["RegionId"].asString(); + dBInstanceObject.expireTime = value["ExpireTime"].asString(); + dBInstanceObject.dBInstanceStatus = value["DBInstanceStatus"].asString(); + dBInstanceObject.engine = value["Engine"].asString(); + dBInstanceObject.dBInstanceNetType = value["DBInstanceNetType"].asString(); + dBInstanceObject.connectionMode = value["ConnectionMode"].asString(); + dBInstanceObject.lockMode = value["LockMode"].asString(); + dBInstanceObject.dBInstanceClass = value["DBInstanceClass"].asString(); + dBInstanceObject.instanceNetworkType = value["InstanceNetworkType"].asString(); + dBInstanceObject.lockReason = value["LockReason"].asString(); + dBInstanceObject.zoneId = value["ZoneId"].asString(); + dBInstanceObject.mutriORsignle = std::stoi(value["MutriORsignle"].asString()); + dBInstanceObject.createTime = value["CreateTime"].asString(); + dBInstanceObject.engineVersion = value["EngineVersion"].asString(); + dBInstanceObject.guardDBInstanceId = value["GuardDBInstanceId"].asString(); + dBInstanceObject.tempDBInstanceId = value["TempDBInstanceId"].asString(); + dBInstanceObject.masterInstanceId = value["MasterInstanceId"].asString(); + dBInstanceObject.vpcId = value["VpcId"].asString(); + dBInstanceObject.vSwitchId = value["VSwitchId"].asString(); + dBInstanceObject.replicateId = value["ReplicateId"].asString(); + dBInstanceObject.resourceGroupId = value["ResourceGroupId"].asString(); + auto allReadOnlyDBInstanceIds = value["ReadOnlyDBInstanceIds"]["ReadOnlyDBInstanceId"]; + for (auto value : allReadOnlyDBInstanceIds) + { + DBInstance::ReadOnlyDBInstanceId readOnlyDBInstanceIdObject; + readOnlyDBInstanceIdObject.dBInstanceId = value["DBInstanceId"].asString(); + dBInstanceObject.readOnlyDBInstanceIds.push_back(readOnlyDBInstanceIdObject); + } + items_.push_back(dBInstanceObject); + } + pageNumber_ = std::stoi(value["PageNumber"].asString()); + totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString()); + pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); + +} + +int DescribeDBInstancesResult::getTotalRecordCount()const +{ + return totalRecordCount_; +} + +void DescribeDBInstancesResult::setTotalRecordCount(int totalRecordCount) +{ + totalRecordCount_ = totalRecordCount; +} + +int DescribeDBInstancesResult::getPageRecordCount()const +{ + return pageRecordCount_; +} + +void DescribeDBInstancesResult::setPageRecordCount(int pageRecordCount) +{ + pageRecordCount_ = pageRecordCount; +} + +int DescribeDBInstancesResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeDBInstancesResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/rds/src/model/DescribeDampPoliciesByCidRequest.cc b/rds/src/model/DescribeDampPoliciesByCidRequest.cc new file mode 100644 index 000000000..217df75a4 --- /dev/null +++ b/rds/src/model/DescribeDampPoliciesByCidRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeDampPoliciesByCidRequest::DescribeDampPoliciesByCidRequest() : + RdsRequest("DescribeDampPoliciesByCid") +{} + +DescribeDampPoliciesByCidRequest::~DescribeDampPoliciesByCidRequest() +{} + +long DescribeDampPoliciesByCidRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeDampPoliciesByCidRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeDampPoliciesByCidRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeDampPoliciesByCidRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DescribeDampPoliciesByCidRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeDampPoliciesByCidRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeDampPoliciesByCidRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeDampPoliciesByCidRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeDampPoliciesByCidRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeDampPoliciesByCidRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeDampPoliciesByCidRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeDampPoliciesByCidRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long DescribeDampPoliciesByCidRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeDampPoliciesByCidRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeDampPoliciesByCidRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeDampPoliciesByCidRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/DescribeDampPoliciesByCidResult.cc b/rds/src/model/DescribeDampPoliciesByCidResult.cc new file mode 100644 index 000000000..646e5af6b --- /dev/null +++ b/rds/src/model/DescribeDampPoliciesByCidResult.cc @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeDampPoliciesByCidResult::DescribeDampPoliciesByCidResult() : + ServiceResult() +{} + +DescribeDampPoliciesByCidResult::DescribeDampPoliciesByCidResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDampPoliciesByCidResult::~DescribeDampPoliciesByCidResult() +{} + +void DescribeDampPoliciesByCidResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allPolicies = value["Policies"]["Policy"]; + for (auto value : allPolicies) + { + Policy policyObject; + policyObject.policyName = value["PolicyName"].asString(); + policyObject.comment = value["Comment"].asString(); + policies_.push_back(policyObject); + } + +} + diff --git a/rds/src/model/DescribeDampPolicyByCommentRequest.cc b/rds/src/model/DescribeDampPolicyByCommentRequest.cc new file mode 100644 index 000000000..02f2f8bbb --- /dev/null +++ b/rds/src/model/DescribeDampPolicyByCommentRequest.cc @@ -0,0 +1,127 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeDampPolicyByCommentRequest::DescribeDampPolicyByCommentRequest() : + RdsRequest("DescribeDampPolicyByComment") +{} + +DescribeDampPolicyByCommentRequest::~DescribeDampPolicyByCommentRequest() +{} + +long DescribeDampPolicyByCommentRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeDampPolicyByCommentRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeDampPolicyByCommentRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeDampPolicyByCommentRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DescribeDampPolicyByCommentRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeDampPolicyByCommentRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeDampPolicyByCommentRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeDampPolicyByCommentRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeDampPolicyByCommentRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeDampPolicyByCommentRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeDampPolicyByCommentRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeDampPolicyByCommentRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +std::string DescribeDampPolicyByCommentRequest::getPolicyName()const +{ + return policyName_; +} + +void DescribeDampPolicyByCommentRequest::setPolicyName(const std::string& policyName) +{ + policyName_ = policyName; + setParameter("PolicyName", policyName); +} + +long DescribeDampPolicyByCommentRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeDampPolicyByCommentRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeDampPolicyByCommentRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeDampPolicyByCommentRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/DescribeDampPolicyByCommentResult.cc b/rds/src/model/DescribeDampPolicyByCommentResult.cc new file mode 100644 index 000000000..c9134a054 --- /dev/null +++ b/rds/src/model/DescribeDampPolicyByCommentResult.cc @@ -0,0 +1,100 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeDampPolicyByCommentResult::DescribeDampPolicyByCommentResult() : + ServiceResult() +{} + +DescribeDampPolicyByCommentResult::DescribeDampPolicyByCommentResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDampPolicyByCommentResult::~DescribeDampPolicyByCommentResult() +{} + +void DescribeDampPolicyByCommentResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + policy_ = value["Policy"].asString(); + timeRules_ = value["TimeRules"].asString(); + actionRules_ = value["ActionRules"].asString(); + sourceRules_ = value["SourceRules"].asString(); + handler_ = value["Handler"].asString(); + +} + +std::string DescribeDampPolicyByCommentResult::getPolicy()const +{ + return policy_; +} + +void DescribeDampPolicyByCommentResult::setPolicy(const std::string& policy) +{ + policy_ = policy; +} + +std::string DescribeDampPolicyByCommentResult::getTimeRules()const +{ + return timeRules_; +} + +void DescribeDampPolicyByCommentResult::setTimeRules(const std::string& timeRules) +{ + timeRules_ = timeRules; +} + +std::string DescribeDampPolicyByCommentResult::getActionRules()const +{ + return actionRules_; +} + +void DescribeDampPolicyByCommentResult::setActionRules(const std::string& actionRules) +{ + actionRules_ = actionRules; +} + +std::string DescribeDampPolicyByCommentResult::getHandler()const +{ + return handler_; +} + +void DescribeDampPolicyByCommentResult::setHandler(const std::string& handler) +{ + handler_ = handler; +} + +std::string DescribeDampPolicyByCommentResult::getSourceRules()const +{ + return sourceRules_; +} + +void DescribeDampPolicyByCommentResult::setSourceRules(const std::string& sourceRules) +{ + sourceRules_ = sourceRules; +} + diff --git a/rds/src/model/DescribeDampPolicyByPolicyNameRequest.cc b/rds/src/model/DescribeDampPolicyByPolicyNameRequest.cc new file mode 100644 index 000000000..ab1cd421c --- /dev/null +++ b/rds/src/model/DescribeDampPolicyByPolicyNameRequest.cc @@ -0,0 +1,127 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeDampPolicyByPolicyNameRequest::DescribeDampPolicyByPolicyNameRequest() : + RdsRequest("DescribeDampPolicyByPolicyName") +{} + +DescribeDampPolicyByPolicyNameRequest::~DescribeDampPolicyByPolicyNameRequest() +{} + +long DescribeDampPolicyByPolicyNameRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeDampPolicyByPolicyNameRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeDampPolicyByPolicyNameRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeDampPolicyByPolicyNameRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DescribeDampPolicyByPolicyNameRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeDampPolicyByPolicyNameRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeDampPolicyByPolicyNameRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeDampPolicyByPolicyNameRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeDampPolicyByPolicyNameRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeDampPolicyByPolicyNameRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeDampPolicyByPolicyNameRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeDampPolicyByPolicyNameRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +std::string DescribeDampPolicyByPolicyNameRequest::getPolicyName()const +{ + return policyName_; +} + +void DescribeDampPolicyByPolicyNameRequest::setPolicyName(const std::string& policyName) +{ + policyName_ = policyName; + setParameter("PolicyName", policyName); +} + +long DescribeDampPolicyByPolicyNameRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeDampPolicyByPolicyNameRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeDampPolicyByPolicyNameRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeDampPolicyByPolicyNameRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/DescribeDampPolicyByPolicyNameResult.cc b/rds/src/model/DescribeDampPolicyByPolicyNameResult.cc new file mode 100644 index 000000000..fbf039988 --- /dev/null +++ b/rds/src/model/DescribeDampPolicyByPolicyNameResult.cc @@ -0,0 +1,100 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeDampPolicyByPolicyNameResult::DescribeDampPolicyByPolicyNameResult() : + ServiceResult() +{} + +DescribeDampPolicyByPolicyNameResult::DescribeDampPolicyByPolicyNameResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDampPolicyByPolicyNameResult::~DescribeDampPolicyByPolicyNameResult() +{} + +void DescribeDampPolicyByPolicyNameResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + policy_ = value["Policy"].asString(); + timeRules_ = value["TimeRules"].asString(); + actionRules_ = value["ActionRules"].asString(); + sourceRules_ = value["SourceRules"].asString(); + handler_ = value["Handler"].asString(); + +} + +std::string DescribeDampPolicyByPolicyNameResult::getPolicy()const +{ + return policy_; +} + +void DescribeDampPolicyByPolicyNameResult::setPolicy(const std::string& policy) +{ + policy_ = policy; +} + +std::string DescribeDampPolicyByPolicyNameResult::getTimeRules()const +{ + return timeRules_; +} + +void DescribeDampPolicyByPolicyNameResult::setTimeRules(const std::string& timeRules) +{ + timeRules_ = timeRules; +} + +std::string DescribeDampPolicyByPolicyNameResult::getActionRules()const +{ + return actionRules_; +} + +void DescribeDampPolicyByPolicyNameResult::setActionRules(const std::string& actionRules) +{ + actionRules_ = actionRules; +} + +std::string DescribeDampPolicyByPolicyNameResult::getHandler()const +{ + return handler_; +} + +void DescribeDampPolicyByPolicyNameResult::setHandler(const std::string& handler) +{ + handler_ = handler; +} + +std::string DescribeDampPolicyByPolicyNameResult::getSourceRules()const +{ + return sourceRules_; +} + +void DescribeDampPolicyByPolicyNameResult::setSourceRules(const std::string& sourceRules) +{ + sourceRules_ = sourceRules; +} + diff --git a/rds/src/model/DescribeDatabaseLockDiagnosisRequest.cc b/rds/src/model/DescribeDatabaseLockDiagnosisRequest.cc new file mode 100644 index 000000000..5ac65286c --- /dev/null +++ b/rds/src/model/DescribeDatabaseLockDiagnosisRequest.cc @@ -0,0 +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 namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeDatabaseLockDiagnosisRequest::DescribeDatabaseLockDiagnosisRequest() : + RdsRequest("DescribeDatabaseLockDiagnosis") +{} + +DescribeDatabaseLockDiagnosisRequest::~DescribeDatabaseLockDiagnosisRequest() +{} + +std::string DescribeDatabaseLockDiagnosisRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeDatabaseLockDiagnosisRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +std::string DescribeDatabaseLockDiagnosisRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeDatabaseLockDiagnosisRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +std::string DescribeDatabaseLockDiagnosisRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeDatabaseLockDiagnosisRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + +std::string DescribeDatabaseLockDiagnosisRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeDatabaseLockDiagnosisRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/DescribeDatabaseLockDiagnosisResult.cc b/rds/src/model/DescribeDatabaseLockDiagnosisResult.cc new file mode 100644 index 000000000..90298202d --- /dev/null +++ b/rds/src/model/DescribeDatabaseLockDiagnosisResult.cc @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeDatabaseLockDiagnosisResult::DescribeDatabaseLockDiagnosisResult() : + ServiceResult() +{} + +DescribeDatabaseLockDiagnosisResult::DescribeDatabaseLockDiagnosisResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDatabaseLockDiagnosisResult::~DescribeDatabaseLockDiagnosisResult() +{} + +void DescribeDatabaseLockDiagnosisResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allDeadLockList = value["DeadLockList"]["DeadLock"]; + for (const auto &item : allDeadLockList) + deadLockList_.push_back(item.asString()); + +} + +std::vector DescribeDatabaseLockDiagnosisResult::getDeadLockList()const +{ + return deadLockList_; +} + +void DescribeDatabaseLockDiagnosisResult::setDeadLockList(const std::vector& deadLockList) +{ + deadLockList_ = deadLockList; +} + diff --git a/rds/src/model/DescribeDatabasesRequest.cc b/rds/src/model/DescribeDatabasesRequest.cc new file mode 100644 index 000000000..932cb17ce --- /dev/null +++ b/rds/src/model/DescribeDatabasesRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeDatabasesRequest::DescribeDatabasesRequest() : + RdsRequest("DescribeDatabases") +{} + +DescribeDatabasesRequest::~DescribeDatabasesRequest() +{} + +long DescribeDatabasesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeDatabasesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeDatabasesRequest::getDBName()const +{ + return dBName_; +} + +void DescribeDatabasesRequest::setDBName(const std::string& dBName) +{ + dBName_ = dBName; + setParameter("DBName", dBName); +} + +std::string DescribeDatabasesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeDatabasesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeDatabasesRequest::getDBStatus()const +{ + return dBStatus_; +} + +void DescribeDatabasesRequest::setDBStatus(const std::string& dBStatus) +{ + dBStatus_ = dBStatus; + setParameter("DBStatus", dBStatus); +} + +std::string DescribeDatabasesRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeDatabasesRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeDatabasesRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeDatabasesRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long DescribeDatabasesRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeDatabasesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeDatabasesRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeDatabasesRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/DescribeDatabasesResult.cc b/rds/src/model/DescribeDatabasesResult.cc new file mode 100644 index 000000000..84fa8b202 --- /dev/null +++ b/rds/src/model/DescribeDatabasesResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeDatabasesResult::DescribeDatabasesResult() : + ServiceResult() +{} + +DescribeDatabasesResult::DescribeDatabasesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDatabasesResult::~DescribeDatabasesResult() +{} + +void DescribeDatabasesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allDatabases = value["Databases"]["Database"]; + for (auto value : allDatabases) + { + Database databaseObject; + databaseObject.dBName = value["DBName"].asString(); + databaseObject.dBInstanceId = value["DBInstanceId"].asString(); + databaseObject.engine = value["Engine"].asString(); + databaseObject.dBStatus = value["DBStatus"].asString(); + databaseObject.characterSetName = value["CharacterSetName"].asString(); + databaseObject.dBDescription = value["DBDescription"].asString(); + auto allAccounts = value["Accounts"]["AccountPrivilegeInfo"]; + for (auto value : allAccounts) + { + Database::AccountPrivilegeInfo accountPrivilegeInfoObject; + accountPrivilegeInfoObject.account = value["Account"].asString(); + accountPrivilegeInfoObject.accountPrivilege = value["AccountPrivilege"].asString(); + databaseObject.accounts.push_back(accountPrivilegeInfoObject); + } + databases_.push_back(databaseObject); + } + +} + diff --git a/rds/src/model/DescribeDiagnosticReportListRequest.cc b/rds/src/model/DescribeDiagnosticReportListRequest.cc new file mode 100644 index 000000000..e44e60f36 --- /dev/null +++ b/rds/src/model/DescribeDiagnosticReportListRequest.cc @@ -0,0 +1,50 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeDiagnosticReportListRequest::DescribeDiagnosticReportListRequest() : + RdsRequest("DescribeDiagnosticReportList") +{} + +DescribeDiagnosticReportListRequest::~DescribeDiagnosticReportListRequest() +{} + +std::string DescribeDiagnosticReportListRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeDiagnosticReportListRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +std::string DescribeDiagnosticReportListRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeDiagnosticReportListRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/DescribeDiagnosticReportListResult.cc b/rds/src/model/DescribeDiagnosticReportListResult.cc new file mode 100644 index 000000000..053211c3b --- /dev/null +++ b/rds/src/model/DescribeDiagnosticReportListResult.cc @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeDiagnosticReportListResult::DescribeDiagnosticReportListResult() : + ServiceResult() +{} + +DescribeDiagnosticReportListResult::DescribeDiagnosticReportListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDiagnosticReportListResult::~DescribeDiagnosticReportListResult() +{} + +void DescribeDiagnosticReportListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allReportList = value["ReportList"]["Report"]; + for (auto value : allReportList) + { + Report reportObject; + reportObject.diagnosticTime = value["DiagnosticTime"].asString(); + reportObject.score = std::stoi(value["Score"].asString()); + reportObject.startTime = value["StartTime"].asString(); + reportObject.endTime = value["EndTime"].asString(); + reportObject.downloadURL = value["DownloadURL"].asString(); + reportList_.push_back(reportObject); + } + +} + diff --git a/rds/src/model/DescribeErrorLogsRequest.cc b/rds/src/model/DescribeErrorLogsRequest.cc new file mode 100644 index 000000000..35a00b259 --- /dev/null +++ b/rds/src/model/DescribeErrorLogsRequest.cc @@ -0,0 +1,138 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeErrorLogsRequest::DescribeErrorLogsRequest() : + RdsRequest("DescribeErrorLogs") +{} + +DescribeErrorLogsRequest::~DescribeErrorLogsRequest() +{} + +long DescribeErrorLogsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeErrorLogsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeErrorLogsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeErrorLogsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeErrorLogsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeErrorLogsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +int DescribeErrorLogsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeErrorLogsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeErrorLogsRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeErrorLogsRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +std::string DescribeErrorLogsRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeErrorLogsRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +std::string DescribeErrorLogsRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeErrorLogsRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + +long DescribeErrorLogsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeErrorLogsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeErrorLogsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeErrorLogsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeErrorLogsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeErrorLogsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/DescribeErrorLogsResult.cc b/rds/src/model/DescribeErrorLogsResult.cc new file mode 100644 index 000000000..8c503c7b1 --- /dev/null +++ b/rds/src/model/DescribeErrorLogsResult.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeErrorLogsResult::DescribeErrorLogsResult() : + ServiceResult() +{} + +DescribeErrorLogsResult::DescribeErrorLogsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeErrorLogsResult::~DescribeErrorLogsResult() +{} + +void DescribeErrorLogsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["ErrorLog"]; + for (auto value : allItems) + { + ErrorLog errorLogObject; + errorLogObject.errorInfo = value["ErrorInfo"].asString(); + errorLogObject.createTime = value["CreateTime"].asString(); + items_.push_back(errorLogObject); + } + totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); + +} + +int DescribeErrorLogsResult::getTotalRecordCount()const +{ + return totalRecordCount_; +} + +void DescribeErrorLogsResult::setTotalRecordCount(int totalRecordCount) +{ + totalRecordCount_ = totalRecordCount; +} + +int DescribeErrorLogsResult::getPageRecordCount()const +{ + return pageRecordCount_; +} + +void DescribeErrorLogsResult::setPageRecordCount(int pageRecordCount) +{ + pageRecordCount_ = pageRecordCount; +} + +int DescribeErrorLogsResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeErrorLogsResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/rds/src/model/DescribeFilesForSQLServerRequest.cc b/rds/src/model/DescribeFilesForSQLServerRequest.cc new file mode 100644 index 000000000..7e95ed50d --- /dev/null +++ b/rds/src/model/DescribeFilesForSQLServerRequest.cc @@ -0,0 +1,138 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeFilesForSQLServerRequest::DescribeFilesForSQLServerRequest() : + RdsRequest("DescribeFilesForSQLServer") +{} + +DescribeFilesForSQLServerRequest::~DescribeFilesForSQLServerRequest() +{} + +long DescribeFilesForSQLServerRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeFilesForSQLServerRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeFilesForSQLServerRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeFilesForSQLServerRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeFilesForSQLServerRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeFilesForSQLServerRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +int DescribeFilesForSQLServerRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeFilesForSQLServerRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeFilesForSQLServerRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeFilesForSQLServerRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +std::string DescribeFilesForSQLServerRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeFilesForSQLServerRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +std::string DescribeFilesForSQLServerRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeFilesForSQLServerRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + +long DescribeFilesForSQLServerRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeFilesForSQLServerRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeFilesForSQLServerRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeFilesForSQLServerRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeFilesForSQLServerRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeFilesForSQLServerRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/DescribeFilesForSQLServerResult.cc b/rds/src/model/DescribeFilesForSQLServerResult.cc new file mode 100644 index 000000000..c838b0ec9 --- /dev/null +++ b/rds/src/model/DescribeFilesForSQLServerResult.cc @@ -0,0 +1,107 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeFilesForSQLServerResult::DescribeFilesForSQLServerResult() : + ServiceResult() +{} + +DescribeFilesForSQLServerResult::DescribeFilesForSQLServerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeFilesForSQLServerResult::~DescribeFilesForSQLServerResult() +{} + +void DescribeFilesForSQLServerResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["SQLServerUploadFile"]; + for (auto value : allItems) + { + SQLServerUploadFile sQLServerUploadFileObject; + sQLServerUploadFileObject.dBName = value["DBName"].asString(); + sQLServerUploadFileObject.fileName = value["FileName"].asString(); + sQLServerUploadFileObject.fileSize = std::stol(value["FileSize"].asString()); + sQLServerUploadFileObject.internetFtpServer = value["InternetFtpServer"].asString(); + sQLServerUploadFileObject.internetPort = std::stoi(value["InternetPort"].asString()); + sQLServerUploadFileObject.intranetFtpserver = value["IntranetFtpserver"].asString(); + sQLServerUploadFileObject.intranetport = std::stoi(value["Intranetport"].asString()); + sQLServerUploadFileObject.userName = value["UserName"].asString(); + sQLServerUploadFileObject.password = value["Password"].asString(); + sQLServerUploadFileObject.fileStatus = value["FileStatus"].asString(); + sQLServerUploadFileObject.description = value["Description"].asString(); + sQLServerUploadFileObject.creationTime = value["CreationTime"].asString(); + items_.push_back(sQLServerUploadFileObject); + } + dBInstanceId_ = value["DBInstanceId"].asString(); + totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); + +} + +int DescribeFilesForSQLServerResult::getTotalRecordCount()const +{ + return totalRecordCount_; +} + +void DescribeFilesForSQLServerResult::setTotalRecordCount(int totalRecordCount) +{ + totalRecordCount_ = totalRecordCount; +} + +int DescribeFilesForSQLServerResult::getPageRecordCount()const +{ + return pageRecordCount_; +} + +void DescribeFilesForSQLServerResult::setPageRecordCount(int pageRecordCount) +{ + pageRecordCount_ = pageRecordCount; +} + +std::string DescribeFilesForSQLServerResult::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeFilesForSQLServerResult::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; +} + +int DescribeFilesForSQLServerResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeFilesForSQLServerResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/rds/src/model/DescribeImportsForSQLServerRequest.cc b/rds/src/model/DescribeImportsForSQLServerRequest.cc new file mode 100644 index 000000000..cf894da97 --- /dev/null +++ b/rds/src/model/DescribeImportsForSQLServerRequest.cc @@ -0,0 +1,149 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeImportsForSQLServerRequest::DescribeImportsForSQLServerRequest() : + RdsRequest("DescribeImportsForSQLServer") +{} + +DescribeImportsForSQLServerRequest::~DescribeImportsForSQLServerRequest() +{} + +long DescribeImportsForSQLServerRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeImportsForSQLServerRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +int DescribeImportsForSQLServerRequest::getImportId()const +{ + return importId_; +} + +void DescribeImportsForSQLServerRequest::setImportId(int importId) +{ + importId_ = importId; + setParameter("ImportId", std::to_string(importId)); +} + +std::string DescribeImportsForSQLServerRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeImportsForSQLServerRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeImportsForSQLServerRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeImportsForSQLServerRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +int DescribeImportsForSQLServerRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeImportsForSQLServerRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeImportsForSQLServerRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeImportsForSQLServerRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +std::string DescribeImportsForSQLServerRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeImportsForSQLServerRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +std::string DescribeImportsForSQLServerRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeImportsForSQLServerRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + +long DescribeImportsForSQLServerRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeImportsForSQLServerRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeImportsForSQLServerRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeImportsForSQLServerRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeImportsForSQLServerRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeImportsForSQLServerRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/DescribeImportsForSQLServerResult.cc b/rds/src/model/DescribeImportsForSQLServerResult.cc new file mode 100644 index 000000000..5cd128031 --- /dev/null +++ b/rds/src/model/DescribeImportsForSQLServerResult.cc @@ -0,0 +1,89 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeImportsForSQLServerResult::DescribeImportsForSQLServerResult() : + ServiceResult() +{} + +DescribeImportsForSQLServerResult::DescribeImportsForSQLServerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeImportsForSQLServerResult::~DescribeImportsForSQLServerResult() +{} + +void DescribeImportsForSQLServerResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["SQLServerImport"]; + for (auto value : allItems) + { + SQLServerImport sQLServerImportObject; + sQLServerImportObject.importId = std::stoi(value["ImportId"].asString()); + sQLServerImportObject.fileName = value["FileName"].asString(); + sQLServerImportObject.dBName = value["DBName"].asString(); + sQLServerImportObject.importStatus = value["ImportStatus"].asString(); + sQLServerImportObject.startTime = value["StartTime"].asString(); + items_.push_back(sQLServerImportObject); + } + totalRecordCounts_ = std::stoi(value["TotalRecordCounts"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + sQLItemsCounts_ = std::stoi(value["SQLItemsCounts"].asString()); + +} + +int DescribeImportsForSQLServerResult::getTotalRecordCounts()const +{ + return totalRecordCounts_; +} + +void DescribeImportsForSQLServerResult::setTotalRecordCounts(int totalRecordCounts) +{ + totalRecordCounts_ = totalRecordCounts; +} + +int DescribeImportsForSQLServerResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeImportsForSQLServerResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + +int DescribeImportsForSQLServerResult::getSQLItemsCounts()const +{ + return sQLItemsCounts_; +} + +void DescribeImportsForSQLServerResult::setSQLItemsCounts(int sQLItemsCounts) +{ + sQLItemsCounts_ = sQLItemsCounts; +} + diff --git a/rds/src/model/DescribeInstanceAutoRenewAttributeRequest.cc b/rds/src/model/DescribeInstanceAutoRenewAttributeRequest.cc new file mode 100644 index 000000000..aa51e7f0f --- /dev/null +++ b/rds/src/model/DescribeInstanceAutoRenewAttributeRequest.cc @@ -0,0 +1,149 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeInstanceAutoRenewAttributeRequest::DescribeInstanceAutoRenewAttributeRequest() : + RdsRequest("DescribeInstanceAutoRenewAttribute") +{} + +DescribeInstanceAutoRenewAttributeRequest::~DescribeInstanceAutoRenewAttributeRequest() +{} + +long DescribeInstanceAutoRenewAttributeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeInstanceAutoRenewAttributeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeInstanceAutoRenewAttributeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeInstanceAutoRenewAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeInstanceAutoRenewAttributeRequest::getClientToken()const +{ + return clientToken_; +} + +void DescribeInstanceAutoRenewAttributeRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string DescribeInstanceAutoRenewAttributeRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeInstanceAutoRenewAttributeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeInstanceAutoRenewAttributeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeInstanceAutoRenewAttributeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +int DescribeInstanceAutoRenewAttributeRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeInstanceAutoRenewAttributeRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeInstanceAutoRenewAttributeRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeInstanceAutoRenewAttributeRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long DescribeInstanceAutoRenewAttributeRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeInstanceAutoRenewAttributeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeInstanceAutoRenewAttributeRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeInstanceAutoRenewAttributeRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeInstanceAutoRenewAttributeRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeInstanceAutoRenewAttributeRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeInstanceAutoRenewAttributeRequest::getProxyId()const +{ + return proxyId_; +} + +void DescribeInstanceAutoRenewAttributeRequest::setProxyId(const std::string& proxyId) +{ + proxyId_ = proxyId; + setParameter("ProxyId", proxyId); +} + diff --git a/rds/src/model/DescribeInstanceAutoRenewAttributeResult.cc b/rds/src/model/DescribeInstanceAutoRenewAttributeResult.cc new file mode 100644 index 000000000..68edb8be1 --- /dev/null +++ b/rds/src/model/DescribeInstanceAutoRenewAttributeResult.cc @@ -0,0 +1,89 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeInstanceAutoRenewAttributeResult::DescribeInstanceAutoRenewAttributeResult() : + ServiceResult() +{} + +DescribeInstanceAutoRenewAttributeResult::DescribeInstanceAutoRenewAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeInstanceAutoRenewAttributeResult::~DescribeInstanceAutoRenewAttributeResult() +{} + +void DescribeInstanceAutoRenewAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["Item"]; + for (auto value : allItems) + { + Item itemObject; + itemObject.dBInstanceId = value["DBInstanceId"].asString(); + itemObject.regionId = value["RegionId"].asString(); + itemObject.duration = std::stoi(value["Duration"].asString()); + itemObject.status = value["Status"].asString(); + itemObject.autoRenew = value["AutoRenew"].asString(); + items_.push_back(itemObject); + } + pageNumber_ = std::stoi(value["PageNumber"].asString()); + totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString()); + pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); + +} + +int DescribeInstanceAutoRenewAttributeResult::getTotalRecordCount()const +{ + return totalRecordCount_; +} + +void DescribeInstanceAutoRenewAttributeResult::setTotalRecordCount(int totalRecordCount) +{ + totalRecordCount_ = totalRecordCount; +} + +int DescribeInstanceAutoRenewAttributeResult::getPageRecordCount()const +{ + return pageRecordCount_; +} + +void DescribeInstanceAutoRenewAttributeResult::setPageRecordCount(int pageRecordCount) +{ + pageRecordCount_ = pageRecordCount; +} + +int DescribeInstanceAutoRenewAttributeResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeInstanceAutoRenewAttributeResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/rds/src/model/DescribeInstanceAutoRenewalAttributeRequest.cc b/rds/src/model/DescribeInstanceAutoRenewalAttributeRequest.cc new file mode 100644 index 000000000..ce41ef083 --- /dev/null +++ b/rds/src/model/DescribeInstanceAutoRenewalAttributeRequest.cc @@ -0,0 +1,149 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeInstanceAutoRenewalAttributeRequest::DescribeInstanceAutoRenewalAttributeRequest() : + RdsRequest("DescribeInstanceAutoRenewalAttribute") +{} + +DescribeInstanceAutoRenewalAttributeRequest::~DescribeInstanceAutoRenewalAttributeRequest() +{} + +long DescribeInstanceAutoRenewalAttributeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeInstanceAutoRenewalAttributeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeInstanceAutoRenewalAttributeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeInstanceAutoRenewalAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeInstanceAutoRenewalAttributeRequest::getClientToken()const +{ + return clientToken_; +} + +void DescribeInstanceAutoRenewalAttributeRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string DescribeInstanceAutoRenewalAttributeRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeInstanceAutoRenewalAttributeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeInstanceAutoRenewalAttributeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeInstanceAutoRenewalAttributeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +int DescribeInstanceAutoRenewalAttributeRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeInstanceAutoRenewalAttributeRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeInstanceAutoRenewalAttributeRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeInstanceAutoRenewalAttributeRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long DescribeInstanceAutoRenewalAttributeRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeInstanceAutoRenewalAttributeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeInstanceAutoRenewalAttributeRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeInstanceAutoRenewalAttributeRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeInstanceAutoRenewalAttributeRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeInstanceAutoRenewalAttributeRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeInstanceAutoRenewalAttributeRequest::getProxyId()const +{ + return proxyId_; +} + +void DescribeInstanceAutoRenewalAttributeRequest::setProxyId(const std::string& proxyId) +{ + proxyId_ = proxyId; + setParameter("ProxyId", proxyId); +} + diff --git a/rds/src/model/DescribeInstanceAutoRenewalAttributeResult.cc b/rds/src/model/DescribeInstanceAutoRenewalAttributeResult.cc new file mode 100644 index 000000000..9ba8fba86 --- /dev/null +++ b/rds/src/model/DescribeInstanceAutoRenewalAttributeResult.cc @@ -0,0 +1,89 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeInstanceAutoRenewalAttributeResult::DescribeInstanceAutoRenewalAttributeResult() : + ServiceResult() +{} + +DescribeInstanceAutoRenewalAttributeResult::DescribeInstanceAutoRenewalAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeInstanceAutoRenewalAttributeResult::~DescribeInstanceAutoRenewalAttributeResult() +{} + +void DescribeInstanceAutoRenewalAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["Item"]; + for (auto value : allItems) + { + Item itemObject; + itemObject.dBInstanceId = value["DBInstanceId"].asString(); + itemObject.regionId = value["RegionId"].asString(); + itemObject.duration = std::stoi(value["Duration"].asString()); + itemObject.status = value["Status"].asString(); + itemObject.autoRenew = value["AutoRenew"].asString(); + items_.push_back(itemObject); + } + pageNumber_ = std::stoi(value["PageNumber"].asString()); + totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString()); + pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); + +} + +int DescribeInstanceAutoRenewalAttributeResult::getTotalRecordCount()const +{ + return totalRecordCount_; +} + +void DescribeInstanceAutoRenewalAttributeResult::setTotalRecordCount(int totalRecordCount) +{ + totalRecordCount_ = totalRecordCount; +} + +int DescribeInstanceAutoRenewalAttributeResult::getPageRecordCount()const +{ + return pageRecordCount_; +} + +void DescribeInstanceAutoRenewalAttributeResult::setPageRecordCount(int pageRecordCount) +{ + pageRecordCount_ = pageRecordCount; +} + +int DescribeInstanceAutoRenewalAttributeResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeInstanceAutoRenewalAttributeResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/rds/src/model/DescribeLogicDBInstanceTopologyRequest.cc b/rds/src/model/DescribeLogicDBInstanceTopologyRequest.cc new file mode 100644 index 000000000..362b834e6 --- /dev/null +++ b/rds/src/model/DescribeLogicDBInstanceTopologyRequest.cc @@ -0,0 +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 namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeLogicDBInstanceTopologyRequest::DescribeLogicDBInstanceTopologyRequest() : + RdsRequest("DescribeLogicDBInstanceTopology") +{} + +DescribeLogicDBInstanceTopologyRequest::~DescribeLogicDBInstanceTopologyRequest() +{} + +long DescribeLogicDBInstanceTopologyRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeLogicDBInstanceTopologyRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeLogicDBInstanceTopologyRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeLogicDBInstanceTopologyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +long DescribeLogicDBInstanceTopologyRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeLogicDBInstanceTopologyRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeLogicDBInstanceTopologyRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeLogicDBInstanceTopologyRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/DescribeLogicDBInstanceTopologyResult.cc b/rds/src/model/DescribeLogicDBInstanceTopologyResult.cc new file mode 100644 index 000000000..97ebf3d73 --- /dev/null +++ b/rds/src/model/DescribeLogicDBInstanceTopologyResult.cc @@ -0,0 +1,148 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeLogicDBInstanceTopologyResult::DescribeLogicDBInstanceTopologyResult() : + ServiceResult() +{} + +DescribeLogicDBInstanceTopologyResult::DescribeLogicDBInstanceTopologyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeLogicDBInstanceTopologyResult::~DescribeLogicDBInstanceTopologyResult() +{} + +void DescribeLogicDBInstanceTopologyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["LogicDBInstanceParameter"]; + for (auto value : allItems) + { + LogicDBInstanceParameter logicDBInstanceParameterObject; + logicDBInstanceParameterObject.dBInstanceID = std::stoi(value["DBInstanceID"].asString()); + logicDBInstanceParameterObject.dBInstanceName = value["DBInstanceName"].asString(); + logicDBInstanceParameterObject.dBInstanceStatus = std::stoi(value["DBInstanceStatus"].asString()); + logicDBInstanceParameterObject.dBInstanceStatusDesc = value["DBInstanceStatusDesc"].asString(); + logicDBInstanceParameterObject.dBInstanceConnType = value["DBInstanceConnType"].asString(); + logicDBInstanceParameterObject.dBInstanceDescription = value["DBInstanceDescription"].asString(); + logicDBInstanceParameterObject.engine = value["Engine"].asString(); + logicDBInstanceParameterObject.engineVersion = value["EngineVersion"].asString(); + logicDBInstanceParameterObject.characterType = value["CharacterType"].asString(); + items_.push_back(logicDBInstanceParameterObject); + } + dBInstanceId_ = std::stoi(value["DBInstanceId"].asString()); + dBInstanceName_ = value["DBInstanceName"].asString(); + dBInstanceStatus_ = std::stoi(value["DBInstanceStatus"].asString()); + dBInstanceStatusDesc_ = value["DBInstanceStatusDesc"].asString(); + dBInstanceConnType_ = value["DBInstanceConnType"].asString(); + dBInstanceDescription_ = value["DBInstanceDescription"].asString(); + engine_ = value["Engine"].asString(); + engineVersion_ = value["EngineVersion"].asString(); + +} + +std::string DescribeLogicDBInstanceTopologyResult::getEngineVersion()const +{ + return engineVersion_; +} + +void DescribeLogicDBInstanceTopologyResult::setEngineVersion(const std::string& engineVersion) +{ + engineVersion_ = engineVersion; +} + +int DescribeLogicDBInstanceTopologyResult::getDBInstanceStatus()const +{ + return dBInstanceStatus_; +} + +void DescribeLogicDBInstanceTopologyResult::setDBInstanceStatus(int dBInstanceStatus) +{ + dBInstanceStatus_ = dBInstanceStatus; +} + +int DescribeLogicDBInstanceTopologyResult::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeLogicDBInstanceTopologyResult::setDBInstanceId(int dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; +} + +std::string DescribeLogicDBInstanceTopologyResult::getDBInstanceStatusDesc()const +{ + return dBInstanceStatusDesc_; +} + +void DescribeLogicDBInstanceTopologyResult::setDBInstanceStatusDesc(const std::string& dBInstanceStatusDesc) +{ + dBInstanceStatusDesc_ = dBInstanceStatusDesc; +} + +std::string DescribeLogicDBInstanceTopologyResult::getDBInstanceConnType()const +{ + return dBInstanceConnType_; +} + +void DescribeLogicDBInstanceTopologyResult::setDBInstanceConnType(const std::string& dBInstanceConnType) +{ + dBInstanceConnType_ = dBInstanceConnType; +} + +std::string DescribeLogicDBInstanceTopologyResult::getDBInstanceDescription()const +{ + return dBInstanceDescription_; +} + +void DescribeLogicDBInstanceTopologyResult::setDBInstanceDescription(const std::string& dBInstanceDescription) +{ + dBInstanceDescription_ = dBInstanceDescription; +} + +std::string DescribeLogicDBInstanceTopologyResult::getEngine()const +{ + return engine_; +} + +void DescribeLogicDBInstanceTopologyResult::setEngine(const std::string& engine) +{ + engine_ = engine; +} + +std::string DescribeLogicDBInstanceTopologyResult::getDBInstanceName()const +{ + return dBInstanceName_; +} + +void DescribeLogicDBInstanceTopologyResult::setDBInstanceName(const std::string& dBInstanceName) +{ + dBInstanceName_ = dBInstanceName; +} + diff --git a/rds/src/model/DescribeMigrateTasksForSQLServerRequest.cc b/rds/src/model/DescribeMigrateTasksForSQLServerRequest.cc new file mode 100644 index 000000000..f6bb81d0b --- /dev/null +++ b/rds/src/model/DescribeMigrateTasksForSQLServerRequest.cc @@ -0,0 +1,127 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeMigrateTasksForSQLServerRequest::DescribeMigrateTasksForSQLServerRequest() : + RdsRequest("DescribeMigrateTasksForSQLServer") +{} + +DescribeMigrateTasksForSQLServerRequest::~DescribeMigrateTasksForSQLServerRequest() +{} + +long DescribeMigrateTasksForSQLServerRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeMigrateTasksForSQLServerRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeMigrateTasksForSQLServerRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeMigrateTasksForSQLServerRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +int DescribeMigrateTasksForSQLServerRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeMigrateTasksForSQLServerRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeMigrateTasksForSQLServerRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeMigrateTasksForSQLServerRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +std::string DescribeMigrateTasksForSQLServerRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeMigrateTasksForSQLServerRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +std::string DescribeMigrateTasksForSQLServerRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeMigrateTasksForSQLServerRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + +long DescribeMigrateTasksForSQLServerRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeMigrateTasksForSQLServerRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeMigrateTasksForSQLServerRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeMigrateTasksForSQLServerRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeMigrateTasksForSQLServerRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeMigrateTasksForSQLServerRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/DescribeMigrateTasksForSQLServerResult.cc b/rds/src/model/DescribeMigrateTasksForSQLServerResult.cc new file mode 100644 index 000000000..1ecec3a41 --- /dev/null +++ b/rds/src/model/DescribeMigrateTasksForSQLServerResult.cc @@ -0,0 +1,136 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeMigrateTasksForSQLServerResult::DescribeMigrateTasksForSQLServerResult() : + ServiceResult() +{} + +DescribeMigrateTasksForSQLServerResult::DescribeMigrateTasksForSQLServerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeMigrateTasksForSQLServerResult::~DescribeMigrateTasksForSQLServerResult() +{} + +void DescribeMigrateTasksForSQLServerResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["MigrateTask"]; + for (auto value : allItems) + { + MigrateTask migrateTaskObject; + migrateTaskObject.dBName = value["DBName"].asString(); + migrateTaskObject.migrateIaskId = value["MigrateIaskId"].asString(); + migrateTaskObject.createTime = value["CreateTime"].asString(); + migrateTaskObject.endTime = value["EndTime"].asString(); + migrateTaskObject.taskType = value["TaskType"].asString(); + migrateTaskObject.status = value["Status"].asString(); + migrateTaskObject.isDBReplaced = value["IsDBReplaced"].asString(); + migrateTaskObject.desc = value["Desc"].asString(); + items_.push_back(migrateTaskObject); + } + dBInstanceID_ = value["DBInstanceID"].asString(); + dBInstanceName_ = value["DBInstanceName"].asString(); + startTime_ = value["StartTime"].asString(); + endTime_ = value["EndTime"].asString(); + totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); + +} + +int DescribeMigrateTasksForSQLServerResult::getTotalRecordCount()const +{ + return totalRecordCount_; +} + +void DescribeMigrateTasksForSQLServerResult::setTotalRecordCount(int totalRecordCount) +{ + totalRecordCount_ = totalRecordCount; +} + +int DescribeMigrateTasksForSQLServerResult::getPageRecordCount()const +{ + return pageRecordCount_; +} + +void DescribeMigrateTasksForSQLServerResult::setPageRecordCount(int pageRecordCount) +{ + pageRecordCount_ = pageRecordCount; +} + +std::string DescribeMigrateTasksForSQLServerResult::getEndTime()const +{ + return endTime_; +} + +void DescribeMigrateTasksForSQLServerResult::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; +} + +std::string DescribeMigrateTasksForSQLServerResult::getDBInstanceID()const +{ + return dBInstanceID_; +} + +void DescribeMigrateTasksForSQLServerResult::setDBInstanceID(const std::string& dBInstanceID) +{ + dBInstanceID_ = dBInstanceID; +} + +int DescribeMigrateTasksForSQLServerResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeMigrateTasksForSQLServerResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + +std::string DescribeMigrateTasksForSQLServerResult::getStartTime()const +{ + return startTime_; +} + +void DescribeMigrateTasksForSQLServerResult::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; +} + +std::string DescribeMigrateTasksForSQLServerResult::getDBInstanceName()const +{ + return dBInstanceName_; +} + +void DescribeMigrateTasksForSQLServerResult::setDBInstanceName(const std::string& dBInstanceName) +{ + dBInstanceName_ = dBInstanceName; +} + diff --git a/rds/src/model/DescribeMigrateTasksRequest.cc b/rds/src/model/DescribeMigrateTasksRequest.cc new file mode 100644 index 000000000..c64e32006 --- /dev/null +++ b/rds/src/model/DescribeMigrateTasksRequest.cc @@ -0,0 +1,127 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeMigrateTasksRequest::DescribeMigrateTasksRequest() : + RdsRequest("DescribeMigrateTasks") +{} + +DescribeMigrateTasksRequest::~DescribeMigrateTasksRequest() +{} + +long DescribeMigrateTasksRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeMigrateTasksRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeMigrateTasksRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeMigrateTasksRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +int DescribeMigrateTasksRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeMigrateTasksRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeMigrateTasksRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeMigrateTasksRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +std::string DescribeMigrateTasksRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeMigrateTasksRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +std::string DescribeMigrateTasksRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeMigrateTasksRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + +long DescribeMigrateTasksRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeMigrateTasksRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeMigrateTasksRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeMigrateTasksRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeMigrateTasksRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeMigrateTasksRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/DescribeMigrateTasksResult.cc b/rds/src/model/DescribeMigrateTasksResult.cc new file mode 100644 index 000000000..1d3977a2b --- /dev/null +++ b/rds/src/model/DescribeMigrateTasksResult.cc @@ -0,0 +1,103 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeMigrateTasksResult::DescribeMigrateTasksResult() : + ServiceResult() +{} + +DescribeMigrateTasksResult::DescribeMigrateTasksResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeMigrateTasksResult::~DescribeMigrateTasksResult() +{} + +void DescribeMigrateTasksResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["MigrateTask"]; + for (auto value : allItems) + { + MigrateTask migrateTaskObject; + migrateTaskObject.dBName = value["DBName"].asString(); + migrateTaskObject.migrateTaskId = value["MigrateTaskId"].asString(); + migrateTaskObject.createTime = value["CreateTime"].asString(); + migrateTaskObject.endTime = value["EndTime"].asString(); + migrateTaskObject.backupMode = value["BackupMode"].asString(); + migrateTaskObject.status = value["Status"].asString(); + migrateTaskObject.isDBReplaced = value["IsDBReplaced"].asString(); + migrateTaskObject.description = value["Description"].asString(); + items_.push_back(migrateTaskObject); + } + dBInstanceId_ = value["DBInstanceId"].asString(); + totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); + +} + +int DescribeMigrateTasksResult::getTotalRecordCount()const +{ + return totalRecordCount_; +} + +void DescribeMigrateTasksResult::setTotalRecordCount(int totalRecordCount) +{ + totalRecordCount_ = totalRecordCount; +} + +int DescribeMigrateTasksResult::getPageRecordCount()const +{ + return pageRecordCount_; +} + +void DescribeMigrateTasksResult::setPageRecordCount(int pageRecordCount) +{ + pageRecordCount_ = pageRecordCount; +} + +std::string DescribeMigrateTasksResult::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeMigrateTasksResult::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; +} + +int DescribeMigrateTasksResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeMigrateTasksResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/rds/src/model/DescribeModifyParameterLogRequest.cc b/rds/src/model/DescribeModifyParameterLogRequest.cc new file mode 100644 index 000000000..f405f5b4f --- /dev/null +++ b/rds/src/model/DescribeModifyParameterLogRequest.cc @@ -0,0 +1,138 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeModifyParameterLogRequest::DescribeModifyParameterLogRequest() : + RdsRequest("DescribeModifyParameterLog") +{} + +DescribeModifyParameterLogRequest::~DescribeModifyParameterLogRequest() +{} + +long DescribeModifyParameterLogRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeModifyParameterLogRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeModifyParameterLogRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeModifyParameterLogRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeModifyParameterLogRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeModifyParameterLogRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +int DescribeModifyParameterLogRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeModifyParameterLogRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeModifyParameterLogRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeModifyParameterLogRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +std::string DescribeModifyParameterLogRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeModifyParameterLogRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +std::string DescribeModifyParameterLogRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeModifyParameterLogRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + +long DescribeModifyParameterLogRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeModifyParameterLogRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeModifyParameterLogRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeModifyParameterLogRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeModifyParameterLogRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeModifyParameterLogRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/DescribeModifyParameterLogResult.cc b/rds/src/model/DescribeModifyParameterLogResult.cc new file mode 100644 index 000000000..17db14c01 --- /dev/null +++ b/rds/src/model/DescribeModifyParameterLogResult.cc @@ -0,0 +1,122 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeModifyParameterLogResult::DescribeModifyParameterLogResult() : + ServiceResult() +{} + +DescribeModifyParameterLogResult::DescribeModifyParameterLogResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeModifyParameterLogResult::~DescribeModifyParameterLogResult() +{} + +void DescribeModifyParameterLogResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["ParameterChangeLog"]; + for (auto value : allItems) + { + ParameterChangeLog parameterChangeLogObject; + parameterChangeLogObject.modifyTime = value["ModifyTime"].asString(); + parameterChangeLogObject.oldParameterValue = value["OldParameterValue"].asString(); + parameterChangeLogObject.newParameterValue = value["NewParameterValue"].asString(); + parameterChangeLogObject.parameterName = value["ParameterName"].asString(); + parameterChangeLogObject.status = value["Status"].asString(); + items_.push_back(parameterChangeLogObject); + } + engine_ = value["Engine"].asString(); + dBInstanceId_ = value["DBInstanceId"].asString(); + engineVersion_ = value["EngineVersion"].asString(); + totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); + +} + +int DescribeModifyParameterLogResult::getTotalRecordCount()const +{ + return totalRecordCount_; +} + +void DescribeModifyParameterLogResult::setTotalRecordCount(int totalRecordCount) +{ + totalRecordCount_ = totalRecordCount; +} + +std::string DescribeModifyParameterLogResult::getEngineVersion()const +{ + return engineVersion_; +} + +void DescribeModifyParameterLogResult::setEngineVersion(const std::string& engineVersion) +{ + engineVersion_ = engineVersion; +} + +int DescribeModifyParameterLogResult::getPageRecordCount()const +{ + return pageRecordCount_; +} + +void DescribeModifyParameterLogResult::setPageRecordCount(int pageRecordCount) +{ + pageRecordCount_ = pageRecordCount; +} + +std::string DescribeModifyParameterLogResult::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeModifyParameterLogResult::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; +} + +int DescribeModifyParameterLogResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeModifyParameterLogResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + +std::string DescribeModifyParameterLogResult::getEngine()const +{ + return engine_; +} + +void DescribeModifyParameterLogResult::setEngine(const std::string& engine) +{ + engine_ = engine; +} + diff --git a/rds/src/model/DescribeOperatorPermissionRequest.cc b/rds/src/model/DescribeOperatorPermissionRequest.cc new file mode 100644 index 000000000..747fc2f47 --- /dev/null +++ b/rds/src/model/DescribeOperatorPermissionRequest.cc @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeOperatorPermissionRequest::DescribeOperatorPermissionRequest() : + RdsRequest("DescribeOperatorPermission") +{} + +DescribeOperatorPermissionRequest::~DescribeOperatorPermissionRequest() +{} + +long DescribeOperatorPermissionRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeOperatorPermissionRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeOperatorPermissionRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeOperatorPermissionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeOperatorPermissionRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeOperatorPermissionRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeOperatorPermissionRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeOperatorPermissionRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long DescribeOperatorPermissionRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeOperatorPermissionRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeOperatorPermissionRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeOperatorPermissionRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/DescribeOperatorPermissionResult.cc b/rds/src/model/DescribeOperatorPermissionResult.cc new file mode 100644 index 000000000..0a574eca3 --- /dev/null +++ b/rds/src/model/DescribeOperatorPermissionResult.cc @@ -0,0 +1,78 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeOperatorPermissionResult::DescribeOperatorPermissionResult() : + ServiceResult() +{} + +DescribeOperatorPermissionResult::DescribeOperatorPermissionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeOperatorPermissionResult::~DescribeOperatorPermissionResult() +{} + +void DescribeOperatorPermissionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + privileges_ = value["Privileges"].asString(); + createdTime_ = value["CreatedTime"].asString(); + expiredTime_ = value["ExpiredTime"].asString(); + +} + +std::string DescribeOperatorPermissionResult::getCreatedTime()const +{ + return createdTime_; +} + +void DescribeOperatorPermissionResult::setCreatedTime(const std::string& createdTime) +{ + createdTime_ = createdTime; +} + +std::string DescribeOperatorPermissionResult::getPrivileges()const +{ + return privileges_; +} + +void DescribeOperatorPermissionResult::setPrivileges(const std::string& privileges) +{ + privileges_ = privileges; +} + +std::string DescribeOperatorPermissionResult::getExpiredTime()const +{ + return expiredTime_; +} + +void DescribeOperatorPermissionResult::setExpiredTime(const std::string& expiredTime) +{ + expiredTime_ = expiredTime; +} + diff --git a/rds/src/model/DescribeOptimizeAdviceOnBigTableRequest.cc b/rds/src/model/DescribeOptimizeAdviceOnBigTableRequest.cc new file mode 100644 index 000000000..69bceac2b --- /dev/null +++ b/rds/src/model/DescribeOptimizeAdviceOnBigTableRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeOptimizeAdviceOnBigTableRequest::DescribeOptimizeAdviceOnBigTableRequest() : + RdsRequest("DescribeOptimizeAdviceOnBigTable") +{} + +DescribeOptimizeAdviceOnBigTableRequest::~DescribeOptimizeAdviceOnBigTableRequest() +{} + +long DescribeOptimizeAdviceOnBigTableRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeOptimizeAdviceOnBigTableRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeOptimizeAdviceOnBigTableRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeOptimizeAdviceOnBigTableRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeOptimizeAdviceOnBigTableRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeOptimizeAdviceOnBigTableRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +int DescribeOptimizeAdviceOnBigTableRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeOptimizeAdviceOnBigTableRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeOptimizeAdviceOnBigTableRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeOptimizeAdviceOnBigTableRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long DescribeOptimizeAdviceOnBigTableRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeOptimizeAdviceOnBigTableRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeOptimizeAdviceOnBigTableRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeOptimizeAdviceOnBigTableRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeOptimizeAdviceOnBigTableRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeOptimizeAdviceOnBigTableRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/DescribeOptimizeAdviceOnBigTableResult.cc b/rds/src/model/DescribeOptimizeAdviceOnBigTableResult.cc new file mode 100644 index 000000000..6ddcb539f --- /dev/null +++ b/rds/src/model/DescribeOptimizeAdviceOnBigTableResult.cc @@ -0,0 +1,89 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeOptimizeAdviceOnBigTableResult::DescribeOptimizeAdviceOnBigTableResult() : + ServiceResult() +{} + +DescribeOptimizeAdviceOnBigTableResult::DescribeOptimizeAdviceOnBigTableResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeOptimizeAdviceOnBigTableResult::~DescribeOptimizeAdviceOnBigTableResult() +{} + +void DescribeOptimizeAdviceOnBigTableResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["AdviceOnBigTable"]; + for (auto value : allItems) + { + AdviceOnBigTable adviceOnBigTableObject; + adviceOnBigTableObject.dBName = value["DBName"].asString(); + adviceOnBigTableObject.tableName = value["TableName"].asString(); + adviceOnBigTableObject.tableSize = std::stol(value["TableSize"].asString()); + adviceOnBigTableObject.dataSize = std::stol(value["DataSize"].asString()); + adviceOnBigTableObject.indexSize = std::stol(value["IndexSize"].asString()); + items_.push_back(adviceOnBigTableObject); + } + totalRecordsCount_ = std::stoi(value["TotalRecordsCount"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); + +} + +int DescribeOptimizeAdviceOnBigTableResult::getTotalRecordsCount()const +{ + return totalRecordsCount_; +} + +void DescribeOptimizeAdviceOnBigTableResult::setTotalRecordsCount(int totalRecordsCount) +{ + totalRecordsCount_ = totalRecordsCount; +} + +int DescribeOptimizeAdviceOnBigTableResult::getPageRecordCount()const +{ + return pageRecordCount_; +} + +void DescribeOptimizeAdviceOnBigTableResult::setPageRecordCount(int pageRecordCount) +{ + pageRecordCount_ = pageRecordCount; +} + +int DescribeOptimizeAdviceOnBigTableResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeOptimizeAdviceOnBigTableResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/rds/src/model/DescribeOptimizeAdviceOnExcessIndexRequest.cc b/rds/src/model/DescribeOptimizeAdviceOnExcessIndexRequest.cc new file mode 100644 index 000000000..9f001282f --- /dev/null +++ b/rds/src/model/DescribeOptimizeAdviceOnExcessIndexRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeOptimizeAdviceOnExcessIndexRequest::DescribeOptimizeAdviceOnExcessIndexRequest() : + RdsRequest("DescribeOptimizeAdviceOnExcessIndex") +{} + +DescribeOptimizeAdviceOnExcessIndexRequest::~DescribeOptimizeAdviceOnExcessIndexRequest() +{} + +long DescribeOptimizeAdviceOnExcessIndexRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeOptimizeAdviceOnExcessIndexRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeOptimizeAdviceOnExcessIndexRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeOptimizeAdviceOnExcessIndexRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeOptimizeAdviceOnExcessIndexRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeOptimizeAdviceOnExcessIndexRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +int DescribeOptimizeAdviceOnExcessIndexRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeOptimizeAdviceOnExcessIndexRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeOptimizeAdviceOnExcessIndexRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeOptimizeAdviceOnExcessIndexRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long DescribeOptimizeAdviceOnExcessIndexRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeOptimizeAdviceOnExcessIndexRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeOptimizeAdviceOnExcessIndexRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeOptimizeAdviceOnExcessIndexRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeOptimizeAdviceOnExcessIndexRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeOptimizeAdviceOnExcessIndexRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/DescribeOptimizeAdviceOnExcessIndexResult.cc b/rds/src/model/DescribeOptimizeAdviceOnExcessIndexResult.cc new file mode 100644 index 000000000..d87c29eed --- /dev/null +++ b/rds/src/model/DescribeOptimizeAdviceOnExcessIndexResult.cc @@ -0,0 +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. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeOptimizeAdviceOnExcessIndexResult::DescribeOptimizeAdviceOnExcessIndexResult() : + ServiceResult() +{} + +DescribeOptimizeAdviceOnExcessIndexResult::DescribeOptimizeAdviceOnExcessIndexResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeOptimizeAdviceOnExcessIndexResult::~DescribeOptimizeAdviceOnExcessIndexResult() +{} + +void DescribeOptimizeAdviceOnExcessIndexResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["AdviceOnExcessIndex"]; + for (auto value : allItems) + { + AdviceOnExcessIndex adviceOnExcessIndexObject; + adviceOnExcessIndexObject.dBName = value["DBName"].asString(); + adviceOnExcessIndexObject.tableName = value["TableName"].asString(); + adviceOnExcessIndexObject.indexCount = std::stol(value["IndexCount"].asString()); + items_.push_back(adviceOnExcessIndexObject); + } + totalRecordsCount_ = std::stoi(value["TotalRecordsCount"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); + +} + +int DescribeOptimizeAdviceOnExcessIndexResult::getTotalRecordsCount()const +{ + return totalRecordsCount_; +} + +void DescribeOptimizeAdviceOnExcessIndexResult::setTotalRecordsCount(int totalRecordsCount) +{ + totalRecordsCount_ = totalRecordsCount; +} + +int DescribeOptimizeAdviceOnExcessIndexResult::getPageRecordCount()const +{ + return pageRecordCount_; +} + +void DescribeOptimizeAdviceOnExcessIndexResult::setPageRecordCount(int pageRecordCount) +{ + pageRecordCount_ = pageRecordCount; +} + +int DescribeOptimizeAdviceOnExcessIndexResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeOptimizeAdviceOnExcessIndexResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/rds/src/model/DescribeOptimizeAdviceOnMissIndexRequest.cc b/rds/src/model/DescribeOptimizeAdviceOnMissIndexRequest.cc new file mode 100644 index 000000000..3e4ffd84d --- /dev/null +++ b/rds/src/model/DescribeOptimizeAdviceOnMissIndexRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeOptimizeAdviceOnMissIndexRequest::DescribeOptimizeAdviceOnMissIndexRequest() : + RdsRequest("DescribeOptimizeAdviceOnMissIndex") +{} + +DescribeOptimizeAdviceOnMissIndexRequest::~DescribeOptimizeAdviceOnMissIndexRequest() +{} + +long DescribeOptimizeAdviceOnMissIndexRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeOptimizeAdviceOnMissIndexRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeOptimizeAdviceOnMissIndexRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeOptimizeAdviceOnMissIndexRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeOptimizeAdviceOnMissIndexRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeOptimizeAdviceOnMissIndexRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +int DescribeOptimizeAdviceOnMissIndexRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeOptimizeAdviceOnMissIndexRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeOptimizeAdviceOnMissIndexRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeOptimizeAdviceOnMissIndexRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long DescribeOptimizeAdviceOnMissIndexRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeOptimizeAdviceOnMissIndexRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeOptimizeAdviceOnMissIndexRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeOptimizeAdviceOnMissIndexRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeOptimizeAdviceOnMissIndexRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeOptimizeAdviceOnMissIndexRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/DescribeOptimizeAdviceOnMissIndexResult.cc b/rds/src/model/DescribeOptimizeAdviceOnMissIndexResult.cc new file mode 100644 index 000000000..86798e9a1 --- /dev/null +++ b/rds/src/model/DescribeOptimizeAdviceOnMissIndexResult.cc @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeOptimizeAdviceOnMissIndexResult::DescribeOptimizeAdviceOnMissIndexResult() : + ServiceResult() +{} + +DescribeOptimizeAdviceOnMissIndexResult::DescribeOptimizeAdviceOnMissIndexResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeOptimizeAdviceOnMissIndexResult::~DescribeOptimizeAdviceOnMissIndexResult() +{} + +void DescribeOptimizeAdviceOnMissIndexResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["AdviceOnMissIndex"]; + for (auto value : allItems) + { + AdviceOnMissIndex adviceOnMissIndexObject; + adviceOnMissIndexObject.dBName = value["DBName"].asString(); + adviceOnMissIndexObject.tableName = value["TableName"].asString(); + adviceOnMissIndexObject.queryColumn = value["QueryColumn"].asString(); + adviceOnMissIndexObject.sQLText = value["SQLText"].asString(); + items_.push_back(adviceOnMissIndexObject); + } + dBInstanceId_ = value["DBInstanceId"].asString(); + totalRecordsCount_ = std::stoi(value["TotalRecordsCount"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); + +} + +int DescribeOptimizeAdviceOnMissIndexResult::getTotalRecordsCount()const +{ + return totalRecordsCount_; +} + +void DescribeOptimizeAdviceOnMissIndexResult::setTotalRecordsCount(int totalRecordsCount) +{ + totalRecordsCount_ = totalRecordsCount; +} + +int DescribeOptimizeAdviceOnMissIndexResult::getPageRecordCount()const +{ + return pageRecordCount_; +} + +void DescribeOptimizeAdviceOnMissIndexResult::setPageRecordCount(int pageRecordCount) +{ + pageRecordCount_ = pageRecordCount; +} + +std::string DescribeOptimizeAdviceOnMissIndexResult::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeOptimizeAdviceOnMissIndexResult::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; +} + +int DescribeOptimizeAdviceOnMissIndexResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeOptimizeAdviceOnMissIndexResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/rds/src/model/DescribeOptimizeAdviceOnMissPKRequest.cc b/rds/src/model/DescribeOptimizeAdviceOnMissPKRequest.cc new file mode 100644 index 000000000..5d7e37c31 --- /dev/null +++ b/rds/src/model/DescribeOptimizeAdviceOnMissPKRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeOptimizeAdviceOnMissPKRequest::DescribeOptimizeAdviceOnMissPKRequest() : + RdsRequest("DescribeOptimizeAdviceOnMissPK") +{} + +DescribeOptimizeAdviceOnMissPKRequest::~DescribeOptimizeAdviceOnMissPKRequest() +{} + +long DescribeOptimizeAdviceOnMissPKRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeOptimizeAdviceOnMissPKRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeOptimizeAdviceOnMissPKRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeOptimizeAdviceOnMissPKRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeOptimizeAdviceOnMissPKRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeOptimizeAdviceOnMissPKRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +int DescribeOptimizeAdviceOnMissPKRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeOptimizeAdviceOnMissPKRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeOptimizeAdviceOnMissPKRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeOptimizeAdviceOnMissPKRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long DescribeOptimizeAdviceOnMissPKRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeOptimizeAdviceOnMissPKRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeOptimizeAdviceOnMissPKRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeOptimizeAdviceOnMissPKRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeOptimizeAdviceOnMissPKRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeOptimizeAdviceOnMissPKRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/DescribeOptimizeAdviceOnMissPKResult.cc b/rds/src/model/DescribeOptimizeAdviceOnMissPKResult.cc new file mode 100644 index 000000000..574ceb7bb --- /dev/null +++ b/rds/src/model/DescribeOptimizeAdviceOnMissPKResult.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeOptimizeAdviceOnMissPKResult::DescribeOptimizeAdviceOnMissPKResult() : + ServiceResult() +{} + +DescribeOptimizeAdviceOnMissPKResult::DescribeOptimizeAdviceOnMissPKResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeOptimizeAdviceOnMissPKResult::~DescribeOptimizeAdviceOnMissPKResult() +{} + +void DescribeOptimizeAdviceOnMissPKResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["AdviceOnMissPK"]; + for (auto value : allItems) + { + AdviceOnMissPK adviceOnMissPKObject; + adviceOnMissPKObject.dBName = value["DBName"].asString(); + adviceOnMissPKObject.tableName = value["TableName"].asString(); + items_.push_back(adviceOnMissPKObject); + } + totalRecordsCount_ = std::stoi(value["TotalRecordsCount"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); + +} + +int DescribeOptimizeAdviceOnMissPKResult::getTotalRecordsCount()const +{ + return totalRecordsCount_; +} + +void DescribeOptimizeAdviceOnMissPKResult::setTotalRecordsCount(int totalRecordsCount) +{ + totalRecordsCount_ = totalRecordsCount; +} + +int DescribeOptimizeAdviceOnMissPKResult::getPageRecordCount()const +{ + return pageRecordCount_; +} + +void DescribeOptimizeAdviceOnMissPKResult::setPageRecordCount(int pageRecordCount) +{ + pageRecordCount_ = pageRecordCount; +} + +int DescribeOptimizeAdviceOnMissPKResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeOptimizeAdviceOnMissPKResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/rds/src/model/DescribeOptimizeAdviceOnStorageRequest.cc b/rds/src/model/DescribeOptimizeAdviceOnStorageRequest.cc new file mode 100644 index 000000000..088f00ede --- /dev/null +++ b/rds/src/model/DescribeOptimizeAdviceOnStorageRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeOptimizeAdviceOnStorageRequest::DescribeOptimizeAdviceOnStorageRequest() : + RdsRequest("DescribeOptimizeAdviceOnStorage") +{} + +DescribeOptimizeAdviceOnStorageRequest::~DescribeOptimizeAdviceOnStorageRequest() +{} + +long DescribeOptimizeAdviceOnStorageRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeOptimizeAdviceOnStorageRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeOptimizeAdviceOnStorageRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeOptimizeAdviceOnStorageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeOptimizeAdviceOnStorageRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeOptimizeAdviceOnStorageRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +int DescribeOptimizeAdviceOnStorageRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeOptimizeAdviceOnStorageRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeOptimizeAdviceOnStorageRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeOptimizeAdviceOnStorageRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long DescribeOptimizeAdviceOnStorageRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeOptimizeAdviceOnStorageRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeOptimizeAdviceOnStorageRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeOptimizeAdviceOnStorageRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeOptimizeAdviceOnStorageRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeOptimizeAdviceOnStorageRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/DescribeOptimizeAdviceOnStorageResult.cc b/rds/src/model/DescribeOptimizeAdviceOnStorageResult.cc new file mode 100644 index 000000000..421401e1a --- /dev/null +++ b/rds/src/model/DescribeOptimizeAdviceOnStorageResult.cc @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeOptimizeAdviceOnStorageResult::DescribeOptimizeAdviceOnStorageResult() : + ServiceResult() +{} + +DescribeOptimizeAdviceOnStorageResult::DescribeOptimizeAdviceOnStorageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeOptimizeAdviceOnStorageResult::~DescribeOptimizeAdviceOnStorageResult() +{} + +void DescribeOptimizeAdviceOnStorageResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["AdviceOnStorage"]; + for (auto value : allItems) + { + AdviceOnStorage adviceOnStorageObject; + adviceOnStorageObject.dBName = value["DBName"].asString(); + adviceOnStorageObject.tableName = value["TableName"].asString(); + adviceOnStorageObject.currentEngine = value["CurrentEngine"].asString(); + adviceOnStorageObject.adviseEngine = value["AdviseEngine"].asString(); + items_.push_back(adviceOnStorageObject); + } + dBInstanceId_ = value["DBInstanceId"].asString(); + totalRecordsCount_ = std::stoi(value["TotalRecordsCount"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); + +} + +int DescribeOptimizeAdviceOnStorageResult::getTotalRecordsCount()const +{ + return totalRecordsCount_; +} + +void DescribeOptimizeAdviceOnStorageResult::setTotalRecordsCount(int totalRecordsCount) +{ + totalRecordsCount_ = totalRecordsCount; +} + +int DescribeOptimizeAdviceOnStorageResult::getPageRecordCount()const +{ + return pageRecordCount_; +} + +void DescribeOptimizeAdviceOnStorageResult::setPageRecordCount(int pageRecordCount) +{ + pageRecordCount_ = pageRecordCount; +} + +std::string DescribeOptimizeAdviceOnStorageResult::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeOptimizeAdviceOnStorageResult::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; +} + +int DescribeOptimizeAdviceOnStorageResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeOptimizeAdviceOnStorageResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/rds/src/model/DescribeOssDownloadsForSQLServerRequest.cc b/rds/src/model/DescribeOssDownloadsForSQLServerRequest.cc new file mode 100644 index 000000000..4466a88e0 --- /dev/null +++ b/rds/src/model/DescribeOssDownloadsForSQLServerRequest.cc @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeOssDownloadsForSQLServerRequest::DescribeOssDownloadsForSQLServerRequest() : + RdsRequest("DescribeOssDownloadsForSQLServer") +{} + +DescribeOssDownloadsForSQLServerRequest::~DescribeOssDownloadsForSQLServerRequest() +{} + +long DescribeOssDownloadsForSQLServerRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeOssDownloadsForSQLServerRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeOssDownloadsForSQLServerRequest::getMigrateTaskId()const +{ + return migrateTaskId_; +} + +void DescribeOssDownloadsForSQLServerRequest::setMigrateTaskId(const std::string& migrateTaskId) +{ + migrateTaskId_ = migrateTaskId; + setParameter("MigrateTaskId", migrateTaskId); +} + +std::string DescribeOssDownloadsForSQLServerRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeOssDownloadsForSQLServerRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeOssDownloadsForSQLServerRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeOssDownloadsForSQLServerRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long DescribeOssDownloadsForSQLServerRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeOssDownloadsForSQLServerRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeOssDownloadsForSQLServerRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeOssDownloadsForSQLServerRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/DescribeOssDownloadsForSQLServerResult.cc b/rds/src/model/DescribeOssDownloadsForSQLServerResult.cc new file mode 100644 index 000000000..92314d96c --- /dev/null +++ b/rds/src/model/DescribeOssDownloadsForSQLServerResult.cc @@ -0,0 +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 +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeOssDownloadsForSQLServerResult::DescribeOssDownloadsForSQLServerResult() : + ServiceResult() +{} + +DescribeOssDownloadsForSQLServerResult::DescribeOssDownloadsForSQLServerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeOssDownloadsForSQLServerResult::~DescribeOssDownloadsForSQLServerResult() +{} + +void DescribeOssDownloadsForSQLServerResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["OssDownload"]; + for (auto value : allItems) + { + OssDownload ossDownloadObject; + ossDownloadObject.fileName = value["FileName"].asString(); + ossDownloadObject.createTime = value["CreateTime"].asString(); + ossDownloadObject.createTime1 = value["CreateTime"].asString(); + ossDownloadObject.bakType = value["BakType"].asString(); + ossDownloadObject.fileSize = value["FileSize"].asString(); + ossDownloadObject.status = value["Status"].asString(); + ossDownloadObject.isAvail = value["IsAvail"].asString(); + ossDownloadObject.desc = value["Desc"].asString(); + items_.push_back(ossDownloadObject); + } + dBInstanceName_ = value["DBInstanceName"].asString(); + migrateIaskId_ = value["MigrateIaskId"].asString(); + +} + +std::string DescribeOssDownloadsForSQLServerResult::getMigrateIaskId()const +{ + return migrateIaskId_; +} + +void DescribeOssDownloadsForSQLServerResult::setMigrateIaskId(const std::string& migrateIaskId) +{ + migrateIaskId_ = migrateIaskId; +} + +std::string DescribeOssDownloadsForSQLServerResult::getDBInstanceName()const +{ + return dBInstanceName_; +} + +void DescribeOssDownloadsForSQLServerResult::setDBInstanceName(const std::string& dBInstanceName) +{ + dBInstanceName_ = dBInstanceName; +} + diff --git a/rds/src/model/DescribeOssDownloadsRequest.cc b/rds/src/model/DescribeOssDownloadsRequest.cc new file mode 100644 index 000000000..7c1bb6909 --- /dev/null +++ b/rds/src/model/DescribeOssDownloadsRequest.cc @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeOssDownloadsRequest::DescribeOssDownloadsRequest() : + RdsRequest("DescribeOssDownloads") +{} + +DescribeOssDownloadsRequest::~DescribeOssDownloadsRequest() +{} + +long DescribeOssDownloadsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeOssDownloadsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeOssDownloadsRequest::getMigrateTaskId()const +{ + return migrateTaskId_; +} + +void DescribeOssDownloadsRequest::setMigrateTaskId(const std::string& migrateTaskId) +{ + migrateTaskId_ = migrateTaskId; + setParameter("MigrateTaskId", migrateTaskId); +} + +std::string DescribeOssDownloadsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeOssDownloadsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeOssDownloadsRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeOssDownloadsRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long DescribeOssDownloadsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeOssDownloadsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeOssDownloadsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeOssDownloadsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/DescribeOssDownloadsResult.cc b/rds/src/model/DescribeOssDownloadsResult.cc new file mode 100644 index 000000000..ff52a7cb1 --- /dev/null +++ b/rds/src/model/DescribeOssDownloadsResult.cc @@ -0,0 +1,80 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeOssDownloadsResult::DescribeOssDownloadsResult() : + ServiceResult() +{} + +DescribeOssDownloadsResult::DescribeOssDownloadsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeOssDownloadsResult::~DescribeOssDownloadsResult() +{} + +void DescribeOssDownloadsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["OssDownload"]; + for (auto value : allItems) + { + OssDownload ossDownloadObject; + ossDownloadObject.fileName = value["FileName"].asString(); + ossDownloadObject.createTime = value["CreateTime"].asString(); + ossDownloadObject.backupMode = value["BackupMode"].asString(); + ossDownloadObject.fileSize = value["FileSize"].asString(); + ossDownloadObject.status = value["Status"].asString(); + ossDownloadObject.isAvailable = value["IsAvailable"].asString(); + ossDownloadObject.description = value["Description"].asString(); + items_.push_back(ossDownloadObject); + } + dBInstanceId_ = value["DBInstanceId"].asString(); + migrateTaskId_ = value["MigrateTaskId"].asString(); + +} + +std::string DescribeOssDownloadsResult::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeOssDownloadsResult::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; +} + +std::string DescribeOssDownloadsResult::getMigrateTaskId()const +{ + return migrateTaskId_; +} + +void DescribeOssDownloadsResult::setMigrateTaskId(const std::string& migrateTaskId) +{ + migrateTaskId_ = migrateTaskId; +} + diff --git a/rds/src/model/DescribeParameterTemplatesRequest.cc b/rds/src/model/DescribeParameterTemplatesRequest.cc new file mode 100644 index 000000000..ef5164449 --- /dev/null +++ b/rds/src/model/DescribeParameterTemplatesRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeParameterTemplatesRequest::DescribeParameterTemplatesRequest() : + RdsRequest("DescribeParameterTemplates") +{} + +DescribeParameterTemplatesRequest::~DescribeParameterTemplatesRequest() +{} + +long DescribeParameterTemplatesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeParameterTemplatesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeParameterTemplatesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeParameterTemplatesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeParameterTemplatesRequest::getClientToken()const +{ + return clientToken_; +} + +void DescribeParameterTemplatesRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string DescribeParameterTemplatesRequest::getEngine()const +{ + return engine_; +} + +void DescribeParameterTemplatesRequest::setEngine(const std::string& engine) +{ + engine_ = engine; + setParameter("Engine", engine); +} + +std::string DescribeParameterTemplatesRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeParameterTemplatesRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeParameterTemplatesRequest::getEngineVersion()const +{ + return engineVersion_; +} + +void DescribeParameterTemplatesRequest::setEngineVersion(const std::string& engineVersion) +{ + engineVersion_ = engineVersion; + setParameter("EngineVersion", engineVersion); +} + +long DescribeParameterTemplatesRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeParameterTemplatesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeParameterTemplatesRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeParameterTemplatesRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/DescribeParameterTemplatesResult.cc b/rds/src/model/DescribeParameterTemplatesResult.cc new file mode 100644 index 000000000..86195be8f --- /dev/null +++ b/rds/src/model/DescribeParameterTemplatesResult.cc @@ -0,0 +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 +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeParameterTemplatesResult::DescribeParameterTemplatesResult() : + ServiceResult() +{} + +DescribeParameterTemplatesResult::DescribeParameterTemplatesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeParameterTemplatesResult::~DescribeParameterTemplatesResult() +{} + +void DescribeParameterTemplatesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allParameters = value["Parameters"]["TemplateRecord"]; + for (auto value : allParameters) + { + TemplateRecord templateRecordObject; + templateRecordObject.parameterName = value["ParameterName"].asString(); + templateRecordObject.parameterValue = value["ParameterValue"].asString(); + templateRecordObject.forceModify = value["ForceModify"].asString(); + templateRecordObject.forceRestart = value["ForceRestart"].asString(); + templateRecordObject.checkingCode = value["CheckingCode"].asString(); + templateRecordObject.parameterDescription = value["ParameterDescription"].asString(); + parameters_.push_back(templateRecordObject); + } + engine_ = value["Engine"].asString(); + engineVersion_ = value["EngineVersion"].asString(); + parameterCount_ = value["ParameterCount"].asString(); + +} + +std::string DescribeParameterTemplatesResult::getParameterCount()const +{ + return parameterCount_; +} + +void DescribeParameterTemplatesResult::setParameterCount(const std::string& parameterCount) +{ + parameterCount_ = parameterCount; +} + +std::string DescribeParameterTemplatesResult::getEngineVersion()const +{ + return engineVersion_; +} + +void DescribeParameterTemplatesResult::setEngineVersion(const std::string& engineVersion) +{ + engineVersion_ = engineVersion; +} + +std::string DescribeParameterTemplatesResult::getEngine()const +{ + return engine_; +} + +void DescribeParameterTemplatesResult::setEngine(const std::string& engine) +{ + engine_ = engine; +} + diff --git a/rds/src/model/DescribePreCheckResultsRequest.cc b/rds/src/model/DescribePreCheckResultsRequest.cc new file mode 100644 index 000000000..4a18e9100 --- /dev/null +++ b/rds/src/model/DescribePreCheckResultsRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribePreCheckResultsRequest::DescribePreCheckResultsRequest() : + RdsRequest("DescribePreCheckResults") +{} + +DescribePreCheckResultsRequest::~DescribePreCheckResultsRequest() +{} + +std::string DescribePreCheckResultsRequest::getPreCheckId()const +{ + return preCheckId_; +} + +void DescribePreCheckResultsRequest::setPreCheckId(const std::string& preCheckId) +{ + preCheckId_ = preCheckId; + setParameter("PreCheckId", preCheckId); +} + +long DescribePreCheckResultsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribePreCheckResultsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribePreCheckResultsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribePreCheckResultsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribePreCheckResultsRequest::getClientToken()const +{ + return clientToken_; +} + +void DescribePreCheckResultsRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string DescribePreCheckResultsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribePreCheckResultsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribePreCheckResultsRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribePreCheckResultsRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long DescribePreCheckResultsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribePreCheckResultsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribePreCheckResultsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribePreCheckResultsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/DescribePreCheckResultsResult.cc b/rds/src/model/DescribePreCheckResultsResult.cc new file mode 100644 index 000000000..f05031fa2 --- /dev/null +++ b/rds/src/model/DescribePreCheckResultsResult.cc @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribePreCheckResultsResult::DescribePreCheckResultsResult() : + ServiceResult() +{} + +DescribePreCheckResultsResult::DescribePreCheckResultsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribePreCheckResultsResult::~DescribePreCheckResultsResult() +{} + +void DescribePreCheckResultsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["PreCheckResult"]; + for (auto value : allItems) + { + PreCheckResult preCheckResultObject; + preCheckResultObject.preCheckName = value["PreCheckName"].asString(); + preCheckResultObject.preCheckResult = value["PreCheckResult"].asString(); + preCheckResultObject.failReasion = value["FailReasion"].asString(); + preCheckResultObject.repairMethod = value["RepairMethod"].asString(); + items_.push_back(preCheckResultObject); + } + dBInstanceId_ = value["DBInstanceId"].asString(); + +} + +std::string DescribePreCheckResultsResult::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribePreCheckResultsResult::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; +} + diff --git a/rds/src/model/DescribePriceRequest.cc b/rds/src/model/DescribePriceRequest.cc new file mode 100644 index 000000000..48d0722f0 --- /dev/null +++ b/rds/src/model/DescribePriceRequest.cc @@ -0,0 +1,237 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribePriceRequest::DescribePriceRequest() : + RdsRequest("DescribePrice") +{} + +DescribePriceRequest::~DescribePriceRequest() +{} + +long DescribePriceRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribePriceRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +int DescribePriceRequest::getDBInstanceStorage()const +{ + return dBInstanceStorage_; +} + +void DescribePriceRequest::setDBInstanceStorage(int dBInstanceStorage) +{ + dBInstanceStorage_ = dBInstanceStorage; + setParameter("DBInstanceStorage", std::to_string(dBInstanceStorage)); +} + +int DescribePriceRequest::getQuantity()const +{ + return quantity_; +} + +void DescribePriceRequest::setQuantity(int quantity) +{ + quantity_ = quantity; + setParameter("Quantity", std::to_string(quantity)); +} + +std::string DescribePriceRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribePriceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribePriceRequest::getClientToken()const +{ + return clientToken_; +} + +void DescribePriceRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string DescribePriceRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribePriceRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribePriceRequest::getCommodityCode()const +{ + return commodityCode_; +} + +void DescribePriceRequest::setCommodityCode(const std::string& commodityCode) +{ + commodityCode_ = commodityCode; + setParameter("CommodityCode", commodityCode); +} + +std::string DescribePriceRequest::getEngineVersion()const +{ + return engineVersion_; +} + +void DescribePriceRequest::setEngineVersion(const std::string& engineVersion) +{ + engineVersion_ = engineVersion; + setParameter("EngineVersion", engineVersion); +} + +long DescribePriceRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribePriceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribePriceRequest::getUsedTime()const +{ + return usedTime_; +} + +void DescribePriceRequest::setUsedTime(const std::string& usedTime) +{ + usedTime_ = usedTime; + setParameter("UsedTime", usedTime); +} + +std::string DescribePriceRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribePriceRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribePriceRequest::getDBInstanceClass()const +{ + return dBInstanceClass_; +} + +void DescribePriceRequest::setDBInstanceClass(const std::string& dBInstanceClass) +{ + dBInstanceClass_ = dBInstanceClass; + setParameter("DBInstanceClass", dBInstanceClass); +} + +int DescribePriceRequest::getInstanceUsedType()const +{ + return instanceUsedType_; +} + +void DescribePriceRequest::setInstanceUsedType(int instanceUsedType) +{ + instanceUsedType_ = instanceUsedType; + setParameter("InstanceUsedType", std::to_string(instanceUsedType)); +} + +std::string DescribePriceRequest::getRegionId()const +{ + return regionId_; +} + +void DescribePriceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribePriceRequest::getEngine()const +{ + return engine_; +} + +void DescribePriceRequest::setEngine(const std::string& engine) +{ + engine_ = engine; + setParameter("Engine", engine); +} + +std::string DescribePriceRequest::getZoneId()const +{ + return zoneId_; +} + +void DescribePriceRequest::setZoneId(const std::string& zoneId) +{ + zoneId_ = zoneId; + setParameter("ZoneId", zoneId); +} + +std::string DescribePriceRequest::getTimeType()const +{ + return timeType_; +} + +void DescribePriceRequest::setTimeType(const std::string& timeType) +{ + timeType_ = timeType; + setParameter("TimeType", timeType); +} + +std::string DescribePriceRequest::getPayType()const +{ + return payType_; +} + +void DescribePriceRequest::setPayType(const std::string& payType) +{ + payType_ = payType; + setParameter("PayType", payType); +} + +std::string DescribePriceRequest::getOrderType()const +{ + return orderType_; +} + +void DescribePriceRequest::setOrderType(const std::string& orderType) +{ + orderType_ = orderType; + setParameter("OrderType", orderType); +} + diff --git a/rds/src/model/DescribePriceResult.cc b/rds/src/model/DescribePriceResult.cc new file mode 100644 index 000000000..5eed3db85 --- /dev/null +++ b/rds/src/model/DescribePriceResult.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribePriceResult::DescribePriceResult() : + ServiceResult() +{} + +DescribePriceResult::DescribePriceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribePriceResult::~DescribePriceResult() +{} + +void DescribePriceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allRules = value["Rules"]["Rule"]; + for (auto value : allRules) + { + Rule ruleObject; + ruleObject.ruleId = std::stol(value["RuleId"].asString()); + ruleObject.name = value["Name"].asString(); + ruleObject.description = value["Description"].asString(); + rules_.push_back(ruleObject); + } + auto allPriceInfo = value["PriceInfo"]; + for (auto value : allPriceInfo) + { + PriceInfo priceInfoObject; + priceInfoObject.currency = value["Currency"].asString(); + priceInfoObject.originalPrice = std::stof(value["OriginalPrice"].asString()); + priceInfoObject.tradePrice = std::stof(value["TradePrice"].asString()); + priceInfoObject.discountPrice = std::stof(value["DiscountPrice"].asString()); + auto allCoupons = value["Coupons"]["Coupon"]; + for (auto value : allCoupons) + { + PriceInfo::Coupon couponObject; + couponObject.couponNo = value["CouponNo"].asString(); + couponObject.name = value["Name"].asString(); + couponObject.description = value["Description"].asString(); + couponObject.isSelected = value["IsSelected"].asString(); + priceInfoObject.coupons.push_back(couponObject); + } + auto allActivityInfo = value["ActivityInfo"]; + for (auto value : allActivityInfo) + { + PriceInfo::ActivityInfo activityInfoObject; + activityInfoObject.checkErrMsg = value["CheckErrMsg"].asString(); + activityInfoObject.errorCode = value["ErrorCode"].asString(); + activityInfoObject.success = value["Success"].asString(); + priceInfoObject.activityInfo.push_back(activityInfoObject); + } + auto allRuleIds = value["RuleIds"]["RuleId"]; + for (auto value : allRuleIds) + priceInfoObject.ruleIds.push_back(value.asString()); + priceInfo_.push_back(priceInfoObject); + } + +} + diff --git a/rds/src/model/DescribeRealtimeDiagnosesRequest.cc b/rds/src/model/DescribeRealtimeDiagnosesRequest.cc new file mode 100644 index 000000000..9566023ab --- /dev/null +++ b/rds/src/model/DescribeRealtimeDiagnosesRequest.cc @@ -0,0 +1,138 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeRealtimeDiagnosesRequest::DescribeRealtimeDiagnosesRequest() : + RdsRequest("DescribeRealtimeDiagnoses") +{} + +DescribeRealtimeDiagnosesRequest::~DescribeRealtimeDiagnosesRequest() +{} + +long DescribeRealtimeDiagnosesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeRealtimeDiagnosesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeRealtimeDiagnosesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeRealtimeDiagnosesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeRealtimeDiagnosesRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeRealtimeDiagnosesRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +int DescribeRealtimeDiagnosesRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeRealtimeDiagnosesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeRealtimeDiagnosesRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeRealtimeDiagnosesRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +std::string DescribeRealtimeDiagnosesRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeRealtimeDiagnosesRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +std::string DescribeRealtimeDiagnosesRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeRealtimeDiagnosesRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + +long DescribeRealtimeDiagnosesRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeRealtimeDiagnosesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeRealtimeDiagnosesRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeRealtimeDiagnosesRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeRealtimeDiagnosesRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeRealtimeDiagnosesRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/DescribeRealtimeDiagnosesResult.cc b/rds/src/model/DescribeRealtimeDiagnosesResult.cc new file mode 100644 index 000000000..2d6022910 --- /dev/null +++ b/rds/src/model/DescribeRealtimeDiagnosesResult.cc @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeRealtimeDiagnosesResult::DescribeRealtimeDiagnosesResult() : + ServiceResult() +{} + +DescribeRealtimeDiagnosesResult::DescribeRealtimeDiagnosesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRealtimeDiagnosesResult::~DescribeRealtimeDiagnosesResult() +{} + +void DescribeRealtimeDiagnosesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allTasks = value["Tasks"]["RealtimeDiagnoseTasks"]; + for (auto value : allTasks) + { + RealtimeDiagnoseTasks realtimeDiagnoseTasksObject; + realtimeDiagnoseTasksObject.createTime = value["CreateTime"].asString(); + realtimeDiagnoseTasksObject.taskId = value["TaskId"].asString(); + realtimeDiagnoseTasksObject.healthScore = value["HealthScore"].asString(); + realtimeDiagnoseTasksObject.status = value["Status"].asString(); + tasks_.push_back(realtimeDiagnoseTasksObject); + } + engine_ = value["Engine"].asString(); + totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); + +} + +int DescribeRealtimeDiagnosesResult::getTotalRecordCount()const +{ + return totalRecordCount_; +} + +void DescribeRealtimeDiagnosesResult::setTotalRecordCount(int totalRecordCount) +{ + totalRecordCount_ = totalRecordCount; +} + +int DescribeRealtimeDiagnosesResult::getPageRecordCount()const +{ + return pageRecordCount_; +} + +void DescribeRealtimeDiagnosesResult::setPageRecordCount(int pageRecordCount) +{ + pageRecordCount_ = pageRecordCount; +} + +int DescribeRealtimeDiagnosesResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeRealtimeDiagnosesResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + +std::string DescribeRealtimeDiagnosesResult::getEngine()const +{ + return engine_; +} + +void DescribeRealtimeDiagnosesResult::setEngine(const std::string& engine) +{ + engine_ = engine; +} + diff --git a/rds/src/model/DescribeRegionsRequest.cc b/rds/src/model/DescribeRegionsRequest.cc new file mode 100644 index 000000000..6d34d3545 --- /dev/null +++ b/rds/src/model/DescribeRegionsRequest.cc @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeRegionsRequest::DescribeRegionsRequest() : + RdsRequest("DescribeRegions") +{} + +DescribeRegionsRequest::~DescribeRegionsRequest() +{} + +long DescribeRegionsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeRegionsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeRegionsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeRegionsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeRegionsRequest::getClientToken()const +{ + return clientToken_; +} + +void DescribeRegionsRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string DescribeRegionsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeRegionsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DescribeRegionsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeRegionsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeRegionsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeRegionsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/DescribeRegionsResult.cc b/rds/src/model/DescribeRegionsResult.cc new file mode 100644 index 000000000..5a75f7ac2 --- /dev/null +++ b/rds/src/model/DescribeRegionsResult.cc @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeRegionsResult::DescribeRegionsResult() : + ServiceResult() +{} + +DescribeRegionsResult::DescribeRegionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRegionsResult::~DescribeRegionsResult() +{} + +void DescribeRegionsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allRegions = value["Regions"]["RDSRegion"]; + for (auto value : allRegions) + { + RDSRegion rDSRegionObject; + rDSRegionObject.regionId = value["RegionId"].asString(); + rDSRegionObject.zoneId = value["ZoneId"].asString(); + regions_.push_back(rDSRegionObject); + } + +} + diff --git a/rds/src/model/DescribeRenewalPriceRequest.cc b/rds/src/model/DescribeRenewalPriceRequest.cc new file mode 100644 index 000000000..fb8642551 --- /dev/null +++ b/rds/src/model/DescribeRenewalPriceRequest.cc @@ -0,0 +1,215 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeRenewalPriceRequest::DescribeRenewalPriceRequest() : + RdsRequest("DescribeRenewalPrice") +{} + +DescribeRenewalPriceRequest::~DescribeRenewalPriceRequest() +{} + +long DescribeRenewalPriceRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeRenewalPriceRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +int DescribeRenewalPriceRequest::getQuantity()const +{ + return quantity_; +} + +void DescribeRenewalPriceRequest::setQuantity(int quantity) +{ + quantity_ = quantity; + setParameter("Quantity", std::to_string(quantity)); +} + +std::string DescribeRenewalPriceRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeRenewalPriceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeRenewalPriceRequest::getClientToken()const +{ + return clientToken_; +} + +void DescribeRenewalPriceRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string DescribeRenewalPriceRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeRenewalPriceRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeRenewalPriceRequest::getCommodityCode()const +{ + return commodityCode_; +} + +void DescribeRenewalPriceRequest::setCommodityCode(const std::string& commodityCode) +{ + commodityCode_ = commodityCode; + setParameter("CommodityCode", commodityCode); +} + +long DescribeRenewalPriceRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeRenewalPriceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeRenewalPriceRequest::getUsedTime()const +{ + return usedTime_; +} + +void DescribeRenewalPriceRequest::setUsedTime(const std::string& usedTime) +{ + usedTime_ = usedTime; + setParameter("UsedTime", usedTime); +} + +std::string DescribeRenewalPriceRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeRenewalPriceRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeRenewalPriceRequest::getDBInstanceClass()const +{ + return dBInstanceClass_; +} + +void DescribeRenewalPriceRequest::setDBInstanceClass(const std::string& dBInstanceClass) +{ + dBInstanceClass_ = dBInstanceClass; + setParameter("DBInstanceClass", dBInstanceClass); +} + +std::string DescribeRenewalPriceRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeRenewalPriceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeRenewalPriceRequest::getPromotionCode()const +{ + return promotionCode_; +} + +void DescribeRenewalPriceRequest::setPromotionCode(const std::string& promotionCode) +{ + promotionCode_ = promotionCode; + setParameter("PromotionCode", promotionCode); +} + +std::string DescribeRenewalPriceRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeRenewalPriceRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +std::string DescribeRenewalPriceRequest::getTimeType()const +{ + return timeType_; +} + +void DescribeRenewalPriceRequest::setTimeType(const std::string& timeType) +{ + timeType_ = timeType; + setParameter("TimeType", timeType); +} + +std::string DescribeRenewalPriceRequest::getPayType()const +{ + return payType_; +} + +void DescribeRenewalPriceRequest::setPayType(const std::string& payType) +{ + payType_ = payType; + setParameter("PayType", payType); +} + +std::string DescribeRenewalPriceRequest::getBusinessInfo()const +{ + return businessInfo_; +} + +void DescribeRenewalPriceRequest::setBusinessInfo(const std::string& businessInfo) +{ + businessInfo_ = businessInfo; + setParameter("BusinessInfo", businessInfo); +} + +std::string DescribeRenewalPriceRequest::getOrderType()const +{ + return orderType_; +} + +void DescribeRenewalPriceRequest::setOrderType(const std::string& orderType) +{ + orderType_ = orderType; + setParameter("OrderType", orderType); +} + diff --git a/rds/src/model/DescribeRenewalPriceResult.cc b/rds/src/model/DescribeRenewalPriceResult.cc new file mode 100644 index 000000000..e6c066174 --- /dev/null +++ b/rds/src/model/DescribeRenewalPriceResult.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeRenewalPriceResult::DescribeRenewalPriceResult() : + ServiceResult() +{} + +DescribeRenewalPriceResult::DescribeRenewalPriceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRenewalPriceResult::~DescribeRenewalPriceResult() +{} + +void DescribeRenewalPriceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allRules = value["Rules"]["Rule"]; + for (auto value : allRules) + { + Rule ruleObject; + ruleObject.ruleId = std::stol(value["RuleId"].asString()); + ruleObject.name = value["Name"].asString(); + ruleObject.description = value["Description"].asString(); + rules_.push_back(ruleObject); + } + auto allPriceInfo = value["PriceInfo"]; + for (auto value : allPriceInfo) + { + PriceInfo priceInfoObject; + priceInfoObject.currency = value["Currency"].asString(); + priceInfoObject.originalPrice = std::stof(value["OriginalPrice"].asString()); + priceInfoObject.tradePrice = std::stof(value["TradePrice"].asString()); + priceInfoObject.discountPrice = std::stof(value["DiscountPrice"].asString()); + auto allCoupons = value["Coupons"]["Coupon"]; + for (auto value : allCoupons) + { + PriceInfo::Coupon couponObject; + couponObject.couponNo = value["CouponNo"].asString(); + couponObject.name = value["Name"].asString(); + couponObject.description = value["Description"].asString(); + couponObject.isSelected = value["IsSelected"].asString(); + priceInfoObject.coupons.push_back(couponObject); + } + auto allActivityInfo = value["ActivityInfo"]; + for (auto value : allActivityInfo) + { + PriceInfo::ActivityInfo activityInfoObject; + activityInfoObject.checkErrMsg = value["CheckErrMsg"].asString(); + activityInfoObject.errorCode = value["ErrorCode"].asString(); + activityInfoObject.success = value["Success"].asString(); + priceInfoObject.activityInfo.push_back(activityInfoObject); + } + auto allRuleIds = value["RuleIds"]["RuleId"]; + for (auto value : allRuleIds) + priceInfoObject.ruleIds.push_back(value.asString()); + priceInfo_.push_back(priceInfoObject); + } + +} + diff --git a/rds/src/model/DescribeReplicaInitializeProgressRequest.cc b/rds/src/model/DescribeReplicaInitializeProgressRequest.cc new file mode 100644 index 000000000..7a7573209 --- /dev/null +++ b/rds/src/model/DescribeReplicaInitializeProgressRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeReplicaInitializeProgressRequest::DescribeReplicaInitializeProgressRequest() : + RdsRequest("DescribeReplicaInitializeProgress") +{} + +DescribeReplicaInitializeProgressRequest::~DescribeReplicaInitializeProgressRequest() +{} + +long DescribeReplicaInitializeProgressRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeReplicaInitializeProgressRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeReplicaInitializeProgressRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeReplicaInitializeProgressRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DescribeReplicaInitializeProgressRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeReplicaInitializeProgressRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeReplicaInitializeProgressRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeReplicaInitializeProgressRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeReplicaInitializeProgressRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeReplicaInitializeProgressRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeReplicaInitializeProgressRequest::getReplicaId()const +{ + return replicaId_; +} + +void DescribeReplicaInitializeProgressRequest::setReplicaId(const std::string& replicaId) +{ + replicaId_ = replicaId; + setParameter("ReplicaId", replicaId); +} + +long DescribeReplicaInitializeProgressRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeReplicaInitializeProgressRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeReplicaInitializeProgressRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeReplicaInitializeProgressRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/DescribeReplicaInitializeProgressResult.cc b/rds/src/model/DescribeReplicaInitializeProgressResult.cc new file mode 100644 index 000000000..262993ce0 --- /dev/null +++ b/rds/src/model/DescribeReplicaInitializeProgressResult.cc @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeReplicaInitializeProgressResult::DescribeReplicaInitializeProgressResult() : + ServiceResult() +{} + +DescribeReplicaInitializeProgressResult::DescribeReplicaInitializeProgressResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeReplicaInitializeProgressResult::~DescribeReplicaInitializeProgressResult() +{} + +void DescribeReplicaInitializeProgressResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["ItemsItem"]; + for (auto value : allItems) + { + ItemsItem itemsItemObject; + itemsItemObject.replicaId = value["ReplicaId"].asString(); + itemsItemObject.status = value["Status"].asString(); + itemsItemObject.progress = value["Progress"].asString(); + itemsItemObject.finishTime = value["FinishTime"].asString(); + itemsItemObject.currentStep = value["CurrentStep"].asString(); + items_.push_back(itemsItemObject); + } + +} + diff --git a/rds/src/model/DescribeReplicaPerformanceRequest.cc b/rds/src/model/DescribeReplicaPerformanceRequest.cc new file mode 100644 index 000000000..400cd17fc --- /dev/null +++ b/rds/src/model/DescribeReplicaPerformanceRequest.cc @@ -0,0 +1,160 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeReplicaPerformanceRequest::DescribeReplicaPerformanceRequest() : + RdsRequest("DescribeReplicaPerformance") +{} + +DescribeReplicaPerformanceRequest::~DescribeReplicaPerformanceRequest() +{} + +long DescribeReplicaPerformanceRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeReplicaPerformanceRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeReplicaPerformanceRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeReplicaPerformanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeReplicaPerformanceRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeReplicaPerformanceRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeReplicaPerformanceRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeReplicaPerformanceRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +std::string DescribeReplicaPerformanceRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeReplicaPerformanceRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + +long DescribeReplicaPerformanceRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeReplicaPerformanceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeReplicaPerformanceRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeReplicaPerformanceRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeReplicaPerformanceRequest::getSourceDBInstanceId()const +{ + return sourceDBInstanceId_; +} + +void DescribeReplicaPerformanceRequest::setSourceDBInstanceId(const std::string& sourceDBInstanceId) +{ + sourceDBInstanceId_ = sourceDBInstanceId; + setParameter("SourceDBInstanceId", sourceDBInstanceId); +} + +std::string DescribeReplicaPerformanceRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeReplicaPerformanceRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DescribeReplicaPerformanceRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeReplicaPerformanceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeReplicaPerformanceRequest::getReplicaId()const +{ + return replicaId_; +} + +void DescribeReplicaPerformanceRequest::setReplicaId(const std::string& replicaId) +{ + replicaId_ = replicaId; + setParameter("ReplicaId", replicaId); +} + +std::string DescribeReplicaPerformanceRequest::getKey()const +{ + return key_; +} + +void DescribeReplicaPerformanceRequest::setKey(const std::string& key) +{ + key_ = key; + setParameter("Key", key); +} + diff --git a/rds/src/model/DescribeReplicaPerformanceResult.cc b/rds/src/model/DescribeReplicaPerformanceResult.cc new file mode 100644 index 000000000..d653c1202 --- /dev/null +++ b/rds/src/model/DescribeReplicaPerformanceResult.cc @@ -0,0 +1,107 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeReplicaPerformanceResult::DescribeReplicaPerformanceResult() : + ServiceResult() +{} + +DescribeReplicaPerformanceResult::DescribeReplicaPerformanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeReplicaPerformanceResult::~DescribeReplicaPerformanceResult() +{} + +void DescribeReplicaPerformanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allPerformanceKeys = value["PerformanceKeys"]; + for (auto value : allPerformanceKeys) + { + PerformanceKeys performanceKeysObject; + auto allPerformanceKey = value["PerformanceKey"]["PerformanceKeyItem"]; + for (auto value : allPerformanceKey) + { + PerformanceKeys::PerformanceKeyItem performanceKeyItemObject; + performanceKeyItemObject.key = value["Key"].asString(); + performanceKeyItemObject.unit = value["Unit"].asString(); + performanceKeyItemObject.valueFormat = value["ValueFormat"].asString(); + auto allPerformanceValues = value["PerformanceValues"]; + for (auto value : allPerformanceValues) + { + PerformanceKeys::PerformanceKeyItem::PerformanceValues performanceValuesObject; + auto allPerformanceValue = value["PerformanceValue"]["PerformanceValueItem"]; + for (auto value : allPerformanceValue) + { + PerformanceKeys::PerformanceKeyItem::PerformanceValues::PerformanceValueItem performanceValueItemObject; + performanceValueItemObject.value = value["Value"].asString(); + performanceValueItemObject.date = value["Date"].asString(); + performanceValuesObject.performanceValue.push_back(performanceValueItemObject); + } + performanceKeyItemObject.performanceValues.push_back(performanceValuesObject); + } + performanceKeysObject.performanceKey.push_back(performanceKeyItemObject); + } + performanceKeys_.push_back(performanceKeysObject); + } + startTime_ = value["StartTime"].asString(); + endTime_ = value["EndTime"].asString(); + replicaId_ = value["ReplicaId"].asString(); + +} + +std::string DescribeReplicaPerformanceResult::getEndTime()const +{ + return endTime_; +} + +void DescribeReplicaPerformanceResult::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; +} + +std::string DescribeReplicaPerformanceResult::getStartTime()const +{ + return startTime_; +} + +void DescribeReplicaPerformanceResult::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; +} + +std::string DescribeReplicaPerformanceResult::getReplicaId()const +{ + return replicaId_; +} + +void DescribeReplicaPerformanceResult::setReplicaId(const std::string& replicaId) +{ + replicaId_ = replicaId; +} + diff --git a/rds/src/model/DescribeReplicaUsageRequest.cc b/rds/src/model/DescribeReplicaUsageRequest.cc new file mode 100644 index 000000000..7eb8ff76f --- /dev/null +++ b/rds/src/model/DescribeReplicaUsageRequest.cc @@ -0,0 +1,127 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeReplicaUsageRequest::DescribeReplicaUsageRequest() : + RdsRequest("DescribeReplicaUsage") +{} + +DescribeReplicaUsageRequest::~DescribeReplicaUsageRequest() +{} + +long DescribeReplicaUsageRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeReplicaUsageRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeReplicaUsageRequest::getSourceDBInstanceId()const +{ + return sourceDBInstanceId_; +} + +void DescribeReplicaUsageRequest::setSourceDBInstanceId(const std::string& sourceDBInstanceId) +{ + sourceDBInstanceId_ = sourceDBInstanceId; + setParameter("SourceDBInstanceId", sourceDBInstanceId); +} + +std::string DescribeReplicaUsageRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeReplicaUsageRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DescribeReplicaUsageRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeReplicaUsageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeReplicaUsageRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeReplicaUsageRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeReplicaUsageRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeReplicaUsageRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeReplicaUsageRequest::getReplicaId()const +{ + return replicaId_; +} + +void DescribeReplicaUsageRequest::setReplicaId(const std::string& replicaId) +{ + replicaId_ = replicaId; + setParameter("ReplicaId", replicaId); +} + +long DescribeReplicaUsageRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeReplicaUsageRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeReplicaUsageRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeReplicaUsageRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/DescribeReplicaUsageResult.cc b/rds/src/model/DescribeReplicaUsageResult.cc new file mode 100644 index 000000000..a363dc6fe --- /dev/null +++ b/rds/src/model/DescribeReplicaUsageResult.cc @@ -0,0 +1,107 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeReplicaUsageResult::DescribeReplicaUsageResult() : + ServiceResult() +{} + +DescribeReplicaUsageResult::DescribeReplicaUsageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeReplicaUsageResult::~DescribeReplicaUsageResult() +{} + +void DescribeReplicaUsageResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allPerformanceKeys = value["PerformanceKeys"]; + for (auto value : allPerformanceKeys) + { + PerformanceKeys performanceKeysObject; + auto allPerformanceKey = value["PerformanceKey"]["PerformanceKeyItem"]; + for (auto value : allPerformanceKey) + { + PerformanceKeys::PerformanceKeyItem performanceKeyItemObject; + performanceKeyItemObject.key = value["Key"].asString(); + performanceKeyItemObject.unit = value["Unit"].asString(); + performanceKeyItemObject.valueFormat = value["ValueFormat"].asString(); + auto allPerformanceValues = value["PerformanceValues"]; + for (auto value : allPerformanceValues) + { + PerformanceKeys::PerformanceKeyItem::PerformanceValues performanceValuesObject; + auto allPerformanceValue = value["PerformanceValue"]["PerformanceValueItem"]; + for (auto value : allPerformanceValue) + { + PerformanceKeys::PerformanceKeyItem::PerformanceValues::PerformanceValueItem performanceValueItemObject; + performanceValueItemObject.value = value["Value"].asString(); + performanceValueItemObject.date = value["Date"].asString(); + performanceValuesObject.performanceValue.push_back(performanceValueItemObject); + } + performanceKeyItemObject.performanceValues.push_back(performanceValuesObject); + } + performanceKeysObject.performanceKey.push_back(performanceKeyItemObject); + } + performanceKeys_.push_back(performanceKeysObject); + } + startTime_ = value["StartTime"].asString(); + endTime_ = value["EndTime"].asString(); + replicaId_ = value["ReplicaId"].asString(); + +} + +std::string DescribeReplicaUsageResult::getEndTime()const +{ + return endTime_; +} + +void DescribeReplicaUsageResult::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; +} + +std::string DescribeReplicaUsageResult::getStartTime()const +{ + return startTime_; +} + +void DescribeReplicaUsageResult::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; +} + +std::string DescribeReplicaUsageResult::getReplicaId()const +{ + return replicaId_; +} + +void DescribeReplicaUsageResult::setReplicaId(const std::string& replicaId) +{ + replicaId_ = replicaId; +} + diff --git a/rds/src/model/DescribeResourceDiagnosisRequest.cc b/rds/src/model/DescribeResourceDiagnosisRequest.cc new file mode 100644 index 000000000..891358222 --- /dev/null +++ b/rds/src/model/DescribeResourceDiagnosisRequest.cc @@ -0,0 +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 namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeResourceDiagnosisRequest::DescribeResourceDiagnosisRequest() : + RdsRequest("DescribeResourceDiagnosis") +{} + +DescribeResourceDiagnosisRequest::~DescribeResourceDiagnosisRequest() +{} + +std::string DescribeResourceDiagnosisRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeResourceDiagnosisRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +std::string DescribeResourceDiagnosisRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeResourceDiagnosisRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +std::string DescribeResourceDiagnosisRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeResourceDiagnosisRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + +std::string DescribeResourceDiagnosisRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeResourceDiagnosisRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/DescribeResourceDiagnosisResult.cc b/rds/src/model/DescribeResourceDiagnosisResult.cc new file mode 100644 index 000000000..ab381f02b --- /dev/null +++ b/rds/src/model/DescribeResourceDiagnosisResult.cc @@ -0,0 +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. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeResourceDiagnosisResult::DescribeResourceDiagnosisResult() : + ServiceResult() +{} + +DescribeResourceDiagnosisResult::DescribeResourceDiagnosisResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeResourceDiagnosisResult::~DescribeResourceDiagnosisResult() +{} + +void DescribeResourceDiagnosisResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allCPU = value["CPU"]["Detail"]; + for (const auto &item : allCPU) + cPU_.push_back(item.asString()); + auto allMemory = value["Memory"]["Detail"]; + for (const auto &item : allMemory) + memory_.push_back(item.asString()); + auto allStorage = value["Storage"]["Detail"]; + for (const auto &item : allStorage) + storage_.push_back(item.asString()); + auto allIOPS = value["IOPS"]["Detail"]; + for (const auto &item : allIOPS) + iOPS_.push_back(item.asString()); + auto allConnection = value["Connection"]["Detail"]; + for (const auto &item : allConnection) + connection_.push_back(item.asString()); + startTime_ = value["StartTime"].asString(); + endTime_ = value["EndTime"].asString(); + +} + +std::vector DescribeResourceDiagnosisResult::getStorage()const +{ + return storage_; +} + +void DescribeResourceDiagnosisResult::setStorage(const std::vector& storage) +{ + storage_ = storage; +} + +std::string DescribeResourceDiagnosisResult::getEndTime()const +{ + return endTime_; +} + +void DescribeResourceDiagnosisResult::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; +} + +std::vector DescribeResourceDiagnosisResult::getMemory()const +{ + return memory_; +} + +void DescribeResourceDiagnosisResult::setMemory(const std::vector& memory) +{ + memory_ = memory; +} + +std::vector DescribeResourceDiagnosisResult::getConnection()const +{ + return connection_; +} + +void DescribeResourceDiagnosisResult::setConnection(const std::vector& connection) +{ + connection_ = connection; +} + +std::string DescribeResourceDiagnosisResult::getStartTime()const +{ + return startTime_; +} + +void DescribeResourceDiagnosisResult::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; +} + +std::vector DescribeResourceDiagnosisResult::getCPU()const +{ + return cPU_; +} + +void DescribeResourceDiagnosisResult::setCPU(const std::vector& cPU) +{ + cPU_ = cPU; +} + +std::vector DescribeResourceDiagnosisResult::getIOPS()const +{ + return iOPS_; +} + +void DescribeResourceDiagnosisResult::setIOPS(const std::vector& iOPS) +{ + iOPS_ = iOPS; +} + diff --git a/rds/src/model/DescribeResourceUsageRequest.cc b/rds/src/model/DescribeResourceUsageRequest.cc new file mode 100644 index 000000000..0a7c93635 --- /dev/null +++ b/rds/src/model/DescribeResourceUsageRequest.cc @@ -0,0 +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. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeResourceUsageRequest::DescribeResourceUsageRequest() : + RdsRequest("DescribeResourceUsage") +{} + +DescribeResourceUsageRequest::~DescribeResourceUsageRequest() +{} + +long DescribeResourceUsageRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeResourceUsageRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeResourceUsageRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeResourceUsageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeResourceUsageRequest::getClientToken()const +{ + return clientToken_; +} + +void DescribeResourceUsageRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string DescribeResourceUsageRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeResourceUsageRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeResourceUsageRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeResourceUsageRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long DescribeResourceUsageRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeResourceUsageRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeResourceUsageRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeResourceUsageRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/DescribeResourceUsageResult.cc b/rds/src/model/DescribeResourceUsageResult.cc new file mode 100644 index 000000000..e560f1845 --- /dev/null +++ b/rds/src/model/DescribeResourceUsageResult.cc @@ -0,0 +1,133 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeResourceUsageResult::DescribeResourceUsageResult() : + ServiceResult() +{} + +DescribeResourceUsageResult::DescribeResourceUsageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeResourceUsageResult::~DescribeResourceUsageResult() +{} + +void DescribeResourceUsageResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + dBInstanceId_ = value["DBInstanceId"].asString(); + engine_ = value["Engine"].asString(); + diskUsed_ = std::stol(value["DiskUsed"].asString()); + dataSize_ = std::stol(value["DataSize"].asString()); + logSize_ = std::stol(value["LogSize"].asString()); + backupSize_ = std::stol(value["BackupSize"].asString()); + sQLSize_ = std::stol(value["SQLSize"].asString()); + coldBackupSize_ = std::stol(value["ColdBackupSize"].asString()); + +} + +long DescribeResourceUsageResult::getLogSize()const +{ + return logSize_; +} + +void DescribeResourceUsageResult::setLogSize(long logSize) +{ + logSize_ = logSize; +} + +std::string DescribeResourceUsageResult::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeResourceUsageResult::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; +} + +long DescribeResourceUsageResult::getDataSize()const +{ + return dataSize_; +} + +void DescribeResourceUsageResult::setDataSize(long dataSize) +{ + dataSize_ = dataSize; +} + +long DescribeResourceUsageResult::getBackupSize()const +{ + return backupSize_; +} + +void DescribeResourceUsageResult::setBackupSize(long backupSize) +{ + backupSize_ = backupSize; +} + +long DescribeResourceUsageResult::getSQLSize()const +{ + return sQLSize_; +} + +void DescribeResourceUsageResult::setSQLSize(long sQLSize) +{ + sQLSize_ = sQLSize; +} + +long DescribeResourceUsageResult::getDiskUsed()const +{ + return diskUsed_; +} + +void DescribeResourceUsageResult::setDiskUsed(long diskUsed) +{ + diskUsed_ = diskUsed; +} + +std::string DescribeResourceUsageResult::getEngine()const +{ + return engine_; +} + +void DescribeResourceUsageResult::setEngine(const std::string& engine) +{ + engine_ = engine; +} + +long DescribeResourceUsageResult::getColdBackupSize()const +{ + return coldBackupSize_; +} + +void DescribeResourceUsageResult::setColdBackupSize(long coldBackupSize) +{ + coldBackupSize_ = coldBackupSize; +} + diff --git a/rds/src/model/DescribeSQLCollectorPolicyRequest.cc b/rds/src/model/DescribeSQLCollectorPolicyRequest.cc new file mode 100644 index 000000000..976d08e71 --- /dev/null +++ b/rds/src/model/DescribeSQLCollectorPolicyRequest.cc @@ -0,0 +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. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeSQLCollectorPolicyRequest::DescribeSQLCollectorPolicyRequest() : + RdsRequest("DescribeSQLCollectorPolicy") +{} + +DescribeSQLCollectorPolicyRequest::~DescribeSQLCollectorPolicyRequest() +{} + +long DescribeSQLCollectorPolicyRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeSQLCollectorPolicyRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeSQLCollectorPolicyRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeSQLCollectorPolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeSQLCollectorPolicyRequest::getClientToken()const +{ + return clientToken_; +} + +void DescribeSQLCollectorPolicyRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string DescribeSQLCollectorPolicyRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeSQLCollectorPolicyRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeSQLCollectorPolicyRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeSQLCollectorPolicyRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long DescribeSQLCollectorPolicyRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeSQLCollectorPolicyRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeSQLCollectorPolicyRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeSQLCollectorPolicyRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/DescribeSQLCollectorPolicyResult.cc b/rds/src/model/DescribeSQLCollectorPolicyResult.cc new file mode 100644 index 000000000..6ea8a09ec --- /dev/null +++ b/rds/src/model/DescribeSQLCollectorPolicyResult.cc @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeSQLCollectorPolicyResult::DescribeSQLCollectorPolicyResult() : + ServiceResult() +{} + +DescribeSQLCollectorPolicyResult::DescribeSQLCollectorPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSQLCollectorPolicyResult::~DescribeSQLCollectorPolicyResult() +{} + +void DescribeSQLCollectorPolicyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + sQLCollectorStatus_ = value["SQLCollectorStatus"].asString(); + storagePeriod_ = std::stoi(value["StoragePeriod"].asString()); + +} + +int DescribeSQLCollectorPolicyResult::getStoragePeriod()const +{ + return storagePeriod_; +} + +void DescribeSQLCollectorPolicyResult::setStoragePeriod(int storagePeriod) +{ + storagePeriod_ = storagePeriod; +} + +std::string DescribeSQLCollectorPolicyResult::getSQLCollectorStatus()const +{ + return sQLCollectorStatus_; +} + +void DescribeSQLCollectorPolicyResult::setSQLCollectorStatus(const std::string& sQLCollectorStatus) +{ + sQLCollectorStatus_ = sQLCollectorStatus; +} + diff --git a/rds/src/model/DescribeSQLDiagnosisListRequest.cc b/rds/src/model/DescribeSQLDiagnosisListRequest.cc new file mode 100644 index 000000000..be670d987 --- /dev/null +++ b/rds/src/model/DescribeSQLDiagnosisListRequest.cc @@ -0,0 +1,50 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeSQLDiagnosisListRequest::DescribeSQLDiagnosisListRequest() : + RdsRequest("DescribeSQLDiagnosisList") +{} + +DescribeSQLDiagnosisListRequest::~DescribeSQLDiagnosisListRequest() +{} + +std::string DescribeSQLDiagnosisListRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeSQLDiagnosisListRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +std::string DescribeSQLDiagnosisListRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeSQLDiagnosisListRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/DescribeSQLDiagnosisListResult.cc b/rds/src/model/DescribeSQLDiagnosisListResult.cc new file mode 100644 index 000000000..8a99eee93 --- /dev/null +++ b/rds/src/model/DescribeSQLDiagnosisListResult.cc @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeSQLDiagnosisListResult::DescribeSQLDiagnosisListResult() : + ServiceResult() +{} + +DescribeSQLDiagnosisListResult::DescribeSQLDiagnosisListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSQLDiagnosisListResult::~DescribeSQLDiagnosisListResult() +{} + +void DescribeSQLDiagnosisListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allSQLDiagList = value["SQLDiagList"]["SQLDiag"]; + for (auto value : allSQLDiagList) + { + SQLDiag sQLDiagObject; + sQLDiagObject.sQLDiagId = value["SQLDiagId"].asString(); + sQLDiagObject.startTime = value["StartTime"].asString(); + sQLDiagObject.endTime = value["EndTime"].asString(); + sQLDiagObject.status = std::stoi(value["Status"].asString()); + sQLDiagObject.progress = std::stoi(value["Progress"].asString()); + sQLDiagList_.push_back(sQLDiagObject); + } + +} + diff --git a/rds/src/model/DescribeSQLDiagnosisRequest.cc b/rds/src/model/DescribeSQLDiagnosisRequest.cc new file mode 100644 index 000000000..f9efba457 --- /dev/null +++ b/rds/src/model/DescribeSQLDiagnosisRequest.cc @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeSQLDiagnosisRequest::DescribeSQLDiagnosisRequest() : + RdsRequest("DescribeSQLDiagnosis") +{} + +DescribeSQLDiagnosisRequest::~DescribeSQLDiagnosisRequest() +{} + +std::string DescribeSQLDiagnosisRequest::getSQLDiagId()const +{ + return sQLDiagId_; +} + +void DescribeSQLDiagnosisRequest::setSQLDiagId(const std::string& sQLDiagId) +{ + sQLDiagId_ = sQLDiagId; + setParameter("SQLDiagId", sQLDiagId); +} + +std::string DescribeSQLDiagnosisRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeSQLDiagnosisRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +std::string DescribeSQLDiagnosisRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeSQLDiagnosisRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/DescribeSQLDiagnosisResult.cc b/rds/src/model/DescribeSQLDiagnosisResult.cc new file mode 100644 index 000000000..fc9ef90ba --- /dev/null +++ b/rds/src/model/DescribeSQLDiagnosisResult.cc @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeSQLDiagnosisResult::DescribeSQLDiagnosisResult() : + ServiceResult() +{} + +DescribeSQLDiagnosisResult::DescribeSQLDiagnosisResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSQLDiagnosisResult::~DescribeSQLDiagnosisResult() +{} + +void DescribeSQLDiagnosisResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allSQLList = value["SQLList"]["SQL"]; + for (const auto &item : allSQLList) + sQLList_.push_back(item.asString()); + +} + +std::vector DescribeSQLDiagnosisResult::getSQLList()const +{ + return sQLList_; +} + +void DescribeSQLDiagnosisResult::setSQLList(const std::vector& sQLList) +{ + sQLList_ = sQLList; +} + diff --git a/rds/src/model/DescribeSQLInjectionInfosRequest.cc b/rds/src/model/DescribeSQLInjectionInfosRequest.cc new file mode 100644 index 000000000..246187ac7 --- /dev/null +++ b/rds/src/model/DescribeSQLInjectionInfosRequest.cc @@ -0,0 +1,138 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeSQLInjectionInfosRequest::DescribeSQLInjectionInfosRequest() : + RdsRequest("DescribeSQLInjectionInfos") +{} + +DescribeSQLInjectionInfosRequest::~DescribeSQLInjectionInfosRequest() +{} + +long DescribeSQLInjectionInfosRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeSQLInjectionInfosRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeSQLInjectionInfosRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeSQLInjectionInfosRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeSQLInjectionInfosRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeSQLInjectionInfosRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +int DescribeSQLInjectionInfosRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeSQLInjectionInfosRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeSQLInjectionInfosRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeSQLInjectionInfosRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +std::string DescribeSQLInjectionInfosRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeSQLInjectionInfosRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +std::string DescribeSQLInjectionInfosRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeSQLInjectionInfosRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + +long DescribeSQLInjectionInfosRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeSQLInjectionInfosRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeSQLInjectionInfosRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeSQLInjectionInfosRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeSQLInjectionInfosRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeSQLInjectionInfosRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/DescribeSQLInjectionInfosResult.cc b/rds/src/model/DescribeSQLInjectionInfosResult.cc new file mode 100644 index 000000000..79e6f2e3d --- /dev/null +++ b/rds/src/model/DescribeSQLInjectionInfosResult.cc @@ -0,0 +1,102 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeSQLInjectionInfosResult::DescribeSQLInjectionInfosResult() : + ServiceResult() +{} + +DescribeSQLInjectionInfosResult::DescribeSQLInjectionInfosResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSQLInjectionInfosResult::~DescribeSQLInjectionInfosResult() +{} + +void DescribeSQLInjectionInfosResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["SQLInjectionInfo"]; + for (auto value : allItems) + { + SQLInjectionInfo sQLInjectionInfoObject; + sQLInjectionInfoObject.dBName = value["DBName"].asString(); + sQLInjectionInfoObject.sQLText = value["SQLText"].asString(); + sQLInjectionInfoObject.latencyTime = value["LatencyTime"].asString(); + sQLInjectionInfoObject.hostAddress = value["HostAddress"].asString(); + sQLInjectionInfoObject.executeTime = value["ExecuteTime"].asString(); + sQLInjectionInfoObject.accountName = value["AccountName"].asString(); + sQLInjectionInfoObject.effectRowCount = value["EffectRowCount"].asString(); + items_.push_back(sQLInjectionInfoObject); + } + engine_ = value["Engine"].asString(); + totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); + +} + +int DescribeSQLInjectionInfosResult::getTotalRecordCount()const +{ + return totalRecordCount_; +} + +void DescribeSQLInjectionInfosResult::setTotalRecordCount(int totalRecordCount) +{ + totalRecordCount_ = totalRecordCount; +} + +int DescribeSQLInjectionInfosResult::getPageRecordCount()const +{ + return pageRecordCount_; +} + +void DescribeSQLInjectionInfosResult::setPageRecordCount(int pageRecordCount) +{ + pageRecordCount_ = pageRecordCount; +} + +int DescribeSQLInjectionInfosResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeSQLInjectionInfosResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + +std::string DescribeSQLInjectionInfosResult::getEngine()const +{ + return engine_; +} + +void DescribeSQLInjectionInfosResult::setEngine(const std::string& engine) +{ + engine_ = engine; +} + diff --git a/rds/src/model/DescribeSQLLogFilesRequest.cc b/rds/src/model/DescribeSQLLogFilesRequest.cc new file mode 100644 index 000000000..b986e7ec2 --- /dev/null +++ b/rds/src/model/DescribeSQLLogFilesRequest.cc @@ -0,0 +1,127 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeSQLLogFilesRequest::DescribeSQLLogFilesRequest() : + RdsRequest("DescribeSQLLogFiles") +{} + +DescribeSQLLogFilesRequest::~DescribeSQLLogFilesRequest() +{} + +long DescribeSQLLogFilesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeSQLLogFilesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeSQLLogFilesRequest::getFileName()const +{ + return fileName_; +} + +void DescribeSQLLogFilesRequest::setFileName(const std::string& fileName) +{ + fileName_ = fileName; + setParameter("FileName", fileName); +} + +std::string DescribeSQLLogFilesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeSQLLogFilesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeSQLLogFilesRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeSQLLogFilesRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +int DescribeSQLLogFilesRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeSQLLogFilesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeSQLLogFilesRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeSQLLogFilesRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long DescribeSQLLogFilesRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeSQLLogFilesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeSQLLogFilesRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeSQLLogFilesRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeSQLLogFilesRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeSQLLogFilesRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/DescribeSQLLogFilesResult.cc b/rds/src/model/DescribeSQLLogFilesResult.cc new file mode 100644 index 000000000..92fddad62 --- /dev/null +++ b/rds/src/model/DescribeSQLLogFilesResult.cc @@ -0,0 +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 +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeSQLLogFilesResult::DescribeSQLLogFilesResult() : + ServiceResult() +{} + +DescribeSQLLogFilesResult::DescribeSQLLogFilesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSQLLogFilesResult::~DescribeSQLLogFilesResult() +{} + +void DescribeSQLLogFilesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["LogFile"]; + for (auto value : allItems) + { + LogFile logFileObject; + logFileObject.fileID = value["FileID"].asString(); + logFileObject.logStatus = value["LogStatus"].asString(); + logFileObject.logDownloadURL = value["LogDownloadURL"].asString(); + logFileObject.logSize = value["LogSize"].asString(); + logFileObject.logStartTime = value["LogStartTime"].asString(); + logFileObject.logEndTime = value["LogEndTime"].asString(); + items_.push_back(logFileObject); + } + totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); + +} + +int DescribeSQLLogFilesResult::getTotalRecordCount()const +{ + return totalRecordCount_; +} + +void DescribeSQLLogFilesResult::setTotalRecordCount(int totalRecordCount) +{ + totalRecordCount_ = totalRecordCount; +} + +int DescribeSQLLogFilesResult::getPageRecordCount()const +{ + return pageRecordCount_; +} + +void DescribeSQLLogFilesResult::setPageRecordCount(int pageRecordCount) +{ + pageRecordCount_ = pageRecordCount; +} + +int DescribeSQLLogFilesResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeSQLLogFilesResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/rds/src/model/DescribeSQLLogRecordsRequest.cc b/rds/src/model/DescribeSQLLogRecordsRequest.cc new file mode 100644 index 000000000..be38732c8 --- /dev/null +++ b/rds/src/model/DescribeSQLLogRecordsRequest.cc @@ -0,0 +1,204 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeSQLLogRecordsRequest::DescribeSQLLogRecordsRequest() : + RdsRequest("DescribeSQLLogRecords") +{} + +DescribeSQLLogRecordsRequest::~DescribeSQLLogRecordsRequest() +{} + +long DescribeSQLLogRecordsRequest::getSQLId()const +{ + return sQLId_; +} + +void DescribeSQLLogRecordsRequest::setSQLId(long sQLId) +{ + sQLId_ = sQLId; + setParameter("SQLId", std::to_string(sQLId)); +} + +long DescribeSQLLogRecordsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeSQLLogRecordsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeSQLLogRecordsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeSQLLogRecordsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeSQLLogRecordsRequest::getClientToken()const +{ + return clientToken_; +} + +void DescribeSQLLogRecordsRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string DescribeSQLLogRecordsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeSQLLogRecordsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeSQLLogRecordsRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeSQLLogRecordsRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +std::string DescribeSQLLogRecordsRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeSQLLogRecordsRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + +long DescribeSQLLogRecordsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeSQLLogRecordsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeSQLLogRecordsRequest::getQueryKeywords()const +{ + return queryKeywords_; +} + +void DescribeSQLLogRecordsRequest::setQueryKeywords(const std::string& queryKeywords) +{ + queryKeywords_ = queryKeywords; + setParameter("QueryKeywords", queryKeywords); +} + +int DescribeSQLLogRecordsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeSQLLogRecordsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeSQLLogRecordsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeSQLLogRecordsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeSQLLogRecordsRequest::getDatabase()const +{ + return database_; +} + +void DescribeSQLLogRecordsRequest::setDatabase(const std::string& database) +{ + database_ = database; + setParameter("Database", database); +} + +std::string DescribeSQLLogRecordsRequest::getForm()const +{ + return form_; +} + +void DescribeSQLLogRecordsRequest::setForm(const std::string& form) +{ + form_ = form; + setParameter("Form", form); +} + +int DescribeSQLLogRecordsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeSQLLogRecordsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeSQLLogRecordsRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeSQLLogRecordsRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +std::string DescribeSQLLogRecordsRequest::getUser()const +{ + return user_; +} + +void DescribeSQLLogRecordsRequest::setUser(const std::string& user) +{ + user_ = user; + setParameter("User", user); +} + diff --git a/rds/src/model/DescribeSQLLogRecordsResult.cc b/rds/src/model/DescribeSQLLogRecordsResult.cc new file mode 100644 index 000000000..cff031b97 --- /dev/null +++ b/rds/src/model/DescribeSQLLogRecordsResult.cc @@ -0,0 +1,92 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeSQLLogRecordsResult::DescribeSQLLogRecordsResult() : + ServiceResult() +{} + +DescribeSQLLogRecordsResult::DescribeSQLLogRecordsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSQLLogRecordsResult::~DescribeSQLLogRecordsResult() +{} + +void DescribeSQLLogRecordsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["SQLRecord"]; + for (auto value : allItems) + { + SQLRecord sQLRecordObject; + sQLRecordObject.dBName = value["DBName"].asString(); + sQLRecordObject.accountName = value["AccountName"].asString(); + sQLRecordObject.hostAddress = value["HostAddress"].asString(); + sQLRecordObject.sQLText = value["SQLText"].asString(); + sQLRecordObject.totalExecutionTimes = std::stol(value["TotalExecutionTimes"].asString()); + sQLRecordObject.returnRowCounts = std::stol(value["ReturnRowCounts"].asString()); + sQLRecordObject.executeTime = value["ExecuteTime"].asString(); + sQLRecordObject.threadID = value["ThreadID"].asString(); + items_.push_back(sQLRecordObject); + } + totalRecordCount_ = std::stol(value["TotalRecordCount"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); + +} + +long DescribeSQLLogRecordsResult::getTotalRecordCount()const +{ + return totalRecordCount_; +} + +void DescribeSQLLogRecordsResult::setTotalRecordCount(long totalRecordCount) +{ + totalRecordCount_ = totalRecordCount; +} + +int DescribeSQLLogRecordsResult::getPageRecordCount()const +{ + return pageRecordCount_; +} + +void DescribeSQLLogRecordsResult::setPageRecordCount(int pageRecordCount) +{ + pageRecordCount_ = pageRecordCount; +} + +int DescribeSQLLogRecordsResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeSQLLogRecordsResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/rds/src/model/DescribeSQLLogReportListRequest.cc b/rds/src/model/DescribeSQLLogReportListRequest.cc new file mode 100644 index 000000000..42cc10b21 --- /dev/null +++ b/rds/src/model/DescribeSQLLogReportListRequest.cc @@ -0,0 +1,138 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeSQLLogReportListRequest::DescribeSQLLogReportListRequest() : + RdsRequest("DescribeSQLLogReportList") +{} + +DescribeSQLLogReportListRequest::~DescribeSQLLogReportListRequest() +{} + +long DescribeSQLLogReportListRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeSQLLogReportListRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeSQLLogReportListRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeSQLLogReportListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeSQLLogReportListRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeSQLLogReportListRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +int DescribeSQLLogReportListRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeSQLLogReportListRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeSQLLogReportListRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeSQLLogReportListRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +std::string DescribeSQLLogReportListRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeSQLLogReportListRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +std::string DescribeSQLLogReportListRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeSQLLogReportListRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + +long DescribeSQLLogReportListRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeSQLLogReportListRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeSQLLogReportListRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeSQLLogReportListRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeSQLLogReportListRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeSQLLogReportListRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/DescribeSQLLogReportListResult.cc b/rds/src/model/DescribeSQLLogReportListResult.cc new file mode 100644 index 000000000..c9fa9b15c --- /dev/null +++ b/rds/src/model/DescribeSQLLogReportListResult.cc @@ -0,0 +1,102 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeSQLLogReportListResult::DescribeSQLLogReportListResult() : + ServiceResult() +{} + +DescribeSQLLogReportListResult::DescribeSQLLogReportListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSQLLogReportListResult::~DescribeSQLLogReportListResult() +{} + +void DescribeSQLLogReportListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["Item"]; + for (auto value : allItems) + { + Item itemObject; + itemObject.reportTime = value["ReportTime"].asString(); + auto allLatencyTopNItems = value["LatencyTopNItems"]["LatencyTopNItem"]; + for (auto value : allLatencyTopNItems) + { + Item::LatencyTopNItem latencyTopNItemObject; + latencyTopNItemObject.sQLText = value["SQLText"].asString(); + latencyTopNItemObject.avgLatency = std::stol(value["AvgLatency"].asString()); + latencyTopNItemObject.sQLExecuteTimes = std::stol(value["SQLExecuteTimes"].asString()); + itemObject.latencyTopNItems.push_back(latencyTopNItemObject); + } + auto allQPSTopNItems = value["QPSTopNItems"]["QPSTopNItem"]; + for (auto value : allQPSTopNItems) + { + Item::QPSTopNItem qPSTopNItemObject; + qPSTopNItemObject.sQLText = value["SQLText"].asString(); + qPSTopNItemObject.sQLExecuteTimes = std::stol(value["SQLExecuteTimes"].asString()); + itemObject.qPSTopNItems.push_back(qPSTopNItemObject); + } + items_.push_back(itemObject); + } + totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); + +} + +int DescribeSQLLogReportListResult::getTotalRecordCount()const +{ + return totalRecordCount_; +} + +void DescribeSQLLogReportListResult::setTotalRecordCount(int totalRecordCount) +{ + totalRecordCount_ = totalRecordCount; +} + +int DescribeSQLLogReportListResult::getPageRecordCount()const +{ + return pageRecordCount_; +} + +void DescribeSQLLogReportListResult::setPageRecordCount(int pageRecordCount) +{ + pageRecordCount_ = pageRecordCount; +} + +int DescribeSQLLogReportListResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeSQLLogReportListResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/rds/src/model/DescribeSQLLogReportsRequest.cc b/rds/src/model/DescribeSQLLogReportsRequest.cc new file mode 100644 index 000000000..f2a1449c7 --- /dev/null +++ b/rds/src/model/DescribeSQLLogReportsRequest.cc @@ -0,0 +1,138 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeSQLLogReportsRequest::DescribeSQLLogReportsRequest() : + RdsRequest("DescribeSQLLogReports") +{} + +DescribeSQLLogReportsRequest::~DescribeSQLLogReportsRequest() +{} + +long DescribeSQLLogReportsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeSQLLogReportsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeSQLLogReportsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeSQLLogReportsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeSQLLogReportsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeSQLLogReportsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +int DescribeSQLLogReportsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeSQLLogReportsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeSQLLogReportsRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeSQLLogReportsRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +std::string DescribeSQLLogReportsRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeSQLLogReportsRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +std::string DescribeSQLLogReportsRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeSQLLogReportsRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + +long DescribeSQLLogReportsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeSQLLogReportsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeSQLLogReportsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeSQLLogReportsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeSQLLogReportsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeSQLLogReportsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/DescribeSQLLogReportsResult.cc b/rds/src/model/DescribeSQLLogReportsResult.cc new file mode 100644 index 000000000..066ce3cc8 --- /dev/null +++ b/rds/src/model/DescribeSQLLogReportsResult.cc @@ -0,0 +1,102 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeSQLLogReportsResult::DescribeSQLLogReportsResult() : + ServiceResult() +{} + +DescribeSQLLogReportsResult::DescribeSQLLogReportsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSQLLogReportsResult::~DescribeSQLLogReportsResult() +{} + +void DescribeSQLLogReportsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["Item"]; + for (auto value : allItems) + { + Item itemObject; + itemObject.reportTime = value["ReportTime"].asString(); + auto allLatencyTopNItems = value["LatencyTopNItems"]["LatencyTopNItem"]; + for (auto value : allLatencyTopNItems) + { + Item::LatencyTopNItem latencyTopNItemObject; + latencyTopNItemObject.sQLText = value["SQLText"].asString(); + latencyTopNItemObject.avgLatency = std::stol(value["AvgLatency"].asString()); + latencyTopNItemObject.sQLExecuteTimes = std::stol(value["SQLExecuteTimes"].asString()); + itemObject.latencyTopNItems.push_back(latencyTopNItemObject); + } + auto allQPSTopNItems = value["QPSTopNItems"]["QPSTopNItem"]; + for (auto value : allQPSTopNItems) + { + Item::QPSTopNItem qPSTopNItemObject; + qPSTopNItemObject.sQLText = value["SQLText"].asString(); + qPSTopNItemObject.sQLExecuteTimes = std::stol(value["SQLExecuteTimes"].asString()); + itemObject.qPSTopNItems.push_back(qPSTopNItemObject); + } + items_.push_back(itemObject); + } + totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); + +} + +int DescribeSQLLogReportsResult::getTotalRecordCount()const +{ + return totalRecordCount_; +} + +void DescribeSQLLogReportsResult::setTotalRecordCount(int totalRecordCount) +{ + totalRecordCount_ = totalRecordCount; +} + +int DescribeSQLLogReportsResult::getPageRecordCount()const +{ + return pageRecordCount_; +} + +void DescribeSQLLogReportsResult::setPageRecordCount(int pageRecordCount) +{ + pageRecordCount_ = pageRecordCount; +} + +int DescribeSQLLogReportsResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeSQLLogReportsResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/rds/src/model/DescribeSQLReportsRequest.cc b/rds/src/model/DescribeSQLReportsRequest.cc new file mode 100644 index 000000000..d397881ec --- /dev/null +++ b/rds/src/model/DescribeSQLReportsRequest.cc @@ -0,0 +1,138 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeSQLReportsRequest::DescribeSQLReportsRequest() : + RdsRequest("DescribeSQLReports") +{} + +DescribeSQLReportsRequest::~DescribeSQLReportsRequest() +{} + +long DescribeSQLReportsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeSQLReportsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeSQLReportsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeSQLReportsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeSQLReportsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeSQLReportsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +int DescribeSQLReportsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeSQLReportsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeSQLReportsRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeSQLReportsRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +std::string DescribeSQLReportsRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeSQLReportsRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +std::string DescribeSQLReportsRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeSQLReportsRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + +long DescribeSQLReportsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeSQLReportsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeSQLReportsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeSQLReportsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeSQLReportsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeSQLReportsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/DescribeSQLReportsResult.cc b/rds/src/model/DescribeSQLReportsResult.cc new file mode 100644 index 000000000..936f05330 --- /dev/null +++ b/rds/src/model/DescribeSQLReportsResult.cc @@ -0,0 +1,102 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeSQLReportsResult::DescribeSQLReportsResult() : + ServiceResult() +{} + +DescribeSQLReportsResult::DescribeSQLReportsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSQLReportsResult::~DescribeSQLReportsResult() +{} + +void DescribeSQLReportsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["Item"]; + for (auto value : allItems) + { + Item itemObject; + itemObject.reportTime = value["ReportTime"].asString(); + auto allLatencyTopNItems = value["LatencyTopNItems"]["LatencyTopNItem"]; + for (auto value : allLatencyTopNItems) + { + Item::LatencyTopNItem latencyTopNItemObject; + latencyTopNItemObject.sQLText = value["SQLText"].asString(); + latencyTopNItemObject.avgLatency = std::stol(value["AvgLatency"].asString()); + latencyTopNItemObject.sQLExecuteTimes = std::stol(value["SQLExecuteTimes"].asString()); + itemObject.latencyTopNItems.push_back(latencyTopNItemObject); + } + auto allQPSTopNItems = value["QPSTopNItems"]["QPSTopNItem"]; + for (auto value : allQPSTopNItems) + { + Item::QPSTopNItem qPSTopNItemObject; + qPSTopNItemObject.sQLText = value["SQLText"].asString(); + qPSTopNItemObject.sQLExecuteTimes = std::stol(value["SQLExecuteTimes"].asString()); + itemObject.qPSTopNItems.push_back(qPSTopNItemObject); + } + items_.push_back(itemObject); + } + totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); + +} + +int DescribeSQLReportsResult::getTotalRecordCount()const +{ + return totalRecordCount_; +} + +void DescribeSQLReportsResult::setTotalRecordCount(int totalRecordCount) +{ + totalRecordCount_ = totalRecordCount; +} + +int DescribeSQLReportsResult::getPageRecordCount()const +{ + return pageRecordCount_; +} + +void DescribeSQLReportsResult::setPageRecordCount(int pageRecordCount) +{ + pageRecordCount_ = pageRecordCount; +} + +int DescribeSQLReportsResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeSQLReportsResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/rds/src/model/DescribeSlowLogRecordsRequest.cc b/rds/src/model/DescribeSlowLogRecordsRequest.cc new file mode 100644 index 000000000..ad19389e7 --- /dev/null +++ b/rds/src/model/DescribeSlowLogRecordsRequest.cc @@ -0,0 +1,160 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeSlowLogRecordsRequest::DescribeSlowLogRecordsRequest() : + RdsRequest("DescribeSlowLogRecords") +{} + +DescribeSlowLogRecordsRequest::~DescribeSlowLogRecordsRequest() +{} + +long DescribeSlowLogRecordsRequest::getSQLId()const +{ + return sQLId_; +} + +void DescribeSlowLogRecordsRequest::setSQLId(long sQLId) +{ + sQLId_ = sQLId; + setParameter("SQLId", std::to_string(sQLId)); +} + +long DescribeSlowLogRecordsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeSlowLogRecordsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeSlowLogRecordsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeSlowLogRecordsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeSlowLogRecordsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeSlowLogRecordsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeSlowLogRecordsRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeSlowLogRecordsRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +std::string DescribeSlowLogRecordsRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeSlowLogRecordsRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + +long DescribeSlowLogRecordsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeSlowLogRecordsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeSlowLogRecordsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeSlowLogRecordsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeSlowLogRecordsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeSlowLogRecordsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeSlowLogRecordsRequest::getDBName()const +{ + return dBName_; +} + +void DescribeSlowLogRecordsRequest::setDBName(const std::string& dBName) +{ + dBName_ = dBName; + setParameter("DBName", dBName); +} + +int DescribeSlowLogRecordsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeSlowLogRecordsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeSlowLogRecordsRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeSlowLogRecordsRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + diff --git a/rds/src/model/DescribeSlowLogRecordsResult.cc b/rds/src/model/DescribeSlowLogRecordsResult.cc new file mode 100644 index 000000000..854feccd1 --- /dev/null +++ b/rds/src/model/DescribeSlowLogRecordsResult.cc @@ -0,0 +1,103 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeSlowLogRecordsResult::DescribeSlowLogRecordsResult() : + ServiceResult() +{} + +DescribeSlowLogRecordsResult::DescribeSlowLogRecordsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSlowLogRecordsResult::~DescribeSlowLogRecordsResult() +{} + +void DescribeSlowLogRecordsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["SQLSlowRecord"]; + for (auto value : allItems) + { + SQLSlowRecord sQLSlowRecordObject; + sQLSlowRecordObject.hostAddress = value["HostAddress"].asString(); + sQLSlowRecordObject.dBName = value["DBName"].asString(); + sQLSlowRecordObject.sQLText = value["SQLText"].asString(); + sQLSlowRecordObject.queryTimes = std::stol(value["QueryTimes"].asString()); + sQLSlowRecordObject.lockTimes = std::stol(value["LockTimes"].asString()); + sQLSlowRecordObject.parseRowCounts = std::stol(value["ParseRowCounts"].asString()); + sQLSlowRecordObject.returnRowCounts = std::stol(value["ReturnRowCounts"].asString()); + sQLSlowRecordObject.executionStartTime = value["ExecutionStartTime"].asString(); + items_.push_back(sQLSlowRecordObject); + } + engine_ = value["Engine"].asString(); + totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); + +} + +int DescribeSlowLogRecordsResult::getTotalRecordCount()const +{ + return totalRecordCount_; +} + +void DescribeSlowLogRecordsResult::setTotalRecordCount(int totalRecordCount) +{ + totalRecordCount_ = totalRecordCount; +} + +int DescribeSlowLogRecordsResult::getPageRecordCount()const +{ + return pageRecordCount_; +} + +void DescribeSlowLogRecordsResult::setPageRecordCount(int pageRecordCount) +{ + pageRecordCount_ = pageRecordCount; +} + +int DescribeSlowLogRecordsResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeSlowLogRecordsResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + +std::string DescribeSlowLogRecordsResult::getEngine()const +{ + return engine_; +} + +void DescribeSlowLogRecordsResult::setEngine(const std::string& engine) +{ + engine_ = engine; +} + diff --git a/rds/src/model/DescribeSlowLogsRequest.cc b/rds/src/model/DescribeSlowLogsRequest.cc new file mode 100644 index 000000000..f2d9be524 --- /dev/null +++ b/rds/src/model/DescribeSlowLogsRequest.cc @@ -0,0 +1,160 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeSlowLogsRequest::DescribeSlowLogsRequest() : + RdsRequest("DescribeSlowLogs") +{} + +DescribeSlowLogsRequest::~DescribeSlowLogsRequest() +{} + +long DescribeSlowLogsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeSlowLogsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeSlowLogsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeSlowLogsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeSlowLogsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeSlowLogsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeSlowLogsRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeSlowLogsRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +std::string DescribeSlowLogsRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeSlowLogsRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + +long DescribeSlowLogsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeSlowLogsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeSlowLogsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeSlowLogsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeSlowLogsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeSlowLogsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeSlowLogsRequest::getSortKey()const +{ + return sortKey_; +} + +void DescribeSlowLogsRequest::setSortKey(const std::string& sortKey) +{ + sortKey_ = sortKey; + setParameter("SortKey", sortKey); +} + +std::string DescribeSlowLogsRequest::getDBName()const +{ + return dBName_; +} + +void DescribeSlowLogsRequest::setDBName(const std::string& dBName) +{ + dBName_ = dBName; + setParameter("DBName", dBName); +} + +int DescribeSlowLogsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeSlowLogsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeSlowLogsRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeSlowLogsRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + diff --git a/rds/src/model/DescribeSlowLogsResult.cc b/rds/src/model/DescribeSlowLogsResult.cc new file mode 100644 index 000000000..edd27b9d8 --- /dev/null +++ b/rds/src/model/DescribeSlowLogsResult.cc @@ -0,0 +1,137 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeSlowLogsResult::DescribeSlowLogsResult() : + ServiceResult() +{} + +DescribeSlowLogsResult::DescribeSlowLogsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSlowLogsResult::~DescribeSlowLogsResult() +{} + +void DescribeSlowLogsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["SQLSlowLog"]; + for (auto value : allItems) + { + SQLSlowLog sQLSlowLogObject; + sQLSlowLogObject.slowLogId = std::stol(value["SlowLogId"].asString()); + sQLSlowLogObject.sQLId = std::stol(value["SQLId"].asString()); + sQLSlowLogObject.dBName = value["DBName"].asString(); + sQLSlowLogObject.sQLText = value["SQLText"].asString(); + sQLSlowLogObject.mySQLTotalExecutionCounts = std::stol(value["MySQLTotalExecutionCounts"].asString()); + sQLSlowLogObject.mySQLTotalExecutionTimes = std::stol(value["MySQLTotalExecutionTimes"].asString()); + sQLSlowLogObject.totalLockTimes = std::stol(value["TotalLockTimes"].asString()); + sQLSlowLogObject.maxLockTime = std::stol(value["MaxLockTime"].asString()); + sQLSlowLogObject.parseTotalRowCounts = std::stol(value["ParseTotalRowCounts"].asString()); + sQLSlowLogObject.parseMaxRowCount = std::stol(value["ParseMaxRowCount"].asString()); + sQLSlowLogObject.returnTotalRowCounts = std::stol(value["ReturnTotalRowCounts"].asString()); + sQLSlowLogObject.returnMaxRowCount = std::stol(value["ReturnMaxRowCount"].asString()); + sQLSlowLogObject.createTime = value["CreateTime"].asString(); + sQLSlowLogObject.sQLServerTotalExecutionCounts = std::stol(value["SQLServerTotalExecutionCounts"].asString()); + sQLSlowLogObject.sQLServerTotalExecutionTimes = std::stol(value["SQLServerTotalExecutionTimes"].asString()); + sQLSlowLogObject.totalLogicalReadCounts = std::stol(value["TotalLogicalReadCounts"].asString()); + sQLSlowLogObject.totalPhysicalReadCounts = std::stol(value["TotalPhysicalReadCounts"].asString()); + sQLSlowLogObject.reportTime = value["ReportTime"].asString(); + sQLSlowLogObject.maxExecutionTime = std::stol(value["MaxExecutionTime"].asString()); + sQLSlowLogObject.avgExecutionTime = std::stol(value["AvgExecutionTime"].asString()); + items_.push_back(sQLSlowLogObject); + } + engine_ = value["Engine"].asString(); + startTime_ = value["StartTime"].asString(); + endTime_ = value["EndTime"].asString(); + totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); + +} + +int DescribeSlowLogsResult::getTotalRecordCount()const +{ + return totalRecordCount_; +} + +void DescribeSlowLogsResult::setTotalRecordCount(int totalRecordCount) +{ + totalRecordCount_ = totalRecordCount; +} + +int DescribeSlowLogsResult::getPageRecordCount()const +{ + return pageRecordCount_; +} + +void DescribeSlowLogsResult::setPageRecordCount(int pageRecordCount) +{ + pageRecordCount_ = pageRecordCount; +} + +std::string DescribeSlowLogsResult::getEndTime()const +{ + return endTime_; +} + +void DescribeSlowLogsResult::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; +} + +int DescribeSlowLogsResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeSlowLogsResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + +std::string DescribeSlowLogsResult::getStartTime()const +{ + return startTime_; +} + +void DescribeSlowLogsResult::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; +} + +std::string DescribeSlowLogsResult::getEngine()const +{ + return engine_; +} + +void DescribeSlowLogsResult::setEngine(const std::string& engine) +{ + engine_ = engine; +} + diff --git a/rds/src/model/DescribeTagsRequest.cc b/rds/src/model/DescribeTagsRequest.cc new file mode 100644 index 000000000..459ffb16d --- /dev/null +++ b/rds/src/model/DescribeTagsRequest.cc @@ -0,0 +1,138 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeTagsRequest::DescribeTagsRequest() : + RdsRequest("DescribeTags") +{} + +DescribeTagsRequest::~DescribeTagsRequest() +{} + +long DescribeTagsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeTagsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeTagsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeTagsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeTagsRequest::getClientToken()const +{ + return clientToken_; +} + +void DescribeTagsRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string DescribeTagsRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeTagsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeTagsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeTagsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeTagsRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeTagsRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long DescribeTagsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeTagsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeTagsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeTagsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeTagsRequest::getProxyId()const +{ + return proxyId_; +} + +void DescribeTagsRequest::setProxyId(const std::string& proxyId) +{ + proxyId_ = proxyId; + setParameter("ProxyId", proxyId); +} + +std::string DescribeTagsRequest::getTags()const +{ + return tags_; +} + +void DescribeTagsRequest::setTags(const std::string& tags) +{ + tags_ = tags; + setParameter("Tags", tags); +} + diff --git a/rds/src/model/DescribeTagsResult.cc b/rds/src/model/DescribeTagsResult.cc new file mode 100644 index 000000000..8c19d36cb --- /dev/null +++ b/rds/src/model/DescribeTagsResult.cc @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeTagsResult::DescribeTagsResult() : + ServiceResult() +{} + +DescribeTagsResult::DescribeTagsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeTagsResult::~DescribeTagsResult() +{} + +void DescribeTagsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["TagInfos"]; + for (auto value : allItems) + { + TagInfos tagInfosObject; + tagInfosObject.tagKey = value["TagKey"].asString(); + tagInfosObject.tagValue = value["TagValue"].asString(); + auto allDBInstanceIds = value["DBInstanceIds"]["DBInstanceIds"]; + for (auto value : allDBInstanceIds) + tagInfosObject.dBInstanceIds.push_back(value.asString()); + items_.push_back(tagInfosObject); + } + +} + diff --git a/rds/src/model/DescribeTaskInfoRequest.cc b/rds/src/model/DescribeTaskInfoRequest.cc new file mode 100644 index 000000000..ddf895d7e --- /dev/null +++ b/rds/src/model/DescribeTaskInfoRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeTaskInfoRequest::DescribeTaskInfoRequest() : + RdsRequest("DescribeTaskInfo") +{} + +DescribeTaskInfoRequest::~DescribeTaskInfoRequest() +{} + +long DescribeTaskInfoRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeTaskInfoRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeTaskInfoRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeTaskInfoRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeTaskInfoRequest::getClientToken()const +{ + return clientToken_; +} + +void DescribeTaskInfoRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string DescribeTaskInfoRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeTaskInfoRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeTaskInfoRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeTaskInfoRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long DescribeTaskInfoRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeTaskInfoRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +long DescribeTaskInfoRequest::getTaskId()const +{ + return taskId_; +} + +void DescribeTaskInfoRequest::setTaskId(long taskId) +{ + taskId_ = taskId; + setParameter("TaskId", std::to_string(taskId)); +} + +std::string DescribeTaskInfoRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeTaskInfoRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/DescribeTaskInfoResult.cc b/rds/src/model/DescribeTaskInfoResult.cc new file mode 100644 index 000000000..8da09b828 --- /dev/null +++ b/rds/src/model/DescribeTaskInfoResult.cc @@ -0,0 +1,177 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeTaskInfoResult::DescribeTaskInfoResult() : + ServiceResult() +{} + +DescribeTaskInfoResult::DescribeTaskInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeTaskInfoResult::~DescribeTaskInfoResult() +{} + +void DescribeTaskInfoResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + taskId_ = value["TaskId"].asString(); + beginTime_ = value["BeginTime"].asString(); + finishTime_ = value["FinishTime"].asString(); + createTime_ = value["CreateTime"].asString(); + taskAction_ = value["TaskAction"].asString(); + dBName_ = value["DBName"].asString(); + taskErrorCode_ = value["TaskErrorCode"].asString(); + progress_ = value["Progress"].asString(); + expectedFinishTime_ = value["ExpectedFinishTime"].asString(); + taskErrorMessage_ = value["TaskErrorMessage"].asString(); + progressInfo_ = value["ProgressInfo"].asString(); + status_ = value["Status"].asString(); + +} + +std::string DescribeTaskInfoResult::getExpectedFinishTime()const +{ + return expectedFinishTime_; +} + +void DescribeTaskInfoResult::setExpectedFinishTime(const std::string& expectedFinishTime) +{ + expectedFinishTime_ = expectedFinishTime; +} + +std::string DescribeTaskInfoResult::getStatus()const +{ + return status_; +} + +void DescribeTaskInfoResult::setStatus(const std::string& status) +{ + status_ = status; +} + +std::string DescribeTaskInfoResult::getProgress()const +{ + return progress_; +} + +void DescribeTaskInfoResult::setProgress(const std::string& progress) +{ + progress_ = progress; +} + +std::string DescribeTaskInfoResult::getTaskId()const +{ + return taskId_; +} + +void DescribeTaskInfoResult::setTaskId(const std::string& taskId) +{ + taskId_ = taskId; +} + +std::string DescribeTaskInfoResult::getFinishTime()const +{ + return finishTime_; +} + +void DescribeTaskInfoResult::setFinishTime(const std::string& finishTime) +{ + finishTime_ = finishTime; +} + +std::string DescribeTaskInfoResult::getTaskAction()const +{ + return taskAction_; +} + +void DescribeTaskInfoResult::setTaskAction(const std::string& taskAction) +{ + taskAction_ = taskAction; +} + +std::string DescribeTaskInfoResult::getCreateTime()const +{ + return createTime_; +} + +void DescribeTaskInfoResult::setCreateTime(const std::string& createTime) +{ + createTime_ = createTime; +} + +std::string DescribeTaskInfoResult::getProgressInfo()const +{ + return progressInfo_; +} + +void DescribeTaskInfoResult::setProgressInfo(const std::string& progressInfo) +{ + progressInfo_ = progressInfo; +} + +std::string DescribeTaskInfoResult::getBeginTime()const +{ + return beginTime_; +} + +void DescribeTaskInfoResult::setBeginTime(const std::string& beginTime) +{ + beginTime_ = beginTime; +} + +std::string DescribeTaskInfoResult::getDBName()const +{ + return dBName_; +} + +void DescribeTaskInfoResult::setDBName(const std::string& dBName) +{ + dBName_ = dBName; +} + +std::string DescribeTaskInfoResult::getTaskErrorCode()const +{ + return taskErrorCode_; +} + +void DescribeTaskInfoResult::setTaskErrorCode(const std::string& taskErrorCode) +{ + taskErrorCode_ = taskErrorCode; +} + +std::string DescribeTaskInfoResult::getTaskErrorMessage()const +{ + return taskErrorMessage_; +} + +void DescribeTaskInfoResult::setTaskErrorMessage(const std::string& taskErrorMessage) +{ + taskErrorMessage_ = taskErrorMessage; +} + diff --git a/rds/src/model/DescribeTasksRequest.cc b/rds/src/model/DescribeTasksRequest.cc new file mode 100644 index 000000000..6e69b14a7 --- /dev/null +++ b/rds/src/model/DescribeTasksRequest.cc @@ -0,0 +1,160 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeTasksRequest::DescribeTasksRequest() : + RdsRequest("DescribeTasks") +{} + +DescribeTasksRequest::~DescribeTasksRequest() +{} + +long DescribeTasksRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeTasksRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeTasksRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeTasksRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeTasksRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeTasksRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeTasksRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeTasksRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +std::string DescribeTasksRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeTasksRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + +long DescribeTasksRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeTasksRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeTasksRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeTasksRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeTasksRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeTasksRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +int DescribeTasksRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeTasksRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeTasksRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeTasksRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +std::string DescribeTasksRequest::getTaskAction()const +{ + return taskAction_; +} + +void DescribeTasksRequest::setTaskAction(const std::string& taskAction) +{ + taskAction_ = taskAction; + setParameter("TaskAction", taskAction); +} + +std::string DescribeTasksRequest::getStatus()const +{ + return status_; +} + +void DescribeTasksRequest::setStatus(const std::string& status) +{ + status_ = status; + setParameter("Status", status); +} + diff --git a/rds/src/model/DescribeTasksResult.cc b/rds/src/model/DescribeTasksResult.cc new file mode 100644 index 000000000..4d6efc5dd --- /dev/null +++ b/rds/src/model/DescribeTasksResult.cc @@ -0,0 +1,95 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeTasksResult::DescribeTasksResult() : + ServiceResult() +{} + +DescribeTasksResult::DescribeTasksResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeTasksResult::~DescribeTasksResult() +{} + +void DescribeTasksResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["TaskProgressInfo"]; + for (auto value : allItems) + { + TaskProgressInfo taskProgressInfoObject; + taskProgressInfoObject.dBName = value["DBName"].asString(); + taskProgressInfoObject.beginTime = value["BeginTime"].asString(); + taskProgressInfoObject.progressInfo = value["ProgressInfo"].asString(); + taskProgressInfoObject.finishTime = value["FinishTime"].asString(); + taskProgressInfoObject.taskAction = value["TaskAction"].asString(); + taskProgressInfoObject.taskId = value["TaskId"].asString(); + taskProgressInfoObject.progress = value["Progress"].asString(); + taskProgressInfoObject.expectedFinishTime = value["ExpectedFinishTime"].asString(); + taskProgressInfoObject.status = value["Status"].asString(); + taskProgressInfoObject.taskErrorCode = value["TaskErrorCode"].asString(); + taskProgressInfoObject.taskErrorMessage = value["TaskErrorMessage"].asString(); + items_.push_back(taskProgressInfoObject); + } + totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); + +} + +int DescribeTasksResult::getTotalRecordCount()const +{ + return totalRecordCount_; +} + +void DescribeTasksResult::setTotalRecordCount(int totalRecordCount) +{ + totalRecordCount_ = totalRecordCount; +} + +int DescribeTasksResult::getPageRecordCount()const +{ + return pageRecordCount_; +} + +void DescribeTasksResult::setPageRecordCount(int pageRecordCount) +{ + pageRecordCount_ = pageRecordCount; +} + +int DescribeTasksResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeTasksResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/rds/src/model/DescribeVpcZoneNosRequest.cc b/rds/src/model/DescribeVpcZoneNosRequest.cc new file mode 100644 index 000000000..026660928 --- /dev/null +++ b/rds/src/model/DescribeVpcZoneNosRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeVpcZoneNosRequest::DescribeVpcZoneNosRequest() : + RdsRequest("DescribeVpcZoneNos") +{} + +DescribeVpcZoneNosRequest::~DescribeVpcZoneNosRequest() +{} + +long DescribeVpcZoneNosRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeVpcZoneNosRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeVpcZoneNosRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeVpcZoneNosRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeVpcZoneNosRequest::getClientToken()const +{ + return clientToken_; +} + +void DescribeVpcZoneNosRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string DescribeVpcZoneNosRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeVpcZoneNosRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeVpcZoneNosRequest::getZoneId()const +{ + return zoneId_; +} + +void DescribeVpcZoneNosRequest::setZoneId(const std::string& zoneId) +{ + zoneId_ = zoneId; + setParameter("ZoneId", zoneId); +} + +long DescribeVpcZoneNosRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeVpcZoneNosRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeVpcZoneNosRequest::getRegion()const +{ + return region_; +} + +void DescribeVpcZoneNosRequest::setRegion(const std::string& region) +{ + region_ = region; + setParameter("Region", region); +} + +std::string DescribeVpcZoneNosRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeVpcZoneNosRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/DescribeVpcZoneNosResult.cc b/rds/src/model/DescribeVpcZoneNosResult.cc new file mode 100644 index 000000000..c06454dfc --- /dev/null +++ b/rds/src/model/DescribeVpcZoneNosResult.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +DescribeVpcZoneNosResult::DescribeVpcZoneNosResult() : + ServiceResult() +{} + +DescribeVpcZoneNosResult::DescribeVpcZoneNosResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeVpcZoneNosResult::~DescribeVpcZoneNosResult() +{} + +void DescribeVpcZoneNosResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["VpcZoneId"]; + for (auto value : allItems) + { + VpcZoneId vpcZoneIdObject; + vpcZoneIdObject.zoneId = value["ZoneId"].asString(); + vpcZoneIdObject.region = value["Region"].asString(); + vpcZoneIdObject.subDomain = value["SubDomain"].asString(); + items_.push_back(vpcZoneIdObject); + } + +} + diff --git a/rds/src/model/GrantAccountPrivilegeRequest.cc b/rds/src/model/GrantAccountPrivilegeRequest.cc new file mode 100644 index 000000000..3fd96dd29 --- /dev/null +++ b/rds/src/model/GrantAccountPrivilegeRequest.cc @@ -0,0 +1,127 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +GrantAccountPrivilegeRequest::GrantAccountPrivilegeRequest() : + RdsRequest("GrantAccountPrivilege") +{} + +GrantAccountPrivilegeRequest::~GrantAccountPrivilegeRequest() +{} + +long GrantAccountPrivilegeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void GrantAccountPrivilegeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string GrantAccountPrivilegeRequest::getAccountName()const +{ + return accountName_; +} + +void GrantAccountPrivilegeRequest::setAccountName(const std::string& accountName) +{ + accountName_ = accountName; + setParameter("AccountName", accountName); +} + +std::string GrantAccountPrivilegeRequest::getDBName()const +{ + return dBName_; +} + +void GrantAccountPrivilegeRequest::setDBName(const std::string& dBName) +{ + dBName_ = dBName; + setParameter("DBName", dBName); +} + +std::string GrantAccountPrivilegeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void GrantAccountPrivilegeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string GrantAccountPrivilegeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void GrantAccountPrivilegeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string GrantAccountPrivilegeRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void GrantAccountPrivilegeRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long GrantAccountPrivilegeRequest::getOwnerId()const +{ + return ownerId_; +} + +void GrantAccountPrivilegeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string GrantAccountPrivilegeRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void GrantAccountPrivilegeRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string GrantAccountPrivilegeRequest::getAccountPrivilege()const +{ + return accountPrivilege_; +} + +void GrantAccountPrivilegeRequest::setAccountPrivilege(const std::string& accountPrivilege) +{ + accountPrivilege_ = accountPrivilege; + setParameter("AccountPrivilege", accountPrivilege); +} + diff --git a/rds/src/model/GrantAccountPrivilegeResult.cc b/rds/src/model/GrantAccountPrivilegeResult.cc new file mode 100644 index 000000000..d3a2847e7 --- /dev/null +++ b/rds/src/model/GrantAccountPrivilegeResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +GrantAccountPrivilegeResult::GrantAccountPrivilegeResult() : + ServiceResult() +{} + +GrantAccountPrivilegeResult::GrantAccountPrivilegeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GrantAccountPrivilegeResult::~GrantAccountPrivilegeResult() +{} + +void GrantAccountPrivilegeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/GrantOperatorPermissionRequest.cc b/rds/src/model/GrantOperatorPermissionRequest.cc new file mode 100644 index 000000000..77943a884 --- /dev/null +++ b/rds/src/model/GrantOperatorPermissionRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +GrantOperatorPermissionRequest::GrantOperatorPermissionRequest() : + RdsRequest("GrantOperatorPermission") +{} + +GrantOperatorPermissionRequest::~GrantOperatorPermissionRequest() +{} + +std::string GrantOperatorPermissionRequest::getPrivileges()const +{ + return privileges_; +} + +void GrantOperatorPermissionRequest::setPrivileges(const std::string& privileges) +{ + privileges_ = privileges; + setParameter("Privileges", privileges); +} + +long GrantOperatorPermissionRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void GrantOperatorPermissionRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string GrantOperatorPermissionRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void GrantOperatorPermissionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string GrantOperatorPermissionRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void GrantOperatorPermissionRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string GrantOperatorPermissionRequest::getExpiredTime()const +{ + return expiredTime_; +} + +void GrantOperatorPermissionRequest::setExpiredTime(const std::string& expiredTime) +{ + expiredTime_ = expiredTime; + setParameter("ExpiredTime", expiredTime); +} + +std::string GrantOperatorPermissionRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void GrantOperatorPermissionRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long GrantOperatorPermissionRequest::getOwnerId()const +{ + return ownerId_; +} + +void GrantOperatorPermissionRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string GrantOperatorPermissionRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void GrantOperatorPermissionRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/GrantOperatorPermissionResult.cc b/rds/src/model/GrantOperatorPermissionResult.cc new file mode 100644 index 000000000..64598fc68 --- /dev/null +++ b/rds/src/model/GrantOperatorPermissionResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +GrantOperatorPermissionResult::GrantOperatorPermissionResult() : + ServiceResult() +{} + +GrantOperatorPermissionResult::GrantOperatorPermissionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GrantOperatorPermissionResult::~GrantOperatorPermissionResult() +{} + +void GrantOperatorPermissionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/ImportDataForSQLServerRequest.cc b/rds/src/model/ImportDataForSQLServerRequest.cc new file mode 100644 index 000000000..e9c6565cc --- /dev/null +++ b/rds/src/model/ImportDataForSQLServerRequest.cc @@ -0,0 +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. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +ImportDataForSQLServerRequest::ImportDataForSQLServerRequest() : + RdsRequest("ImportDataForSQLServer") +{} + +ImportDataForSQLServerRequest::~ImportDataForSQLServerRequest() +{} + +long ImportDataForSQLServerRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ImportDataForSQLServerRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ImportDataForSQLServerRequest::getFileName()const +{ + return fileName_; +} + +void ImportDataForSQLServerRequest::setFileName(const std::string& fileName) +{ + fileName_ = fileName; + setParameter("FileName", fileName); +} + +std::string ImportDataForSQLServerRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ImportDataForSQLServerRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ImportDataForSQLServerRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ImportDataForSQLServerRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ImportDataForSQLServerRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void ImportDataForSQLServerRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long ImportDataForSQLServerRequest::getOwnerId()const +{ + return ownerId_; +} + +void ImportDataForSQLServerRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ImportDataForSQLServerRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ImportDataForSQLServerRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/ImportDataForSQLServerResult.cc b/rds/src/model/ImportDataForSQLServerResult.cc new file mode 100644 index 000000000..ff7f7bcdf --- /dev/null +++ b/rds/src/model/ImportDataForSQLServerResult.cc @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +ImportDataForSQLServerResult::ImportDataForSQLServerResult() : + ServiceResult() +{} + +ImportDataForSQLServerResult::ImportDataForSQLServerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ImportDataForSQLServerResult::~ImportDataForSQLServerResult() +{} + +void ImportDataForSQLServerResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + importID_ = std::stoi(value["ImportID"].asString()); + +} + +int ImportDataForSQLServerResult::getImportID()const +{ + return importID_; +} + +void ImportDataForSQLServerResult::setImportID(int importID) +{ + importID_ = importID; +} + diff --git a/rds/src/model/ImportDataFromDatabaseRequest.cc b/rds/src/model/ImportDataFromDatabaseRequest.cc new file mode 100644 index 000000000..feba31848 --- /dev/null +++ b/rds/src/model/ImportDataFromDatabaseRequest.cc @@ -0,0 +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 namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +ImportDataFromDatabaseRequest::ImportDataFromDatabaseRequest() : + RdsRequest("ImportDataFromDatabase") +{} + +ImportDataFromDatabaseRequest::~ImportDataFromDatabaseRequest() +{} + +long ImportDataFromDatabaseRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ImportDataFromDatabaseRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ImportDataFromDatabaseRequest::getImportDataType()const +{ + return importDataType_; +} + +void ImportDataFromDatabaseRequest::setImportDataType(const std::string& importDataType) +{ + importDataType_ = importDataType; + setParameter("ImportDataType", importDataType); +} + +std::string ImportDataFromDatabaseRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ImportDataFromDatabaseRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ImportDataFromDatabaseRequest::getIsLockTable()const +{ + return isLockTable_; +} + +void ImportDataFromDatabaseRequest::setIsLockTable(const std::string& isLockTable) +{ + isLockTable_ = isLockTable; + setParameter("IsLockTable", isLockTable); +} + +std::string ImportDataFromDatabaseRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ImportDataFromDatabaseRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ImportDataFromDatabaseRequest::getSourceDatabaseDBNames()const +{ + return sourceDatabaseDBNames_; +} + +void ImportDataFromDatabaseRequest::setSourceDatabaseDBNames(const std::string& sourceDatabaseDBNames) +{ + sourceDatabaseDBNames_ = sourceDatabaseDBNames; + setParameter("SourceDatabaseDBNames", sourceDatabaseDBNames); +} + +std::string ImportDataFromDatabaseRequest::getSourceDatabaseIp()const +{ + return sourceDatabaseIp_; +} + +void ImportDataFromDatabaseRequest::setSourceDatabaseIp(const std::string& sourceDatabaseIp) +{ + sourceDatabaseIp_ = sourceDatabaseIp; + setParameter("SourceDatabaseIp", sourceDatabaseIp); +} + +long ImportDataFromDatabaseRequest::getOwnerId()const +{ + return ownerId_; +} + +void ImportDataFromDatabaseRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ImportDataFromDatabaseRequest::getSourceDatabasePassword()const +{ + return sourceDatabasePassword_; +} + +void ImportDataFromDatabaseRequest::setSourceDatabasePassword(const std::string& sourceDatabasePassword) +{ + sourceDatabasePassword_ = sourceDatabasePassword; + setParameter("SourceDatabasePassword", sourceDatabasePassword); +} + +std::string ImportDataFromDatabaseRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ImportDataFromDatabaseRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string ImportDataFromDatabaseRequest::getSourceDatabasePort()const +{ + return sourceDatabasePort_; +} + +void ImportDataFromDatabaseRequest::setSourceDatabasePort(const std::string& sourceDatabasePort) +{ + sourceDatabasePort_ = sourceDatabasePort; + setParameter("SourceDatabasePort", sourceDatabasePort); +} + +std::string ImportDataFromDatabaseRequest::getSourceDatabaseUserName()const +{ + return sourceDatabaseUserName_; +} + +void ImportDataFromDatabaseRequest::setSourceDatabaseUserName(const std::string& sourceDatabaseUserName) +{ + sourceDatabaseUserName_ = sourceDatabaseUserName; + setParameter("SourceDatabaseUserName", sourceDatabaseUserName); +} + +std::string ImportDataFromDatabaseRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void ImportDataFromDatabaseRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + diff --git a/rds/src/model/ImportDataFromDatabaseResult.cc b/rds/src/model/ImportDataFromDatabaseResult.cc new file mode 100644 index 000000000..37c146fff --- /dev/null +++ b/rds/src/model/ImportDataFromDatabaseResult.cc @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +ImportDataFromDatabaseResult::ImportDataFromDatabaseResult() : + ServiceResult() +{} + +ImportDataFromDatabaseResult::ImportDataFromDatabaseResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ImportDataFromDatabaseResult::~ImportDataFromDatabaseResult() +{} + +void ImportDataFromDatabaseResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + importId_ = std::stoi(value["ImportId"].asString()); + +} + +int ImportDataFromDatabaseResult::getImportId()const +{ + return importId_; +} + +void ImportDataFromDatabaseResult::setImportId(int importId) +{ + importId_ = importId; +} + diff --git a/rds/src/model/ImportDatabaseBetweenInstancesRequest.cc b/rds/src/model/ImportDatabaseBetweenInstancesRequest.cc new file mode 100644 index 000000000..efcaea051 --- /dev/null +++ b/rds/src/model/ImportDatabaseBetweenInstancesRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +ImportDatabaseBetweenInstancesRequest::ImportDatabaseBetweenInstancesRequest() : + RdsRequest("ImportDatabaseBetweenInstances") +{} + +ImportDatabaseBetweenInstancesRequest::~ImportDatabaseBetweenInstancesRequest() +{} + +long ImportDatabaseBetweenInstancesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ImportDatabaseBetweenInstancesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ImportDatabaseBetweenInstancesRequest::getSourceDBInstanceId()const +{ + return sourceDBInstanceId_; +} + +void ImportDatabaseBetweenInstancesRequest::setSourceDBInstanceId(const std::string& sourceDBInstanceId) +{ + sourceDBInstanceId_ = sourceDBInstanceId; + setParameter("SourceDBInstanceId", sourceDBInstanceId); +} + +std::string ImportDatabaseBetweenInstancesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ImportDatabaseBetweenInstancesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ImportDatabaseBetweenInstancesRequest::getDBInfo()const +{ + return dBInfo_; +} + +void ImportDatabaseBetweenInstancesRequest::setDBInfo(const std::string& dBInfo) +{ + dBInfo_ = dBInfo; + setParameter("DBInfo", dBInfo); +} + +std::string ImportDatabaseBetweenInstancesRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ImportDatabaseBetweenInstancesRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ImportDatabaseBetweenInstancesRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void ImportDatabaseBetweenInstancesRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long ImportDatabaseBetweenInstancesRequest::getOwnerId()const +{ + return ownerId_; +} + +void ImportDatabaseBetweenInstancesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ImportDatabaseBetweenInstancesRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ImportDatabaseBetweenInstancesRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/ImportDatabaseBetweenInstancesResult.cc b/rds/src/model/ImportDatabaseBetweenInstancesResult.cc new file mode 100644 index 000000000..fd07d97fc --- /dev/null +++ b/rds/src/model/ImportDatabaseBetweenInstancesResult.cc @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +ImportDatabaseBetweenInstancesResult::ImportDatabaseBetweenInstancesResult() : + ServiceResult() +{} + +ImportDatabaseBetweenInstancesResult::ImportDatabaseBetweenInstancesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ImportDatabaseBetweenInstancesResult::~ImportDatabaseBetweenInstancesResult() +{} + +void ImportDatabaseBetweenInstancesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + importId_ = value["ImportId"].asString(); + +} + +std::string ImportDatabaseBetweenInstancesResult::getImportId()const +{ + return importId_; +} + +void ImportDatabaseBetweenInstancesResult::setImportId(const std::string& importId) +{ + importId_ = importId; +} + diff --git a/rds/src/model/LoginDBInstancefromCloudDBARequest.cc b/rds/src/model/LoginDBInstancefromCloudDBARequest.cc new file mode 100644 index 000000000..7b64f7ac3 --- /dev/null +++ b/rds/src/model/LoginDBInstancefromCloudDBARequest.cc @@ -0,0 +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 namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +LoginDBInstancefromCloudDBARequest::LoginDBInstancefromCloudDBARequest() : + RdsRequest("LoginDBInstancefromCloudDBA") +{} + +LoginDBInstancefromCloudDBARequest::~LoginDBInstancefromCloudDBARequest() +{} + +std::string LoginDBInstancefromCloudDBARequest::getServiceRequestParam()const +{ + return serviceRequestParam_; +} + +void LoginDBInstancefromCloudDBARequest::setServiceRequestParam(const std::string& serviceRequestParam) +{ + serviceRequestParam_ = serviceRequestParam; + setParameter("ServiceRequestParam", serviceRequestParam); +} + +std::string LoginDBInstancefromCloudDBARequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void LoginDBInstancefromCloudDBARequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +std::string LoginDBInstancefromCloudDBARequest::getServiceRequestType()const +{ + return serviceRequestType_; +} + +void LoginDBInstancefromCloudDBARequest::setServiceRequestType(const std::string& serviceRequestType) +{ + serviceRequestType_ = serviceRequestType; + setParameter("ServiceRequestType", serviceRequestType); +} + +std::string LoginDBInstancefromCloudDBARequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void LoginDBInstancefromCloudDBARequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/LoginDBInstancefromCloudDBAResult.cc b/rds/src/model/LoginDBInstancefromCloudDBAResult.cc new file mode 100644 index 000000000..33a1921f2 --- /dev/null +++ b/rds/src/model/LoginDBInstancefromCloudDBAResult.cc @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +LoginDBInstancefromCloudDBAResult::LoginDBInstancefromCloudDBAResult() : + ServiceResult() +{} + +LoginDBInstancefromCloudDBAResult::LoginDBInstancefromCloudDBAResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +LoginDBInstancefromCloudDBAResult::~LoginDBInstancefromCloudDBAResult() +{} + +void LoginDBInstancefromCloudDBAResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + listData_ = value["ListData"].asString(); + attrData_ = value["AttrData"].asString(); + +} + +std::string LoginDBInstancefromCloudDBAResult::getAttrData()const +{ + return attrData_; +} + +void LoginDBInstancefromCloudDBAResult::setAttrData(const std::string& attrData) +{ + attrData_ = attrData; +} + +std::string LoginDBInstancefromCloudDBAResult::getListData()const +{ + return listData_; +} + +void LoginDBInstancefromCloudDBAResult::setListData(const std::string& listData) +{ + listData_ = listData; +} + diff --git a/rds/src/model/MigrateToOtherZoneRequest.cc b/rds/src/model/MigrateToOtherZoneRequest.cc new file mode 100644 index 000000000..5dc93db6e --- /dev/null +++ b/rds/src/model/MigrateToOtherZoneRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +MigrateToOtherZoneRequest::MigrateToOtherZoneRequest() : + RdsRequest("MigrateToOtherZone") +{} + +MigrateToOtherZoneRequest::~MigrateToOtherZoneRequest() +{} + +long MigrateToOtherZoneRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void MigrateToOtherZoneRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string MigrateToOtherZoneRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void MigrateToOtherZoneRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string MigrateToOtherZoneRequest::getEffectiveTime()const +{ + return effectiveTime_; +} + +void MigrateToOtherZoneRequest::setEffectiveTime(const std::string& effectiveTime) +{ + effectiveTime_ = effectiveTime; + setParameter("EffectiveTime", effectiveTime); +} + +std::string MigrateToOtherZoneRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void MigrateToOtherZoneRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string MigrateToOtherZoneRequest::getZoneId()const +{ + return zoneId_; +} + +void MigrateToOtherZoneRequest::setZoneId(const std::string& zoneId) +{ + zoneId_ = zoneId; + setParameter("ZoneId", zoneId); +} + +std::string MigrateToOtherZoneRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void MigrateToOtherZoneRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long MigrateToOtherZoneRequest::getOwnerId()const +{ + return ownerId_; +} + +void MigrateToOtherZoneRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string MigrateToOtherZoneRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void MigrateToOtherZoneRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/MigrateToOtherZoneResult.cc b/rds/src/model/MigrateToOtherZoneResult.cc new file mode 100644 index 000000000..8eb40a2e6 --- /dev/null +++ b/rds/src/model/MigrateToOtherZoneResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +MigrateToOtherZoneResult::MigrateToOtherZoneResult() : + ServiceResult() +{} + +MigrateToOtherZoneResult::MigrateToOtherZoneResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +MigrateToOtherZoneResult::~MigrateToOtherZoneResult() +{} + +void MigrateToOtherZoneResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/ModifyAccountDescriptionRequest.cc b/rds/src/model/ModifyAccountDescriptionRequest.cc new file mode 100644 index 000000000..81db7bfc4 --- /dev/null +++ b/rds/src/model/ModifyAccountDescriptionRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifyAccountDescriptionRequest::ModifyAccountDescriptionRequest() : + RdsRequest("ModifyAccountDescription") +{} + +ModifyAccountDescriptionRequest::~ModifyAccountDescriptionRequest() +{} + +long ModifyAccountDescriptionRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyAccountDescriptionRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyAccountDescriptionRequest::getAccountName()const +{ + return accountName_; +} + +void ModifyAccountDescriptionRequest::setAccountName(const std::string& accountName) +{ + accountName_ = accountName; + setParameter("AccountName", accountName); +} + +std::string ModifyAccountDescriptionRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyAccountDescriptionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyAccountDescriptionRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyAccountDescriptionRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyAccountDescriptionRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void ModifyAccountDescriptionRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long ModifyAccountDescriptionRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyAccountDescriptionRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyAccountDescriptionRequest::getAccountDescription()const +{ + return accountDescription_; +} + +void ModifyAccountDescriptionRequest::setAccountDescription(const std::string& accountDescription) +{ + accountDescription_ = accountDescription; + setParameter("AccountDescription", accountDescription); +} + +std::string ModifyAccountDescriptionRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyAccountDescriptionRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/ModifyAccountDescriptionResult.cc b/rds/src/model/ModifyAccountDescriptionResult.cc new file mode 100644 index 000000000..8b8222424 --- /dev/null +++ b/rds/src/model/ModifyAccountDescriptionResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifyAccountDescriptionResult::ModifyAccountDescriptionResult() : + ServiceResult() +{} + +ModifyAccountDescriptionResult::ModifyAccountDescriptionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyAccountDescriptionResult::~ModifyAccountDescriptionResult() +{} + +void ModifyAccountDescriptionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/ModifyBackupPolicyRequest.cc b/rds/src/model/ModifyBackupPolicyRequest.cc new file mode 100644 index 000000000..324a13049 --- /dev/null +++ b/rds/src/model/ModifyBackupPolicyRequest.cc @@ -0,0 +1,149 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifyBackupPolicyRequest::ModifyBackupPolicyRequest() : + RdsRequest("ModifyBackupPolicy") +{} + +ModifyBackupPolicyRequest::~ModifyBackupPolicyRequest() +{} + +std::string ModifyBackupPolicyRequest::getPreferredBackupTime()const +{ + return preferredBackupTime_; +} + +void ModifyBackupPolicyRequest::setPreferredBackupTime(const std::string& preferredBackupTime) +{ + preferredBackupTime_ = preferredBackupTime; + setParameter("PreferredBackupTime", preferredBackupTime); +} + +std::string ModifyBackupPolicyRequest::getPreferredBackupPeriod()const +{ + return preferredBackupPeriod_; +} + +void ModifyBackupPolicyRequest::setPreferredBackupPeriod(const std::string& preferredBackupPeriod) +{ + preferredBackupPeriod_ = preferredBackupPeriod; + setParameter("PreferredBackupPeriod", preferredBackupPeriod); +} + +std::string ModifyBackupPolicyRequest::getBackupRetentionPeriod()const +{ + return backupRetentionPeriod_; +} + +void ModifyBackupPolicyRequest::setBackupRetentionPeriod(const std::string& backupRetentionPeriod) +{ + backupRetentionPeriod_ = backupRetentionPeriod; + setParameter("BackupRetentionPeriod", backupRetentionPeriod); +} + +long ModifyBackupPolicyRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyBackupPolicyRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyBackupPolicyRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyBackupPolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyBackupPolicyRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyBackupPolicyRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyBackupPolicyRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void ModifyBackupPolicyRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +std::string ModifyBackupPolicyRequest::getBackupLog()const +{ + return backupLog_; +} + +void ModifyBackupPolicyRequest::setBackupLog(const std::string& backupLog) +{ + backupLog_ = backupLog; + setParameter("BackupLog", backupLog); +} + +long ModifyBackupPolicyRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyBackupPolicyRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyBackupPolicyRequest::getLogBackupRetentionPeriod()const +{ + return logBackupRetentionPeriod_; +} + +void ModifyBackupPolicyRequest::setLogBackupRetentionPeriod(const std::string& logBackupRetentionPeriod) +{ + logBackupRetentionPeriod_ = logBackupRetentionPeriod; + setParameter("LogBackupRetentionPeriod", logBackupRetentionPeriod); +} + +std::string ModifyBackupPolicyRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyBackupPolicyRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/ModifyBackupPolicyResult.cc b/rds/src/model/ModifyBackupPolicyResult.cc new file mode 100644 index 000000000..2ec05cffa --- /dev/null +++ b/rds/src/model/ModifyBackupPolicyResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifyBackupPolicyResult::ModifyBackupPolicyResult() : + ServiceResult() +{} + +ModifyBackupPolicyResult::ModifyBackupPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyBackupPolicyResult::~ModifyBackupPolicyResult() +{} + +void ModifyBackupPolicyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/ModifyDBDescriptionRequest.cc b/rds/src/model/ModifyDBDescriptionRequest.cc new file mode 100644 index 000000000..be3da0ee1 --- /dev/null +++ b/rds/src/model/ModifyDBDescriptionRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifyDBDescriptionRequest::ModifyDBDescriptionRequest() : + RdsRequest("ModifyDBDescription") +{} + +ModifyDBDescriptionRequest::~ModifyDBDescriptionRequest() +{} + +long ModifyDBDescriptionRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyDBDescriptionRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyDBDescriptionRequest::getDBName()const +{ + return dBName_; +} + +void ModifyDBDescriptionRequest::setDBName(const std::string& dBName) +{ + dBName_ = dBName; + setParameter("DBName", dBName); +} + +std::string ModifyDBDescriptionRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyDBDescriptionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyDBDescriptionRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyDBDescriptionRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyDBDescriptionRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void ModifyDBDescriptionRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +std::string ModifyDBDescriptionRequest::getDBDescription()const +{ + return dBDescription_; +} + +void ModifyDBDescriptionRequest::setDBDescription(const std::string& dBDescription) +{ + dBDescription_ = dBDescription; + setParameter("DBDescription", dBDescription); +} + +long ModifyDBDescriptionRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyDBDescriptionRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyDBDescriptionRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyDBDescriptionRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/ModifyDBDescriptionResult.cc b/rds/src/model/ModifyDBDescriptionResult.cc new file mode 100644 index 000000000..ef43e1163 --- /dev/null +++ b/rds/src/model/ModifyDBDescriptionResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifyDBDescriptionResult::ModifyDBDescriptionResult() : + ServiceResult() +{} + +ModifyDBDescriptionResult::ModifyDBDescriptionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDBDescriptionResult::~ModifyDBDescriptionResult() +{} + +void ModifyDBDescriptionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/ModifyDBInstanceConnectionModeRequest.cc b/rds/src/model/ModifyDBInstanceConnectionModeRequest.cc new file mode 100644 index 000000000..89a80cf87 --- /dev/null +++ b/rds/src/model/ModifyDBInstanceConnectionModeRequest.cc @@ -0,0 +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. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifyDBInstanceConnectionModeRequest::ModifyDBInstanceConnectionModeRequest() : + RdsRequest("ModifyDBInstanceConnectionMode") +{} + +ModifyDBInstanceConnectionModeRequest::~ModifyDBInstanceConnectionModeRequest() +{} + +std::string ModifyDBInstanceConnectionModeRequest::getConnectionMode()const +{ + return connectionMode_; +} + +void ModifyDBInstanceConnectionModeRequest::setConnectionMode(const std::string& connectionMode) +{ + connectionMode_ = connectionMode; + setParameter("ConnectionMode", connectionMode); +} + +long ModifyDBInstanceConnectionModeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyDBInstanceConnectionModeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyDBInstanceConnectionModeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyDBInstanceConnectionModeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyDBInstanceConnectionModeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyDBInstanceConnectionModeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyDBInstanceConnectionModeRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void ModifyDBInstanceConnectionModeRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long ModifyDBInstanceConnectionModeRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyDBInstanceConnectionModeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyDBInstanceConnectionModeRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyDBInstanceConnectionModeRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/ModifyDBInstanceConnectionModeResult.cc b/rds/src/model/ModifyDBInstanceConnectionModeResult.cc new file mode 100644 index 000000000..f013379d0 --- /dev/null +++ b/rds/src/model/ModifyDBInstanceConnectionModeResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifyDBInstanceConnectionModeResult::ModifyDBInstanceConnectionModeResult() : + ServiceResult() +{} + +ModifyDBInstanceConnectionModeResult::ModifyDBInstanceConnectionModeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDBInstanceConnectionModeResult::~ModifyDBInstanceConnectionModeResult() +{} + +void ModifyDBInstanceConnectionModeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/ModifyDBInstanceConnectionStringRequest.cc b/rds/src/model/ModifyDBInstanceConnectionStringRequest.cc new file mode 100644 index 000000000..87c2317cc --- /dev/null +++ b/rds/src/model/ModifyDBInstanceConnectionStringRequest.cc @@ -0,0 +1,127 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifyDBInstanceConnectionStringRequest::ModifyDBInstanceConnectionStringRequest() : + RdsRequest("ModifyDBInstanceConnectionString") +{} + +ModifyDBInstanceConnectionStringRequest::~ModifyDBInstanceConnectionStringRequest() +{} + +long ModifyDBInstanceConnectionStringRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyDBInstanceConnectionStringRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyDBInstanceConnectionStringRequest::getConnectionStringPrefix()const +{ + return connectionStringPrefix_; +} + +void ModifyDBInstanceConnectionStringRequest::setConnectionStringPrefix(const std::string& connectionStringPrefix) +{ + connectionStringPrefix_ = connectionStringPrefix; + setParameter("ConnectionStringPrefix", connectionStringPrefix); +} + +std::string ModifyDBInstanceConnectionStringRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyDBInstanceConnectionStringRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyDBInstanceConnectionStringRequest::getPort()const +{ + return port_; +} + +void ModifyDBInstanceConnectionStringRequest::setPort(const std::string& port) +{ + port_ = port; + setParameter("Port", port); +} + +std::string ModifyDBInstanceConnectionStringRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyDBInstanceConnectionStringRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyDBInstanceConnectionStringRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void ModifyDBInstanceConnectionStringRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long ModifyDBInstanceConnectionStringRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyDBInstanceConnectionStringRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyDBInstanceConnectionStringRequest::getCurrentConnectionString()const +{ + return currentConnectionString_; +} + +void ModifyDBInstanceConnectionStringRequest::setCurrentConnectionString(const std::string& currentConnectionString) +{ + currentConnectionString_ = currentConnectionString; + setParameter("CurrentConnectionString", currentConnectionString); +} + +std::string ModifyDBInstanceConnectionStringRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyDBInstanceConnectionStringRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/ModifyDBInstanceConnectionStringResult.cc b/rds/src/model/ModifyDBInstanceConnectionStringResult.cc new file mode 100644 index 000000000..b9576f415 --- /dev/null +++ b/rds/src/model/ModifyDBInstanceConnectionStringResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifyDBInstanceConnectionStringResult::ModifyDBInstanceConnectionStringResult() : + ServiceResult() +{} + +ModifyDBInstanceConnectionStringResult::ModifyDBInstanceConnectionStringResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDBInstanceConnectionStringResult::~ModifyDBInstanceConnectionStringResult() +{} + +void ModifyDBInstanceConnectionStringResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/ModifyDBInstanceDescriptionRequest.cc b/rds/src/model/ModifyDBInstanceDescriptionRequest.cc new file mode 100644 index 000000000..062c647e3 --- /dev/null +++ b/rds/src/model/ModifyDBInstanceDescriptionRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifyDBInstanceDescriptionRequest::ModifyDBInstanceDescriptionRequest() : + RdsRequest("ModifyDBInstanceDescription") +{} + +ModifyDBInstanceDescriptionRequest::~ModifyDBInstanceDescriptionRequest() +{} + +long ModifyDBInstanceDescriptionRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyDBInstanceDescriptionRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyDBInstanceDescriptionRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyDBInstanceDescriptionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyDBInstanceDescriptionRequest::getClientToken()const +{ + return clientToken_; +} + +void ModifyDBInstanceDescriptionRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string ModifyDBInstanceDescriptionRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyDBInstanceDescriptionRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyDBInstanceDescriptionRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void ModifyDBInstanceDescriptionRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +std::string ModifyDBInstanceDescriptionRequest::getDBInstanceDescription()const +{ + return dBInstanceDescription_; +} + +void ModifyDBInstanceDescriptionRequest::setDBInstanceDescription(const std::string& dBInstanceDescription) +{ + dBInstanceDescription_ = dBInstanceDescription; + setParameter("DBInstanceDescription", dBInstanceDescription); +} + +long ModifyDBInstanceDescriptionRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyDBInstanceDescriptionRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyDBInstanceDescriptionRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyDBInstanceDescriptionRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/ModifyDBInstanceDescriptionResult.cc b/rds/src/model/ModifyDBInstanceDescriptionResult.cc new file mode 100644 index 000000000..06afd5cde --- /dev/null +++ b/rds/src/model/ModifyDBInstanceDescriptionResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifyDBInstanceDescriptionResult::ModifyDBInstanceDescriptionResult() : + ServiceResult() +{} + +ModifyDBInstanceDescriptionResult::ModifyDBInstanceDescriptionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDBInstanceDescriptionResult::~ModifyDBInstanceDescriptionResult() +{} + +void ModifyDBInstanceDescriptionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/ModifyDBInstanceECSSGRelationRequest.cc b/rds/src/model/ModifyDBInstanceECSSGRelationRequest.cc new file mode 100644 index 000000000..6d20d4243 --- /dev/null +++ b/rds/src/model/ModifyDBInstanceECSSGRelationRequest.cc @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifyDBInstanceECSSGRelationRequest::ModifyDBInstanceECSSGRelationRequest() : + RdsRequest("ModifyDBInstanceECSSGRelation") +{} + +ModifyDBInstanceECSSGRelationRequest::~ModifyDBInstanceECSSGRelationRequest() +{} + +long ModifyDBInstanceECSSGRelationRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyDBInstanceECSSGRelationRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyDBInstanceECSSGRelationRequest::getEcsSecurityGroupId()const +{ + return ecsSecurityGroupId_; +} + +void ModifyDBInstanceECSSGRelationRequest::setEcsSecurityGroupId(const std::string& ecsSecurityGroupId) +{ + ecsSecurityGroupId_ = ecsSecurityGroupId; + setParameter("EcsSecurityGroupId", ecsSecurityGroupId); +} + +std::string ModifyDBInstanceECSSGRelationRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyDBInstanceECSSGRelationRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyDBInstanceECSSGRelationRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void ModifyDBInstanceECSSGRelationRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long ModifyDBInstanceECSSGRelationRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyDBInstanceECSSGRelationRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyDBInstanceECSSGRelationRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyDBInstanceECSSGRelationRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/ModifyDBInstanceECSSGRelationResult.cc b/rds/src/model/ModifyDBInstanceECSSGRelationResult.cc new file mode 100644 index 000000000..d6153da7b --- /dev/null +++ b/rds/src/model/ModifyDBInstanceECSSGRelationResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifyDBInstanceECSSGRelationResult::ModifyDBInstanceECSSGRelationResult() : + ServiceResult() +{} + +ModifyDBInstanceECSSGRelationResult::ModifyDBInstanceECSSGRelationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDBInstanceECSSGRelationResult::~ModifyDBInstanceECSSGRelationResult() +{} + +void ModifyDBInstanceECSSGRelationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["RdsEcsSecurityGroupRel"]; + for (auto value : allItems) + { + RdsEcsSecurityGroupRel rdsEcsSecurityGroupRelObject; + rdsEcsSecurityGroupRelObject.regionId = value["RegionId"].asString(); + rdsEcsSecurityGroupRelObject.securityGroupId = value["SecurityGroupId"].asString(); + rdsEcsSecurityGroupRelObject.netType = value["NetType"].asString(); + items_.push_back(rdsEcsSecurityGroupRelObject); + } + dBInstanceName_ = value["DBInstanceName"].asString(); + +} + +std::string ModifyDBInstanceECSSGRelationResult::getDBInstanceName()const +{ + return dBInstanceName_; +} + +void ModifyDBInstanceECSSGRelationResult::setDBInstanceName(const std::string& dBInstanceName) +{ + dBInstanceName_ = dBInstanceName; +} + diff --git a/rds/src/model/ModifyDBInstanceHAConfigRequest.cc b/rds/src/model/ModifyDBInstanceHAConfigRequest.cc new file mode 100644 index 000000000..4025f0593 --- /dev/null +++ b/rds/src/model/ModifyDBInstanceHAConfigRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifyDBInstanceHAConfigRequest::ModifyDBInstanceHAConfigRequest() : + RdsRequest("ModifyDBInstanceHAConfig") +{} + +ModifyDBInstanceHAConfigRequest::~ModifyDBInstanceHAConfigRequest() +{} + +long ModifyDBInstanceHAConfigRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyDBInstanceHAConfigRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyDBInstanceHAConfigRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyDBInstanceHAConfigRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyDBInstanceHAConfigRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyDBInstanceHAConfigRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyDBInstanceHAConfigRequest::getSyncMode()const +{ + return syncMode_; +} + +void ModifyDBInstanceHAConfigRequest::setSyncMode(const std::string& syncMode) +{ + syncMode_ = syncMode; + setParameter("SyncMode", syncMode); +} + +std::string ModifyDBInstanceHAConfigRequest::getDbInstanceId()const +{ + return dbInstanceId_; +} + +void ModifyDBInstanceHAConfigRequest::setDbInstanceId(const std::string& dbInstanceId) +{ + dbInstanceId_ = dbInstanceId; + setParameter("DbInstanceId", dbInstanceId); +} + +long ModifyDBInstanceHAConfigRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyDBInstanceHAConfigRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyDBInstanceHAConfigRequest::getHAMode()const +{ + return hAMode_; +} + +void ModifyDBInstanceHAConfigRequest::setHAMode(const std::string& hAMode) +{ + hAMode_ = hAMode; + setParameter("HAMode", hAMode); +} + +std::string ModifyDBInstanceHAConfigRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyDBInstanceHAConfigRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/ModifyDBInstanceHAConfigResult.cc b/rds/src/model/ModifyDBInstanceHAConfigResult.cc new file mode 100644 index 000000000..597639c84 --- /dev/null +++ b/rds/src/model/ModifyDBInstanceHAConfigResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifyDBInstanceHAConfigResult::ModifyDBInstanceHAConfigResult() : + ServiceResult() +{} + +ModifyDBInstanceHAConfigResult::ModifyDBInstanceHAConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDBInstanceHAConfigResult::~ModifyDBInstanceHAConfigResult() +{} + +void ModifyDBInstanceHAConfigResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/ModifyDBInstanceMaintainTimeRequest.cc b/rds/src/model/ModifyDBInstanceMaintainTimeRequest.cc new file mode 100644 index 000000000..a3c743032 --- /dev/null +++ b/rds/src/model/ModifyDBInstanceMaintainTimeRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifyDBInstanceMaintainTimeRequest::ModifyDBInstanceMaintainTimeRequest() : + RdsRequest("ModifyDBInstanceMaintainTime") +{} + +ModifyDBInstanceMaintainTimeRequest::~ModifyDBInstanceMaintainTimeRequest() +{} + +std::string ModifyDBInstanceMaintainTimeRequest::getMaintainTime()const +{ + return maintainTime_; +} + +void ModifyDBInstanceMaintainTimeRequest::setMaintainTime(const std::string& maintainTime) +{ + maintainTime_ = maintainTime; + setParameter("MaintainTime", maintainTime); +} + +long ModifyDBInstanceMaintainTimeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyDBInstanceMaintainTimeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyDBInstanceMaintainTimeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyDBInstanceMaintainTimeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyDBInstanceMaintainTimeRequest::getClientToken()const +{ + return clientToken_; +} + +void ModifyDBInstanceMaintainTimeRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string ModifyDBInstanceMaintainTimeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyDBInstanceMaintainTimeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyDBInstanceMaintainTimeRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void ModifyDBInstanceMaintainTimeRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long ModifyDBInstanceMaintainTimeRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyDBInstanceMaintainTimeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyDBInstanceMaintainTimeRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyDBInstanceMaintainTimeRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/ModifyDBInstanceMaintainTimeResult.cc b/rds/src/model/ModifyDBInstanceMaintainTimeResult.cc new file mode 100644 index 000000000..f9826b4ec --- /dev/null +++ b/rds/src/model/ModifyDBInstanceMaintainTimeResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifyDBInstanceMaintainTimeResult::ModifyDBInstanceMaintainTimeResult() : + ServiceResult() +{} + +ModifyDBInstanceMaintainTimeResult::ModifyDBInstanceMaintainTimeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDBInstanceMaintainTimeResult::~ModifyDBInstanceMaintainTimeResult() +{} + +void ModifyDBInstanceMaintainTimeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/ModifyDBInstanceMonitorRequest.cc b/rds/src/model/ModifyDBInstanceMonitorRequest.cc new file mode 100644 index 000000000..62ae3b984 --- /dev/null +++ b/rds/src/model/ModifyDBInstanceMonitorRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifyDBInstanceMonitorRequest::ModifyDBInstanceMonitorRequest() : + RdsRequest("ModifyDBInstanceMonitor") +{} + +ModifyDBInstanceMonitorRequest::~ModifyDBInstanceMonitorRequest() +{} + +long ModifyDBInstanceMonitorRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyDBInstanceMonitorRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyDBInstanceMonitorRequest::getPeriod()const +{ + return period_; +} + +void ModifyDBInstanceMonitorRequest::setPeriod(const std::string& period) +{ + period_ = period; + setParameter("Period", period); +} + +std::string ModifyDBInstanceMonitorRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyDBInstanceMonitorRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyDBInstanceMonitorRequest::getClientToken()const +{ + return clientToken_; +} + +void ModifyDBInstanceMonitorRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string ModifyDBInstanceMonitorRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyDBInstanceMonitorRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyDBInstanceMonitorRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void ModifyDBInstanceMonitorRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long ModifyDBInstanceMonitorRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyDBInstanceMonitorRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyDBInstanceMonitorRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyDBInstanceMonitorRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/ModifyDBInstanceMonitorResult.cc b/rds/src/model/ModifyDBInstanceMonitorResult.cc new file mode 100644 index 000000000..7e381f50a --- /dev/null +++ b/rds/src/model/ModifyDBInstanceMonitorResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifyDBInstanceMonitorResult::ModifyDBInstanceMonitorResult() : + ServiceResult() +{} + +ModifyDBInstanceMonitorResult::ModifyDBInstanceMonitorResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDBInstanceMonitorResult::~ModifyDBInstanceMonitorResult() +{} + +void ModifyDBInstanceMonitorResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/ModifyDBInstanceNetworkExpireTimeRequest.cc b/rds/src/model/ModifyDBInstanceNetworkExpireTimeRequest.cc new file mode 100644 index 000000000..7f053ccb8 --- /dev/null +++ b/rds/src/model/ModifyDBInstanceNetworkExpireTimeRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifyDBInstanceNetworkExpireTimeRequest::ModifyDBInstanceNetworkExpireTimeRequest() : + RdsRequest("ModifyDBInstanceNetworkExpireTime") +{} + +ModifyDBInstanceNetworkExpireTimeRequest::~ModifyDBInstanceNetworkExpireTimeRequest() +{} + +long ModifyDBInstanceNetworkExpireTimeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyDBInstanceNetworkExpireTimeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyDBInstanceNetworkExpireTimeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyDBInstanceNetworkExpireTimeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyDBInstanceNetworkExpireTimeRequest::getConnectionString()const +{ + return connectionString_; +} + +void ModifyDBInstanceNetworkExpireTimeRequest::setConnectionString(const std::string& connectionString) +{ + connectionString_ = connectionString; + setParameter("ConnectionString", connectionString); +} + +int ModifyDBInstanceNetworkExpireTimeRequest::getClassicExpiredDays()const +{ + return classicExpiredDays_; +} + +void ModifyDBInstanceNetworkExpireTimeRequest::setClassicExpiredDays(int classicExpiredDays) +{ + classicExpiredDays_ = classicExpiredDays; + setParameter("ClassicExpiredDays", std::to_string(classicExpiredDays)); +} + +std::string ModifyDBInstanceNetworkExpireTimeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyDBInstanceNetworkExpireTimeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyDBInstanceNetworkExpireTimeRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void ModifyDBInstanceNetworkExpireTimeRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long ModifyDBInstanceNetworkExpireTimeRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyDBInstanceNetworkExpireTimeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyDBInstanceNetworkExpireTimeRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyDBInstanceNetworkExpireTimeRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/ModifyDBInstanceNetworkExpireTimeResult.cc b/rds/src/model/ModifyDBInstanceNetworkExpireTimeResult.cc new file mode 100644 index 000000000..6ec274643 --- /dev/null +++ b/rds/src/model/ModifyDBInstanceNetworkExpireTimeResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifyDBInstanceNetworkExpireTimeResult::ModifyDBInstanceNetworkExpireTimeResult() : + ServiceResult() +{} + +ModifyDBInstanceNetworkExpireTimeResult::ModifyDBInstanceNetworkExpireTimeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDBInstanceNetworkExpireTimeResult::~ModifyDBInstanceNetworkExpireTimeResult() +{} + +void ModifyDBInstanceNetworkExpireTimeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/ModifyDBInstanceNetworkTypeRequest.cc b/rds/src/model/ModifyDBInstanceNetworkTypeRequest.cc new file mode 100644 index 000000000..600ea5536 --- /dev/null +++ b/rds/src/model/ModifyDBInstanceNetworkTypeRequest.cc @@ -0,0 +1,182 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifyDBInstanceNetworkTypeRequest::ModifyDBInstanceNetworkTypeRequest() : + RdsRequest("ModifyDBInstanceNetworkType") +{} + +ModifyDBInstanceNetworkTypeRequest::~ModifyDBInstanceNetworkTypeRequest() +{} + +long ModifyDBInstanceNetworkTypeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyDBInstanceNetworkTypeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyDBInstanceNetworkTypeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyDBInstanceNetworkTypeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyDBInstanceNetworkTypeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyDBInstanceNetworkTypeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long ModifyDBInstanceNetworkTypeRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyDBInstanceNetworkTypeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyDBInstanceNetworkTypeRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyDBInstanceNetworkTypeRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string ModifyDBInstanceNetworkTypeRequest::getVSwitchId()const +{ + return vSwitchId_; +} + +void ModifyDBInstanceNetworkTypeRequest::setVSwitchId(const std::string& vSwitchId) +{ + vSwitchId_ = vSwitchId; + setParameter("VSwitchId", vSwitchId); +} + +std::string ModifyDBInstanceNetworkTypeRequest::getPrivateIpAddress()const +{ + return privateIpAddress_; +} + +void ModifyDBInstanceNetworkTypeRequest::setPrivateIpAddress(const std::string& privateIpAddress) +{ + privateIpAddress_ = privateIpAddress; + setParameter("PrivateIpAddress", privateIpAddress); +} + +std::string ModifyDBInstanceNetworkTypeRequest::getRetainClassic()const +{ + return retainClassic_; +} + +void ModifyDBInstanceNetworkTypeRequest::setRetainClassic(const std::string& retainClassic) +{ + retainClassic_ = retainClassic; + setParameter("RetainClassic", retainClassic); +} + +std::string ModifyDBInstanceNetworkTypeRequest::getClassicExpiredDays()const +{ + return classicExpiredDays_; +} + +void ModifyDBInstanceNetworkTypeRequest::setClassicExpiredDays(const std::string& classicExpiredDays) +{ + classicExpiredDays_ = classicExpiredDays; + setParameter("ClassicExpiredDays", classicExpiredDays); +} + +std::string ModifyDBInstanceNetworkTypeRequest::getVPCId()const +{ + return vPCId_; +} + +void ModifyDBInstanceNetworkTypeRequest::setVPCId(const std::string& vPCId) +{ + vPCId_ = vPCId; + setParameter("VPCId", vPCId); +} + +std::string ModifyDBInstanceNetworkTypeRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void ModifyDBInstanceNetworkTypeRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +std::string ModifyDBInstanceNetworkTypeRequest::getReadWriteSplittingPrivateIpAddress()const +{ + return readWriteSplittingPrivateIpAddress_; +} + +void ModifyDBInstanceNetworkTypeRequest::setReadWriteSplittingPrivateIpAddress(const std::string& readWriteSplittingPrivateIpAddress) +{ + readWriteSplittingPrivateIpAddress_ = readWriteSplittingPrivateIpAddress; + setParameter("ReadWriteSplittingPrivateIpAddress", readWriteSplittingPrivateIpAddress); +} + +std::string ModifyDBInstanceNetworkTypeRequest::getInstanceNetworkType()const +{ + return instanceNetworkType_; +} + +void ModifyDBInstanceNetworkTypeRequest::setInstanceNetworkType(const std::string& instanceNetworkType) +{ + instanceNetworkType_ = instanceNetworkType; + setParameter("InstanceNetworkType", instanceNetworkType); +} + +int ModifyDBInstanceNetworkTypeRequest::getReadWriteSplittingClassicExpiredDays()const +{ + return readWriteSplittingClassicExpiredDays_; +} + +void ModifyDBInstanceNetworkTypeRequest::setReadWriteSplittingClassicExpiredDays(int readWriteSplittingClassicExpiredDays) +{ + readWriteSplittingClassicExpiredDays_ = readWriteSplittingClassicExpiredDays; + setParameter("ReadWriteSplittingClassicExpiredDays", std::to_string(readWriteSplittingClassicExpiredDays)); +} + diff --git a/rds/src/model/ModifyDBInstanceNetworkTypeResult.cc b/rds/src/model/ModifyDBInstanceNetworkTypeResult.cc new file mode 100644 index 000000000..3dfb6bb1a --- /dev/null +++ b/rds/src/model/ModifyDBInstanceNetworkTypeResult.cc @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifyDBInstanceNetworkTypeResult::ModifyDBInstanceNetworkTypeResult() : + ServiceResult() +{} + +ModifyDBInstanceNetworkTypeResult::ModifyDBInstanceNetworkTypeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDBInstanceNetworkTypeResult::~ModifyDBInstanceNetworkTypeResult() +{} + +void ModifyDBInstanceNetworkTypeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + taskId_ = value["TaskId"].asString(); + +} + +std::string ModifyDBInstanceNetworkTypeResult::getTaskId()const +{ + return taskId_; +} + +void ModifyDBInstanceNetworkTypeResult::setTaskId(const std::string& taskId) +{ + taskId_ = taskId; +} + diff --git a/rds/src/model/ModifyDBInstanceSSLRequest.cc b/rds/src/model/ModifyDBInstanceSSLRequest.cc new file mode 100644 index 000000000..6e1512ee0 --- /dev/null +++ b/rds/src/model/ModifyDBInstanceSSLRequest.cc @@ -0,0 +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. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifyDBInstanceSSLRequest::ModifyDBInstanceSSLRequest() : + RdsRequest("ModifyDBInstanceSSL") +{} + +ModifyDBInstanceSSLRequest::~ModifyDBInstanceSSLRequest() +{} + +long ModifyDBInstanceSSLRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyDBInstanceSSLRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyDBInstanceSSLRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyDBInstanceSSLRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyDBInstanceSSLRequest::getConnectionString()const +{ + return connectionString_; +} + +void ModifyDBInstanceSSLRequest::setConnectionString(const std::string& connectionString) +{ + connectionString_ = connectionString; + setParameter("ConnectionString", connectionString); +} + +std::string ModifyDBInstanceSSLRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyDBInstanceSSLRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyDBInstanceSSLRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void ModifyDBInstanceSSLRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long ModifyDBInstanceSSLRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyDBInstanceSSLRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyDBInstanceSSLRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyDBInstanceSSLRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/ModifyDBInstanceSSLResult.cc b/rds/src/model/ModifyDBInstanceSSLResult.cc new file mode 100644 index 000000000..aa910ddf9 --- /dev/null +++ b/rds/src/model/ModifyDBInstanceSSLResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifyDBInstanceSSLResult::ModifyDBInstanceSSLResult() : + ServiceResult() +{} + +ModifyDBInstanceSSLResult::ModifyDBInstanceSSLResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDBInstanceSSLResult::~ModifyDBInstanceSSLResult() +{} + +void ModifyDBInstanceSSLResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/ModifyDBInstanceSpecRequest.cc b/rds/src/model/ModifyDBInstanceSpecRequest.cc new file mode 100644 index 000000000..1e26ca6e2 --- /dev/null +++ b/rds/src/model/ModifyDBInstanceSpecRequest.cc @@ -0,0 +1,149 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifyDBInstanceSpecRequest::ModifyDBInstanceSpecRequest() : + RdsRequest("ModifyDBInstanceSpec") +{} + +ModifyDBInstanceSpecRequest::~ModifyDBInstanceSpecRequest() +{} + +long ModifyDBInstanceSpecRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyDBInstanceSpecRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +int ModifyDBInstanceSpecRequest::getDBInstanceStorage()const +{ + return dBInstanceStorage_; +} + +void ModifyDBInstanceSpecRequest::setDBInstanceStorage(int dBInstanceStorage) +{ + dBInstanceStorage_ = dBInstanceStorage; + setParameter("DBInstanceStorage", std::to_string(dBInstanceStorage)); +} + +std::string ModifyDBInstanceSpecRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyDBInstanceSpecRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyDBInstanceSpecRequest::getClientToken()const +{ + return clientToken_; +} + +void ModifyDBInstanceSpecRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string ModifyDBInstanceSpecRequest::getEffectiveTime()const +{ + return effectiveTime_; +} + +void ModifyDBInstanceSpecRequest::setEffectiveTime(const std::string& effectiveTime) +{ + effectiveTime_ = effectiveTime; + setParameter("EffectiveTime", effectiveTime); +} + +std::string ModifyDBInstanceSpecRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyDBInstanceSpecRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyDBInstanceSpecRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void ModifyDBInstanceSpecRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long ModifyDBInstanceSpecRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyDBInstanceSpecRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyDBInstanceSpecRequest::getPayType()const +{ + return payType_; +} + +void ModifyDBInstanceSpecRequest::setPayType(const std::string& payType) +{ + payType_ = payType; + setParameter("PayType", payType); +} + +std::string ModifyDBInstanceSpecRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyDBInstanceSpecRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string ModifyDBInstanceSpecRequest::getDBInstanceClass()const +{ + return dBInstanceClass_; +} + +void ModifyDBInstanceSpecRequest::setDBInstanceClass(const std::string& dBInstanceClass) +{ + dBInstanceClass_ = dBInstanceClass; + setParameter("DBInstanceClass", dBInstanceClass); +} + diff --git a/rds/src/model/ModifyDBInstanceSpecResult.cc b/rds/src/model/ModifyDBInstanceSpecResult.cc new file mode 100644 index 000000000..bb3f5c067 --- /dev/null +++ b/rds/src/model/ModifyDBInstanceSpecResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifyDBInstanceSpecResult::ModifyDBInstanceSpecResult() : + ServiceResult() +{} + +ModifyDBInstanceSpecResult::ModifyDBInstanceSpecResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDBInstanceSpecResult::~ModifyDBInstanceSpecResult() +{} + +void ModifyDBInstanceSpecResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/ModifyDBInstanceTDERequest.cc b/rds/src/model/ModifyDBInstanceTDERequest.cc new file mode 100644 index 000000000..9d2d9d92e --- /dev/null +++ b/rds/src/model/ModifyDBInstanceTDERequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifyDBInstanceTDERequest::ModifyDBInstanceTDERequest() : + RdsRequest("ModifyDBInstanceTDE") +{} + +ModifyDBInstanceTDERequest::~ModifyDBInstanceTDERequest() +{} + +long ModifyDBInstanceTDERequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyDBInstanceTDERequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyDBInstanceTDERequest::getDBName()const +{ + return dBName_; +} + +void ModifyDBInstanceTDERequest::setDBName(const std::string& dBName) +{ + dBName_ = dBName; + setParameter("DBName", dBName); +} + +std::string ModifyDBInstanceTDERequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyDBInstanceTDERequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyDBInstanceTDERequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyDBInstanceTDERequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyDBInstanceTDERequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void ModifyDBInstanceTDERequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long ModifyDBInstanceTDERequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyDBInstanceTDERequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyDBInstanceTDERequest::getTDEStatus()const +{ + return tDEStatus_; +} + +void ModifyDBInstanceTDERequest::setTDEStatus(const std::string& tDEStatus) +{ + tDEStatus_ = tDEStatus; + setParameter("TDEStatus", tDEStatus); +} + +std::string ModifyDBInstanceTDERequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyDBInstanceTDERequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/ModifyDBInstanceTDEResult.cc b/rds/src/model/ModifyDBInstanceTDEResult.cc new file mode 100644 index 000000000..265c646b5 --- /dev/null +++ b/rds/src/model/ModifyDBInstanceTDEResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifyDBInstanceTDEResult::ModifyDBInstanceTDEResult() : + ServiceResult() +{} + +ModifyDBInstanceTDEResult::ModifyDBInstanceTDEResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDBInstanceTDEResult::~ModifyDBInstanceTDEResult() +{} + +void ModifyDBInstanceTDEResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/ModifyDampPolicyRequest.cc b/rds/src/model/ModifyDampPolicyRequest.cc new file mode 100644 index 000000000..f71e247fa --- /dev/null +++ b/rds/src/model/ModifyDampPolicyRequest.cc @@ -0,0 +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 namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifyDampPolicyRequest::ModifyDampPolicyRequest() : + RdsRequest("ModifyDampPolicy") +{} + +ModifyDampPolicyRequest::~ModifyDampPolicyRequest() +{} + +long ModifyDampPolicyRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyDampPolicyRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyDampPolicyRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyDampPolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyDampPolicyRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyDampPolicyRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long ModifyDampPolicyRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyDampPolicyRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyDampPolicyRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyDampPolicyRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string ModifyDampPolicyRequest::getTimeRules()const +{ + return timeRules_; +} + +void ModifyDampPolicyRequest::setTimeRules(const std::string& timeRules) +{ + timeRules_ = timeRules; + setParameter("TimeRules", timeRules); +} + +std::string ModifyDampPolicyRequest::getActionRules()const +{ + return actionRules_; +} + +void ModifyDampPolicyRequest::setActionRules(const std::string& actionRules) +{ + actionRules_ = actionRules; + setParameter("ActionRules", actionRules); +} + +std::string ModifyDampPolicyRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ModifyDampPolicyRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string ModifyDampPolicyRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyDampPolicyRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ModifyDampPolicyRequest::getHandlers()const +{ + return handlers_; +} + +void ModifyDampPolicyRequest::setHandlers(const std::string& handlers) +{ + handlers_ = handlers; + setParameter("Handlers", handlers); +} + +std::string ModifyDampPolicyRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void ModifyDampPolicyRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +std::string ModifyDampPolicyRequest::getPolicyName()const +{ + return policyName_; +} + +void ModifyDampPolicyRequest::setPolicyName(const std::string& policyName) +{ + policyName_ = policyName; + setParameter("PolicyName", policyName); +} + +std::string ModifyDampPolicyRequest::getSourceRules()const +{ + return sourceRules_; +} + +void ModifyDampPolicyRequest::setSourceRules(const std::string& sourceRules) +{ + sourceRules_ = sourceRules; + setParameter("SourceRules", sourceRules); +} + diff --git a/rds/src/model/ModifyDampPolicyResult.cc b/rds/src/model/ModifyDampPolicyResult.cc new file mode 100644 index 000000000..aa52cb508 --- /dev/null +++ b/rds/src/model/ModifyDampPolicyResult.cc @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifyDampPolicyResult::ModifyDampPolicyResult() : + ServiceResult() +{} + +ModifyDampPolicyResult::ModifyDampPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDampPolicyResult::~ModifyDampPolicyResult() +{} + +void ModifyDampPolicyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + policyId_ = value["PolicyId"].asString(); + policyName_ = value["PolicyName"].asString(); + +} + +std::string ModifyDampPolicyResult::getPolicyName()const +{ + return policyName_; +} + +void ModifyDampPolicyResult::setPolicyName(const std::string& policyName) +{ + policyName_ = policyName; +} + +std::string ModifyDampPolicyResult::getPolicyId()const +{ + return policyId_; +} + +void ModifyDampPolicyResult::setPolicyId(const std::string& policyId) +{ + policyId_ = policyId; +} + diff --git a/rds/src/model/ModifyGuardDomainModeRequest.cc b/rds/src/model/ModifyGuardDomainModeRequest.cc new file mode 100644 index 000000000..57812690e --- /dev/null +++ b/rds/src/model/ModifyGuardDomainModeRequest.cc @@ -0,0 +1,127 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifyGuardDomainModeRequest::ModifyGuardDomainModeRequest() : + RdsRequest("ModifyGuardDomainMode") +{} + +ModifyGuardDomainModeRequest::~ModifyGuardDomainModeRequest() +{} + +std::string ModifyGuardDomainModeRequest::getDomainMode()const +{ + return domainMode_; +} + +void ModifyGuardDomainModeRequest::setDomainMode(const std::string& domainMode) +{ + domainMode_ = domainMode; + setParameter("DomainMode", domainMode); +} + +long ModifyGuardDomainModeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyGuardDomainModeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyGuardDomainModeRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ModifyGuardDomainModeRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string ModifyGuardDomainModeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyGuardDomainModeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyGuardDomainModeRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyGuardDomainModeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ModifyGuardDomainModeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyGuardDomainModeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyGuardDomainModeRequest::getReplicaId()const +{ + return replicaId_; +} + +void ModifyGuardDomainModeRequest::setReplicaId(const std::string& replicaId) +{ + replicaId_ = replicaId; + setParameter("ReplicaId", replicaId); +} + +long ModifyGuardDomainModeRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyGuardDomainModeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyGuardDomainModeRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyGuardDomainModeRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/ModifyGuardDomainModeResult.cc b/rds/src/model/ModifyGuardDomainModeResult.cc new file mode 100644 index 000000000..fb240987b --- /dev/null +++ b/rds/src/model/ModifyGuardDomainModeResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifyGuardDomainModeResult::ModifyGuardDomainModeResult() : + ServiceResult() +{} + +ModifyGuardDomainModeResult::ModifyGuardDomainModeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyGuardDomainModeResult::~ModifyGuardDomainModeResult() +{} + +void ModifyGuardDomainModeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/ModifyInstanceAutoRenewalAttributeRequest.cc b/rds/src/model/ModifyInstanceAutoRenewalAttributeRequest.cc new file mode 100644 index 000000000..b48f8d650 --- /dev/null +++ b/rds/src/model/ModifyInstanceAutoRenewalAttributeRequest.cc @@ -0,0 +1,138 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifyInstanceAutoRenewalAttributeRequest::ModifyInstanceAutoRenewalAttributeRequest() : + RdsRequest("ModifyInstanceAutoRenewalAttribute") +{} + +ModifyInstanceAutoRenewalAttributeRequest::~ModifyInstanceAutoRenewalAttributeRequest() +{} + +std::string ModifyInstanceAutoRenewalAttributeRequest::getDuration()const +{ + return duration_; +} + +void ModifyInstanceAutoRenewalAttributeRequest::setDuration(const std::string& duration) +{ + duration_ = duration; + setParameter("Duration", duration); +} + +long ModifyInstanceAutoRenewalAttributeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyInstanceAutoRenewalAttributeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyInstanceAutoRenewalAttributeRequest::getAutoRenew()const +{ + return autoRenew_; +} + +void ModifyInstanceAutoRenewalAttributeRequest::setAutoRenew(const std::string& autoRenew) +{ + autoRenew_ = autoRenew; + setParameter("AutoRenew", autoRenew); +} + +std::string ModifyInstanceAutoRenewalAttributeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyInstanceAutoRenewalAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyInstanceAutoRenewalAttributeRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyInstanceAutoRenewalAttributeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ModifyInstanceAutoRenewalAttributeRequest::getClientToken()const +{ + return clientToken_; +} + +void ModifyInstanceAutoRenewalAttributeRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string ModifyInstanceAutoRenewalAttributeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyInstanceAutoRenewalAttributeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyInstanceAutoRenewalAttributeRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void ModifyInstanceAutoRenewalAttributeRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long ModifyInstanceAutoRenewalAttributeRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyInstanceAutoRenewalAttributeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyInstanceAutoRenewalAttributeRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyInstanceAutoRenewalAttributeRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/ModifyInstanceAutoRenewalAttributeResult.cc b/rds/src/model/ModifyInstanceAutoRenewalAttributeResult.cc new file mode 100644 index 000000000..d82c57c55 --- /dev/null +++ b/rds/src/model/ModifyInstanceAutoRenewalAttributeResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifyInstanceAutoRenewalAttributeResult::ModifyInstanceAutoRenewalAttributeResult() : + ServiceResult() +{} + +ModifyInstanceAutoRenewalAttributeResult::ModifyInstanceAutoRenewalAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyInstanceAutoRenewalAttributeResult::~ModifyInstanceAutoRenewalAttributeResult() +{} + +void ModifyInstanceAutoRenewalAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/ModifyParameterRequest.cc b/rds/src/model/ModifyParameterRequest.cc new file mode 100644 index 000000000..59e43f12d --- /dev/null +++ b/rds/src/model/ModifyParameterRequest.cc @@ -0,0 +1,127 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifyParameterRequest::ModifyParameterRequest() : + RdsRequest("ModifyParameter") +{} + +ModifyParameterRequest::~ModifyParameterRequest() +{} + +long ModifyParameterRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyParameterRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyParameterRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyParameterRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyParameterRequest::getClientToken()const +{ + return clientToken_; +} + +void ModifyParameterRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string ModifyParameterRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyParameterRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyParameterRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void ModifyParameterRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +bool ModifyParameterRequest::getForcerestart()const +{ + return forcerestart_; +} + +void ModifyParameterRequest::setForcerestart(bool forcerestart) +{ + forcerestart_ = forcerestart; + setParameter("Forcerestart", std::to_string(forcerestart)); +} + +long ModifyParameterRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyParameterRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyParameterRequest::getParameters()const +{ + return parameters_; +} + +void ModifyParameterRequest::setParameters(const std::string& parameters) +{ + parameters_ = parameters; + setParameter("Parameters", parameters); +} + +std::string ModifyParameterRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyParameterRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/ModifyParameterResult.cc b/rds/src/model/ModifyParameterResult.cc new file mode 100644 index 000000000..fbc51f72d --- /dev/null +++ b/rds/src/model/ModifyParameterResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifyParameterResult::ModifyParameterResult() : + ServiceResult() +{} + +ModifyParameterResult::ModifyParameterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyParameterResult::~ModifyParameterResult() +{} + +void ModifyParameterResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/ModifyPostpaidDBInstanceSpecRequest.cc b/rds/src/model/ModifyPostpaidDBInstanceSpecRequest.cc new file mode 100644 index 000000000..7cbaf78cc --- /dev/null +++ b/rds/src/model/ModifyPostpaidDBInstanceSpecRequest.cc @@ -0,0 +1,127 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifyPostpaidDBInstanceSpecRequest::ModifyPostpaidDBInstanceSpecRequest() : + RdsRequest("ModifyPostpaidDBInstanceSpec") +{} + +ModifyPostpaidDBInstanceSpecRequest::~ModifyPostpaidDBInstanceSpecRequest() +{} + +long ModifyPostpaidDBInstanceSpecRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyPostpaidDBInstanceSpecRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +int ModifyPostpaidDBInstanceSpecRequest::getDBInstanceStorage()const +{ + return dBInstanceStorage_; +} + +void ModifyPostpaidDBInstanceSpecRequest::setDBInstanceStorage(int dBInstanceStorage) +{ + dBInstanceStorage_ = dBInstanceStorage; + setParameter("DBInstanceStorage", std::to_string(dBInstanceStorage)); +} + +std::string ModifyPostpaidDBInstanceSpecRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyPostpaidDBInstanceSpecRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyPostpaidDBInstanceSpecRequest::getClientToken()const +{ + return clientToken_; +} + +void ModifyPostpaidDBInstanceSpecRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string ModifyPostpaidDBInstanceSpecRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyPostpaidDBInstanceSpecRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyPostpaidDBInstanceSpecRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void ModifyPostpaidDBInstanceSpecRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long ModifyPostpaidDBInstanceSpecRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyPostpaidDBInstanceSpecRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyPostpaidDBInstanceSpecRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyPostpaidDBInstanceSpecRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string ModifyPostpaidDBInstanceSpecRequest::getDBInstanceClass()const +{ + return dBInstanceClass_; +} + +void ModifyPostpaidDBInstanceSpecRequest::setDBInstanceClass(const std::string& dBInstanceClass) +{ + dBInstanceClass_ = dBInstanceClass; + setParameter("DBInstanceClass", dBInstanceClass); +} + diff --git a/rds/src/model/ModifyPostpaidDBInstanceSpecResult.cc b/rds/src/model/ModifyPostpaidDBInstanceSpecResult.cc new file mode 100644 index 000000000..7222aa3d3 --- /dev/null +++ b/rds/src/model/ModifyPostpaidDBInstanceSpecResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifyPostpaidDBInstanceSpecResult::ModifyPostpaidDBInstanceSpecResult() : + ServiceResult() +{} + +ModifyPostpaidDBInstanceSpecResult::ModifyPostpaidDBInstanceSpecResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyPostpaidDBInstanceSpecResult::~ModifyPostpaidDBInstanceSpecResult() +{} + +void ModifyPostpaidDBInstanceSpecResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/ModifyReadWriteSplittingConnectionRequest.cc b/rds/src/model/ModifyReadWriteSplittingConnectionRequest.cc new file mode 100644 index 000000000..226f45966 --- /dev/null +++ b/rds/src/model/ModifyReadWriteSplittingConnectionRequest.cc @@ -0,0 +1,149 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifyReadWriteSplittingConnectionRequest::ModifyReadWriteSplittingConnectionRequest() : + RdsRequest("ModifyReadWriteSplittingConnection") +{} + +ModifyReadWriteSplittingConnectionRequest::~ModifyReadWriteSplittingConnectionRequest() +{} + +long ModifyReadWriteSplittingConnectionRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyReadWriteSplittingConnectionRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyReadWriteSplittingConnectionRequest::getConnectionStringPrefix()const +{ + return connectionStringPrefix_; +} + +void ModifyReadWriteSplittingConnectionRequest::setConnectionStringPrefix(const std::string& connectionStringPrefix) +{ + connectionStringPrefix_ = connectionStringPrefix; + setParameter("ConnectionStringPrefix", connectionStringPrefix); +} + +std::string ModifyReadWriteSplittingConnectionRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyReadWriteSplittingConnectionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyReadWriteSplittingConnectionRequest::getPort()const +{ + return port_; +} + +void ModifyReadWriteSplittingConnectionRequest::setPort(const std::string& port) +{ + port_ = port; + setParameter("Port", port); +} + +std::string ModifyReadWriteSplittingConnectionRequest::getDistributionType()const +{ + return distributionType_; +} + +void ModifyReadWriteSplittingConnectionRequest::setDistributionType(const std::string& distributionType) +{ + distributionType_ = distributionType; + setParameter("DistributionType", distributionType); +} + +std::string ModifyReadWriteSplittingConnectionRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyReadWriteSplittingConnectionRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyReadWriteSplittingConnectionRequest::getWeight()const +{ + return weight_; +} + +void ModifyReadWriteSplittingConnectionRequest::setWeight(const std::string& weight) +{ + weight_ = weight; + setParameter("Weight", weight); +} + +std::string ModifyReadWriteSplittingConnectionRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void ModifyReadWriteSplittingConnectionRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long ModifyReadWriteSplittingConnectionRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyReadWriteSplittingConnectionRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyReadWriteSplittingConnectionRequest::getMaxDelayTime()const +{ + return maxDelayTime_; +} + +void ModifyReadWriteSplittingConnectionRequest::setMaxDelayTime(const std::string& maxDelayTime) +{ + maxDelayTime_ = maxDelayTime; + setParameter("MaxDelayTime", maxDelayTime); +} + +std::string ModifyReadWriteSplittingConnectionRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyReadWriteSplittingConnectionRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/ModifyReadWriteSplittingConnectionResult.cc b/rds/src/model/ModifyReadWriteSplittingConnectionResult.cc new file mode 100644 index 000000000..e691b7357 --- /dev/null +++ b/rds/src/model/ModifyReadWriteSplittingConnectionResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifyReadWriteSplittingConnectionResult::ModifyReadWriteSplittingConnectionResult() : + ServiceResult() +{} + +ModifyReadWriteSplittingConnectionResult::ModifyReadWriteSplittingConnectionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyReadWriteSplittingConnectionResult::~ModifyReadWriteSplittingConnectionResult() +{} + +void ModifyReadWriteSplittingConnectionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/ModifyReplicaDescriptionRequest.cc b/rds/src/model/ModifyReplicaDescriptionRequest.cc new file mode 100644 index 000000000..1ff6cd72f --- /dev/null +++ b/rds/src/model/ModifyReplicaDescriptionRequest.cc @@ -0,0 +1,127 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifyReplicaDescriptionRequest::ModifyReplicaDescriptionRequest() : + RdsRequest("ModifyReplicaDescription") +{} + +ModifyReplicaDescriptionRequest::~ModifyReplicaDescriptionRequest() +{} + +std::string ModifyReplicaDescriptionRequest::getReplicaDescription()const +{ + return replicaDescription_; +} + +void ModifyReplicaDescriptionRequest::setReplicaDescription(const std::string& replicaDescription) +{ + replicaDescription_ = replicaDescription; + setParameter("ReplicaDescription", replicaDescription); +} + +long ModifyReplicaDescriptionRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyReplicaDescriptionRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyReplicaDescriptionRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ModifyReplicaDescriptionRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string ModifyReplicaDescriptionRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyReplicaDescriptionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyReplicaDescriptionRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyReplicaDescriptionRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ModifyReplicaDescriptionRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyReplicaDescriptionRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyReplicaDescriptionRequest::getReplicaId()const +{ + return replicaId_; +} + +void ModifyReplicaDescriptionRequest::setReplicaId(const std::string& replicaId) +{ + replicaId_ = replicaId; + setParameter("ReplicaId", replicaId); +} + +long ModifyReplicaDescriptionRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyReplicaDescriptionRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyReplicaDescriptionRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyReplicaDescriptionRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/ModifyReplicaDescriptionResult.cc b/rds/src/model/ModifyReplicaDescriptionResult.cc new file mode 100644 index 000000000..fe393a3d1 --- /dev/null +++ b/rds/src/model/ModifyReplicaDescriptionResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifyReplicaDescriptionResult::ModifyReplicaDescriptionResult() : + ServiceResult() +{} + +ModifyReplicaDescriptionResult::ModifyReplicaDescriptionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyReplicaDescriptionResult::~ModifyReplicaDescriptionResult() +{} + +void ModifyReplicaDescriptionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/ModifyReplicaModeRequest.cc b/rds/src/model/ModifyReplicaModeRequest.cc new file mode 100644 index 000000000..30ae96b3a --- /dev/null +++ b/rds/src/model/ModifyReplicaModeRequest.cc @@ -0,0 +1,149 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifyReplicaModeRequest::ModifyReplicaModeRequest() : + RdsRequest("ModifyReplicaMode") +{} + +ModifyReplicaModeRequest::~ModifyReplicaModeRequest() +{} + +std::string ModifyReplicaModeRequest::getDomainMode()const +{ + return domainMode_; +} + +void ModifyReplicaModeRequest::setDomainMode(const std::string& domainMode) +{ + domainMode_ = domainMode; + setParameter("DomainMode", domainMode); +} + +long ModifyReplicaModeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyReplicaModeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyReplicaModeRequest::getPrimaryInstanceId()const +{ + return primaryInstanceId_; +} + +void ModifyReplicaModeRequest::setPrimaryInstanceId(const std::string& primaryInstanceId) +{ + primaryInstanceId_ = primaryInstanceId; + setParameter("PrimaryInstanceId", primaryInstanceId); +} + +std::string ModifyReplicaModeRequest::getReplicaMode()const +{ + return replicaMode_; +} + +void ModifyReplicaModeRequest::setReplicaMode(const std::string& replicaMode) +{ + replicaMode_ = replicaMode; + setParameter("ReplicaMode", replicaMode); +} + +std::string ModifyReplicaModeRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ModifyReplicaModeRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string ModifyReplicaModeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyReplicaModeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyReplicaModeRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyReplicaModeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ModifyReplicaModeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyReplicaModeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyReplicaModeRequest::getReplicaId()const +{ + return replicaId_; +} + +void ModifyReplicaModeRequest::setReplicaId(const std::string& replicaId) +{ + replicaId_ = replicaId; + setParameter("ReplicaId", replicaId); +} + +long ModifyReplicaModeRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyReplicaModeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyReplicaModeRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyReplicaModeRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/ModifyReplicaModeResult.cc b/rds/src/model/ModifyReplicaModeResult.cc new file mode 100644 index 000000000..6bc32b84b --- /dev/null +++ b/rds/src/model/ModifyReplicaModeResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifyReplicaModeResult::ModifyReplicaModeResult() : + ServiceResult() +{} + +ModifyReplicaModeResult::ModifyReplicaModeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyReplicaModeResult::~ModifyReplicaModeResult() +{} + +void ModifyReplicaModeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/ModifyReplicaRelationRequest.cc b/rds/src/model/ModifyReplicaRelationRequest.cc new file mode 100644 index 000000000..98060e999 --- /dev/null +++ b/rds/src/model/ModifyReplicaRelationRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifyReplicaRelationRequest::ModifyReplicaRelationRequest() : + RdsRequest("ModifyReplicaRelation") +{} + +ModifyReplicaRelationRequest::~ModifyReplicaRelationRequest() +{} + +long ModifyReplicaRelationRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyReplicaRelationRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyReplicaRelationRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ModifyReplicaRelationRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string ModifyReplicaRelationRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyReplicaRelationRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyReplicaRelationRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyReplicaRelationRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ModifyReplicaRelationRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyReplicaRelationRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyReplicaRelationRequest::getReplicaId()const +{ + return replicaId_; +} + +void ModifyReplicaRelationRequest::setReplicaId(const std::string& replicaId) +{ + replicaId_ = replicaId; + setParameter("ReplicaId", replicaId); +} + +long ModifyReplicaRelationRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyReplicaRelationRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyReplicaRelationRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyReplicaRelationRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/ModifyReplicaRelationResult.cc b/rds/src/model/ModifyReplicaRelationResult.cc new file mode 100644 index 000000000..92ac970d0 --- /dev/null +++ b/rds/src/model/ModifyReplicaRelationResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifyReplicaRelationResult::ModifyReplicaRelationResult() : + ServiceResult() +{} + +ModifyReplicaRelationResult::ModifyReplicaRelationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyReplicaRelationResult::~ModifyReplicaRelationResult() +{} + +void ModifyReplicaRelationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/ModifyResourceGroupRequest.cc b/rds/src/model/ModifyResourceGroupRequest.cc new file mode 100644 index 000000000..0c4640633 --- /dev/null +++ b/rds/src/model/ModifyResourceGroupRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifyResourceGroupRequest::ModifyResourceGroupRequest() : + RdsRequest("ModifyResourceGroup") +{} + +ModifyResourceGroupRequest::~ModifyResourceGroupRequest() +{} + +std::string ModifyResourceGroupRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void ModifyResourceGroupRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setParameter("ResourceGroupId", resourceGroupId); +} + +long ModifyResourceGroupRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyResourceGroupRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyResourceGroupRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyResourceGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyResourceGroupRequest::getClientToken()const +{ + return clientToken_; +} + +void ModifyResourceGroupRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string ModifyResourceGroupRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyResourceGroupRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyResourceGroupRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void ModifyResourceGroupRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long ModifyResourceGroupRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyResourceGroupRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyResourceGroupRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyResourceGroupRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/ModifyResourceGroupResult.cc b/rds/src/model/ModifyResourceGroupResult.cc new file mode 100644 index 000000000..cdea6bd32 --- /dev/null +++ b/rds/src/model/ModifyResourceGroupResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifyResourceGroupResult::ModifyResourceGroupResult() : + ServiceResult() +{} + +ModifyResourceGroupResult::ModifyResourceGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyResourceGroupResult::~ModifyResourceGroupResult() +{} + +void ModifyResourceGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/ModifySQLCollectorPolicyRequest.cc b/rds/src/model/ModifySQLCollectorPolicyRequest.cc new file mode 100644 index 000000000..ced3ca169 --- /dev/null +++ b/rds/src/model/ModifySQLCollectorPolicyRequest.cc @@ -0,0 +1,127 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifySQLCollectorPolicyRequest::ModifySQLCollectorPolicyRequest() : + RdsRequest("ModifySQLCollectorPolicy") +{} + +ModifySQLCollectorPolicyRequest::~ModifySQLCollectorPolicyRequest() +{} + +long ModifySQLCollectorPolicyRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifySQLCollectorPolicyRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +int ModifySQLCollectorPolicyRequest::getStoragePeriod()const +{ + return storagePeriod_; +} + +void ModifySQLCollectorPolicyRequest::setStoragePeriod(int storagePeriod) +{ + storagePeriod_ = storagePeriod; + setParameter("StoragePeriod", std::to_string(storagePeriod)); +} + +std::string ModifySQLCollectorPolicyRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifySQLCollectorPolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifySQLCollectorPolicyRequest::getClientToken()const +{ + return clientToken_; +} + +void ModifySQLCollectorPolicyRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string ModifySQLCollectorPolicyRequest::getSQLCollectorStatus()const +{ + return sQLCollectorStatus_; +} + +void ModifySQLCollectorPolicyRequest::setSQLCollectorStatus(const std::string& sQLCollectorStatus) +{ + sQLCollectorStatus_ = sQLCollectorStatus; + setParameter("SQLCollectorStatus", sQLCollectorStatus); +} + +std::string ModifySQLCollectorPolicyRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifySQLCollectorPolicyRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ModifySQLCollectorPolicyRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void ModifySQLCollectorPolicyRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long ModifySQLCollectorPolicyRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifySQLCollectorPolicyRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifySQLCollectorPolicyRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifySQLCollectorPolicyRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/ModifySQLCollectorPolicyResult.cc b/rds/src/model/ModifySQLCollectorPolicyResult.cc new file mode 100644 index 000000000..5a3c804cc --- /dev/null +++ b/rds/src/model/ModifySQLCollectorPolicyResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifySQLCollectorPolicyResult::ModifySQLCollectorPolicyResult() : + ServiceResult() +{} + +ModifySQLCollectorPolicyResult::ModifySQLCollectorPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifySQLCollectorPolicyResult::~ModifySQLCollectorPolicyResult() +{} + +void ModifySQLCollectorPolicyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/ModifySecurityIpsRequest.cc b/rds/src/model/ModifySecurityIpsRequest.cc new file mode 100644 index 000000000..be24c83e6 --- /dev/null +++ b/rds/src/model/ModifySecurityIpsRequest.cc @@ -0,0 +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 namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifySecurityIpsRequest::ModifySecurityIpsRequest() : + RdsRequest("ModifySecurityIps") +{} + +ModifySecurityIpsRequest::~ModifySecurityIpsRequest() +{} + +std::string ModifySecurityIpsRequest::getDBInstanceIPArrayName()const +{ + return dBInstanceIPArrayName_; +} + +void ModifySecurityIpsRequest::setDBInstanceIPArrayName(const std::string& dBInstanceIPArrayName) +{ + dBInstanceIPArrayName_ = dBInstanceIPArrayName; + setParameter("DBInstanceIPArrayName", dBInstanceIPArrayName); +} + +long ModifySecurityIpsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifySecurityIpsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifySecurityIpsRequest::getModifyMode()const +{ + return modifyMode_; +} + +void ModifySecurityIpsRequest::setModifyMode(const std::string& modifyMode) +{ + modifyMode_ = modifyMode; + setParameter("ModifyMode", modifyMode); +} + +std::string ModifySecurityIpsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifySecurityIpsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifySecurityIpsRequest::getClientToken()const +{ + return clientToken_; +} + +void ModifySecurityIpsRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string ModifySecurityIpsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifySecurityIpsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ModifySecurityIpsRequest::getSecurityIps()const +{ + return securityIps_; +} + +void ModifySecurityIpsRequest::setSecurityIps(const std::string& securityIps) +{ + securityIps_ = securityIps; + setParameter("SecurityIps", securityIps); +} + +long ModifySecurityIpsRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifySecurityIpsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifySecurityIpsRequest::getSecurityGroupName()const +{ + return securityGroupName_; +} + +void ModifySecurityIpsRequest::setSecurityGroupName(const std::string& securityGroupName) +{ + securityGroupName_ = securityGroupName; + setParameter("SecurityGroupName", securityGroupName); +} + +std::string ModifySecurityIpsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifySecurityIpsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string ModifySecurityIpsRequest::getWhitelistNetType()const +{ + return whitelistNetType_; +} + +void ModifySecurityIpsRequest::setWhitelistNetType(const std::string& whitelistNetType) +{ + whitelistNetType_ = whitelistNetType; + setParameter("WhitelistNetType", whitelistNetType); +} + +std::string ModifySecurityIpsRequest::getDBInstanceIPArrayAttribute()const +{ + return dBInstanceIPArrayAttribute_; +} + +void ModifySecurityIpsRequest::setDBInstanceIPArrayAttribute(const std::string& dBInstanceIPArrayAttribute) +{ + dBInstanceIPArrayAttribute_ = dBInstanceIPArrayAttribute; + setParameter("DBInstanceIPArrayAttribute", dBInstanceIPArrayAttribute); +} + +std::string ModifySecurityIpsRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void ModifySecurityIpsRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + diff --git a/rds/src/model/ModifySecurityIpsResult.cc b/rds/src/model/ModifySecurityIpsResult.cc new file mode 100644 index 000000000..42b02b593 --- /dev/null +++ b/rds/src/model/ModifySecurityIpsResult.cc @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +ModifySecurityIpsResult::ModifySecurityIpsResult() : + ServiceResult() +{} + +ModifySecurityIpsResult::ModifySecurityIpsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifySecurityIpsResult::~ModifySecurityIpsResult() +{} + +void ModifySecurityIpsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + taskId_ = value["TaskId"].asString(); + +} + +std::string ModifySecurityIpsResult::getTaskId()const +{ + return taskId_; +} + +void ModifySecurityIpsResult::setTaskId(const std::string& taskId) +{ + taskId_ = taskId; +} + diff --git a/rds/src/model/PreCheckBeforeImportDataRequest.cc b/rds/src/model/PreCheckBeforeImportDataRequest.cc new file mode 100644 index 000000000..47430b88d --- /dev/null +++ b/rds/src/model/PreCheckBeforeImportDataRequest.cc @@ -0,0 +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 namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +PreCheckBeforeImportDataRequest::PreCheckBeforeImportDataRequest() : + RdsRequest("PreCheckBeforeImportData") +{} + +PreCheckBeforeImportDataRequest::~PreCheckBeforeImportDataRequest() +{} + +long PreCheckBeforeImportDataRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void PreCheckBeforeImportDataRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string PreCheckBeforeImportDataRequest::getImportDataType()const +{ + return importDataType_; +} + +void PreCheckBeforeImportDataRequest::setImportDataType(const std::string& importDataType) +{ + importDataType_ = importDataType; + setParameter("ImportDataType", importDataType); +} + +std::string PreCheckBeforeImportDataRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void PreCheckBeforeImportDataRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string PreCheckBeforeImportDataRequest::getClientToken()const +{ + return clientToken_; +} + +void PreCheckBeforeImportDataRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string PreCheckBeforeImportDataRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void PreCheckBeforeImportDataRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string PreCheckBeforeImportDataRequest::getSourceDatabaseDBNames()const +{ + return sourceDatabaseDBNames_; +} + +void PreCheckBeforeImportDataRequest::setSourceDatabaseDBNames(const std::string& sourceDatabaseDBNames) +{ + sourceDatabaseDBNames_ = sourceDatabaseDBNames; + setParameter("SourceDatabaseDBNames", sourceDatabaseDBNames); +} + +std::string PreCheckBeforeImportDataRequest::getSourceDatabaseIp()const +{ + return sourceDatabaseIp_; +} + +void PreCheckBeforeImportDataRequest::setSourceDatabaseIp(const std::string& sourceDatabaseIp) +{ + sourceDatabaseIp_ = sourceDatabaseIp; + setParameter("SourceDatabaseIp", sourceDatabaseIp); +} + +long PreCheckBeforeImportDataRequest::getOwnerId()const +{ + return ownerId_; +} + +void PreCheckBeforeImportDataRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string PreCheckBeforeImportDataRequest::getSourceDatabasePassword()const +{ + return sourceDatabasePassword_; +} + +void PreCheckBeforeImportDataRequest::setSourceDatabasePassword(const std::string& sourceDatabasePassword) +{ + sourceDatabasePassword_ = sourceDatabasePassword; + setParameter("SourceDatabasePassword", sourceDatabasePassword); +} + +std::string PreCheckBeforeImportDataRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void PreCheckBeforeImportDataRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string PreCheckBeforeImportDataRequest::getSourceDatabasePort()const +{ + return sourceDatabasePort_; +} + +void PreCheckBeforeImportDataRequest::setSourceDatabasePort(const std::string& sourceDatabasePort) +{ + sourceDatabasePort_ = sourceDatabasePort; + setParameter("SourceDatabasePort", sourceDatabasePort); +} + +std::string PreCheckBeforeImportDataRequest::getSourceDatabaseUserName()const +{ + return sourceDatabaseUserName_; +} + +void PreCheckBeforeImportDataRequest::setSourceDatabaseUserName(const std::string& sourceDatabaseUserName) +{ + sourceDatabaseUserName_ = sourceDatabaseUserName; + setParameter("SourceDatabaseUserName", sourceDatabaseUserName); +} + +std::string PreCheckBeforeImportDataRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void PreCheckBeforeImportDataRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + diff --git a/rds/src/model/PreCheckBeforeImportDataResult.cc b/rds/src/model/PreCheckBeforeImportDataResult.cc new file mode 100644 index 000000000..86de6d514 --- /dev/null +++ b/rds/src/model/PreCheckBeforeImportDataResult.cc @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +PreCheckBeforeImportDataResult::PreCheckBeforeImportDataResult() : + ServiceResult() +{} + +PreCheckBeforeImportDataResult::PreCheckBeforeImportDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PreCheckBeforeImportDataResult::~PreCheckBeforeImportDataResult() +{} + +void PreCheckBeforeImportDataResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + preCheckId_ = value["PreCheckId"].asString(); + +} + +std::string PreCheckBeforeImportDataResult::getPreCheckId()const +{ + return preCheckId_; +} + +void PreCheckBeforeImportDataResult::setPreCheckId(const std::string& preCheckId) +{ + preCheckId_ = preCheckId; +} + diff --git a/rds/src/model/PurgeDBInstanceLogRequest.cc b/rds/src/model/PurgeDBInstanceLogRequest.cc new file mode 100644 index 000000000..bb76d9b80 --- /dev/null +++ b/rds/src/model/PurgeDBInstanceLogRequest.cc @@ -0,0 +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. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +PurgeDBInstanceLogRequest::PurgeDBInstanceLogRequest() : + RdsRequest("PurgeDBInstanceLog") +{} + +PurgeDBInstanceLogRequest::~PurgeDBInstanceLogRequest() +{} + +long PurgeDBInstanceLogRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void PurgeDBInstanceLogRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string PurgeDBInstanceLogRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void PurgeDBInstanceLogRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string PurgeDBInstanceLogRequest::getClientToken()const +{ + return clientToken_; +} + +void PurgeDBInstanceLogRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string PurgeDBInstanceLogRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void PurgeDBInstanceLogRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string PurgeDBInstanceLogRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void PurgeDBInstanceLogRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long PurgeDBInstanceLogRequest::getOwnerId()const +{ + return ownerId_; +} + +void PurgeDBInstanceLogRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string PurgeDBInstanceLogRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void PurgeDBInstanceLogRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/PurgeDBInstanceLogResult.cc b/rds/src/model/PurgeDBInstanceLogResult.cc new file mode 100644 index 000000000..439336084 --- /dev/null +++ b/rds/src/model/PurgeDBInstanceLogResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +PurgeDBInstanceLogResult::PurgeDBInstanceLogResult() : + ServiceResult() +{} + +PurgeDBInstanceLogResult::PurgeDBInstanceLogResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PurgeDBInstanceLogResult::~PurgeDBInstanceLogResult() +{} + +void PurgeDBInstanceLogResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/QueryPriceForBuyRequest.cc b/rds/src/model/QueryPriceForBuyRequest.cc new file mode 100644 index 000000000..5e9def935 --- /dev/null +++ b/rds/src/model/QueryPriceForBuyRequest.cc @@ -0,0 +1,237 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +QueryPriceForBuyRequest::QueryPriceForBuyRequest() : + RdsRequest("QueryPriceForBuy") +{} + +QueryPriceForBuyRequest::~QueryPriceForBuyRequest() +{} + +long QueryPriceForBuyRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void QueryPriceForBuyRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +int QueryPriceForBuyRequest::getDBInstanceStorage()const +{ + return dBInstanceStorage_; +} + +void QueryPriceForBuyRequest::setDBInstanceStorage(int dBInstanceStorage) +{ + dBInstanceStorage_ = dBInstanceStorage; + setParameter("DBInstanceStorage", std::to_string(dBInstanceStorage)); +} + +int QueryPriceForBuyRequest::getQuantity()const +{ + return quantity_; +} + +void QueryPriceForBuyRequest::setQuantity(int quantity) +{ + quantity_ = quantity; + setParameter("Quantity", std::to_string(quantity)); +} + +std::string QueryPriceForBuyRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void QueryPriceForBuyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string QueryPriceForBuyRequest::getClientToken()const +{ + return clientToken_; +} + +void QueryPriceForBuyRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string QueryPriceForBuyRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void QueryPriceForBuyRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string QueryPriceForBuyRequest::getCommodityCode()const +{ + return commodityCode_; +} + +void QueryPriceForBuyRequest::setCommodityCode(const std::string& commodityCode) +{ + commodityCode_ = commodityCode; + setParameter("CommodityCode", commodityCode); +} + +std::string QueryPriceForBuyRequest::getEngineVersion()const +{ + return engineVersion_; +} + +void QueryPriceForBuyRequest::setEngineVersion(const std::string& engineVersion) +{ + engineVersion_ = engineVersion; + setParameter("EngineVersion", engineVersion); +} + +long QueryPriceForBuyRequest::getOwnerId()const +{ + return ownerId_; +} + +void QueryPriceForBuyRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string QueryPriceForBuyRequest::getUsedTime()const +{ + return usedTime_; +} + +void QueryPriceForBuyRequest::setUsedTime(const std::string& usedTime) +{ + usedTime_ = usedTime; + setParameter("UsedTime", usedTime); +} + +std::string QueryPriceForBuyRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void QueryPriceForBuyRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string QueryPriceForBuyRequest::getDBInstanceClass()const +{ + return dBInstanceClass_; +} + +void QueryPriceForBuyRequest::setDBInstanceClass(const std::string& dBInstanceClass) +{ + dBInstanceClass_ = dBInstanceClass; + setParameter("DBInstanceClass", dBInstanceClass); +} + +int QueryPriceForBuyRequest::getInstanceUsedType()const +{ + return instanceUsedType_; +} + +void QueryPriceForBuyRequest::setInstanceUsedType(int instanceUsedType) +{ + instanceUsedType_ = instanceUsedType; + setParameter("InstanceUsedType", std::to_string(instanceUsedType)); +} + +std::string QueryPriceForBuyRequest::getRegionId()const +{ + return regionId_; +} + +void QueryPriceForBuyRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string QueryPriceForBuyRequest::getEngine()const +{ + return engine_; +} + +void QueryPriceForBuyRequest::setEngine(const std::string& engine) +{ + engine_ = engine; + setParameter("Engine", engine); +} + +std::string QueryPriceForBuyRequest::getZoneId()const +{ + return zoneId_; +} + +void QueryPriceForBuyRequest::setZoneId(const std::string& zoneId) +{ + zoneId_ = zoneId; + setParameter("ZoneId", zoneId); +} + +std::string QueryPriceForBuyRequest::getTimeType()const +{ + return timeType_; +} + +void QueryPriceForBuyRequest::setTimeType(const std::string& timeType) +{ + timeType_ = timeType; + setParameter("TimeType", timeType); +} + +std::string QueryPriceForBuyRequest::getPayType()const +{ + return payType_; +} + +void QueryPriceForBuyRequest::setPayType(const std::string& payType) +{ + payType_ = payType; + setParameter("PayType", payType); +} + +std::string QueryPriceForBuyRequest::getOrderType()const +{ + return orderType_; +} + +void QueryPriceForBuyRequest::setOrderType(const std::string& orderType) +{ + orderType_ = orderType; + setParameter("OrderType", orderType); +} + diff --git a/rds/src/model/QueryPriceForBuyResult.cc b/rds/src/model/QueryPriceForBuyResult.cc new file mode 100644 index 000000000..578b21cc4 --- /dev/null +++ b/rds/src/model/QueryPriceForBuyResult.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +QueryPriceForBuyResult::QueryPriceForBuyResult() : + ServiceResult() +{} + +QueryPriceForBuyResult::QueryPriceForBuyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryPriceForBuyResult::~QueryPriceForBuyResult() +{} + +void QueryPriceForBuyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allRules = value["Rules"]["Rule"]; + for (auto value : allRules) + { + Rule ruleObject; + ruleObject.ruleId = std::stol(value["RuleId"].asString()); + ruleObject.name = value["Name"].asString(); + ruleObject.description = value["Description"].asString(); + rules_.push_back(ruleObject); + } + auto allPriceInfo = value["PriceInfo"]; + for (auto value : allPriceInfo) + { + PriceInfo priceInfoObject; + priceInfoObject.currency = value["Currency"].asString(); + priceInfoObject.originalPrice = std::stof(value["OriginalPrice"].asString()); + priceInfoObject.tradePrice = std::stof(value["TradePrice"].asString()); + priceInfoObject.discountPrice = std::stof(value["DiscountPrice"].asString()); + auto allCoupons = value["Coupons"]["Coupon"]; + for (auto value : allCoupons) + { + PriceInfo::Coupon couponObject; + couponObject.couponNo = value["CouponNo"].asString(); + couponObject.name = value["Name"].asString(); + couponObject.description = value["Description"].asString(); + couponObject.isSelected = value["IsSelected"].asString(); + priceInfoObject.coupons.push_back(couponObject); + } + auto allActivityInfo = value["ActivityInfo"]; + for (auto value : allActivityInfo) + { + PriceInfo::ActivityInfo activityInfoObject; + activityInfoObject.checkErrMsg = value["CheckErrMsg"].asString(); + activityInfoObject.errorCode = value["ErrorCode"].asString(); + activityInfoObject.success = value["Success"].asString(); + priceInfoObject.activityInfo.push_back(activityInfoObject); + } + auto allRuleIds = value["RuleIds"]["RuleId"]; + for (auto value : allRuleIds) + priceInfoObject.ruleIds.push_back(value.asString()); + priceInfo_.push_back(priceInfoObject); + } + +} + diff --git a/rds/src/model/ReleaseInstancePublicConnectionRequest.cc b/rds/src/model/ReleaseInstancePublicConnectionRequest.cc new file mode 100644 index 000000000..44382a34b --- /dev/null +++ b/rds/src/model/ReleaseInstancePublicConnectionRequest.cc @@ -0,0 +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. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +ReleaseInstancePublicConnectionRequest::ReleaseInstancePublicConnectionRequest() : + RdsRequest("ReleaseInstancePublicConnection") +{} + +ReleaseInstancePublicConnectionRequest::~ReleaseInstancePublicConnectionRequest() +{} + +long ReleaseInstancePublicConnectionRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ReleaseInstancePublicConnectionRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ReleaseInstancePublicConnectionRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ReleaseInstancePublicConnectionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ReleaseInstancePublicConnectionRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ReleaseInstancePublicConnectionRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ReleaseInstancePublicConnectionRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void ReleaseInstancePublicConnectionRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long ReleaseInstancePublicConnectionRequest::getOwnerId()const +{ + return ownerId_; +} + +void ReleaseInstancePublicConnectionRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ReleaseInstancePublicConnectionRequest::getCurrentConnectionString()const +{ + return currentConnectionString_; +} + +void ReleaseInstancePublicConnectionRequest::setCurrentConnectionString(const std::string& currentConnectionString) +{ + currentConnectionString_ = currentConnectionString; + setParameter("CurrentConnectionString", currentConnectionString); +} + +std::string ReleaseInstancePublicConnectionRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ReleaseInstancePublicConnectionRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/ReleaseInstancePublicConnectionResult.cc b/rds/src/model/ReleaseInstancePublicConnectionResult.cc new file mode 100644 index 000000000..3db52ef49 --- /dev/null +++ b/rds/src/model/ReleaseInstancePublicConnectionResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +ReleaseInstancePublicConnectionResult::ReleaseInstancePublicConnectionResult() : + ServiceResult() +{} + +ReleaseInstancePublicConnectionResult::ReleaseInstancePublicConnectionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ReleaseInstancePublicConnectionResult::~ReleaseInstancePublicConnectionResult() +{} + +void ReleaseInstancePublicConnectionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/ReleaseReadWriteSplittingConnectionRequest.cc b/rds/src/model/ReleaseReadWriteSplittingConnectionRequest.cc new file mode 100644 index 000000000..4f41c426e --- /dev/null +++ b/rds/src/model/ReleaseReadWriteSplittingConnectionRequest.cc @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +ReleaseReadWriteSplittingConnectionRequest::ReleaseReadWriteSplittingConnectionRequest() : + RdsRequest("ReleaseReadWriteSplittingConnection") +{} + +ReleaseReadWriteSplittingConnectionRequest::~ReleaseReadWriteSplittingConnectionRequest() +{} + +long ReleaseReadWriteSplittingConnectionRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ReleaseReadWriteSplittingConnectionRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ReleaseReadWriteSplittingConnectionRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ReleaseReadWriteSplittingConnectionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ReleaseReadWriteSplittingConnectionRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ReleaseReadWriteSplittingConnectionRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ReleaseReadWriteSplittingConnectionRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void ReleaseReadWriteSplittingConnectionRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long ReleaseReadWriteSplittingConnectionRequest::getOwnerId()const +{ + return ownerId_; +} + +void ReleaseReadWriteSplittingConnectionRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ReleaseReadWriteSplittingConnectionRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ReleaseReadWriteSplittingConnectionRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/ReleaseReadWriteSplittingConnectionResult.cc b/rds/src/model/ReleaseReadWriteSplittingConnectionResult.cc new file mode 100644 index 000000000..e7b6b9ee0 --- /dev/null +++ b/rds/src/model/ReleaseReadWriteSplittingConnectionResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +ReleaseReadWriteSplittingConnectionResult::ReleaseReadWriteSplittingConnectionResult() : + ServiceResult() +{} + +ReleaseReadWriteSplittingConnectionResult::ReleaseReadWriteSplittingConnectionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ReleaseReadWriteSplittingConnectionResult::~ReleaseReadWriteSplittingConnectionResult() +{} + +void ReleaseReadWriteSplittingConnectionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/ReleaseReplicaRequest.cc b/rds/src/model/ReleaseReplicaRequest.cc new file mode 100644 index 000000000..ae6d4eb46 --- /dev/null +++ b/rds/src/model/ReleaseReplicaRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +ReleaseReplicaRequest::ReleaseReplicaRequest() : + RdsRequest("ReleaseReplica") +{} + +ReleaseReplicaRequest::~ReleaseReplicaRequest() +{} + +long ReleaseReplicaRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ReleaseReplicaRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ReleaseReplicaRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ReleaseReplicaRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string ReleaseReplicaRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ReleaseReplicaRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ReleaseReplicaRequest::getRegionId()const +{ + return regionId_; +} + +void ReleaseReplicaRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ReleaseReplicaRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ReleaseReplicaRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ReleaseReplicaRequest::getReplicaId()const +{ + return replicaId_; +} + +void ReleaseReplicaRequest::setReplicaId(const std::string& replicaId) +{ + replicaId_ = replicaId; + setParameter("ReplicaId", replicaId); +} + +long ReleaseReplicaRequest::getOwnerId()const +{ + return ownerId_; +} + +void ReleaseReplicaRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ReleaseReplicaRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ReleaseReplicaRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/ReleaseReplicaResult.cc b/rds/src/model/ReleaseReplicaResult.cc new file mode 100644 index 000000000..9ce9ee088 --- /dev/null +++ b/rds/src/model/ReleaseReplicaResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +ReleaseReplicaResult::ReleaseReplicaResult() : + ServiceResult() +{} + +ReleaseReplicaResult::ReleaseReplicaResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ReleaseReplicaResult::~ReleaseReplicaResult() +{} + +void ReleaseReplicaResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/RemoveTagsFromResourceRequest.cc b/rds/src/model/RemoveTagsFromResourceRequest.cc new file mode 100644 index 000000000..ecce6b22c --- /dev/null +++ b/rds/src/model/RemoveTagsFromResourceRequest.cc @@ -0,0 +1,248 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +RemoveTagsFromResourceRequest::RemoveTagsFromResourceRequest() : + RdsRequest("RemoveTagsFromResource") +{} + +RemoveTagsFromResourceRequest::~RemoveTagsFromResourceRequest() +{} + +std::string RemoveTagsFromResourceRequest::getTag4value()const +{ + return tag4value_; +} + +void RemoveTagsFromResourceRequest::setTag4value(const std::string& tag4value) +{ + tag4value_ = tag4value; + setParameter("Tag4value", tag4value); +} + +long RemoveTagsFromResourceRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void RemoveTagsFromResourceRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string RemoveTagsFromResourceRequest::getTag2key()const +{ + return tag2key_; +} + +void RemoveTagsFromResourceRequest::setTag2key(const std::string& tag2key) +{ + tag2key_ = tag2key; + setParameter("Tag2key", tag2key); +} + +std::string RemoveTagsFromResourceRequest::getTag5key()const +{ + return tag5key_; +} + +void RemoveTagsFromResourceRequest::setTag5key(const std::string& tag5key) +{ + tag5key_ = tag5key; + setParameter("Tag5key", tag5key); +} + +std::string RemoveTagsFromResourceRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void RemoveTagsFromResourceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string RemoveTagsFromResourceRequest::getClientToken()const +{ + return clientToken_; +} + +void RemoveTagsFromResourceRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string RemoveTagsFromResourceRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void RemoveTagsFromResourceRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string RemoveTagsFromResourceRequest::getTag3key()const +{ + return tag3key_; +} + +void RemoveTagsFromResourceRequest::setTag3key(const std::string& tag3key) +{ + tag3key_ = tag3key; + setParameter("Tag3key", tag3key); +} + +long RemoveTagsFromResourceRequest::getOwnerId()const +{ + return ownerId_; +} + +void RemoveTagsFromResourceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string RemoveTagsFromResourceRequest::getTag5value()const +{ + return tag5value_; +} + +void RemoveTagsFromResourceRequest::setTag5value(const std::string& tag5value) +{ + tag5value_ = tag5value; + setParameter("Tag5value", tag5value); +} + +std::string RemoveTagsFromResourceRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void RemoveTagsFromResourceRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string RemoveTagsFromResourceRequest::getTags()const +{ + return tags_; +} + +void RemoveTagsFromResourceRequest::setTags(const std::string& tags) +{ + tags_ = tags; + setParameter("Tags", tags); +} + +std::string RemoveTagsFromResourceRequest::getTag1key()const +{ + return tag1key_; +} + +void RemoveTagsFromResourceRequest::setTag1key(const std::string& tag1key) +{ + tag1key_ = tag1key; + setParameter("Tag1key", tag1key); +} + +std::string RemoveTagsFromResourceRequest::getTag1value()const +{ + return tag1value_; +} + +void RemoveTagsFromResourceRequest::setTag1value(const std::string& tag1value) +{ + tag1value_ = tag1value; + setParameter("Tag1value", tag1value); +} + +std::string RemoveTagsFromResourceRequest::getRegionId()const +{ + return regionId_; +} + +void RemoveTagsFromResourceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string RemoveTagsFromResourceRequest::getTag2value()const +{ + return tag2value_; +} + +void RemoveTagsFromResourceRequest::setTag2value(const std::string& tag2value) +{ + tag2value_ = tag2value; + setParameter("Tag2value", tag2value); +} + +std::string RemoveTagsFromResourceRequest::getTag4key()const +{ + return tag4key_; +} + +void RemoveTagsFromResourceRequest::setTag4key(const std::string& tag4key) +{ + tag4key_ = tag4key; + setParameter("Tag4key", tag4key); +} + +std::string RemoveTagsFromResourceRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void RemoveTagsFromResourceRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +std::string RemoveTagsFromResourceRequest::getTag3value()const +{ + return tag3value_; +} + +void RemoveTagsFromResourceRequest::setTag3value(const std::string& tag3value) +{ + tag3value_ = tag3value; + setParameter("Tag3value", tag3value); +} + +std::string RemoveTagsFromResourceRequest::getProxyId()const +{ + return proxyId_; +} + +void RemoveTagsFromResourceRequest::setProxyId(const std::string& proxyId) +{ + proxyId_ = proxyId; + setParameter("ProxyId", proxyId); +} + diff --git a/rds/src/model/RemoveTagsFromResourceResult.cc b/rds/src/model/RemoveTagsFromResourceResult.cc new file mode 100644 index 000000000..1d7162ce5 --- /dev/null +++ b/rds/src/model/RemoveTagsFromResourceResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +RemoveTagsFromResourceResult::RemoveTagsFromResourceResult() : + ServiceResult() +{} + +RemoveTagsFromResourceResult::RemoveTagsFromResourceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RemoveTagsFromResourceResult::~RemoveTagsFromResourceResult() +{} + +void RemoveTagsFromResourceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/RenewDBInstanceRequest.cc b/rds/src/model/RenewDBInstanceRequest.cc new file mode 100644 index 000000000..402db58ef --- /dev/null +++ b/rds/src/model/RenewDBInstanceRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +RenewDBInstanceRequest::RenewDBInstanceRequest() : + RdsRequest("RenewDBInstance") +{} + +RenewDBInstanceRequest::~RenewDBInstanceRequest() +{} + +long RenewDBInstanceRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void RenewDBInstanceRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string RenewDBInstanceRequest::getPeriod()const +{ + return period_; +} + +void RenewDBInstanceRequest::setPeriod(const std::string& period) +{ + period_ = period; + setParameter("Period", period); +} + +std::string RenewDBInstanceRequest::getAutoPay()const +{ + return autoPay_; +} + +void RenewDBInstanceRequest::setAutoPay(const std::string& autoPay) +{ + autoPay_ = autoPay; + setParameter("AutoPay", autoPay); +} + +std::string RenewDBInstanceRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void RenewDBInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string RenewDBInstanceRequest::getClientToken()const +{ + return clientToken_; +} + +void RenewDBInstanceRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string RenewDBInstanceRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void RenewDBInstanceRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long RenewDBInstanceRequest::getOwnerId()const +{ + return ownerId_; +} + +void RenewDBInstanceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string RenewDBInstanceRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void RenewDBInstanceRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/RenewDBInstanceResult.cc b/rds/src/model/RenewDBInstanceResult.cc new file mode 100644 index 000000000..00f3d559c --- /dev/null +++ b/rds/src/model/RenewDBInstanceResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +RenewDBInstanceResult::RenewDBInstanceResult() : + ServiceResult() +{} + +RenewDBInstanceResult::RenewDBInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RenewDBInstanceResult::~RenewDBInstanceResult() +{} + +void RenewDBInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/RenewInstanceRequest.cc b/rds/src/model/RenewInstanceRequest.cc new file mode 100644 index 000000000..ff0acf2a4 --- /dev/null +++ b/rds/src/model/RenewInstanceRequest.cc @@ -0,0 +1,127 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +RenewInstanceRequest::RenewInstanceRequest() : + RdsRequest("RenewInstance") +{} + +RenewInstanceRequest::~RenewInstanceRequest() +{} + +long RenewInstanceRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void RenewInstanceRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string RenewInstanceRequest::getPeriod()const +{ + return period_; +} + +void RenewInstanceRequest::setPeriod(const std::string& period) +{ + period_ = period; + setParameter("Period", period); +} + +std::string RenewInstanceRequest::getAutoPay()const +{ + return autoPay_; +} + +void RenewInstanceRequest::setAutoPay(const std::string& autoPay) +{ + autoPay_ = autoPay; + setParameter("AutoPay", autoPay); +} + +std::string RenewInstanceRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void RenewInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string RenewInstanceRequest::getClientToken()const +{ + return clientToken_; +} + +void RenewInstanceRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string RenewInstanceRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void RenewInstanceRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long RenewInstanceRequest::getOwnerId()const +{ + return ownerId_; +} + +void RenewInstanceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string RenewInstanceRequest::getBusinessInfo()const +{ + return businessInfo_; +} + +void RenewInstanceRequest::setBusinessInfo(const std::string& businessInfo) +{ + businessInfo_ = businessInfo; + setParameter("BusinessInfo", businessInfo); +} + +std::string RenewInstanceRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void RenewInstanceRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/RenewInstanceResult.cc b/rds/src/model/RenewInstanceResult.cc new file mode 100644 index 000000000..bd5a440ef --- /dev/null +++ b/rds/src/model/RenewInstanceResult.cc @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +RenewInstanceResult::RenewInstanceResult() : + ServiceResult() +{} + +RenewInstanceResult::RenewInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RenewInstanceResult::~RenewInstanceResult() +{} + +void RenewInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + orderId_ = std::stol(value["OrderId"].asString()); + +} + +long RenewInstanceResult::getOrderId()const +{ + return orderId_; +} + +void RenewInstanceResult::setOrderId(long orderId) +{ + orderId_ = orderId; +} + diff --git a/rds/src/model/RequestServiceOfCloudDBARequest.cc b/rds/src/model/RequestServiceOfCloudDBARequest.cc new file mode 100644 index 000000000..ed0eef6aa --- /dev/null +++ b/rds/src/model/RequestServiceOfCloudDBARequest.cc @@ -0,0 +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 namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +RequestServiceOfCloudDBARequest::RequestServiceOfCloudDBARequest() : + RdsRequest("RequestServiceOfCloudDBA") +{} + +RequestServiceOfCloudDBARequest::~RequestServiceOfCloudDBARequest() +{} + +std::string RequestServiceOfCloudDBARequest::getServiceRequestParam()const +{ + return serviceRequestParam_; +} + +void RequestServiceOfCloudDBARequest::setServiceRequestParam(const std::string& serviceRequestParam) +{ + serviceRequestParam_ = serviceRequestParam; + setParameter("ServiceRequestParam", serviceRequestParam); +} + +std::string RequestServiceOfCloudDBARequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void RequestServiceOfCloudDBARequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +std::string RequestServiceOfCloudDBARequest::getServiceRequestType()const +{ + return serviceRequestType_; +} + +void RequestServiceOfCloudDBARequest::setServiceRequestType(const std::string& serviceRequestType) +{ + serviceRequestType_ = serviceRequestType; + setParameter("ServiceRequestType", serviceRequestType); +} + +std::string RequestServiceOfCloudDBARequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void RequestServiceOfCloudDBARequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/RequestServiceOfCloudDBAResult.cc b/rds/src/model/RequestServiceOfCloudDBAResult.cc new file mode 100644 index 000000000..42e08abeb --- /dev/null +++ b/rds/src/model/RequestServiceOfCloudDBAResult.cc @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +RequestServiceOfCloudDBAResult::RequestServiceOfCloudDBAResult() : + ServiceResult() +{} + +RequestServiceOfCloudDBAResult::RequestServiceOfCloudDBAResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RequestServiceOfCloudDBAResult::~RequestServiceOfCloudDBAResult() +{} + +void RequestServiceOfCloudDBAResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + listData_ = value["ListData"].asString(); + attrData_ = value["AttrData"].asString(); + +} + +std::string RequestServiceOfCloudDBAResult::getAttrData()const +{ + return attrData_; +} + +void RequestServiceOfCloudDBAResult::setAttrData(const std::string& attrData) +{ + attrData_ = attrData; +} + +std::string RequestServiceOfCloudDBAResult::getListData()const +{ + return listData_; +} + +void RequestServiceOfCloudDBAResult::setListData(const std::string& listData) +{ + listData_ = listData; +} + diff --git a/rds/src/model/ResetAccountForPGRequest.cc b/rds/src/model/ResetAccountForPGRequest.cc new file mode 100644 index 000000000..be57bf3e8 --- /dev/null +++ b/rds/src/model/ResetAccountForPGRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +ResetAccountForPGRequest::ResetAccountForPGRequest() : + RdsRequest("ResetAccountForPG") +{} + +ResetAccountForPGRequest::~ResetAccountForPGRequest() +{} + +long ResetAccountForPGRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ResetAccountForPGRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ResetAccountForPGRequest::getAccountPassword()const +{ + return accountPassword_; +} + +void ResetAccountForPGRequest::setAccountPassword(const std::string& accountPassword) +{ + accountPassword_ = accountPassword; + setParameter("AccountPassword", accountPassword); +} + +std::string ResetAccountForPGRequest::getAccountName()const +{ + return accountName_; +} + +void ResetAccountForPGRequest::setAccountName(const std::string& accountName) +{ + accountName_ = accountName; + setParameter("AccountName", accountName); +} + +std::string ResetAccountForPGRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ResetAccountForPGRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ResetAccountForPGRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ResetAccountForPGRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ResetAccountForPGRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void ResetAccountForPGRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long ResetAccountForPGRequest::getOwnerId()const +{ + return ownerId_; +} + +void ResetAccountForPGRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ResetAccountForPGRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ResetAccountForPGRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/ResetAccountForPGResult.cc b/rds/src/model/ResetAccountForPGResult.cc new file mode 100644 index 000000000..bef3d2aa1 --- /dev/null +++ b/rds/src/model/ResetAccountForPGResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +ResetAccountForPGResult::ResetAccountForPGResult() : + ServiceResult() +{} + +ResetAccountForPGResult::ResetAccountForPGResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ResetAccountForPGResult::~ResetAccountForPGResult() +{} + +void ResetAccountForPGResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/ResetAccountPasswordRequest.cc b/rds/src/model/ResetAccountPasswordRequest.cc new file mode 100644 index 000000000..31cd06f1f --- /dev/null +++ b/rds/src/model/ResetAccountPasswordRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +ResetAccountPasswordRequest::ResetAccountPasswordRequest() : + RdsRequest("ResetAccountPassword") +{} + +ResetAccountPasswordRequest::~ResetAccountPasswordRequest() +{} + +long ResetAccountPasswordRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ResetAccountPasswordRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ResetAccountPasswordRequest::getAccountPassword()const +{ + return accountPassword_; +} + +void ResetAccountPasswordRequest::setAccountPassword(const std::string& accountPassword) +{ + accountPassword_ = accountPassword; + setParameter("AccountPassword", accountPassword); +} + +std::string ResetAccountPasswordRequest::getAccountName()const +{ + return accountName_; +} + +void ResetAccountPasswordRequest::setAccountName(const std::string& accountName) +{ + accountName_ = accountName; + setParameter("AccountName", accountName); +} + +std::string ResetAccountPasswordRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ResetAccountPasswordRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ResetAccountPasswordRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ResetAccountPasswordRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ResetAccountPasswordRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void ResetAccountPasswordRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long ResetAccountPasswordRequest::getOwnerId()const +{ + return ownerId_; +} + +void ResetAccountPasswordRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ResetAccountPasswordRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ResetAccountPasswordRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/ResetAccountPasswordResult.cc b/rds/src/model/ResetAccountPasswordResult.cc new file mode 100644 index 000000000..6eb877b87 --- /dev/null +++ b/rds/src/model/ResetAccountPasswordResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +ResetAccountPasswordResult::ResetAccountPasswordResult() : + ServiceResult() +{} + +ResetAccountPasswordResult::ResetAccountPasswordResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ResetAccountPasswordResult::~ResetAccountPasswordResult() +{} + +void ResetAccountPasswordResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/ResetAccountRequest.cc b/rds/src/model/ResetAccountRequest.cc new file mode 100644 index 000000000..155faff9d --- /dev/null +++ b/rds/src/model/ResetAccountRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +ResetAccountRequest::ResetAccountRequest() : + RdsRequest("ResetAccount") +{} + +ResetAccountRequest::~ResetAccountRequest() +{} + +long ResetAccountRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ResetAccountRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ResetAccountRequest::getAccountPassword()const +{ + return accountPassword_; +} + +void ResetAccountRequest::setAccountPassword(const std::string& accountPassword) +{ + accountPassword_ = accountPassword; + setParameter("AccountPassword", accountPassword); +} + +std::string ResetAccountRequest::getAccountName()const +{ + return accountName_; +} + +void ResetAccountRequest::setAccountName(const std::string& accountName) +{ + accountName_ = accountName; + setParameter("AccountName", accountName); +} + +std::string ResetAccountRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ResetAccountRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ResetAccountRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ResetAccountRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ResetAccountRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void ResetAccountRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long ResetAccountRequest::getOwnerId()const +{ + return ownerId_; +} + +void ResetAccountRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ResetAccountRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ResetAccountRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/ResetAccountResult.cc b/rds/src/model/ResetAccountResult.cc new file mode 100644 index 000000000..cbf634676 --- /dev/null +++ b/rds/src/model/ResetAccountResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +ResetAccountResult::ResetAccountResult() : + ServiceResult() +{} + +ResetAccountResult::ResetAccountResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ResetAccountResult::~ResetAccountResult() +{} + +void ResetAccountResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/RestartDBInstanceRequest.cc b/rds/src/model/RestartDBInstanceRequest.cc new file mode 100644 index 000000000..b69f57540 --- /dev/null +++ b/rds/src/model/RestartDBInstanceRequest.cc @@ -0,0 +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. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +RestartDBInstanceRequest::RestartDBInstanceRequest() : + RdsRequest("RestartDBInstance") +{} + +RestartDBInstanceRequest::~RestartDBInstanceRequest() +{} + +long RestartDBInstanceRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void RestartDBInstanceRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string RestartDBInstanceRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void RestartDBInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string RestartDBInstanceRequest::getClientToken()const +{ + return clientToken_; +} + +void RestartDBInstanceRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string RestartDBInstanceRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void RestartDBInstanceRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string RestartDBInstanceRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void RestartDBInstanceRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long RestartDBInstanceRequest::getOwnerId()const +{ + return ownerId_; +} + +void RestartDBInstanceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string RestartDBInstanceRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void RestartDBInstanceRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/RestartDBInstanceResult.cc b/rds/src/model/RestartDBInstanceResult.cc new file mode 100644 index 000000000..9f94b3168 --- /dev/null +++ b/rds/src/model/RestartDBInstanceResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +RestartDBInstanceResult::RestartDBInstanceResult() : + ServiceResult() +{} + +RestartDBInstanceResult::RestartDBInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RestartDBInstanceResult::~RestartDBInstanceResult() +{} + +void RestartDBInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/RestoreDBInstanceRequest.cc b/rds/src/model/RestoreDBInstanceRequest.cc new file mode 100644 index 000000000..6a64f5b15 --- /dev/null +++ b/rds/src/model/RestoreDBInstanceRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +RestoreDBInstanceRequest::RestoreDBInstanceRequest() : + RdsRequest("RestoreDBInstance") +{} + +RestoreDBInstanceRequest::~RestoreDBInstanceRequest() +{} + +long RestoreDBInstanceRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void RestoreDBInstanceRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string RestoreDBInstanceRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void RestoreDBInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string RestoreDBInstanceRequest::getClientToken()const +{ + return clientToken_; +} + +void RestoreDBInstanceRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string RestoreDBInstanceRequest::getBackupId()const +{ + return backupId_; +} + +void RestoreDBInstanceRequest::setBackupId(const std::string& backupId) +{ + backupId_ = backupId; + setParameter("BackupId", backupId); +} + +std::string RestoreDBInstanceRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void RestoreDBInstanceRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string RestoreDBInstanceRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void RestoreDBInstanceRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long RestoreDBInstanceRequest::getOwnerId()const +{ + return ownerId_; +} + +void RestoreDBInstanceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string RestoreDBInstanceRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void RestoreDBInstanceRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/RestoreDBInstanceResult.cc b/rds/src/model/RestoreDBInstanceResult.cc new file mode 100644 index 000000000..654dd1423 --- /dev/null +++ b/rds/src/model/RestoreDBInstanceResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +RestoreDBInstanceResult::RestoreDBInstanceResult() : + ServiceResult() +{} + +RestoreDBInstanceResult::RestoreDBInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RestoreDBInstanceResult::~RestoreDBInstanceResult() +{} + +void RestoreDBInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/RevokeAccountPrivilegeRequest.cc b/rds/src/model/RevokeAccountPrivilegeRequest.cc new file mode 100644 index 000000000..f5f1c58fc --- /dev/null +++ b/rds/src/model/RevokeAccountPrivilegeRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +RevokeAccountPrivilegeRequest::RevokeAccountPrivilegeRequest() : + RdsRequest("RevokeAccountPrivilege") +{} + +RevokeAccountPrivilegeRequest::~RevokeAccountPrivilegeRequest() +{} + +long RevokeAccountPrivilegeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void RevokeAccountPrivilegeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string RevokeAccountPrivilegeRequest::getAccountName()const +{ + return accountName_; +} + +void RevokeAccountPrivilegeRequest::setAccountName(const std::string& accountName) +{ + accountName_ = accountName; + setParameter("AccountName", accountName); +} + +std::string RevokeAccountPrivilegeRequest::getDBName()const +{ + return dBName_; +} + +void RevokeAccountPrivilegeRequest::setDBName(const std::string& dBName) +{ + dBName_ = dBName; + setParameter("DBName", dBName); +} + +std::string RevokeAccountPrivilegeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void RevokeAccountPrivilegeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string RevokeAccountPrivilegeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void RevokeAccountPrivilegeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string RevokeAccountPrivilegeRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void RevokeAccountPrivilegeRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long RevokeAccountPrivilegeRequest::getOwnerId()const +{ + return ownerId_; +} + +void RevokeAccountPrivilegeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string RevokeAccountPrivilegeRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void RevokeAccountPrivilegeRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/RevokeAccountPrivilegeResult.cc b/rds/src/model/RevokeAccountPrivilegeResult.cc new file mode 100644 index 000000000..d846e294e --- /dev/null +++ b/rds/src/model/RevokeAccountPrivilegeResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +RevokeAccountPrivilegeResult::RevokeAccountPrivilegeResult() : + ServiceResult() +{} + +RevokeAccountPrivilegeResult::RevokeAccountPrivilegeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RevokeAccountPrivilegeResult::~RevokeAccountPrivilegeResult() +{} + +void RevokeAccountPrivilegeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/RevokeOperatorPermissionRequest.cc b/rds/src/model/RevokeOperatorPermissionRequest.cc new file mode 100644 index 000000000..dc1ca6a8d --- /dev/null +++ b/rds/src/model/RevokeOperatorPermissionRequest.cc @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +RevokeOperatorPermissionRequest::RevokeOperatorPermissionRequest() : + RdsRequest("RevokeOperatorPermission") +{} + +RevokeOperatorPermissionRequest::~RevokeOperatorPermissionRequest() +{} + +long RevokeOperatorPermissionRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void RevokeOperatorPermissionRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string RevokeOperatorPermissionRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void RevokeOperatorPermissionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string RevokeOperatorPermissionRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void RevokeOperatorPermissionRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string RevokeOperatorPermissionRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void RevokeOperatorPermissionRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long RevokeOperatorPermissionRequest::getOwnerId()const +{ + return ownerId_; +} + +void RevokeOperatorPermissionRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string RevokeOperatorPermissionRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void RevokeOperatorPermissionRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/RevokeOperatorPermissionResult.cc b/rds/src/model/RevokeOperatorPermissionResult.cc new file mode 100644 index 000000000..717f2746d --- /dev/null +++ b/rds/src/model/RevokeOperatorPermissionResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +RevokeOperatorPermissionResult::RevokeOperatorPermissionResult() : + ServiceResult() +{} + +RevokeOperatorPermissionResult::RevokeOperatorPermissionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RevokeOperatorPermissionResult::~RevokeOperatorPermissionResult() +{} + +void RevokeOperatorPermissionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/StartArchiveSQLLogRequest.cc b/rds/src/model/StartArchiveSQLLogRequest.cc new file mode 100644 index 000000000..809466274 --- /dev/null +++ b/rds/src/model/StartArchiveSQLLogRequest.cc @@ -0,0 +1,149 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +StartArchiveSQLLogRequest::StartArchiveSQLLogRequest() : + RdsRequest("StartArchiveSQLLog") +{} + +StartArchiveSQLLogRequest::~StartArchiveSQLLogRequest() +{} + +long StartArchiveSQLLogRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void StartArchiveSQLLogRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string StartArchiveSQLLogRequest::getDatabase()const +{ + return database_; +} + +void StartArchiveSQLLogRequest::setDatabase(const std::string& database) +{ + database_ = database; + setParameter("Database", database); +} + +std::string StartArchiveSQLLogRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void StartArchiveSQLLogRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string StartArchiveSQLLogRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void StartArchiveSQLLogRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string StartArchiveSQLLogRequest::getEndTime()const +{ + return endTime_; +} + +void StartArchiveSQLLogRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +std::string StartArchiveSQLLogRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void StartArchiveSQLLogRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +std::string StartArchiveSQLLogRequest::getStartTime()const +{ + return startTime_; +} + +void StartArchiveSQLLogRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + +long StartArchiveSQLLogRequest::getOwnerId()const +{ + return ownerId_; +} + +void StartArchiveSQLLogRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string StartArchiveSQLLogRequest::getUser()const +{ + return user_; +} + +void StartArchiveSQLLogRequest::setUser(const std::string& user) +{ + user_ = user; + setParameter("User", user); +} + +std::string StartArchiveSQLLogRequest::getQueryKeywords()const +{ + return queryKeywords_; +} + +void StartArchiveSQLLogRequest::setQueryKeywords(const std::string& queryKeywords) +{ + queryKeywords_ = queryKeywords; + setParameter("QueryKeywords", queryKeywords); +} + +std::string StartArchiveSQLLogRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void StartArchiveSQLLogRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/StartArchiveSQLLogResult.cc b/rds/src/model/StartArchiveSQLLogResult.cc new file mode 100644 index 000000000..5588f8b08 --- /dev/null +++ b/rds/src/model/StartArchiveSQLLogResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +StartArchiveSQLLogResult::StartArchiveSQLLogResult() : + ServiceResult() +{} + +StartArchiveSQLLogResult::StartArchiveSQLLogResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StartArchiveSQLLogResult::~StartArchiveSQLLogResult() +{} + +void StartArchiveSQLLogResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/StartDBInstanceDiagnoseRequest.cc b/rds/src/model/StartDBInstanceDiagnoseRequest.cc new file mode 100644 index 000000000..3e85a8458 --- /dev/null +++ b/rds/src/model/StartDBInstanceDiagnoseRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +StartDBInstanceDiagnoseRequest::StartDBInstanceDiagnoseRequest() : + RdsRequest("StartDBInstanceDiagnose") +{} + +StartDBInstanceDiagnoseRequest::~StartDBInstanceDiagnoseRequest() +{} + +long StartDBInstanceDiagnoseRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void StartDBInstanceDiagnoseRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string StartDBInstanceDiagnoseRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void StartDBInstanceDiagnoseRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string StartDBInstanceDiagnoseRequest::getClientToken()const +{ + return clientToken_; +} + +void StartDBInstanceDiagnoseRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string StartDBInstanceDiagnoseRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void StartDBInstanceDiagnoseRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string StartDBInstanceDiagnoseRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void StartDBInstanceDiagnoseRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long StartDBInstanceDiagnoseRequest::getOwnerId()const +{ + return ownerId_; +} + +void StartDBInstanceDiagnoseRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string StartDBInstanceDiagnoseRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void StartDBInstanceDiagnoseRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string StartDBInstanceDiagnoseRequest::getProxyId()const +{ + return proxyId_; +} + +void StartDBInstanceDiagnoseRequest::setProxyId(const std::string& proxyId) +{ + proxyId_ = proxyId; + setParameter("ProxyId", proxyId); +} + diff --git a/rds/src/model/StartDBInstanceDiagnoseResult.cc b/rds/src/model/StartDBInstanceDiagnoseResult.cc new file mode 100644 index 000000000..8fe4e1388 --- /dev/null +++ b/rds/src/model/StartDBInstanceDiagnoseResult.cc @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +StartDBInstanceDiagnoseResult::StartDBInstanceDiagnoseResult() : + ServiceResult() +{} + +StartDBInstanceDiagnoseResult::StartDBInstanceDiagnoseResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StartDBInstanceDiagnoseResult::~StartDBInstanceDiagnoseResult() +{} + +void StartDBInstanceDiagnoseResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + dBInstanceName_ = value["DBInstanceName"].asString(); + dBInstanceId_ = value["DBInstanceId"].asString(); + +} + +std::string StartDBInstanceDiagnoseResult::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void StartDBInstanceDiagnoseResult::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; +} + +std::string StartDBInstanceDiagnoseResult::getDBInstanceName()const +{ + return dBInstanceName_; +} + +void StartDBInstanceDiagnoseResult::setDBInstanceName(const std::string& dBInstanceName) +{ + dBInstanceName_ = dBInstanceName; +} + diff --git a/rds/src/model/StopSyncingRequest.cc b/rds/src/model/StopSyncingRequest.cc new file mode 100644 index 000000000..6424e73db --- /dev/null +++ b/rds/src/model/StopSyncingRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +StopSyncingRequest::StopSyncingRequest() : + RdsRequest("StopSyncing") +{} + +StopSyncingRequest::~StopSyncingRequest() +{} + +long StopSyncingRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void StopSyncingRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +int StopSyncingRequest::getImportId()const +{ + return importId_; +} + +void StopSyncingRequest::setImportId(int importId) +{ + importId_ = importId; + setParameter("ImportId", std::to_string(importId)); +} + +std::string StopSyncingRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void StopSyncingRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string StopSyncingRequest::getClientToken()const +{ + return clientToken_; +} + +void StopSyncingRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string StopSyncingRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void StopSyncingRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string StopSyncingRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void StopSyncingRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long StopSyncingRequest::getOwnerId()const +{ + return ownerId_; +} + +void StopSyncingRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string StopSyncingRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void StopSyncingRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/StopSyncingResult.cc b/rds/src/model/StopSyncingResult.cc new file mode 100644 index 000000000..cf9b82f87 --- /dev/null +++ b/rds/src/model/StopSyncingResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +StopSyncingResult::StopSyncingResult() : + ServiceResult() +{} + +StopSyncingResult::StopSyncingResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StopSyncingResult::~StopSyncingResult() +{} + +void StopSyncingResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/SwitchDBInstanceHARequest.cc b/rds/src/model/SwitchDBInstanceHARequest.cc new file mode 100644 index 000000000..adb29165e --- /dev/null +++ b/rds/src/model/SwitchDBInstanceHARequest.cc @@ -0,0 +1,138 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +SwitchDBInstanceHARequest::SwitchDBInstanceHARequest() : + RdsRequest("SwitchDBInstanceHA") +{} + +SwitchDBInstanceHARequest::~SwitchDBInstanceHARequest() +{} + +long SwitchDBInstanceHARequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void SwitchDBInstanceHARequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string SwitchDBInstanceHARequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void SwitchDBInstanceHARequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string SwitchDBInstanceHARequest::getEffectiveTime()const +{ + return effectiveTime_; +} + +void SwitchDBInstanceHARequest::setEffectiveTime(const std::string& effectiveTime) +{ + effectiveTime_ = effectiveTime; + setParameter("EffectiveTime", effectiveTime); +} + +std::string SwitchDBInstanceHARequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void SwitchDBInstanceHARequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string SwitchDBInstanceHARequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void SwitchDBInstanceHARequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +std::string SwitchDBInstanceHARequest::getForce()const +{ + return force_; +} + +void SwitchDBInstanceHARequest::setForce(const std::string& force) +{ + force_ = force; + setParameter("Force", force); +} + +long SwitchDBInstanceHARequest::getOwnerId()const +{ + return ownerId_; +} + +void SwitchDBInstanceHARequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string SwitchDBInstanceHARequest::getNodeId()const +{ + return nodeId_; +} + +void SwitchDBInstanceHARequest::setNodeId(const std::string& nodeId) +{ + nodeId_ = nodeId; + setParameter("NodeId", nodeId); +} + +std::string SwitchDBInstanceHARequest::getOperation()const +{ + return operation_; +} + +void SwitchDBInstanceHARequest::setOperation(const std::string& operation) +{ + operation_ = operation; + setParameter("Operation", operation); +} + +std::string SwitchDBInstanceHARequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void SwitchDBInstanceHARequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/SwitchDBInstanceHAResult.cc b/rds/src/model/SwitchDBInstanceHAResult.cc new file mode 100644 index 000000000..ee8ba5f0e --- /dev/null +++ b/rds/src/model/SwitchDBInstanceHAResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +SwitchDBInstanceHAResult::SwitchDBInstanceHAResult() : + ServiceResult() +{} + +SwitchDBInstanceHAResult::SwitchDBInstanceHAResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SwitchDBInstanceHAResult::~SwitchDBInstanceHAResult() +{} + +void SwitchDBInstanceHAResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/SwitchDBInstanceNetTypeRequest.cc b/rds/src/model/SwitchDBInstanceNetTypeRequest.cc new file mode 100644 index 000000000..d3eecc671 --- /dev/null +++ b/rds/src/model/SwitchDBInstanceNetTypeRequest.cc @@ -0,0 +1,138 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +SwitchDBInstanceNetTypeRequest::SwitchDBInstanceNetTypeRequest() : + RdsRequest("SwitchDBInstanceNetType") +{} + +SwitchDBInstanceNetTypeRequest::~SwitchDBInstanceNetTypeRequest() +{} + +long SwitchDBInstanceNetTypeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void SwitchDBInstanceNetTypeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string SwitchDBInstanceNetTypeRequest::getConnectionStringPrefix()const +{ + return connectionStringPrefix_; +} + +void SwitchDBInstanceNetTypeRequest::setConnectionStringPrefix(const std::string& connectionStringPrefix) +{ + connectionStringPrefix_ = connectionStringPrefix; + setParameter("ConnectionStringPrefix", connectionStringPrefix); +} + +std::string SwitchDBInstanceNetTypeRequest::getConnectionStringType()const +{ + return connectionStringType_; +} + +void SwitchDBInstanceNetTypeRequest::setConnectionStringType(const std::string& connectionStringType) +{ + connectionStringType_ = connectionStringType; + setParameter("ConnectionStringType", connectionStringType); +} + +std::string SwitchDBInstanceNetTypeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void SwitchDBInstanceNetTypeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string SwitchDBInstanceNetTypeRequest::getClientToken()const +{ + return clientToken_; +} + +void SwitchDBInstanceNetTypeRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string SwitchDBInstanceNetTypeRequest::getPort()const +{ + return port_; +} + +void SwitchDBInstanceNetTypeRequest::setPort(const std::string& port) +{ + port_ = port; + setParameter("Port", port); +} + +std::string SwitchDBInstanceNetTypeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void SwitchDBInstanceNetTypeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string SwitchDBInstanceNetTypeRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void SwitchDBInstanceNetTypeRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long SwitchDBInstanceNetTypeRequest::getOwnerId()const +{ + return ownerId_; +} + +void SwitchDBInstanceNetTypeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string SwitchDBInstanceNetTypeRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void SwitchDBInstanceNetTypeRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/SwitchDBInstanceNetTypeResult.cc b/rds/src/model/SwitchDBInstanceNetTypeResult.cc new file mode 100644 index 000000000..3ebe1030d --- /dev/null +++ b/rds/src/model/SwitchDBInstanceNetTypeResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +SwitchDBInstanceNetTypeResult::SwitchDBInstanceNetTypeResult() : + ServiceResult() +{} + +SwitchDBInstanceNetTypeResult::SwitchDBInstanceNetTypeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SwitchDBInstanceNetTypeResult::~SwitchDBInstanceNetTypeResult() +{} + +void SwitchDBInstanceNetTypeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/UpgradeDBInstanceEngineVersionRequest.cc b/rds/src/model/UpgradeDBInstanceEngineVersionRequest.cc new file mode 100644 index 000000000..be4bf56f5 --- /dev/null +++ b/rds/src/model/UpgradeDBInstanceEngineVersionRequest.cc @@ -0,0 +1,127 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +UpgradeDBInstanceEngineVersionRequest::UpgradeDBInstanceEngineVersionRequest() : + RdsRequest("UpgradeDBInstanceEngineVersion") +{} + +UpgradeDBInstanceEngineVersionRequest::~UpgradeDBInstanceEngineVersionRequest() +{} + +long UpgradeDBInstanceEngineVersionRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void UpgradeDBInstanceEngineVersionRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string UpgradeDBInstanceEngineVersionRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void UpgradeDBInstanceEngineVersionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string UpgradeDBInstanceEngineVersionRequest::getClientToken()const +{ + return clientToken_; +} + +void UpgradeDBInstanceEngineVersionRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string UpgradeDBInstanceEngineVersionRequest::getEffectiveTime()const +{ + return effectiveTime_; +} + +void UpgradeDBInstanceEngineVersionRequest::setEffectiveTime(const std::string& effectiveTime) +{ + effectiveTime_ = effectiveTime; + setParameter("EffectiveTime", effectiveTime); +} + +std::string UpgradeDBInstanceEngineVersionRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void UpgradeDBInstanceEngineVersionRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string UpgradeDBInstanceEngineVersionRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void UpgradeDBInstanceEngineVersionRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +std::string UpgradeDBInstanceEngineVersionRequest::getEngineVersion()const +{ + return engineVersion_; +} + +void UpgradeDBInstanceEngineVersionRequest::setEngineVersion(const std::string& engineVersion) +{ + engineVersion_ = engineVersion; + setParameter("EngineVersion", engineVersion); +} + +long UpgradeDBInstanceEngineVersionRequest::getOwnerId()const +{ + return ownerId_; +} + +void UpgradeDBInstanceEngineVersionRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string UpgradeDBInstanceEngineVersionRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void UpgradeDBInstanceEngineVersionRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/UpgradeDBInstanceEngineVersionResult.cc b/rds/src/model/UpgradeDBInstanceEngineVersionResult.cc new file mode 100644 index 000000000..8f5c5c981 --- /dev/null +++ b/rds/src/model/UpgradeDBInstanceEngineVersionResult.cc @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +UpgradeDBInstanceEngineVersionResult::UpgradeDBInstanceEngineVersionResult() : + ServiceResult() +{} + +UpgradeDBInstanceEngineVersionResult::UpgradeDBInstanceEngineVersionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpgradeDBInstanceEngineVersionResult::~UpgradeDBInstanceEngineVersionResult() +{} + +void UpgradeDBInstanceEngineVersionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + taskId_ = value["TaskId"].asString(); + +} + +std::string UpgradeDBInstanceEngineVersionResult::getTaskId()const +{ + return taskId_; +} + +void UpgradeDBInstanceEngineVersionResult::setTaskId(const std::string& taskId) +{ + taskId_ = taskId; +} + diff --git a/rds/src/model/UpgradeDBInstanceNetWorkInfoRequest.cc b/rds/src/model/UpgradeDBInstanceNetWorkInfoRequest.cc new file mode 100644 index 000000000..2a75e5122 --- /dev/null +++ b/rds/src/model/UpgradeDBInstanceNetWorkInfoRequest.cc @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +UpgradeDBInstanceNetWorkInfoRequest::UpgradeDBInstanceNetWorkInfoRequest() : + RdsRequest("UpgradeDBInstanceNetWorkInfo") +{} + +UpgradeDBInstanceNetWorkInfoRequest::~UpgradeDBInstanceNetWorkInfoRequest() +{} + +long UpgradeDBInstanceNetWorkInfoRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void UpgradeDBInstanceNetWorkInfoRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string UpgradeDBInstanceNetWorkInfoRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void UpgradeDBInstanceNetWorkInfoRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string UpgradeDBInstanceNetWorkInfoRequest::getConnectionString()const +{ + return connectionString_; +} + +void UpgradeDBInstanceNetWorkInfoRequest::setConnectionString(const std::string& connectionString) +{ + connectionString_ = connectionString; + setParameter("ConnectionString", connectionString); +} + +std::string UpgradeDBInstanceNetWorkInfoRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void UpgradeDBInstanceNetWorkInfoRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long UpgradeDBInstanceNetWorkInfoRequest::getOwnerId()const +{ + return ownerId_; +} + +void UpgradeDBInstanceNetWorkInfoRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string UpgradeDBInstanceNetWorkInfoRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void UpgradeDBInstanceNetWorkInfoRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/UpgradeDBInstanceNetWorkInfoResult.cc b/rds/src/model/UpgradeDBInstanceNetWorkInfoResult.cc new file mode 100644 index 000000000..3684b9856 --- /dev/null +++ b/rds/src/model/UpgradeDBInstanceNetWorkInfoResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +UpgradeDBInstanceNetWorkInfoResult::UpgradeDBInstanceNetWorkInfoResult() : + ServiceResult() +{} + +UpgradeDBInstanceNetWorkInfoResult::UpgradeDBInstanceNetWorkInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpgradeDBInstanceNetWorkInfoResult::~UpgradeDBInstanceNetWorkInfoResult() +{} + +void UpgradeDBInstanceNetWorkInfoResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/rds/src/model/UpgradeDBInstanceNetworkRequest.cc b/rds/src/model/UpgradeDBInstanceNetworkRequest.cc new file mode 100644 index 000000000..af64469df --- /dev/null +++ b/rds/src/model/UpgradeDBInstanceNetworkRequest.cc @@ -0,0 +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. + */ + +#include + +using namespace AlibabaCloud::Rds; +using namespace AlibabaCloud::Rds::Model; + +UpgradeDBInstanceNetworkRequest::UpgradeDBInstanceNetworkRequest() : + RdsRequest("UpgradeDBInstanceNetwork") +{} + +UpgradeDBInstanceNetworkRequest::~UpgradeDBInstanceNetworkRequest() +{} + +long UpgradeDBInstanceNetworkRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void UpgradeDBInstanceNetworkRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string UpgradeDBInstanceNetworkRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void UpgradeDBInstanceNetworkRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string UpgradeDBInstanceNetworkRequest::getConnectionString()const +{ + return connectionString_; +} + +void UpgradeDBInstanceNetworkRequest::setConnectionString(const std::string& connectionString) +{ + connectionString_ = connectionString; + setParameter("ConnectionString", connectionString); +} + +std::string UpgradeDBInstanceNetworkRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void UpgradeDBInstanceNetworkRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string UpgradeDBInstanceNetworkRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void UpgradeDBInstanceNetworkRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long UpgradeDBInstanceNetworkRequest::getOwnerId()const +{ + return ownerId_; +} + +void UpgradeDBInstanceNetworkRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string UpgradeDBInstanceNetworkRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void UpgradeDBInstanceNetworkRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/rds/src/model/UpgradeDBInstanceNetworkResult.cc b/rds/src/model/UpgradeDBInstanceNetworkResult.cc new file mode 100644 index 000000000..e775a0541 --- /dev/null +++ b/rds/src/model/UpgradeDBInstanceNetworkResult.cc @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Rds; +using namespace AlibabaCloud::Rds::Model; + +UpgradeDBInstanceNetworkResult::UpgradeDBInstanceNetworkResult() : + ServiceResult() +{} + +UpgradeDBInstanceNetworkResult::UpgradeDBInstanceNetworkResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpgradeDBInstanceNetworkResult::~UpgradeDBInstanceNetworkResult() +{} + +void UpgradeDBInstanceNetworkResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + dBInstanceName_ = value["DBInstanceName"].asString(); + +} + +std::string UpgradeDBInstanceNetworkResult::getDBInstanceName()const +{ + return dBInstanceName_; +} + +void UpgradeDBInstanceNetworkResult::setDBInstanceName(const std::string& dBInstanceName) +{ + dBInstanceName_ = dBInstanceName; +} +