From c4e4d725b9fc12d82ec91af64175ca628da028ab Mon Sep 17 00:00:00 2001 From: "haowei.yao" Date: Thu, 18 Apr 2019 18:18:18 +0800 Subject: [PATCH] =?UTF-8?q?DDS=20SDK=20Auto=20Released=20By=20junjun.zhang?= =?UTF-8?q?,Version=EF=BC=9A1.36.19?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: haowei.yao --- CHANGELOG | 3 + CMakeLists.txt | 3 +- VERSION | 2 +- dds/CMakeLists.txt | 82 + dds/include/alibabacloud/dds/DdsClient.h | 830 ++++ dds/include/alibabacloud/dds/DdsExport.h | 32 + .../AllocatePublicNetworkAddressRequest.h | 72 + .../AllocatePublicNetworkAddressResult.h | 49 + .../dds/model/CheckRecoveryConditionRequest.h | 75 + .../dds/model/CheckRecoveryConditionResult.h | 53 + .../dds/model/CreateAccountRequest.h | 78 + .../dds/model/CreateAccountResult.h | 49 + .../dds/model/CreateBackupRequest.h | 72 + .../dds/model/CreateBackupResult.h | 51 + .../dds/model/CreateDBInstanceRequest.h | 138 + .../dds/model/CreateDBInstanceResult.h | 53 + .../dds/model/CreateNodeRequest.h | 87 + .../alibabacloud/dds/model/CreateNodeResult.h | 51 + .../model/CreateRecommendationTaskRequest.h | 78 + .../model/CreateRecommendationTaskResult.h | 49 + .../model/CreateShardingDBInstanceRequest.h | 137 + .../model/CreateShardingDBInstanceResult.h | 53 + .../model/CreateStaticVerificationRequest.h | 75 + .../model/CreateStaticVerificationResult.h | 49 + .../dds/model/DeleteDBInstanceRequest.h | 72 + .../dds/model/DeleteDBInstanceResult.h | 49 + .../dds/model/DeleteNodeRequest.h | 75 + .../alibabacloud/dds/model/DeleteNodeResult.h | 51 + .../dds/model/DescribeAccountsRequest.h | 72 + .../dds/model/DescribeAccountsResult.h | 58 + .../DescribeActiveOperationTaskCountRequest.h | 66 + .../DescribeActiveOperationTaskCountResult.h | 53 + ...DescribeActiveOperationTaskRegionRequest.h | 72 + .../DescribeActiveOperationTaskRegionResult.h | 56 + .../DescribeActiveOperationTaskRequest.h | 81 + .../model/DescribeActiveOperationTaskResult.h | 73 + .../DescribeActiveOperationTaskTypeRequest.h | 69 + .../DescribeActiveOperationTaskTypeResult.h | 56 + .../dds/model/DescribeAuditFilesRequest.h | 78 + .../dds/model/DescribeAuditFilesResult.h | 68 + .../dds/model/DescribeAuditLogFilterRequest.h | 72 + .../dds/model/DescribeAuditLogFilterResult.h | 53 + .../dds/model/DescribeAuditPolicyRequest.h | 69 + .../dds/model/DescribeAuditPolicyResult.h | 53 + .../dds/model/DescribeAuditRecordsRequest.h | 96 + .../dds/model/DescribeAuditRecordsResult.h | 68 + .../DescribeAvailableEngineVersionRequest.h | 69 + .../DescribeAvailableEngineVersionResult.h | 51 + .../model/DescribeAvailableTimeRangeRequest.h | 72 + .../model/DescribeAvailableTimeRangeResult.h | 59 + .../model/DescribeAvaliableTimeRangeRequest.h | 72 + .../model/DescribeAvaliableTimeRangeResult.h | 57 + .../dds/model/DescribeBackupDBsRequest.h | 78 + .../dds/model/DescribeBackupDBsResult.h | 61 + .../dds/model/DescribeBackupPolicyRequest.h | 69 + .../dds/model/DescribeBackupPolicyResult.h | 57 + .../dds/model/DescribeBackupsRequest.h | 87 + .../dds/model/DescribeBackupsResult.h | 71 + .../DescribeDBInstanceAttributeRequest.h | 72 + .../model/DescribeDBInstanceAttributeResult.h | 124 + .../model/DescribeDBInstanceMonitorRequest.h | 69 + .../model/DescribeDBInstanceMonitorResult.h | 51 + .../DescribeDBInstancePerformanceRequest.h | 87 + .../DescribeDBInstancePerformanceResult.h | 71 + .../dds/model/DescribeDBInstanceSSLRequest.h | 69 + .../dds/model/DescribeDBInstanceSSLResult.h | 55 + .../dds/model/DescribeDBInstancesRequest.h | 125 + .../dds/model/DescribeDBInstancesResult.h | 102 + .../model/DescribeErrorLogRecordsRequest.h | 93 + .../dds/model/DescribeErrorLogRecordsResult.h | 67 + .../DescribeIndexRecommendationRequest.h | 96 + .../model/DescribeIndexRecommendationResult.h | 81 + ...cribeInstanceAutoRenewalAttributeRequest.h | 78 + ...scribeInstanceAutoRenewalAttributeResult.h | 65 + .../model/DescribeKernelReleaseNotesRequest.h | 69 + .../model/DescribeKernelReleaseNotesResult.h | 56 + ...cribeParameterModificationHistoryRequest.h | 78 + ...scribeParameterModificationHistoryResult.h | 58 + .../model/DescribeParameterTemplatesRequest.h | 72 + .../model/DescribeParameterTemplatesResult.h | 66 + .../dds/model/DescribeParametersRequest.h | 72 + .../dds/model/DescribeParametersResult.h | 66 + .../dds/model/DescribeRdsVSwitchsRequest.h | 72 + .../dds/model/DescribeRdsVSwitchsResult.h | 69 + .../dds/model/DescribeRdsVpcsRequest.h | 69 + .../dds/model/DescribeRdsVpcsResult.h | 80 + .../dds/model/DescribeRegionsRequest.h | 69 + .../dds/model/DescribeRegionsResult.h | 62 + .../dds/model/DescribeRenewalPriceRequest.h | 75 + .../dds/model/DescribeRenewalPriceResult.h | 85 + .../DescribeReplicaConflictInfoRequest.h | 81 + .../model/DescribeReplicaConflictInfoResult.h | 71 + ...DescribeReplicaInitializeProgressRequest.h | 69 + .../DescribeReplicaInitializeProgressResult.h | 59 + .../model/DescribeReplicaPerformanceRequest.h | 84 + .../model/DescribeReplicaPerformanceResult.h | 77 + .../dds/model/DescribeReplicaSetRoleRequest.h | 69 + .../dds/model/DescribeReplicaSetRoleResult.h | 62 + .../dds/model/DescribeReplicaUsageRequest.h | 75 + .../dds/model/DescribeReplicaUsageResult.h | 77 + .../dds/model/DescribeReplicasRequest.h | 78 + .../dds/model/DescribeReplicasResult.h | 77 + .../model/DescribeReplicationGroupRequest.h | 75 + .../model/DescribeReplicationGroupResult.h | 51 + .../model/DescribeRunningLogRecordsRequest.h | 93 + .../model/DescribeRunningLogRecordsResult.h | 67 + .../dds/model/DescribeSecurityIpsRequest.h | 69 + .../dds/model/DescribeSecurityIpsResult.h | 59 + .../DescribeShardingNetworkAddressRequest.h | 72 + .../DescribeShardingNetworkAddressResult.h | 62 + .../dds/model/DescribeSlowLogRecordsRequest.h | 90 + .../dds/model/DescribeSlowLogRecordsResult.h | 71 + .../DescribeStaticVerificationListRequest.h | 75 + .../DescribeStaticVerificationListResult.h | 81 + .../dds/model/DescribeStrategyRequest.h | 69 + .../dds/model/DescribeStrategyResult.h | 55 + .../model/DescribeVerificationListRequest.h | 81 + .../model/DescribeVerificationListResult.h | 70 + .../dds/model/DestroyInstanceRequest.h | 75 + .../dds/model/DestroyInstanceResult.h | 49 + .../dds/model/EvaluateFailOverSwitchRequest.h | 69 + .../dds/model/EvaluateFailOverSwitchResult.h | 87 + .../dds/model/ListTagResourcesRequest.h | 80 + .../dds/model/ListTagResourcesResult.h | 60 + .../dds/model/MigrateAvailableZoneRequest.h | 72 + .../dds/model/MigrateAvailableZoneResult.h | 49 + .../dds/model/MigrateToOtherZoneRequest.h | 72 + .../dds/model/MigrateToOtherZoneResult.h | 49 + .../model/ModifyAccountDescriptionRequest.h | 75 + .../model/ModifyAccountDescriptionResult.h | 49 + .../model/ModifyActiveOperationTaskRequest.h | 72 + .../model/ModifyActiveOperationTaskResult.h | 51 + .../dds/model/ModifyAuditLogFilterRequest.h | 75 + .../dds/model/ModifyAuditLogFilterResult.h | 49 + .../dds/model/ModifyAuditPolicyRequest.h | 75 + .../dds/model/ModifyAuditPolicyResult.h | 49 + .../dds/model/ModifyBackupPolicyRequest.h | 75 + .../dds/model/ModifyBackupPolicyResult.h | 49 + .../ModifyDBInstanceConnectionStringRequest.h | 78 + .../ModifyDBInstanceConnectionStringResult.h | 49 + .../ModifyDBInstanceDescriptionRequest.h | 75 + .../model/ModifyDBInstanceDescriptionResult.h | 49 + .../ModifyDBInstanceMaintainTimeRequest.h | 75 + .../ModifyDBInstanceMaintainTimeResult.h | 49 + .../model/ModifyDBInstanceMonitorRequest.h | 72 + .../dds/model/ModifyDBInstanceMonitorResult.h | 49 + .../ModifyDBInstanceNetExpireTimeRequest.h | 75 + .../ModifyDBInstanceNetExpireTimeResult.h | 49 + .../ModifyDBInstanceNetworkTypeRequest.h | 84 + .../model/ModifyDBInstanceNetworkTypeResult.h | 49 + .../dds/model/ModifyDBInstanceSSLRequest.h | 72 + .../dds/model/ModifyDBInstanceSSLResult.h | 49 + .../dds/model/ModifyDBInstanceSpecRequest.h | 96 + .../dds/model/ModifyDBInstanceSpecResult.h | 51 + .../dds/model/ModifyGuardDomainModeRequest.h | 72 + .../dds/model/ModifyGuardDomainModeResult.h | 49 + ...odifyInstanceAutoRenewalAttributeRequest.h | 75 + ...ModifyInstanceAutoRenewalAttributeResult.h | 49 + .../dds/model/ModifyNodeSpecRequest.h | 90 + .../dds/model/ModifyNodeSpecResult.h | 51 + .../dds/model/ModifyParametersRequest.h | 75 + .../dds/model/ModifyParametersResult.h | 49 + .../model/ModifyReplicaDescriptionRequest.h | 72 + .../model/ModifyReplicaDescriptionResult.h | 49 + .../dds/model/ModifyReplicaModeRequest.h | 78 + .../dds/model/ModifyReplicaModeResult.h | 49 + .../model/ModifyReplicaRecoveryModeRequest.h | 72 + .../model/ModifyReplicaRecoveryModeResult.h | 49 + .../dds/model/ModifyReplicaRelationRequest.h | 69 + .../dds/model/ModifyReplicaRelationResult.h | 49 + .../ModifyReplicaVerificationModeRequest.h | 72 + .../ModifyReplicaVerificationModeResult.h | 49 + .../dds/model/ModifySecurityIpsRequest.h | 81 + .../dds/model/ModifySecurityIpsResult.h | 49 + .../ReleasePublicNetworkAddressRequest.h | 72 + .../model/ReleasePublicNetworkAddressResult.h | 49 + .../dds/model/ReleaseReplicaRequest.h | 69 + .../dds/model/ReleaseReplicaResult.h | 49 + .../dds/model/RenewDBInstanceRequest.h | 84 + .../dds/model/RenewDBInstanceResult.h | 51 + .../dds/model/ResetAccountPasswordRequest.h | 75 + .../dds/model/ResetAccountPasswordResult.h | 49 + .../dds/model/RestartDBInstanceRequest.h | 72 + .../dds/model/RestartDBInstanceResult.h | 49 + .../dds/model/RestoreDBInstanceRequest.h | 72 + .../dds/model/RestoreDBInstanceResult.h | 49 + .../alibabacloud/dds/model/SampleRequest.h | 69 + .../alibabacloud/dds/model/SampleResult.h | 59 + .../dds/model/SwitchDBInstanceHARequest.h | 81 + .../dds/model/SwitchDBInstanceHAResult.h | 49 + .../dds/model/SwithcDBInstanceHARequest.h | 81 + .../dds/model/SwithcDBInstanceHAResult.h | 49 + .../dds/model/TagResourcesRequest.h | 77 + .../dds/model/TagResourcesResult.h | 49 + .../dds/model/TransformToPrePaidRequest.h | 87 + .../dds/model/TransformToPrePaidResult.h | 53 + .../dds/model/UntagResourcesRequest.h | 75 + .../dds/model/UntagResourcesResult.h | 49 + .../UpgradeDBInstanceEngineVersionRequest.h | 72 + .../UpgradeDBInstanceEngineVersionResult.h | 49 + .../UpgradeDBInstanceKernelVersionRequest.h | 69 + .../UpgradeDBInstanceKernelVersionResult.h | 49 + dds/src/DdsClient.cc | 3581 +++++++++++++++++ .../AllocatePublicNetworkAddressRequest.cc | 126 + .../AllocatePublicNetworkAddressResult.cc | 45 + .../model/CheckRecoveryConditionRequest.cc | 137 + dds/src/model/CheckRecoveryConditionResult.cc | 59 + dds/src/model/CreateAccountRequest.cc | 148 + dds/src/model/CreateAccountResult.cc | 45 + dds/src/model/CreateBackupRequest.cc | 126 + dds/src/model/CreateBackupResult.cc | 52 + dds/src/model/CreateDBInstanceRequest.cc | 368 ++ dds/src/model/CreateDBInstanceResult.cc | 59 + dds/src/model/CreateNodeRequest.cc | 181 + dds/src/model/CreateNodeResult.cc | 52 + .../model/CreateRecommendationTaskRequest.cc | 148 + .../model/CreateRecommendationTaskResult.cc | 45 + .../model/CreateShardingDBInstanceRequest.cc | 330 ++ .../model/CreateShardingDBInstanceResult.cc | 59 + .../model/CreateStaticVerificationRequest.cc | 137 + .../model/CreateStaticVerificationResult.cc | 45 + dds/src/model/DeleteDBInstanceRequest.cc | 126 + dds/src/model/DeleteDBInstanceResult.cc | 45 + dds/src/model/DeleteNodeRequest.cc | 137 + dds/src/model/DeleteNodeResult.cc | 52 + dds/src/model/DescribeAccountsRequest.cc | 126 + dds/src/model/DescribeAccountsResult.cc | 64 + ...DescribeActiveOperationTaskCountRequest.cc | 104 + .../DescribeActiveOperationTaskCountResult.cc | 59 + ...escribeActiveOperationTaskRegionRequest.cc | 126 + ...DescribeActiveOperationTaskRegionResult.cc | 60 + .../DescribeActiveOperationTaskRequest.cc | 159 + .../DescribeActiveOperationTaskResult.cc | 103 + .../DescribeActiveOperationTaskTypeRequest.cc | 115 + .../DescribeActiveOperationTaskTypeResult.cc | 60 + dds/src/model/DescribeAuditFilesRequest.cc | 148 + dds/src/model/DescribeAuditFilesResult.cc | 96 + .../model/DescribeAuditLogFilterRequest.cc | 126 + dds/src/model/DescribeAuditLogFilterResult.cc | 59 + dds/src/model/DescribeAuditPolicyRequest.cc | 115 + dds/src/model/DescribeAuditPolicyResult.cc | 59 + dds/src/model/DescribeAuditRecordsRequest.cc | 214 + dds/src/model/DescribeAuditRecordsResult.cc | 93 + .../DescribeAvailableEngineVersionRequest.cc | 115 + .../DescribeAvailableEngineVersionResult.cc | 53 + .../DescribeAvailableTimeRangeRequest.cc | 126 + .../model/DescribeAvailableTimeRangeResult.cc | 66 + .../DescribeAvaliableTimeRangeRequest.cc | 126 + .../model/DescribeAvaliableTimeRangeResult.cc | 62 + dds/src/model/DescribeBackupDBsRequest.cc | 148 + dds/src/model/DescribeBackupDBsResult.cc | 79 + dds/src/model/DescribeBackupPolicyRequest.cc | 115 + dds/src/model/DescribeBackupPolicyResult.cc | 73 + dds/src/model/DescribeBackupsRequest.cc | 181 + dds/src/model/DescribeBackupsResult.cc | 99 + .../DescribeDBInstanceAttributeRequest.cc | 126 + .../DescribeDBInstanceAttributeResult.cc | 188 + .../model/DescribeDBInstanceMonitorRequest.cc | 115 + .../model/DescribeDBInstanceMonitorResult.cc | 52 + .../DescribeDBInstancePerformanceRequest.cc | 181 + .../DescribeDBInstancePerformanceResult.cc | 100 + dds/src/model/DescribeDBInstanceSSLRequest.cc | 115 + dds/src/model/DescribeDBInstanceSSLResult.cc | 66 + dds/src/model/DescribeDBInstancesRequest.cc | 308 ++ dds/src/model/DescribeDBInstancesResult.cc | 155 + .../model/DescribeErrorLogRecordsRequest.cc | 203 + .../model/DescribeErrorLogRecordsResult.cc | 94 + .../DescribeIndexRecommendationRequest.cc | 214 + .../DescribeIndexRecommendationResult.cc | 118 + ...ribeInstanceAutoRenewalAttributeRequest.cc | 148 + ...cribeInstanceAutoRenewalAttributeResult.cc | 87 + .../DescribeKernelReleaseNotesRequest.cc | 115 + .../model/DescribeKernelReleaseNotesResult.cc | 60 + ...ribeParameterModificationHistoryRequest.cc | 148 + ...cribeParameterModificationHistoryResult.cc | 64 + .../DescribeParameterTemplatesRequest.cc | 126 + .../model/DescribeParameterTemplatesResult.cc | 89 + dds/src/model/DescribeParametersRequest.cc | 126 + dds/src/model/DescribeParametersResult.cc | 105 + dds/src/model/DescribeRdsVSwitchsRequest.cc | 126 + dds/src/model/DescribeRdsVSwitchsResult.cc | 79 + dds/src/model/DescribeRdsVpcsRequest.cc | 115 + dds/src/model/DescribeRdsVpcsResult.cc | 99 + dds/src/model/DescribeRegionsRequest.cc | 115 + dds/src/model/DescribeRegionsResult.cc | 70 + dds/src/model/DescribeRenewalPriceRequest.cc | 137 + dds/src/model/DescribeRenewalPriceResult.cc | 115 + .../DescribeReplicaConflictInfoRequest.cc | 159 + .../DescribeReplicaConflictInfoResult.cc | 102 + ...escribeReplicaInitializeProgressRequest.cc | 115 + ...DescribeReplicaInitializeProgressResult.cc | 66 + .../DescribeReplicaPerformanceRequest.cc | 170 + .../model/DescribeReplicaPerformanceResult.cc | 95 + .../model/DescribeReplicaSetRoleRequest.cc | 115 + dds/src/model/DescribeReplicaSetRoleResult.cc | 75 + dds/src/model/DescribeReplicaUsageRequest.cc | 137 + dds/src/model/DescribeReplicaUsageResult.cc | 95 + dds/src/model/DescribeReplicasRequest.cc | 148 + dds/src/model/DescribeReplicasResult.cc | 109 + .../model/DescribeReplicationGroupRequest.cc | 137 + .../model/DescribeReplicationGroupResult.cc | 53 + .../model/DescribeRunningLogRecordsRequest.cc | 203 + .../model/DescribeRunningLogRecordsResult.cc | 94 + dds/src/model/DescribeSecurityIpsRequest.cc | 115 + dds/src/model/DescribeSecurityIpsResult.cc | 69 + .../DescribeShardingNetworkAddressRequest.cc | 126 + .../DescribeShardingNetworkAddressResult.cc | 72 + .../model/DescribeSlowLogRecordsRequest.cc | 192 + dds/src/model/DescribeSlowLogRecordsResult.cc | 102 + .../DescribeStaticVerificationListRequest.cc | 137 + .../DescribeStaticVerificationListResult.cc | 146 + dds/src/model/DescribeStrategyRequest.cc | 115 + dds/src/model/DescribeStrategyResult.cc | 66 + .../model/DescribeVerificationListRequest.cc | 159 + .../model/DescribeVerificationListResult.cc | 100 + dds/src/model/DestroyInstanceRequest.cc | 137 + dds/src/model/DestroyInstanceResult.cc | 45 + .../model/EvaluateFailOverSwitchRequest.cc | 115 + dds/src/model/EvaluateFailOverSwitchResult.cc | 127 + dds/src/model/ListTagResourcesRequest.cc | 144 + dds/src/model/ListTagResourcesResult.cc | 71 + dds/src/model/MigrateAvailableZoneRequest.cc | 126 + dds/src/model/MigrateAvailableZoneResult.cc | 45 + dds/src/model/MigrateToOtherZoneRequest.cc | 126 + dds/src/model/MigrateToOtherZoneResult.cc | 45 + .../model/ModifyAccountDescriptionRequest.cc | 137 + .../model/ModifyAccountDescriptionResult.cc | 45 + .../model/ModifyActiveOperationTaskRequest.cc | 126 + .../model/ModifyActiveOperationTaskResult.cc | 52 + dds/src/model/ModifyAuditLogFilterRequest.cc | 137 + dds/src/model/ModifyAuditLogFilterResult.cc | 45 + dds/src/model/ModifyAuditPolicyRequest.cc | 137 + dds/src/model/ModifyAuditPolicyResult.cc | 45 + dds/src/model/ModifyBackupPolicyRequest.cc | 137 + dds/src/model/ModifyBackupPolicyResult.cc | 45 + ...ModifyDBInstanceConnectionStringRequest.cc | 148 + .../ModifyDBInstanceConnectionStringResult.cc | 45 + .../ModifyDBInstanceDescriptionRequest.cc | 137 + .../ModifyDBInstanceDescriptionResult.cc | 45 + .../ModifyDBInstanceMaintainTimeRequest.cc | 137 + .../ModifyDBInstanceMaintainTimeResult.cc | 45 + .../model/ModifyDBInstanceMonitorRequest.cc | 126 + .../model/ModifyDBInstanceMonitorResult.cc | 45 + .../ModifyDBInstanceNetExpireTimeRequest.cc | 137 + .../ModifyDBInstanceNetExpireTimeResult.cc | 45 + .../ModifyDBInstanceNetworkTypeRequest.cc | 170 + .../ModifyDBInstanceNetworkTypeResult.cc | 45 + dds/src/model/ModifyDBInstanceSSLRequest.cc | 126 + dds/src/model/ModifyDBInstanceSSLResult.cc | 45 + dds/src/model/ModifyDBInstanceSpecRequest.cc | 214 + dds/src/model/ModifyDBInstanceSpecResult.cc | 52 + dds/src/model/ModifyGuardDomainModeRequest.cc | 126 + dds/src/model/ModifyGuardDomainModeResult.cc | 45 + ...difyInstanceAutoRenewalAttributeRequest.cc | 137 + ...odifyInstanceAutoRenewalAttributeResult.cc | 45 + dds/src/model/ModifyNodeSpecRequest.cc | 192 + dds/src/model/ModifyNodeSpecResult.cc | 52 + dds/src/model/ModifyParametersRequest.cc | 137 + dds/src/model/ModifyParametersResult.cc | 45 + .../model/ModifyReplicaDescriptionRequest.cc | 126 + .../model/ModifyReplicaDescriptionResult.cc | 45 + dds/src/model/ModifyReplicaModeRequest.cc | 148 + dds/src/model/ModifyReplicaModeResult.cc | 45 + .../model/ModifyReplicaRecoveryModeRequest.cc | 126 + .../model/ModifyReplicaRecoveryModeResult.cc | 45 + dds/src/model/ModifyReplicaRelationRequest.cc | 115 + dds/src/model/ModifyReplicaRelationResult.cc | 45 + .../ModifyReplicaVerificationModeRequest.cc | 126 + .../ModifyReplicaVerificationModeResult.cc | 45 + dds/src/model/ModifySecurityIpsRequest.cc | 159 + dds/src/model/ModifySecurityIpsResult.cc | 45 + .../ReleasePublicNetworkAddressRequest.cc | 126 + .../ReleasePublicNetworkAddressResult.cc | 45 + dds/src/model/ReleaseReplicaRequest.cc | 115 + dds/src/model/ReleaseReplicaResult.cc | 45 + dds/src/model/RenewDBInstanceRequest.cc | 170 + dds/src/model/RenewDBInstanceResult.cc | 52 + dds/src/model/ResetAccountPasswordRequest.cc | 137 + dds/src/model/ResetAccountPasswordResult.cc | 45 + dds/src/model/RestartDBInstanceRequest.cc | 126 + dds/src/model/RestartDBInstanceResult.cc | 45 + dds/src/model/RestoreDBInstanceRequest.cc | 126 + dds/src/model/RestoreDBInstanceResult.cc | 45 + dds/src/model/SampleRequest.cc | 115 + dds/src/model/SampleResult.cc | 69 + dds/src/model/SwitchDBInstanceHARequest.cc | 159 + dds/src/model/SwitchDBInstanceHAResult.cc | 45 + dds/src/model/SwithcDBInstanceHARequest.cc | 159 + dds/src/model/SwithcDBInstanceHAResult.cc | 45 + dds/src/model/TagResourcesRequest.cc | 133 + dds/src/model/TagResourcesResult.cc | 45 + dds/src/model/TransformToPrePaidRequest.cc | 181 + dds/src/model/TransformToPrePaidResult.cc | 59 + dds/src/model/UntagResourcesRequest.cc | 139 + dds/src/model/UntagResourcesResult.cc | 45 + .../UpgradeDBInstanceEngineVersionRequest.cc | 126 + .../UpgradeDBInstanceEngineVersionResult.cc | 45 + .../UpgradeDBInstanceKernelVersionRequest.cc | 115 + .../UpgradeDBInstanceKernelVersionResult.cc | 45 + 399 files changed, 38594 insertions(+), 2 deletions(-) create mode 100644 dds/CMakeLists.txt create mode 100644 dds/include/alibabacloud/dds/DdsClient.h create mode 100644 dds/include/alibabacloud/dds/DdsExport.h create mode 100644 dds/include/alibabacloud/dds/model/AllocatePublicNetworkAddressRequest.h create mode 100644 dds/include/alibabacloud/dds/model/AllocatePublicNetworkAddressResult.h create mode 100644 dds/include/alibabacloud/dds/model/CheckRecoveryConditionRequest.h create mode 100644 dds/include/alibabacloud/dds/model/CheckRecoveryConditionResult.h create mode 100644 dds/include/alibabacloud/dds/model/CreateAccountRequest.h create mode 100644 dds/include/alibabacloud/dds/model/CreateAccountResult.h create mode 100644 dds/include/alibabacloud/dds/model/CreateBackupRequest.h create mode 100644 dds/include/alibabacloud/dds/model/CreateBackupResult.h create mode 100644 dds/include/alibabacloud/dds/model/CreateDBInstanceRequest.h create mode 100644 dds/include/alibabacloud/dds/model/CreateDBInstanceResult.h create mode 100644 dds/include/alibabacloud/dds/model/CreateNodeRequest.h create mode 100644 dds/include/alibabacloud/dds/model/CreateNodeResult.h create mode 100644 dds/include/alibabacloud/dds/model/CreateRecommendationTaskRequest.h create mode 100644 dds/include/alibabacloud/dds/model/CreateRecommendationTaskResult.h create mode 100644 dds/include/alibabacloud/dds/model/CreateShardingDBInstanceRequest.h create mode 100644 dds/include/alibabacloud/dds/model/CreateShardingDBInstanceResult.h create mode 100644 dds/include/alibabacloud/dds/model/CreateStaticVerificationRequest.h create mode 100644 dds/include/alibabacloud/dds/model/CreateStaticVerificationResult.h create mode 100644 dds/include/alibabacloud/dds/model/DeleteDBInstanceRequest.h create mode 100644 dds/include/alibabacloud/dds/model/DeleteDBInstanceResult.h create mode 100644 dds/include/alibabacloud/dds/model/DeleteNodeRequest.h create mode 100644 dds/include/alibabacloud/dds/model/DeleteNodeResult.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeAccountsRequest.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeAccountsResult.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeActiveOperationTaskCountRequest.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeActiveOperationTaskCountResult.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeActiveOperationTaskRegionRequest.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeActiveOperationTaskRegionResult.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeActiveOperationTaskRequest.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeActiveOperationTaskResult.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeActiveOperationTaskTypeRequest.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeActiveOperationTaskTypeResult.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeAuditFilesRequest.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeAuditFilesResult.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeAuditLogFilterRequest.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeAuditLogFilterResult.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeAuditPolicyRequest.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeAuditPolicyResult.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeAuditRecordsRequest.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeAuditRecordsResult.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeAvailableEngineVersionRequest.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeAvailableEngineVersionResult.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeAvailableTimeRangeRequest.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeAvailableTimeRangeResult.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeAvaliableTimeRangeRequest.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeAvaliableTimeRangeResult.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeBackupDBsRequest.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeBackupDBsResult.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeBackupPolicyRequest.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeBackupPolicyResult.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeBackupsRequest.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeBackupsResult.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeDBInstanceAttributeRequest.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeDBInstanceAttributeResult.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeDBInstanceMonitorRequest.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeDBInstanceMonitorResult.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeDBInstancePerformanceRequest.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeDBInstancePerformanceResult.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeDBInstanceSSLRequest.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeDBInstanceSSLResult.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeDBInstancesRequest.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeDBInstancesResult.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeErrorLogRecordsRequest.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeErrorLogRecordsResult.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeIndexRecommendationRequest.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeIndexRecommendationResult.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeInstanceAutoRenewalAttributeRequest.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeInstanceAutoRenewalAttributeResult.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeKernelReleaseNotesRequest.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeKernelReleaseNotesResult.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeParameterModificationHistoryRequest.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeParameterModificationHistoryResult.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeParameterTemplatesRequest.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeParameterTemplatesResult.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeParametersRequest.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeParametersResult.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeRdsVSwitchsRequest.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeRdsVSwitchsResult.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeRdsVpcsRequest.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeRdsVpcsResult.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeRegionsRequest.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeRegionsResult.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeRenewalPriceRequest.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeRenewalPriceResult.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeReplicaConflictInfoRequest.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeReplicaConflictInfoResult.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeReplicaInitializeProgressRequest.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeReplicaInitializeProgressResult.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeReplicaPerformanceRequest.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeReplicaPerformanceResult.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeReplicaSetRoleRequest.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeReplicaSetRoleResult.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeReplicaUsageRequest.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeReplicaUsageResult.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeReplicasRequest.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeReplicasResult.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeReplicationGroupRequest.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeReplicationGroupResult.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeRunningLogRecordsRequest.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeRunningLogRecordsResult.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeSecurityIpsRequest.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeSecurityIpsResult.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeShardingNetworkAddressRequest.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeShardingNetworkAddressResult.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeSlowLogRecordsRequest.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeSlowLogRecordsResult.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeStaticVerificationListRequest.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeStaticVerificationListResult.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeStrategyRequest.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeStrategyResult.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeVerificationListRequest.h create mode 100644 dds/include/alibabacloud/dds/model/DescribeVerificationListResult.h create mode 100644 dds/include/alibabacloud/dds/model/DestroyInstanceRequest.h create mode 100644 dds/include/alibabacloud/dds/model/DestroyInstanceResult.h create mode 100644 dds/include/alibabacloud/dds/model/EvaluateFailOverSwitchRequest.h create mode 100644 dds/include/alibabacloud/dds/model/EvaluateFailOverSwitchResult.h create mode 100644 dds/include/alibabacloud/dds/model/ListTagResourcesRequest.h create mode 100644 dds/include/alibabacloud/dds/model/ListTagResourcesResult.h create mode 100644 dds/include/alibabacloud/dds/model/MigrateAvailableZoneRequest.h create mode 100644 dds/include/alibabacloud/dds/model/MigrateAvailableZoneResult.h create mode 100644 dds/include/alibabacloud/dds/model/MigrateToOtherZoneRequest.h create mode 100644 dds/include/alibabacloud/dds/model/MigrateToOtherZoneResult.h create mode 100644 dds/include/alibabacloud/dds/model/ModifyAccountDescriptionRequest.h create mode 100644 dds/include/alibabacloud/dds/model/ModifyAccountDescriptionResult.h create mode 100644 dds/include/alibabacloud/dds/model/ModifyActiveOperationTaskRequest.h create mode 100644 dds/include/alibabacloud/dds/model/ModifyActiveOperationTaskResult.h create mode 100644 dds/include/alibabacloud/dds/model/ModifyAuditLogFilterRequest.h create mode 100644 dds/include/alibabacloud/dds/model/ModifyAuditLogFilterResult.h create mode 100644 dds/include/alibabacloud/dds/model/ModifyAuditPolicyRequest.h create mode 100644 dds/include/alibabacloud/dds/model/ModifyAuditPolicyResult.h create mode 100644 dds/include/alibabacloud/dds/model/ModifyBackupPolicyRequest.h create mode 100644 dds/include/alibabacloud/dds/model/ModifyBackupPolicyResult.h create mode 100644 dds/include/alibabacloud/dds/model/ModifyDBInstanceConnectionStringRequest.h create mode 100644 dds/include/alibabacloud/dds/model/ModifyDBInstanceConnectionStringResult.h create mode 100644 dds/include/alibabacloud/dds/model/ModifyDBInstanceDescriptionRequest.h create mode 100644 dds/include/alibabacloud/dds/model/ModifyDBInstanceDescriptionResult.h create mode 100644 dds/include/alibabacloud/dds/model/ModifyDBInstanceMaintainTimeRequest.h create mode 100644 dds/include/alibabacloud/dds/model/ModifyDBInstanceMaintainTimeResult.h create mode 100644 dds/include/alibabacloud/dds/model/ModifyDBInstanceMonitorRequest.h create mode 100644 dds/include/alibabacloud/dds/model/ModifyDBInstanceMonitorResult.h create mode 100644 dds/include/alibabacloud/dds/model/ModifyDBInstanceNetExpireTimeRequest.h create mode 100644 dds/include/alibabacloud/dds/model/ModifyDBInstanceNetExpireTimeResult.h create mode 100644 dds/include/alibabacloud/dds/model/ModifyDBInstanceNetworkTypeRequest.h create mode 100644 dds/include/alibabacloud/dds/model/ModifyDBInstanceNetworkTypeResult.h create mode 100644 dds/include/alibabacloud/dds/model/ModifyDBInstanceSSLRequest.h create mode 100644 dds/include/alibabacloud/dds/model/ModifyDBInstanceSSLResult.h create mode 100644 dds/include/alibabacloud/dds/model/ModifyDBInstanceSpecRequest.h create mode 100644 dds/include/alibabacloud/dds/model/ModifyDBInstanceSpecResult.h create mode 100644 dds/include/alibabacloud/dds/model/ModifyGuardDomainModeRequest.h create mode 100644 dds/include/alibabacloud/dds/model/ModifyGuardDomainModeResult.h create mode 100644 dds/include/alibabacloud/dds/model/ModifyInstanceAutoRenewalAttributeRequest.h create mode 100644 dds/include/alibabacloud/dds/model/ModifyInstanceAutoRenewalAttributeResult.h create mode 100644 dds/include/alibabacloud/dds/model/ModifyNodeSpecRequest.h create mode 100644 dds/include/alibabacloud/dds/model/ModifyNodeSpecResult.h create mode 100644 dds/include/alibabacloud/dds/model/ModifyParametersRequest.h create mode 100644 dds/include/alibabacloud/dds/model/ModifyParametersResult.h create mode 100644 dds/include/alibabacloud/dds/model/ModifyReplicaDescriptionRequest.h create mode 100644 dds/include/alibabacloud/dds/model/ModifyReplicaDescriptionResult.h create mode 100644 dds/include/alibabacloud/dds/model/ModifyReplicaModeRequest.h create mode 100644 dds/include/alibabacloud/dds/model/ModifyReplicaModeResult.h create mode 100644 dds/include/alibabacloud/dds/model/ModifyReplicaRecoveryModeRequest.h create mode 100644 dds/include/alibabacloud/dds/model/ModifyReplicaRecoveryModeResult.h create mode 100644 dds/include/alibabacloud/dds/model/ModifyReplicaRelationRequest.h create mode 100644 dds/include/alibabacloud/dds/model/ModifyReplicaRelationResult.h create mode 100644 dds/include/alibabacloud/dds/model/ModifyReplicaVerificationModeRequest.h create mode 100644 dds/include/alibabacloud/dds/model/ModifyReplicaVerificationModeResult.h create mode 100644 dds/include/alibabacloud/dds/model/ModifySecurityIpsRequest.h create mode 100644 dds/include/alibabacloud/dds/model/ModifySecurityIpsResult.h create mode 100644 dds/include/alibabacloud/dds/model/ReleasePublicNetworkAddressRequest.h create mode 100644 dds/include/alibabacloud/dds/model/ReleasePublicNetworkAddressResult.h create mode 100644 dds/include/alibabacloud/dds/model/ReleaseReplicaRequest.h create mode 100644 dds/include/alibabacloud/dds/model/ReleaseReplicaResult.h create mode 100644 dds/include/alibabacloud/dds/model/RenewDBInstanceRequest.h create mode 100644 dds/include/alibabacloud/dds/model/RenewDBInstanceResult.h create mode 100644 dds/include/alibabacloud/dds/model/ResetAccountPasswordRequest.h create mode 100644 dds/include/alibabacloud/dds/model/ResetAccountPasswordResult.h create mode 100644 dds/include/alibabacloud/dds/model/RestartDBInstanceRequest.h create mode 100644 dds/include/alibabacloud/dds/model/RestartDBInstanceResult.h create mode 100644 dds/include/alibabacloud/dds/model/RestoreDBInstanceRequest.h create mode 100644 dds/include/alibabacloud/dds/model/RestoreDBInstanceResult.h create mode 100644 dds/include/alibabacloud/dds/model/SampleRequest.h create mode 100644 dds/include/alibabacloud/dds/model/SampleResult.h create mode 100644 dds/include/alibabacloud/dds/model/SwitchDBInstanceHARequest.h create mode 100644 dds/include/alibabacloud/dds/model/SwitchDBInstanceHAResult.h create mode 100644 dds/include/alibabacloud/dds/model/SwithcDBInstanceHARequest.h create mode 100644 dds/include/alibabacloud/dds/model/SwithcDBInstanceHAResult.h create mode 100644 dds/include/alibabacloud/dds/model/TagResourcesRequest.h create mode 100644 dds/include/alibabacloud/dds/model/TagResourcesResult.h create mode 100644 dds/include/alibabacloud/dds/model/TransformToPrePaidRequest.h create mode 100644 dds/include/alibabacloud/dds/model/TransformToPrePaidResult.h create mode 100644 dds/include/alibabacloud/dds/model/UntagResourcesRequest.h create mode 100644 dds/include/alibabacloud/dds/model/UntagResourcesResult.h create mode 100644 dds/include/alibabacloud/dds/model/UpgradeDBInstanceEngineVersionRequest.h create mode 100644 dds/include/alibabacloud/dds/model/UpgradeDBInstanceEngineVersionResult.h create mode 100644 dds/include/alibabacloud/dds/model/UpgradeDBInstanceKernelVersionRequest.h create mode 100644 dds/include/alibabacloud/dds/model/UpgradeDBInstanceKernelVersionResult.h create mode 100644 dds/src/DdsClient.cc create mode 100644 dds/src/model/AllocatePublicNetworkAddressRequest.cc create mode 100644 dds/src/model/AllocatePublicNetworkAddressResult.cc create mode 100644 dds/src/model/CheckRecoveryConditionRequest.cc create mode 100644 dds/src/model/CheckRecoveryConditionResult.cc create mode 100644 dds/src/model/CreateAccountRequest.cc create mode 100644 dds/src/model/CreateAccountResult.cc create mode 100644 dds/src/model/CreateBackupRequest.cc create mode 100644 dds/src/model/CreateBackupResult.cc create mode 100644 dds/src/model/CreateDBInstanceRequest.cc create mode 100644 dds/src/model/CreateDBInstanceResult.cc create mode 100644 dds/src/model/CreateNodeRequest.cc create mode 100644 dds/src/model/CreateNodeResult.cc create mode 100644 dds/src/model/CreateRecommendationTaskRequest.cc create mode 100644 dds/src/model/CreateRecommendationTaskResult.cc create mode 100644 dds/src/model/CreateShardingDBInstanceRequest.cc create mode 100644 dds/src/model/CreateShardingDBInstanceResult.cc create mode 100644 dds/src/model/CreateStaticVerificationRequest.cc create mode 100644 dds/src/model/CreateStaticVerificationResult.cc create mode 100644 dds/src/model/DeleteDBInstanceRequest.cc create mode 100644 dds/src/model/DeleteDBInstanceResult.cc create mode 100644 dds/src/model/DeleteNodeRequest.cc create mode 100644 dds/src/model/DeleteNodeResult.cc create mode 100644 dds/src/model/DescribeAccountsRequest.cc create mode 100644 dds/src/model/DescribeAccountsResult.cc create mode 100644 dds/src/model/DescribeActiveOperationTaskCountRequest.cc create mode 100644 dds/src/model/DescribeActiveOperationTaskCountResult.cc create mode 100644 dds/src/model/DescribeActiveOperationTaskRegionRequest.cc create mode 100644 dds/src/model/DescribeActiveOperationTaskRegionResult.cc create mode 100644 dds/src/model/DescribeActiveOperationTaskRequest.cc create mode 100644 dds/src/model/DescribeActiveOperationTaskResult.cc create mode 100644 dds/src/model/DescribeActiveOperationTaskTypeRequest.cc create mode 100644 dds/src/model/DescribeActiveOperationTaskTypeResult.cc create mode 100644 dds/src/model/DescribeAuditFilesRequest.cc create mode 100644 dds/src/model/DescribeAuditFilesResult.cc create mode 100644 dds/src/model/DescribeAuditLogFilterRequest.cc create mode 100644 dds/src/model/DescribeAuditLogFilterResult.cc create mode 100644 dds/src/model/DescribeAuditPolicyRequest.cc create mode 100644 dds/src/model/DescribeAuditPolicyResult.cc create mode 100644 dds/src/model/DescribeAuditRecordsRequest.cc create mode 100644 dds/src/model/DescribeAuditRecordsResult.cc create mode 100644 dds/src/model/DescribeAvailableEngineVersionRequest.cc create mode 100644 dds/src/model/DescribeAvailableEngineVersionResult.cc create mode 100644 dds/src/model/DescribeAvailableTimeRangeRequest.cc create mode 100644 dds/src/model/DescribeAvailableTimeRangeResult.cc create mode 100644 dds/src/model/DescribeAvaliableTimeRangeRequest.cc create mode 100644 dds/src/model/DescribeAvaliableTimeRangeResult.cc create mode 100644 dds/src/model/DescribeBackupDBsRequest.cc create mode 100644 dds/src/model/DescribeBackupDBsResult.cc create mode 100644 dds/src/model/DescribeBackupPolicyRequest.cc create mode 100644 dds/src/model/DescribeBackupPolicyResult.cc create mode 100644 dds/src/model/DescribeBackupsRequest.cc create mode 100644 dds/src/model/DescribeBackupsResult.cc create mode 100644 dds/src/model/DescribeDBInstanceAttributeRequest.cc create mode 100644 dds/src/model/DescribeDBInstanceAttributeResult.cc create mode 100644 dds/src/model/DescribeDBInstanceMonitorRequest.cc create mode 100644 dds/src/model/DescribeDBInstanceMonitorResult.cc create mode 100644 dds/src/model/DescribeDBInstancePerformanceRequest.cc create mode 100644 dds/src/model/DescribeDBInstancePerformanceResult.cc create mode 100644 dds/src/model/DescribeDBInstanceSSLRequest.cc create mode 100644 dds/src/model/DescribeDBInstanceSSLResult.cc create mode 100644 dds/src/model/DescribeDBInstancesRequest.cc create mode 100644 dds/src/model/DescribeDBInstancesResult.cc create mode 100644 dds/src/model/DescribeErrorLogRecordsRequest.cc create mode 100644 dds/src/model/DescribeErrorLogRecordsResult.cc create mode 100644 dds/src/model/DescribeIndexRecommendationRequest.cc create mode 100644 dds/src/model/DescribeIndexRecommendationResult.cc create mode 100644 dds/src/model/DescribeInstanceAutoRenewalAttributeRequest.cc create mode 100644 dds/src/model/DescribeInstanceAutoRenewalAttributeResult.cc create mode 100644 dds/src/model/DescribeKernelReleaseNotesRequest.cc create mode 100644 dds/src/model/DescribeKernelReleaseNotesResult.cc create mode 100644 dds/src/model/DescribeParameterModificationHistoryRequest.cc create mode 100644 dds/src/model/DescribeParameterModificationHistoryResult.cc create mode 100644 dds/src/model/DescribeParameterTemplatesRequest.cc create mode 100644 dds/src/model/DescribeParameterTemplatesResult.cc create mode 100644 dds/src/model/DescribeParametersRequest.cc create mode 100644 dds/src/model/DescribeParametersResult.cc create mode 100644 dds/src/model/DescribeRdsVSwitchsRequest.cc create mode 100644 dds/src/model/DescribeRdsVSwitchsResult.cc create mode 100644 dds/src/model/DescribeRdsVpcsRequest.cc create mode 100644 dds/src/model/DescribeRdsVpcsResult.cc create mode 100644 dds/src/model/DescribeRegionsRequest.cc create mode 100644 dds/src/model/DescribeRegionsResult.cc create mode 100644 dds/src/model/DescribeRenewalPriceRequest.cc create mode 100644 dds/src/model/DescribeRenewalPriceResult.cc create mode 100644 dds/src/model/DescribeReplicaConflictInfoRequest.cc create mode 100644 dds/src/model/DescribeReplicaConflictInfoResult.cc create mode 100644 dds/src/model/DescribeReplicaInitializeProgressRequest.cc create mode 100644 dds/src/model/DescribeReplicaInitializeProgressResult.cc create mode 100644 dds/src/model/DescribeReplicaPerformanceRequest.cc create mode 100644 dds/src/model/DescribeReplicaPerformanceResult.cc create mode 100644 dds/src/model/DescribeReplicaSetRoleRequest.cc create mode 100644 dds/src/model/DescribeReplicaSetRoleResult.cc create mode 100644 dds/src/model/DescribeReplicaUsageRequest.cc create mode 100644 dds/src/model/DescribeReplicaUsageResult.cc create mode 100644 dds/src/model/DescribeReplicasRequest.cc create mode 100644 dds/src/model/DescribeReplicasResult.cc create mode 100644 dds/src/model/DescribeReplicationGroupRequest.cc create mode 100644 dds/src/model/DescribeReplicationGroupResult.cc create mode 100644 dds/src/model/DescribeRunningLogRecordsRequest.cc create mode 100644 dds/src/model/DescribeRunningLogRecordsResult.cc create mode 100644 dds/src/model/DescribeSecurityIpsRequest.cc create mode 100644 dds/src/model/DescribeSecurityIpsResult.cc create mode 100644 dds/src/model/DescribeShardingNetworkAddressRequest.cc create mode 100644 dds/src/model/DescribeShardingNetworkAddressResult.cc create mode 100644 dds/src/model/DescribeSlowLogRecordsRequest.cc create mode 100644 dds/src/model/DescribeSlowLogRecordsResult.cc create mode 100644 dds/src/model/DescribeStaticVerificationListRequest.cc create mode 100644 dds/src/model/DescribeStaticVerificationListResult.cc create mode 100644 dds/src/model/DescribeStrategyRequest.cc create mode 100644 dds/src/model/DescribeStrategyResult.cc create mode 100644 dds/src/model/DescribeVerificationListRequest.cc create mode 100644 dds/src/model/DescribeVerificationListResult.cc create mode 100644 dds/src/model/DestroyInstanceRequest.cc create mode 100644 dds/src/model/DestroyInstanceResult.cc create mode 100644 dds/src/model/EvaluateFailOverSwitchRequest.cc create mode 100644 dds/src/model/EvaluateFailOverSwitchResult.cc create mode 100644 dds/src/model/ListTagResourcesRequest.cc create mode 100644 dds/src/model/ListTagResourcesResult.cc create mode 100644 dds/src/model/MigrateAvailableZoneRequest.cc create mode 100644 dds/src/model/MigrateAvailableZoneResult.cc create mode 100644 dds/src/model/MigrateToOtherZoneRequest.cc create mode 100644 dds/src/model/MigrateToOtherZoneResult.cc create mode 100644 dds/src/model/ModifyAccountDescriptionRequest.cc create mode 100644 dds/src/model/ModifyAccountDescriptionResult.cc create mode 100644 dds/src/model/ModifyActiveOperationTaskRequest.cc create mode 100644 dds/src/model/ModifyActiveOperationTaskResult.cc create mode 100644 dds/src/model/ModifyAuditLogFilterRequest.cc create mode 100644 dds/src/model/ModifyAuditLogFilterResult.cc create mode 100644 dds/src/model/ModifyAuditPolicyRequest.cc create mode 100644 dds/src/model/ModifyAuditPolicyResult.cc create mode 100644 dds/src/model/ModifyBackupPolicyRequest.cc create mode 100644 dds/src/model/ModifyBackupPolicyResult.cc create mode 100644 dds/src/model/ModifyDBInstanceConnectionStringRequest.cc create mode 100644 dds/src/model/ModifyDBInstanceConnectionStringResult.cc create mode 100644 dds/src/model/ModifyDBInstanceDescriptionRequest.cc create mode 100644 dds/src/model/ModifyDBInstanceDescriptionResult.cc create mode 100644 dds/src/model/ModifyDBInstanceMaintainTimeRequest.cc create mode 100644 dds/src/model/ModifyDBInstanceMaintainTimeResult.cc create mode 100644 dds/src/model/ModifyDBInstanceMonitorRequest.cc create mode 100644 dds/src/model/ModifyDBInstanceMonitorResult.cc create mode 100644 dds/src/model/ModifyDBInstanceNetExpireTimeRequest.cc create mode 100644 dds/src/model/ModifyDBInstanceNetExpireTimeResult.cc create mode 100644 dds/src/model/ModifyDBInstanceNetworkTypeRequest.cc create mode 100644 dds/src/model/ModifyDBInstanceNetworkTypeResult.cc create mode 100644 dds/src/model/ModifyDBInstanceSSLRequest.cc create mode 100644 dds/src/model/ModifyDBInstanceSSLResult.cc create mode 100644 dds/src/model/ModifyDBInstanceSpecRequest.cc create mode 100644 dds/src/model/ModifyDBInstanceSpecResult.cc create mode 100644 dds/src/model/ModifyGuardDomainModeRequest.cc create mode 100644 dds/src/model/ModifyGuardDomainModeResult.cc create mode 100644 dds/src/model/ModifyInstanceAutoRenewalAttributeRequest.cc create mode 100644 dds/src/model/ModifyInstanceAutoRenewalAttributeResult.cc create mode 100644 dds/src/model/ModifyNodeSpecRequest.cc create mode 100644 dds/src/model/ModifyNodeSpecResult.cc create mode 100644 dds/src/model/ModifyParametersRequest.cc create mode 100644 dds/src/model/ModifyParametersResult.cc create mode 100644 dds/src/model/ModifyReplicaDescriptionRequest.cc create mode 100644 dds/src/model/ModifyReplicaDescriptionResult.cc create mode 100644 dds/src/model/ModifyReplicaModeRequest.cc create mode 100644 dds/src/model/ModifyReplicaModeResult.cc create mode 100644 dds/src/model/ModifyReplicaRecoveryModeRequest.cc create mode 100644 dds/src/model/ModifyReplicaRecoveryModeResult.cc create mode 100644 dds/src/model/ModifyReplicaRelationRequest.cc create mode 100644 dds/src/model/ModifyReplicaRelationResult.cc create mode 100644 dds/src/model/ModifyReplicaVerificationModeRequest.cc create mode 100644 dds/src/model/ModifyReplicaVerificationModeResult.cc create mode 100644 dds/src/model/ModifySecurityIpsRequest.cc create mode 100644 dds/src/model/ModifySecurityIpsResult.cc create mode 100644 dds/src/model/ReleasePublicNetworkAddressRequest.cc create mode 100644 dds/src/model/ReleasePublicNetworkAddressResult.cc create mode 100644 dds/src/model/ReleaseReplicaRequest.cc create mode 100644 dds/src/model/ReleaseReplicaResult.cc create mode 100644 dds/src/model/RenewDBInstanceRequest.cc create mode 100644 dds/src/model/RenewDBInstanceResult.cc create mode 100644 dds/src/model/ResetAccountPasswordRequest.cc create mode 100644 dds/src/model/ResetAccountPasswordResult.cc create mode 100644 dds/src/model/RestartDBInstanceRequest.cc create mode 100644 dds/src/model/RestartDBInstanceResult.cc create mode 100644 dds/src/model/RestoreDBInstanceRequest.cc create mode 100644 dds/src/model/RestoreDBInstanceResult.cc create mode 100644 dds/src/model/SampleRequest.cc create mode 100644 dds/src/model/SampleResult.cc create mode 100644 dds/src/model/SwitchDBInstanceHARequest.cc create mode 100644 dds/src/model/SwitchDBInstanceHAResult.cc create mode 100644 dds/src/model/SwithcDBInstanceHARequest.cc create mode 100644 dds/src/model/SwithcDBInstanceHAResult.cc create mode 100644 dds/src/model/TagResourcesRequest.cc create mode 100644 dds/src/model/TagResourcesResult.cc create mode 100644 dds/src/model/TransformToPrePaidRequest.cc create mode 100644 dds/src/model/TransformToPrePaidResult.cc create mode 100644 dds/src/model/UntagResourcesRequest.cc create mode 100644 dds/src/model/UntagResourcesResult.cc create mode 100644 dds/src/model/UpgradeDBInstanceEngineVersionRequest.cc create mode 100644 dds/src/model/UpgradeDBInstanceEngineVersionResult.cc create mode 100644 dds/src/model/UpgradeDBInstanceKernelVersionRequest.cc create mode 100644 dds/src/model/UpgradeDBInstanceKernelVersionResult.cc diff --git a/CHANGELOG b/CHANGELOG index a15c301bf..6e3ae3f7f 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2019-04-18 Version: 1.36.19 +1, Add CreateAccount + 2019-04-18 Version: 1.36.18 1, CreateCacheAnalysisTask prop modify diff --git a/CMakeLists.txt b/CMakeLists.txt index c76b37efd..392705c03 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -120,4 +120,5 @@ add_subdirectory(bssopenapi) add_subdirectory(sas) add_subdirectory(dbs) -add_subdirectory(r-kvstore) \ No newline at end of file +add_subdirectory(r-kvstore) +add_subdirectory(dds) \ No newline at end of file diff --git a/VERSION b/VERSION index 3e8ac5b4a..1cbe5b7f1 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.18 \ No newline at end of file +1.36.19 \ No newline at end of file diff --git a/dds/CMakeLists.txt b/dds/CMakeLists.txt new file mode 100644 index 000000000..6cf05b996 --- /dev/null +++ b/dds/CMakeLists.txt @@ -0,0 +1,82 @@ +# +# Copyright 2009-2017 Alibaba Cloud All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT 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(dds_public_header + include/alibabacloud/dds/DdsClient.h + include/alibabacloud/dds/DdsExport.h ) + +set(dds_public_header_model ) + +set(dds_src + src/DdsClient.cc ) + +add_library(dds ${LIB_TYPE} + ${dds_public_header} + ${dds_public_header_model} + ${dds_src}) + +set_target_properties(dds + 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}dds + ) + +if(${LIB_TYPE} STREQUAL "SHARED") + set_target_properties(dds + PROPERTIES + DEFINE_SYMBOL ALIBABACLOUD_DDS_LIBRARY) +endif() + +target_include_directories(dds + PRIVATE include + ${CMAKE_SOURCE_DIR}/core/include + ) +target_link_libraries(dds + core) + +if(CMAKE_HOST_WIN32) + ExternalProject_Get_Property(jsoncpp INSTALL_DIR) + set(jsoncpp_install_dir ${INSTALL_DIR}) + add_dependencies(dds + jsoncpp) + target_include_directories(dds + PRIVATE ${jsoncpp_install_dir}/include) + target_link_libraries(dds + ${jsoncpp_install_dir}/lib/jsoncpp.lib) + set_target_properties(dds + PROPERTIES + COMPILE_OPTIONS "/bigobj") +else() + target_include_directories(dds + PRIVATE /usr/include/jsoncpp) + target_link_libraries(dds + jsoncpp) +endif() + +install(FILES ${dds_public_header} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/dds) +install(FILES ${dds_public_header_model} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/dds/model) +install(TARGETS dds + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + ) \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/DdsClient.h b/dds/include/alibabacloud/dds/DdsClient.h new file mode 100644 index 000000000..3464a6ae2 --- /dev/null +++ b/dds/include/alibabacloud/dds/DdsClient.h @@ -0,0 +1,830 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DDS_DDSCLIENT_H_ +#define ALIBABACLOUD_DDS_DDSCLIENT_H_ + +#include +#include +#include +#include +#include "DdsExport.h" +#include "model/ModifyAuditLogFilterRequest.h" +#include "model/ModifyAuditLogFilterResult.h" +#include "model/UntagResourcesRequest.h" +#include "model/UntagResourcesResult.h" +#include "model/CheckRecoveryConditionRequest.h" +#include "model/CheckRecoveryConditionResult.h" +#include "model/ModifyParametersRequest.h" +#include "model/ModifyParametersResult.h" +#include "model/DescribeDBInstanceMonitorRequest.h" +#include "model/DescribeDBInstanceMonitorResult.h" +#include "model/DescribeReplicaSetRoleRequest.h" +#include "model/DescribeReplicaSetRoleResult.h" +#include "model/ModifyAccountDescriptionRequest.h" +#include "model/ModifyAccountDescriptionResult.h" +#include "model/DescribeShardingNetworkAddressRequest.h" +#include "model/DescribeShardingNetworkAddressResult.h" +#include "model/MigrateAvailableZoneRequest.h" +#include "model/MigrateAvailableZoneResult.h" +#include "model/ReleaseReplicaRequest.h" +#include "model/ReleaseReplicaResult.h" +#include "model/DescribeActiveOperationTaskRequest.h" +#include "model/DescribeActiveOperationTaskResult.h" +#include "model/UpgradeDBInstanceEngineVersionRequest.h" +#include "model/UpgradeDBInstanceEngineVersionResult.h" +#include "model/ModifyReplicaRecoveryModeRequest.h" +#include "model/ModifyReplicaRecoveryModeResult.h" +#include "model/ModifyDBInstanceConnectionStringRequest.h" +#include "model/ModifyDBInstanceConnectionStringResult.h" +#include "model/DescribeReplicasRequest.h" +#include "model/DescribeReplicasResult.h" +#include "model/RestartDBInstanceRequest.h" +#include "model/RestartDBInstanceResult.h" +#include "model/DescribeReplicaConflictInfoRequest.h" +#include "model/DescribeReplicaConflictInfoResult.h" +#include "model/DescribeAuditLogFilterRequest.h" +#include "model/DescribeAuditLogFilterResult.h" +#include "model/DescribeActiveOperationTaskCountRequest.h" +#include "model/DescribeActiveOperationTaskCountResult.h" +#include "model/CreateAccountRequest.h" +#include "model/CreateAccountResult.h" +#include "model/ModifyDBInstanceMonitorRequest.h" +#include "model/ModifyDBInstanceMonitorResult.h" +#include "model/ModifyReplicaDescriptionRequest.h" +#include "model/ModifyReplicaDescriptionResult.h" +#include "model/DescribeReplicaInitializeProgressRequest.h" +#include "model/DescribeReplicaInitializeProgressResult.h" +#include "model/ModifyBackupPolicyRequest.h" +#include "model/ModifyBackupPolicyResult.h" +#include "model/DescribeParametersRequest.h" +#include "model/DescribeParametersResult.h" +#include "model/DescribeRenewalPriceRequest.h" +#include "model/DescribeRenewalPriceResult.h" +#include "model/DescribeDBInstanceAttributeRequest.h" +#include "model/DescribeDBInstanceAttributeResult.h" +#include "model/CreateStaticVerificationRequest.h" +#include "model/CreateStaticVerificationResult.h" +#include "model/CreateRecommendationTaskRequest.h" +#include "model/CreateRecommendationTaskResult.h" +#include "model/DescribeActiveOperationTaskTypeRequest.h" +#include "model/DescribeActiveOperationTaskTypeResult.h" +#include "model/DescribeAuditPolicyRequest.h" +#include "model/DescribeAuditPolicyResult.h" +#include "model/ModifyInstanceAutoRenewalAttributeRequest.h" +#include "model/ModifyInstanceAutoRenewalAttributeResult.h" +#include "model/CreateNodeRequest.h" +#include "model/CreateNodeResult.h" +#include "model/SwithcDBInstanceHARequest.h" +#include "model/SwithcDBInstanceHAResult.h" +#include "model/DescribeAuditRecordsRequest.h" +#include "model/DescribeAuditRecordsResult.h" +#include "model/DescribeBackupsRequest.h" +#include "model/DescribeBackupsResult.h" +#include "model/DescribeRdsVpcsRequest.h" +#include "model/DescribeRdsVpcsResult.h" +#include "model/DeleteDBInstanceRequest.h" +#include "model/DeleteDBInstanceResult.h" +#include "model/DescribeInstanceAutoRenewalAttributeRequest.h" +#include "model/DescribeInstanceAutoRenewalAttributeResult.h" +#include "model/RestoreDBInstanceRequest.h" +#include "model/RestoreDBInstanceResult.h" +#include "model/DescribeRdsVSwitchsRequest.h" +#include "model/DescribeRdsVSwitchsResult.h" +#include "model/ModifyDBInstanceSpecRequest.h" +#include "model/ModifyDBInstanceSpecResult.h" +#include "model/CreateShardingDBInstanceRequest.h" +#include "model/CreateShardingDBInstanceResult.h" +#include "model/DescribeErrorLogRecordsRequest.h" +#include "model/DescribeErrorLogRecordsResult.h" +#include "model/ModifySecurityIpsRequest.h" +#include "model/ModifySecurityIpsResult.h" +#include "model/DescribeVerificationListRequest.h" +#include "model/DescribeVerificationListResult.h" +#include "model/ModifyReplicaModeRequest.h" +#include "model/ModifyReplicaModeResult.h" +#include "model/DescribeStrategyRequest.h" +#include "model/DescribeStrategyResult.h" +#include "model/TagResourcesRequest.h" +#include "model/TagResourcesResult.h" +#include "model/TransformToPrePaidRequest.h" +#include "model/TransformToPrePaidResult.h" +#include "model/DescribeActiveOperationTaskRegionRequest.h" +#include "model/DescribeActiveOperationTaskRegionResult.h" +#include "model/DescribeDBInstancePerformanceRequest.h" +#include "model/DescribeDBInstancePerformanceResult.h" +#include "model/ListTagResourcesRequest.h" +#include "model/ListTagResourcesResult.h" +#include "model/ModifyDBInstanceNetExpireTimeRequest.h" +#include "model/ModifyDBInstanceNetExpireTimeResult.h" +#include "model/DescribeDBInstancesRequest.h" +#include "model/DescribeDBInstancesResult.h" +#include "model/DescribeParameterTemplatesRequest.h" +#include "model/DescribeParameterTemplatesResult.h" +#include "model/DeleteNodeRequest.h" +#include "model/DeleteNodeResult.h" +#include "model/DestroyInstanceRequest.h" +#include "model/DestroyInstanceResult.h" +#include "model/DescribeRunningLogRecordsRequest.h" +#include "model/DescribeRunningLogRecordsResult.h" +#include "model/CreateDBInstanceRequest.h" +#include "model/CreateDBInstanceResult.h" +#include "model/ModifyDBInstanceSSLRequest.h" +#include "model/ModifyDBInstanceSSLResult.h" +#include "model/DescribeAuditFilesRequest.h" +#include "model/DescribeAuditFilesResult.h" +#include "model/DescribeStaticVerificationListRequest.h" +#include "model/DescribeStaticVerificationListResult.h" +#include "model/DescribeAvaliableTimeRangeRequest.h" +#include "model/DescribeAvaliableTimeRangeResult.h" +#include "model/AllocatePublicNetworkAddressRequest.h" +#include "model/AllocatePublicNetworkAddressResult.h" +#include "model/DescribeSecurityIpsRequest.h" +#include "model/DescribeSecurityIpsResult.h" +#include "model/DescribeIndexRecommendationRequest.h" +#include "model/DescribeIndexRecommendationResult.h" +#include "model/DescribeAvailableEngineVersionRequest.h" +#include "model/DescribeAvailableEngineVersionResult.h" +#include "model/ModifyReplicaRelationRequest.h" +#include "model/ModifyReplicaRelationResult.h" +#include "model/ModifyDBInstanceNetworkTypeRequest.h" +#include "model/ModifyDBInstanceNetworkTypeResult.h" +#include "model/DescribeKernelReleaseNotesRequest.h" +#include "model/DescribeKernelReleaseNotesResult.h" +#include "model/DescribeAvailableTimeRangeRequest.h" +#include "model/DescribeAvailableTimeRangeResult.h" +#include "model/ModifyAuditPolicyRequest.h" +#include "model/ModifyAuditPolicyResult.h" +#include "model/DescribeReplicaUsageRequest.h" +#include "model/DescribeReplicaUsageResult.h" +#include "model/CreateBackupRequest.h" +#include "model/CreateBackupResult.h" +#include "model/ModifyDBInstanceMaintainTimeRequest.h" +#include "model/ModifyDBInstanceMaintainTimeResult.h" +#include "model/ModifyDBInstanceDescriptionRequest.h" +#include "model/ModifyDBInstanceDescriptionResult.h" +#include "model/DescribeReplicaPerformanceRequest.h" +#include "model/DescribeReplicaPerformanceResult.h" +#include "model/ModifyNodeSpecRequest.h" +#include "model/ModifyNodeSpecResult.h" +#include "model/UpgradeDBInstanceKernelVersionRequest.h" +#include "model/UpgradeDBInstanceKernelVersionResult.h" +#include "model/DescribeRegionsRequest.h" +#include "model/DescribeRegionsResult.h" +#include "model/DescribeReplicationGroupRequest.h" +#include "model/DescribeReplicationGroupResult.h" +#include "model/MigrateToOtherZoneRequest.h" +#include "model/MigrateToOtherZoneResult.h" +#include "model/DescribeSlowLogRecordsRequest.h" +#include "model/DescribeSlowLogRecordsResult.h" +#include "model/DescribeParameterModificationHistoryRequest.h" +#include "model/DescribeParameterModificationHistoryResult.h" +#include "model/ResetAccountPasswordRequest.h" +#include "model/ResetAccountPasswordResult.h" +#include "model/SampleRequest.h" +#include "model/SampleResult.h" +#include "model/ReleasePublicNetworkAddressRequest.h" +#include "model/ReleasePublicNetworkAddressResult.h" +#include "model/DescribeAccountsRequest.h" +#include "model/DescribeAccountsResult.h" +#include "model/DescribeDBInstanceSSLRequest.h" +#include "model/DescribeDBInstanceSSLResult.h" +#include "model/RenewDBInstanceRequest.h" +#include "model/RenewDBInstanceResult.h" +#include "model/EvaluateFailOverSwitchRequest.h" +#include "model/EvaluateFailOverSwitchResult.h" +#include "model/ModifyGuardDomainModeRequest.h" +#include "model/ModifyGuardDomainModeResult.h" +#include "model/ModifyReplicaVerificationModeRequest.h" +#include "model/ModifyReplicaVerificationModeResult.h" +#include "model/ModifyActiveOperationTaskRequest.h" +#include "model/ModifyActiveOperationTaskResult.h" +#include "model/DescribeBackupPolicyRequest.h" +#include "model/DescribeBackupPolicyResult.h" +#include "model/SwitchDBInstanceHARequest.h" +#include "model/SwitchDBInstanceHAResult.h" +#include "model/DescribeBackupDBsRequest.h" +#include "model/DescribeBackupDBsResult.h" + + +namespace AlibabaCloud +{ + namespace Dds + { + class ALIBABACLOUD_DDS_EXPORT DdsClient : public RpcServiceClient + { + public: + typedef Outcome ModifyAuditLogFilterOutcome; + typedef std::future ModifyAuditLogFilterOutcomeCallable; + typedef std::function&)> ModifyAuditLogFilterAsyncHandler; + typedef Outcome UntagResourcesOutcome; + typedef std::future UntagResourcesOutcomeCallable; + typedef std::function&)> UntagResourcesAsyncHandler; + typedef Outcome CheckRecoveryConditionOutcome; + typedef std::future CheckRecoveryConditionOutcomeCallable; + typedef std::function&)> CheckRecoveryConditionAsyncHandler; + typedef Outcome ModifyParametersOutcome; + typedef std::future ModifyParametersOutcomeCallable; + typedef std::function&)> ModifyParametersAsyncHandler; + typedef Outcome DescribeDBInstanceMonitorOutcome; + typedef std::future DescribeDBInstanceMonitorOutcomeCallable; + typedef std::function&)> DescribeDBInstanceMonitorAsyncHandler; + typedef Outcome DescribeReplicaSetRoleOutcome; + typedef std::future DescribeReplicaSetRoleOutcomeCallable; + typedef std::function&)> DescribeReplicaSetRoleAsyncHandler; + typedef Outcome ModifyAccountDescriptionOutcome; + typedef std::future ModifyAccountDescriptionOutcomeCallable; + typedef std::function&)> ModifyAccountDescriptionAsyncHandler; + typedef Outcome DescribeShardingNetworkAddressOutcome; + typedef std::future DescribeShardingNetworkAddressOutcomeCallable; + typedef std::function&)> DescribeShardingNetworkAddressAsyncHandler; + typedef Outcome MigrateAvailableZoneOutcome; + typedef std::future MigrateAvailableZoneOutcomeCallable; + typedef std::function&)> MigrateAvailableZoneAsyncHandler; + typedef Outcome ReleaseReplicaOutcome; + typedef std::future ReleaseReplicaOutcomeCallable; + typedef std::function&)> ReleaseReplicaAsyncHandler; + typedef Outcome DescribeActiveOperationTaskOutcome; + typedef std::future DescribeActiveOperationTaskOutcomeCallable; + typedef std::function&)> DescribeActiveOperationTaskAsyncHandler; + typedef Outcome UpgradeDBInstanceEngineVersionOutcome; + typedef std::future UpgradeDBInstanceEngineVersionOutcomeCallable; + typedef std::function&)> UpgradeDBInstanceEngineVersionAsyncHandler; + typedef Outcome ModifyReplicaRecoveryModeOutcome; + typedef std::future ModifyReplicaRecoveryModeOutcomeCallable; + typedef std::function&)> ModifyReplicaRecoveryModeAsyncHandler; + typedef Outcome ModifyDBInstanceConnectionStringOutcome; + typedef std::future ModifyDBInstanceConnectionStringOutcomeCallable; + typedef std::function&)> ModifyDBInstanceConnectionStringAsyncHandler; + typedef Outcome DescribeReplicasOutcome; + typedef std::future DescribeReplicasOutcomeCallable; + typedef std::function&)> DescribeReplicasAsyncHandler; + typedef Outcome RestartDBInstanceOutcome; + typedef std::future RestartDBInstanceOutcomeCallable; + typedef std::function&)> RestartDBInstanceAsyncHandler; + typedef Outcome DescribeReplicaConflictInfoOutcome; + typedef std::future DescribeReplicaConflictInfoOutcomeCallable; + typedef std::function&)> DescribeReplicaConflictInfoAsyncHandler; + typedef Outcome DescribeAuditLogFilterOutcome; + typedef std::future DescribeAuditLogFilterOutcomeCallable; + typedef std::function&)> DescribeAuditLogFilterAsyncHandler; + typedef Outcome DescribeActiveOperationTaskCountOutcome; + typedef std::future DescribeActiveOperationTaskCountOutcomeCallable; + typedef std::function&)> DescribeActiveOperationTaskCountAsyncHandler; + typedef Outcome CreateAccountOutcome; + typedef std::future CreateAccountOutcomeCallable; + typedef std::function&)> CreateAccountAsyncHandler; + typedef Outcome ModifyDBInstanceMonitorOutcome; + typedef std::future ModifyDBInstanceMonitorOutcomeCallable; + typedef std::function&)> ModifyDBInstanceMonitorAsyncHandler; + typedef Outcome ModifyReplicaDescriptionOutcome; + typedef std::future ModifyReplicaDescriptionOutcomeCallable; + typedef std::function&)> ModifyReplicaDescriptionAsyncHandler; + typedef Outcome DescribeReplicaInitializeProgressOutcome; + typedef std::future DescribeReplicaInitializeProgressOutcomeCallable; + typedef std::function&)> DescribeReplicaInitializeProgressAsyncHandler; + typedef Outcome ModifyBackupPolicyOutcome; + typedef std::future ModifyBackupPolicyOutcomeCallable; + typedef std::function&)> ModifyBackupPolicyAsyncHandler; + typedef Outcome DescribeParametersOutcome; + typedef std::future DescribeParametersOutcomeCallable; + typedef std::function&)> DescribeParametersAsyncHandler; + typedef Outcome DescribeRenewalPriceOutcome; + typedef std::future DescribeRenewalPriceOutcomeCallable; + typedef std::function&)> DescribeRenewalPriceAsyncHandler; + typedef Outcome DescribeDBInstanceAttributeOutcome; + typedef std::future DescribeDBInstanceAttributeOutcomeCallable; + typedef std::function&)> DescribeDBInstanceAttributeAsyncHandler; + typedef Outcome CreateStaticVerificationOutcome; + typedef std::future CreateStaticVerificationOutcomeCallable; + typedef std::function&)> CreateStaticVerificationAsyncHandler; + typedef Outcome CreateRecommendationTaskOutcome; + typedef std::future CreateRecommendationTaskOutcomeCallable; + typedef std::function&)> CreateRecommendationTaskAsyncHandler; + typedef Outcome DescribeActiveOperationTaskTypeOutcome; + typedef std::future DescribeActiveOperationTaskTypeOutcomeCallable; + typedef std::function&)> DescribeActiveOperationTaskTypeAsyncHandler; + typedef Outcome DescribeAuditPolicyOutcome; + typedef std::future DescribeAuditPolicyOutcomeCallable; + typedef std::function&)> DescribeAuditPolicyAsyncHandler; + typedef Outcome ModifyInstanceAutoRenewalAttributeOutcome; + typedef std::future ModifyInstanceAutoRenewalAttributeOutcomeCallable; + typedef std::function&)> ModifyInstanceAutoRenewalAttributeAsyncHandler; + typedef Outcome CreateNodeOutcome; + typedef std::future CreateNodeOutcomeCallable; + typedef std::function&)> CreateNodeAsyncHandler; + typedef Outcome SwithcDBInstanceHAOutcome; + typedef std::future SwithcDBInstanceHAOutcomeCallable; + typedef std::function&)> SwithcDBInstanceHAAsyncHandler; + typedef Outcome DescribeAuditRecordsOutcome; + typedef std::future DescribeAuditRecordsOutcomeCallable; + typedef std::function&)> DescribeAuditRecordsAsyncHandler; + typedef Outcome DescribeBackupsOutcome; + typedef std::future DescribeBackupsOutcomeCallable; + typedef std::function&)> DescribeBackupsAsyncHandler; + typedef Outcome DescribeRdsVpcsOutcome; + typedef std::future DescribeRdsVpcsOutcomeCallable; + typedef std::function&)> DescribeRdsVpcsAsyncHandler; + typedef Outcome DeleteDBInstanceOutcome; + typedef std::future DeleteDBInstanceOutcomeCallable; + typedef std::function&)> DeleteDBInstanceAsyncHandler; + typedef Outcome DescribeInstanceAutoRenewalAttributeOutcome; + typedef std::future DescribeInstanceAutoRenewalAttributeOutcomeCallable; + typedef std::function&)> DescribeInstanceAutoRenewalAttributeAsyncHandler; + typedef Outcome RestoreDBInstanceOutcome; + typedef std::future RestoreDBInstanceOutcomeCallable; + typedef std::function&)> RestoreDBInstanceAsyncHandler; + typedef Outcome DescribeRdsVSwitchsOutcome; + typedef std::future DescribeRdsVSwitchsOutcomeCallable; + typedef std::function&)> DescribeRdsVSwitchsAsyncHandler; + typedef Outcome ModifyDBInstanceSpecOutcome; + typedef std::future ModifyDBInstanceSpecOutcomeCallable; + typedef std::function&)> ModifyDBInstanceSpecAsyncHandler; + typedef Outcome CreateShardingDBInstanceOutcome; + typedef std::future CreateShardingDBInstanceOutcomeCallable; + typedef std::function&)> CreateShardingDBInstanceAsyncHandler; + typedef Outcome DescribeErrorLogRecordsOutcome; + typedef std::future DescribeErrorLogRecordsOutcomeCallable; + typedef std::function&)> DescribeErrorLogRecordsAsyncHandler; + typedef Outcome ModifySecurityIpsOutcome; + typedef std::future ModifySecurityIpsOutcomeCallable; + typedef std::function&)> ModifySecurityIpsAsyncHandler; + typedef Outcome DescribeVerificationListOutcome; + typedef std::future DescribeVerificationListOutcomeCallable; + typedef std::function&)> DescribeVerificationListAsyncHandler; + typedef Outcome ModifyReplicaModeOutcome; + typedef std::future ModifyReplicaModeOutcomeCallable; + typedef std::function&)> ModifyReplicaModeAsyncHandler; + typedef Outcome DescribeStrategyOutcome; + typedef std::future DescribeStrategyOutcomeCallable; + typedef std::function&)> DescribeStrategyAsyncHandler; + typedef Outcome TagResourcesOutcome; + typedef std::future TagResourcesOutcomeCallable; + typedef std::function&)> TagResourcesAsyncHandler; + typedef Outcome TransformToPrePaidOutcome; + typedef std::future TransformToPrePaidOutcomeCallable; + typedef std::function&)> TransformToPrePaidAsyncHandler; + typedef Outcome DescribeActiveOperationTaskRegionOutcome; + typedef std::future DescribeActiveOperationTaskRegionOutcomeCallable; + typedef std::function&)> DescribeActiveOperationTaskRegionAsyncHandler; + typedef Outcome DescribeDBInstancePerformanceOutcome; + typedef std::future DescribeDBInstancePerformanceOutcomeCallable; + typedef std::function&)> DescribeDBInstancePerformanceAsyncHandler; + typedef Outcome ListTagResourcesOutcome; + typedef std::future ListTagResourcesOutcomeCallable; + typedef std::function&)> ListTagResourcesAsyncHandler; + typedef Outcome ModifyDBInstanceNetExpireTimeOutcome; + typedef std::future ModifyDBInstanceNetExpireTimeOutcomeCallable; + typedef std::function&)> ModifyDBInstanceNetExpireTimeAsyncHandler; + typedef Outcome DescribeDBInstancesOutcome; + typedef std::future DescribeDBInstancesOutcomeCallable; + typedef std::function&)> DescribeDBInstancesAsyncHandler; + typedef Outcome DescribeParameterTemplatesOutcome; + typedef std::future DescribeParameterTemplatesOutcomeCallable; + typedef std::function&)> DescribeParameterTemplatesAsyncHandler; + typedef Outcome DeleteNodeOutcome; + typedef std::future DeleteNodeOutcomeCallable; + typedef std::function&)> DeleteNodeAsyncHandler; + typedef Outcome DestroyInstanceOutcome; + typedef std::future DestroyInstanceOutcomeCallable; + typedef std::function&)> DestroyInstanceAsyncHandler; + typedef Outcome DescribeRunningLogRecordsOutcome; + typedef std::future DescribeRunningLogRecordsOutcomeCallable; + typedef std::function&)> DescribeRunningLogRecordsAsyncHandler; + typedef Outcome CreateDBInstanceOutcome; + typedef std::future CreateDBInstanceOutcomeCallable; + typedef std::function&)> CreateDBInstanceAsyncHandler; + typedef Outcome ModifyDBInstanceSSLOutcome; + typedef std::future ModifyDBInstanceSSLOutcomeCallable; + typedef std::function&)> ModifyDBInstanceSSLAsyncHandler; + typedef Outcome DescribeAuditFilesOutcome; + typedef std::future DescribeAuditFilesOutcomeCallable; + typedef std::function&)> DescribeAuditFilesAsyncHandler; + typedef Outcome DescribeStaticVerificationListOutcome; + typedef std::future DescribeStaticVerificationListOutcomeCallable; + typedef std::function&)> DescribeStaticVerificationListAsyncHandler; + typedef Outcome DescribeAvaliableTimeRangeOutcome; + typedef std::future DescribeAvaliableTimeRangeOutcomeCallable; + typedef std::function&)> DescribeAvaliableTimeRangeAsyncHandler; + typedef Outcome AllocatePublicNetworkAddressOutcome; + typedef std::future AllocatePublicNetworkAddressOutcomeCallable; + typedef std::function&)> AllocatePublicNetworkAddressAsyncHandler; + typedef Outcome DescribeSecurityIpsOutcome; + typedef std::future DescribeSecurityIpsOutcomeCallable; + typedef std::function&)> DescribeSecurityIpsAsyncHandler; + typedef Outcome DescribeIndexRecommendationOutcome; + typedef std::future DescribeIndexRecommendationOutcomeCallable; + typedef std::function&)> DescribeIndexRecommendationAsyncHandler; + typedef Outcome DescribeAvailableEngineVersionOutcome; + typedef std::future DescribeAvailableEngineVersionOutcomeCallable; + typedef std::function&)> DescribeAvailableEngineVersionAsyncHandler; + typedef Outcome ModifyReplicaRelationOutcome; + typedef std::future ModifyReplicaRelationOutcomeCallable; + typedef std::function&)> ModifyReplicaRelationAsyncHandler; + typedef Outcome ModifyDBInstanceNetworkTypeOutcome; + typedef std::future ModifyDBInstanceNetworkTypeOutcomeCallable; + typedef std::function&)> ModifyDBInstanceNetworkTypeAsyncHandler; + typedef Outcome DescribeKernelReleaseNotesOutcome; + typedef std::future DescribeKernelReleaseNotesOutcomeCallable; + typedef std::function&)> DescribeKernelReleaseNotesAsyncHandler; + typedef Outcome DescribeAvailableTimeRangeOutcome; + typedef std::future DescribeAvailableTimeRangeOutcomeCallable; + typedef std::function&)> DescribeAvailableTimeRangeAsyncHandler; + typedef Outcome ModifyAuditPolicyOutcome; + typedef std::future ModifyAuditPolicyOutcomeCallable; + typedef std::function&)> ModifyAuditPolicyAsyncHandler; + typedef Outcome DescribeReplicaUsageOutcome; + typedef std::future DescribeReplicaUsageOutcomeCallable; + typedef std::function&)> DescribeReplicaUsageAsyncHandler; + typedef Outcome CreateBackupOutcome; + typedef std::future CreateBackupOutcomeCallable; + typedef std::function&)> CreateBackupAsyncHandler; + typedef Outcome ModifyDBInstanceMaintainTimeOutcome; + typedef std::future ModifyDBInstanceMaintainTimeOutcomeCallable; + typedef std::function&)> ModifyDBInstanceMaintainTimeAsyncHandler; + typedef Outcome ModifyDBInstanceDescriptionOutcome; + typedef std::future ModifyDBInstanceDescriptionOutcomeCallable; + typedef std::function&)> ModifyDBInstanceDescriptionAsyncHandler; + typedef Outcome DescribeReplicaPerformanceOutcome; + typedef std::future DescribeReplicaPerformanceOutcomeCallable; + typedef std::function&)> DescribeReplicaPerformanceAsyncHandler; + typedef Outcome ModifyNodeSpecOutcome; + typedef std::future ModifyNodeSpecOutcomeCallable; + typedef std::function&)> ModifyNodeSpecAsyncHandler; + typedef Outcome UpgradeDBInstanceKernelVersionOutcome; + typedef std::future UpgradeDBInstanceKernelVersionOutcomeCallable; + typedef std::function&)> UpgradeDBInstanceKernelVersionAsyncHandler; + typedef Outcome DescribeRegionsOutcome; + typedef std::future DescribeRegionsOutcomeCallable; + typedef std::function&)> DescribeRegionsAsyncHandler; + typedef Outcome DescribeReplicationGroupOutcome; + typedef std::future DescribeReplicationGroupOutcomeCallable; + typedef std::function&)> DescribeReplicationGroupAsyncHandler; + typedef Outcome MigrateToOtherZoneOutcome; + typedef std::future MigrateToOtherZoneOutcomeCallable; + typedef std::function&)> MigrateToOtherZoneAsyncHandler; + typedef Outcome DescribeSlowLogRecordsOutcome; + typedef std::future DescribeSlowLogRecordsOutcomeCallable; + typedef std::function&)> DescribeSlowLogRecordsAsyncHandler; + typedef Outcome DescribeParameterModificationHistoryOutcome; + typedef std::future DescribeParameterModificationHistoryOutcomeCallable; + typedef std::function&)> DescribeParameterModificationHistoryAsyncHandler; + typedef Outcome ResetAccountPasswordOutcome; + typedef std::future ResetAccountPasswordOutcomeCallable; + typedef std::function&)> ResetAccountPasswordAsyncHandler; + typedef Outcome SampleOutcome; + typedef std::future SampleOutcomeCallable; + typedef std::function&)> SampleAsyncHandler; + typedef Outcome ReleasePublicNetworkAddressOutcome; + typedef std::future ReleasePublicNetworkAddressOutcomeCallable; + typedef std::function&)> ReleasePublicNetworkAddressAsyncHandler; + typedef Outcome DescribeAccountsOutcome; + typedef std::future DescribeAccountsOutcomeCallable; + typedef std::function&)> DescribeAccountsAsyncHandler; + typedef Outcome DescribeDBInstanceSSLOutcome; + typedef std::future DescribeDBInstanceSSLOutcomeCallable; + typedef std::function&)> DescribeDBInstanceSSLAsyncHandler; + typedef Outcome RenewDBInstanceOutcome; + typedef std::future RenewDBInstanceOutcomeCallable; + typedef std::function&)> RenewDBInstanceAsyncHandler; + typedef Outcome EvaluateFailOverSwitchOutcome; + typedef std::future EvaluateFailOverSwitchOutcomeCallable; + typedef std::function&)> EvaluateFailOverSwitchAsyncHandler; + typedef Outcome ModifyGuardDomainModeOutcome; + typedef std::future ModifyGuardDomainModeOutcomeCallable; + typedef std::function&)> ModifyGuardDomainModeAsyncHandler; + typedef Outcome ModifyReplicaVerificationModeOutcome; + typedef std::future ModifyReplicaVerificationModeOutcomeCallable; + typedef std::function&)> ModifyReplicaVerificationModeAsyncHandler; + typedef Outcome ModifyActiveOperationTaskOutcome; + typedef std::future ModifyActiveOperationTaskOutcomeCallable; + typedef std::function&)> ModifyActiveOperationTaskAsyncHandler; + typedef Outcome DescribeBackupPolicyOutcome; + typedef std::future DescribeBackupPolicyOutcomeCallable; + typedef std::function&)> DescribeBackupPolicyAsyncHandler; + typedef Outcome SwitchDBInstanceHAOutcome; + typedef std::future SwitchDBInstanceHAOutcomeCallable; + typedef std::function&)> SwitchDBInstanceHAAsyncHandler; + typedef Outcome DescribeBackupDBsOutcome; + typedef std::future DescribeBackupDBsOutcomeCallable; + typedef std::function&)> DescribeBackupDBsAsyncHandler; + + DdsClient(const Credentials &credentials, const ClientConfiguration &configuration); + DdsClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); + DdsClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); + ~DdsClient(); + ModifyAuditLogFilterOutcome modifyAuditLogFilter(const Model::ModifyAuditLogFilterRequest &request)const; + void modifyAuditLogFilterAsync(const Model::ModifyAuditLogFilterRequest& request, const ModifyAuditLogFilterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyAuditLogFilterOutcomeCallable modifyAuditLogFilterCallable(const Model::ModifyAuditLogFilterRequest& request) const; + UntagResourcesOutcome untagResources(const Model::UntagResourcesRequest &request)const; + void untagResourcesAsync(const Model::UntagResourcesRequest& request, const UntagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UntagResourcesOutcomeCallable untagResourcesCallable(const Model::UntagResourcesRequest& request) const; + CheckRecoveryConditionOutcome checkRecoveryCondition(const Model::CheckRecoveryConditionRequest &request)const; + void checkRecoveryConditionAsync(const Model::CheckRecoveryConditionRequest& request, const CheckRecoveryConditionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CheckRecoveryConditionOutcomeCallable checkRecoveryConditionCallable(const Model::CheckRecoveryConditionRequest& request) const; + ModifyParametersOutcome modifyParameters(const Model::ModifyParametersRequest &request)const; + void modifyParametersAsync(const Model::ModifyParametersRequest& request, const ModifyParametersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyParametersOutcomeCallable modifyParametersCallable(const Model::ModifyParametersRequest& 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; + DescribeReplicaSetRoleOutcome describeReplicaSetRole(const Model::DescribeReplicaSetRoleRequest &request)const; + void describeReplicaSetRoleAsync(const Model::DescribeReplicaSetRoleRequest& request, const DescribeReplicaSetRoleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeReplicaSetRoleOutcomeCallable describeReplicaSetRoleCallable(const Model::DescribeReplicaSetRoleRequest& 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; + DescribeShardingNetworkAddressOutcome describeShardingNetworkAddress(const Model::DescribeShardingNetworkAddressRequest &request)const; + void describeShardingNetworkAddressAsync(const Model::DescribeShardingNetworkAddressRequest& request, const DescribeShardingNetworkAddressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeShardingNetworkAddressOutcomeCallable describeShardingNetworkAddressCallable(const Model::DescribeShardingNetworkAddressRequest& request) const; + MigrateAvailableZoneOutcome migrateAvailableZone(const Model::MigrateAvailableZoneRequest &request)const; + void migrateAvailableZoneAsync(const Model::MigrateAvailableZoneRequest& request, const MigrateAvailableZoneAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + MigrateAvailableZoneOutcomeCallable migrateAvailableZoneCallable(const Model::MigrateAvailableZoneRequest& 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; + DescribeActiveOperationTaskOutcome describeActiveOperationTask(const Model::DescribeActiveOperationTaskRequest &request)const; + void describeActiveOperationTaskAsync(const Model::DescribeActiveOperationTaskRequest& request, const DescribeActiveOperationTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeActiveOperationTaskOutcomeCallable describeActiveOperationTaskCallable(const Model::DescribeActiveOperationTaskRequest& 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; + ModifyReplicaRecoveryModeOutcome modifyReplicaRecoveryMode(const Model::ModifyReplicaRecoveryModeRequest &request)const; + void modifyReplicaRecoveryModeAsync(const Model::ModifyReplicaRecoveryModeRequest& request, const ModifyReplicaRecoveryModeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyReplicaRecoveryModeOutcomeCallable modifyReplicaRecoveryModeCallable(const Model::ModifyReplicaRecoveryModeRequest& 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; + DescribeReplicasOutcome describeReplicas(const Model::DescribeReplicasRequest &request)const; + void describeReplicasAsync(const Model::DescribeReplicasRequest& request, const DescribeReplicasAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeReplicasOutcomeCallable describeReplicasCallable(const Model::DescribeReplicasRequest& 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; + DescribeReplicaConflictInfoOutcome describeReplicaConflictInfo(const Model::DescribeReplicaConflictInfoRequest &request)const; + void describeReplicaConflictInfoAsync(const Model::DescribeReplicaConflictInfoRequest& request, const DescribeReplicaConflictInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeReplicaConflictInfoOutcomeCallable describeReplicaConflictInfoCallable(const Model::DescribeReplicaConflictInfoRequest& request) const; + DescribeAuditLogFilterOutcome describeAuditLogFilter(const Model::DescribeAuditLogFilterRequest &request)const; + void describeAuditLogFilterAsync(const Model::DescribeAuditLogFilterRequest& request, const DescribeAuditLogFilterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAuditLogFilterOutcomeCallable describeAuditLogFilterCallable(const Model::DescribeAuditLogFilterRequest& request) const; + DescribeActiveOperationTaskCountOutcome describeActiveOperationTaskCount(const Model::DescribeActiveOperationTaskCountRequest &request)const; + void describeActiveOperationTaskCountAsync(const Model::DescribeActiveOperationTaskCountRequest& request, const DescribeActiveOperationTaskCountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeActiveOperationTaskCountOutcomeCallable describeActiveOperationTaskCountCallable(const Model::DescribeActiveOperationTaskCountRequest& 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; + 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; + 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; + 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; + DescribeParametersOutcome describeParameters(const Model::DescribeParametersRequest &request)const; + void describeParametersAsync(const Model::DescribeParametersRequest& request, const DescribeParametersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeParametersOutcomeCallable describeParametersCallable(const Model::DescribeParametersRequest& 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; + 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; + CreateStaticVerificationOutcome createStaticVerification(const Model::CreateStaticVerificationRequest &request)const; + void createStaticVerificationAsync(const Model::CreateStaticVerificationRequest& request, const CreateStaticVerificationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateStaticVerificationOutcomeCallable createStaticVerificationCallable(const Model::CreateStaticVerificationRequest& request) const; + CreateRecommendationTaskOutcome createRecommendationTask(const Model::CreateRecommendationTaskRequest &request)const; + void createRecommendationTaskAsync(const Model::CreateRecommendationTaskRequest& request, const CreateRecommendationTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateRecommendationTaskOutcomeCallable createRecommendationTaskCallable(const Model::CreateRecommendationTaskRequest& request) const; + DescribeActiveOperationTaskTypeOutcome describeActiveOperationTaskType(const Model::DescribeActiveOperationTaskTypeRequest &request)const; + void describeActiveOperationTaskTypeAsync(const Model::DescribeActiveOperationTaskTypeRequest& request, const DescribeActiveOperationTaskTypeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeActiveOperationTaskTypeOutcomeCallable describeActiveOperationTaskTypeCallable(const Model::DescribeActiveOperationTaskTypeRequest& request) const; + DescribeAuditPolicyOutcome describeAuditPolicy(const Model::DescribeAuditPolicyRequest &request)const; + void describeAuditPolicyAsync(const Model::DescribeAuditPolicyRequest& request, const DescribeAuditPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAuditPolicyOutcomeCallable describeAuditPolicyCallable(const Model::DescribeAuditPolicyRequest& 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; + CreateNodeOutcome createNode(const Model::CreateNodeRequest &request)const; + void createNodeAsync(const Model::CreateNodeRequest& request, const CreateNodeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateNodeOutcomeCallable createNodeCallable(const Model::CreateNodeRequest& request) const; + SwithcDBInstanceHAOutcome swithcDBInstanceHA(const Model::SwithcDBInstanceHARequest &request)const; + void swithcDBInstanceHAAsync(const Model::SwithcDBInstanceHARequest& request, const SwithcDBInstanceHAAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SwithcDBInstanceHAOutcomeCallable swithcDBInstanceHACallable(const Model::SwithcDBInstanceHARequest& request) const; + DescribeAuditRecordsOutcome describeAuditRecords(const Model::DescribeAuditRecordsRequest &request)const; + void describeAuditRecordsAsync(const Model::DescribeAuditRecordsRequest& request, const DescribeAuditRecordsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAuditRecordsOutcomeCallable describeAuditRecordsCallable(const Model::DescribeAuditRecordsRequest& 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; + DescribeRdsVpcsOutcome describeRdsVpcs(const Model::DescribeRdsVpcsRequest &request)const; + void describeRdsVpcsAsync(const Model::DescribeRdsVpcsRequest& request, const DescribeRdsVpcsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRdsVpcsOutcomeCallable describeRdsVpcsCallable(const Model::DescribeRdsVpcsRequest& 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; + 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; + 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; + DescribeRdsVSwitchsOutcome describeRdsVSwitchs(const Model::DescribeRdsVSwitchsRequest &request)const; + void describeRdsVSwitchsAsync(const Model::DescribeRdsVSwitchsRequest& request, const DescribeRdsVSwitchsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRdsVSwitchsOutcomeCallable describeRdsVSwitchsCallable(const Model::DescribeRdsVSwitchsRequest& 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; + CreateShardingDBInstanceOutcome createShardingDBInstance(const Model::CreateShardingDBInstanceRequest &request)const; + void createShardingDBInstanceAsync(const Model::CreateShardingDBInstanceRequest& request, const CreateShardingDBInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateShardingDBInstanceOutcomeCallable createShardingDBInstanceCallable(const Model::CreateShardingDBInstanceRequest& request) const; + DescribeErrorLogRecordsOutcome describeErrorLogRecords(const Model::DescribeErrorLogRecordsRequest &request)const; + void describeErrorLogRecordsAsync(const Model::DescribeErrorLogRecordsRequest& request, const DescribeErrorLogRecordsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeErrorLogRecordsOutcomeCallable describeErrorLogRecordsCallable(const Model::DescribeErrorLogRecordsRequest& 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; + DescribeVerificationListOutcome describeVerificationList(const Model::DescribeVerificationListRequest &request)const; + void describeVerificationListAsync(const Model::DescribeVerificationListRequest& request, const DescribeVerificationListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeVerificationListOutcomeCallable describeVerificationListCallable(const Model::DescribeVerificationListRequest& 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; + DescribeStrategyOutcome describeStrategy(const Model::DescribeStrategyRequest &request)const; + void describeStrategyAsync(const Model::DescribeStrategyRequest& request, const DescribeStrategyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeStrategyOutcomeCallable describeStrategyCallable(const Model::DescribeStrategyRequest& request) const; + TagResourcesOutcome tagResources(const Model::TagResourcesRequest &request)const; + void tagResourcesAsync(const Model::TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + TagResourcesOutcomeCallable tagResourcesCallable(const Model::TagResourcesRequest& request) const; + TransformToPrePaidOutcome transformToPrePaid(const Model::TransformToPrePaidRequest &request)const; + void transformToPrePaidAsync(const Model::TransformToPrePaidRequest& request, const TransformToPrePaidAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + TransformToPrePaidOutcomeCallable transformToPrePaidCallable(const Model::TransformToPrePaidRequest& request) const; + DescribeActiveOperationTaskRegionOutcome describeActiveOperationTaskRegion(const Model::DescribeActiveOperationTaskRegionRequest &request)const; + void describeActiveOperationTaskRegionAsync(const Model::DescribeActiveOperationTaskRegionRequest& request, const DescribeActiveOperationTaskRegionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeActiveOperationTaskRegionOutcomeCallable describeActiveOperationTaskRegionCallable(const Model::DescribeActiveOperationTaskRegionRequest& 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; + ListTagResourcesOutcome listTagResources(const Model::ListTagResourcesRequest &request)const; + void listTagResourcesAsync(const Model::ListTagResourcesRequest& request, const ListTagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListTagResourcesOutcomeCallable listTagResourcesCallable(const Model::ListTagResourcesRequest& request) const; + ModifyDBInstanceNetExpireTimeOutcome modifyDBInstanceNetExpireTime(const Model::ModifyDBInstanceNetExpireTimeRequest &request)const; + void modifyDBInstanceNetExpireTimeAsync(const Model::ModifyDBInstanceNetExpireTimeRequest& request, const ModifyDBInstanceNetExpireTimeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDBInstanceNetExpireTimeOutcomeCallable modifyDBInstanceNetExpireTimeCallable(const Model::ModifyDBInstanceNetExpireTimeRequest& 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; + 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; + DeleteNodeOutcome deleteNode(const Model::DeleteNodeRequest &request)const; + void deleteNodeAsync(const Model::DeleteNodeRequest& request, const DeleteNodeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteNodeOutcomeCallable deleteNodeCallable(const Model::DeleteNodeRequest& request) const; + DestroyInstanceOutcome destroyInstance(const Model::DestroyInstanceRequest &request)const; + void destroyInstanceAsync(const Model::DestroyInstanceRequest& request, const DestroyInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DestroyInstanceOutcomeCallable destroyInstanceCallable(const Model::DestroyInstanceRequest& request) const; + DescribeRunningLogRecordsOutcome describeRunningLogRecords(const Model::DescribeRunningLogRecordsRequest &request)const; + void describeRunningLogRecordsAsync(const Model::DescribeRunningLogRecordsRequest& request, const DescribeRunningLogRecordsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRunningLogRecordsOutcomeCallable describeRunningLogRecordsCallable(const Model::DescribeRunningLogRecordsRequest& 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; + 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; + DescribeAuditFilesOutcome describeAuditFiles(const Model::DescribeAuditFilesRequest &request)const; + void describeAuditFilesAsync(const Model::DescribeAuditFilesRequest& request, const DescribeAuditFilesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAuditFilesOutcomeCallable describeAuditFilesCallable(const Model::DescribeAuditFilesRequest& request) const; + DescribeStaticVerificationListOutcome describeStaticVerificationList(const Model::DescribeStaticVerificationListRequest &request)const; + void describeStaticVerificationListAsync(const Model::DescribeStaticVerificationListRequest& request, const DescribeStaticVerificationListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeStaticVerificationListOutcomeCallable describeStaticVerificationListCallable(const Model::DescribeStaticVerificationListRequest& request) const; + DescribeAvaliableTimeRangeOutcome describeAvaliableTimeRange(const Model::DescribeAvaliableTimeRangeRequest &request)const; + void describeAvaliableTimeRangeAsync(const Model::DescribeAvaliableTimeRangeRequest& request, const DescribeAvaliableTimeRangeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAvaliableTimeRangeOutcomeCallable describeAvaliableTimeRangeCallable(const Model::DescribeAvaliableTimeRangeRequest& request) const; + AllocatePublicNetworkAddressOutcome allocatePublicNetworkAddress(const Model::AllocatePublicNetworkAddressRequest &request)const; + void allocatePublicNetworkAddressAsync(const Model::AllocatePublicNetworkAddressRequest& request, const AllocatePublicNetworkAddressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AllocatePublicNetworkAddressOutcomeCallable allocatePublicNetworkAddressCallable(const Model::AllocatePublicNetworkAddressRequest& request) const; + DescribeSecurityIpsOutcome describeSecurityIps(const Model::DescribeSecurityIpsRequest &request)const; + void describeSecurityIpsAsync(const Model::DescribeSecurityIpsRequest& request, const DescribeSecurityIpsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSecurityIpsOutcomeCallable describeSecurityIpsCallable(const Model::DescribeSecurityIpsRequest& request) const; + DescribeIndexRecommendationOutcome describeIndexRecommendation(const Model::DescribeIndexRecommendationRequest &request)const; + void describeIndexRecommendationAsync(const Model::DescribeIndexRecommendationRequest& request, const DescribeIndexRecommendationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeIndexRecommendationOutcomeCallable describeIndexRecommendationCallable(const Model::DescribeIndexRecommendationRequest& request) const; + DescribeAvailableEngineVersionOutcome describeAvailableEngineVersion(const Model::DescribeAvailableEngineVersionRequest &request)const; + void describeAvailableEngineVersionAsync(const Model::DescribeAvailableEngineVersionRequest& request, const DescribeAvailableEngineVersionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAvailableEngineVersionOutcomeCallable describeAvailableEngineVersionCallable(const Model::DescribeAvailableEngineVersionRequest& 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; + DescribeKernelReleaseNotesOutcome describeKernelReleaseNotes(const Model::DescribeKernelReleaseNotesRequest &request)const; + void describeKernelReleaseNotesAsync(const Model::DescribeKernelReleaseNotesRequest& request, const DescribeKernelReleaseNotesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeKernelReleaseNotesOutcomeCallable describeKernelReleaseNotesCallable(const Model::DescribeKernelReleaseNotesRequest& request) const; + DescribeAvailableTimeRangeOutcome describeAvailableTimeRange(const Model::DescribeAvailableTimeRangeRequest &request)const; + void describeAvailableTimeRangeAsync(const Model::DescribeAvailableTimeRangeRequest& request, const DescribeAvailableTimeRangeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAvailableTimeRangeOutcomeCallable describeAvailableTimeRangeCallable(const Model::DescribeAvailableTimeRangeRequest& request) const; + ModifyAuditPolicyOutcome modifyAuditPolicy(const Model::ModifyAuditPolicyRequest &request)const; + void modifyAuditPolicyAsync(const Model::ModifyAuditPolicyRequest& request, const ModifyAuditPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyAuditPolicyOutcomeCallable modifyAuditPolicyCallable(const Model::ModifyAuditPolicyRequest& 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; + 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; + 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; + 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; + 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; + ModifyNodeSpecOutcome modifyNodeSpec(const Model::ModifyNodeSpecRequest &request)const; + void modifyNodeSpecAsync(const Model::ModifyNodeSpecRequest& request, const ModifyNodeSpecAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyNodeSpecOutcomeCallable modifyNodeSpecCallable(const Model::ModifyNodeSpecRequest& request) const; + UpgradeDBInstanceKernelVersionOutcome upgradeDBInstanceKernelVersion(const Model::UpgradeDBInstanceKernelVersionRequest &request)const; + void upgradeDBInstanceKernelVersionAsync(const Model::UpgradeDBInstanceKernelVersionRequest& request, const UpgradeDBInstanceKernelVersionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpgradeDBInstanceKernelVersionOutcomeCallable upgradeDBInstanceKernelVersionCallable(const Model::UpgradeDBInstanceKernelVersionRequest& 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; + DescribeReplicationGroupOutcome describeReplicationGroup(const Model::DescribeReplicationGroupRequest &request)const; + void describeReplicationGroupAsync(const Model::DescribeReplicationGroupRequest& request, const DescribeReplicationGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeReplicationGroupOutcomeCallable describeReplicationGroupCallable(const Model::DescribeReplicationGroupRequest& 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; + 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; + DescribeParameterModificationHistoryOutcome describeParameterModificationHistory(const Model::DescribeParameterModificationHistoryRequest &request)const; + void describeParameterModificationHistoryAsync(const Model::DescribeParameterModificationHistoryRequest& request, const DescribeParameterModificationHistoryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeParameterModificationHistoryOutcomeCallable describeParameterModificationHistoryCallable(const Model::DescribeParameterModificationHistoryRequest& 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; + SampleOutcome sample(const Model::SampleRequest &request)const; + void sampleAsync(const Model::SampleRequest& request, const SampleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SampleOutcomeCallable sampleCallable(const Model::SampleRequest& request) const; + ReleasePublicNetworkAddressOutcome releasePublicNetworkAddress(const Model::ReleasePublicNetworkAddressRequest &request)const; + void releasePublicNetworkAddressAsync(const Model::ReleasePublicNetworkAddressRequest& request, const ReleasePublicNetworkAddressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ReleasePublicNetworkAddressOutcomeCallable releasePublicNetworkAddressCallable(const Model::ReleasePublicNetworkAddressRequest& 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; + 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; + 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; + EvaluateFailOverSwitchOutcome evaluateFailOverSwitch(const Model::EvaluateFailOverSwitchRequest &request)const; + void evaluateFailOverSwitchAsync(const Model::EvaluateFailOverSwitchRequest& request, const EvaluateFailOverSwitchAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + EvaluateFailOverSwitchOutcomeCallable evaluateFailOverSwitchCallable(const Model::EvaluateFailOverSwitchRequest& 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; + ModifyReplicaVerificationModeOutcome modifyReplicaVerificationMode(const Model::ModifyReplicaVerificationModeRequest &request)const; + void modifyReplicaVerificationModeAsync(const Model::ModifyReplicaVerificationModeRequest& request, const ModifyReplicaVerificationModeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyReplicaVerificationModeOutcomeCallable modifyReplicaVerificationModeCallable(const Model::ModifyReplicaVerificationModeRequest& request) const; + ModifyActiveOperationTaskOutcome modifyActiveOperationTask(const Model::ModifyActiveOperationTaskRequest &request)const; + void modifyActiveOperationTaskAsync(const Model::ModifyActiveOperationTaskRequest& request, const ModifyActiveOperationTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyActiveOperationTaskOutcomeCallable modifyActiveOperationTaskCallable(const Model::ModifyActiveOperationTaskRequest& 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; + 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; + DescribeBackupDBsOutcome describeBackupDBs(const Model::DescribeBackupDBsRequest &request)const; + void describeBackupDBsAsync(const Model::DescribeBackupDBsRequest& request, const DescribeBackupDBsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeBackupDBsOutcomeCallable describeBackupDBsCallable(const Model::DescribeBackupDBsRequest& request) const; + + private: + std::shared_ptr endpointProvider_; + }; + } +} + +#endif // !ALIBABACLOUD_DDS_DDSCLIENT_H_ diff --git a/dds/include/alibabacloud/dds/DdsExport.h b/dds/include/alibabacloud/dds/DdsExport.h new file mode 100644 index 000000000..56e2ac7eb --- /dev/null +++ b/dds/include/alibabacloud/dds/DdsExport.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_DDS_DDSEXPORT_H_ +#define ALIBABACLOUD_DDS_DDSEXPORT_H_ + +#include + +#if defined(ALIBABACLOUD_SHARED) +# if defined(ALIBABACLOUD_DDS_LIBRARY) +# define ALIBABACLOUD_DDS_EXPORT ALIBABACLOUD_DECL_EXPORT +# else +# define ALIBABACLOUD_DDS_EXPORT ALIBABACLOUD_DECL_IMPORT +# endif +#else +# define ALIBABACLOUD_DDS_EXPORT +#endif + +#endif // !ALIBABACLOUD_DDS_DDSEXPORT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/AllocatePublicNetworkAddressRequest.h b/dds/include/alibabacloud/dds/model/AllocatePublicNetworkAddressRequest.h new file mode 100644 index 000000000..3d0a28100 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/AllocatePublicNetworkAddressRequest.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_DDS_MODEL_ALLOCATEPUBLICNETWORKADDRESSREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_ALLOCATEPUBLICNETWORKADDRESSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT AllocatePublicNetworkAddressRequest : public RpcServiceRequest + { + + public: + AllocatePublicNetworkAddressRequest(); + ~AllocatePublicNetworkAddressRequest(); + + 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 getNodeId()const; + void setNodeId(const std::string& nodeId); + 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 nodeId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_ALLOCATEPUBLICNETWORKADDRESSREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/AllocatePublicNetworkAddressResult.h b/dds/include/alibabacloud/dds/model/AllocatePublicNetworkAddressResult.h new file mode 100644 index 000000000..1942e2f88 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/AllocatePublicNetworkAddressResult.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_DDS_MODEL_ALLOCATEPUBLICNETWORKADDRESSRESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_ALLOCATEPUBLICNETWORKADDRESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT AllocatePublicNetworkAddressResult : public ServiceResult + { + public: + + + AllocatePublicNetworkAddressResult(); + explicit AllocatePublicNetworkAddressResult(const std::string &payload); + ~AllocatePublicNetworkAddressResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_ALLOCATEPUBLICNETWORKADDRESSRESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/CheckRecoveryConditionRequest.h b/dds/include/alibabacloud/dds/model/CheckRecoveryConditionRequest.h new file mode 100644 index 000000000..2ea2ef842 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/CheckRecoveryConditionRequest.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_DDS_MODEL_CHECKRECOVERYCONDITIONREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_CHECKRECOVERYCONDITIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT CheckRecoveryConditionRequest : public RpcServiceRequest + { + + public: + CheckRecoveryConditionRequest(); + ~CheckRecoveryConditionRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRestoreTime()const; + void setRestoreTime(const std::string& restoreTime); + std::string getDatabaseNames()const; + void setDatabaseNames(const std::string& databaseNames); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getBackupId()const; + void setBackupId(const std::string& backupId); + std::string getSourceDBInstance()const; + void setSourceDBInstance(const std::string& sourceDBInstance); + 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 databaseNames_; + std::string securityToken_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string backupId_; + std::string sourceDBInstance_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_CHECKRECOVERYCONDITIONREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/CheckRecoveryConditionResult.h b/dds/include/alibabacloud/dds/model/CheckRecoveryConditionResult.h new file mode 100644 index 000000000..e619b6589 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/CheckRecoveryConditionResult.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_DDS_MODEL_CHECKRECOVERYCONDITIONRESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_CHECKRECOVERYCONDITIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT CheckRecoveryConditionResult : public ServiceResult + { + public: + + + CheckRecoveryConditionResult(); + explicit CheckRecoveryConditionResult(const std::string &payload); + ~CheckRecoveryConditionResult(); + int getDBInstanceName()const; + bool getIsValid()const; + + protected: + void parse(const std::string &payload); + private: + int dBInstanceName_; + bool isValid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_CHECKRECOVERYCONDITIONRESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/CreateAccountRequest.h b/dds/include/alibabacloud/dds/model/CreateAccountRequest.h new file mode 100644 index 000000000..1ee778c5a --- /dev/null +++ b/dds/include/alibabacloud/dds/model/CreateAccountRequest.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_DDS_MODEL_CREATEACCOUNTREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_CREATEACCOUNTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT CreateAccountRequest : public RpcServiceRequest + { + + 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 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 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 securityToken_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accountDescription_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_CREATEACCOUNTREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/CreateAccountResult.h b/dds/include/alibabacloud/dds/model/CreateAccountResult.h new file mode 100644 index 000000000..08fdef1cd --- /dev/null +++ b/dds/include/alibabacloud/dds/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_DDS_MODEL_CREATEACCOUNTRESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_CREATEACCOUNTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT CreateAccountResult : public ServiceResult + { + public: + + + CreateAccountResult(); + explicit CreateAccountResult(const std::string &payload); + ~CreateAccountResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_CREATEACCOUNTRESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/CreateBackupRequest.h b/dds/include/alibabacloud/dds/model/CreateBackupRequest.h new file mode 100644 index 000000000..c465c6faa --- /dev/null +++ b/dds/include/alibabacloud/dds/model/CreateBackupRequest.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_DDS_MODEL_CREATEBACKUPREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_CREATEBACKUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT CreateBackupRequest : public RpcServiceRequest + { + + public: + CreateBackupRequest(); + ~CreateBackupRequest(); + + std::string getBackupMethod()const; + void setBackupMethod(const std::string& backupMethod); + 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: + std::string backupMethod_; + long resourceOwnerId_; + std::string securityToken_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_CREATEBACKUPREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/CreateBackupResult.h b/dds/include/alibabacloud/dds/model/CreateBackupResult.h new file mode 100644 index 000000000..00c2f4fca --- /dev/null +++ b/dds/include/alibabacloud/dds/model/CreateBackupResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DDS_MODEL_CREATEBACKUPRESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_CREATEBACKUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT CreateBackupResult : public ServiceResult + { + public: + + + CreateBackupResult(); + explicit CreateBackupResult(const std::string &payload); + ~CreateBackupResult(); + std::string getBackupId()const; + + protected: + void parse(const std::string &payload); + private: + std::string backupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_CREATEBACKUPRESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/CreateDBInstanceRequest.h b/dds/include/alibabacloud/dds/model/CreateDBInstanceRequest.h new file mode 100644 index 000000000..d7f2b9d9a --- /dev/null +++ b/dds/include/alibabacloud/dds/model/CreateDBInstanceRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_DDS_MODEL_CREATEDBINSTANCEREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_CREATEDBINSTANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT CreateDBInstanceRequest : public RpcServiceRequest + { + + public: + CreateDBInstanceRequest(); + ~CreateDBInstanceRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + int getDBInstanceStorage()const; + void setDBInstanceStorage(int dBInstanceStorage); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getCouponNo()const; + void setCouponNo(const std::string& couponNo); + std::string getEngineVersion()const; + void setEngineVersion(const std::string& engineVersion); + std::string getNetworkType()const; + void setNetworkType(const std::string& networkType); + std::string getReplicationFactor()const; + void setReplicationFactor(const std::string& replicationFactor); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getStorageEngine()const; + void setStorageEngine(const std::string& storageEngine); + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); + std::string getDatabaseNames()const; + void setDatabaseNames(const std::string& databaseNames); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + 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 getBusinessInfo()const; + void setBusinessInfo(const std::string& businessInfo); + int getPeriod()const; + void setPeriod(int period); + std::string getRestoreTime()const; + void setRestoreTime(const std::string& restoreTime); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getSrcDBInstanceId()const; + void setSrcDBInstanceId(const std::string& srcDBInstanceId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getBackupId()const; + void setBackupId(const std::string& backupId); + long getOwnerId()const; + void setOwnerId(long ownerId); + 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 getAccountPassword()const; + void setAccountPassword(const std::string& accountPassword); + std::string getAutoRenew()const; + void setAutoRenew(const std::string& autoRenew); + std::string getVpcId()const; + void setVpcId(const std::string& vpcId); + std::string getZoneId()const; + void setZoneId(const std::string& zoneId); + std::string getChargeType()const; + void setChargeType(const std::string& chargeType); + + private: + long resourceOwnerId_; + int dBInstanceStorage_; + std::string clientToken_; + std::string couponNo_; + std::string engineVersion_; + std::string networkType_; + std::string replicationFactor_; + std::string accessKeyId_; + std::string storageEngine_; + std::string resourceGroupId_; + std::string databaseNames_; + std::string securityToken_; + std::string regionId_; + std::string engine_; + std::string dBInstanceDescription_; + std::string businessInfo_; + int period_; + std::string restoreTime_; + std::string resourceOwnerAccount_; + std::string srcDBInstanceId_; + std::string ownerAccount_; + std::string backupId_; + long ownerId_; + std::string dBInstanceClass_; + std::string securityIPList_; + std::string vSwitchId_; + std::string accountPassword_; + std::string autoRenew_; + std::string vpcId_; + std::string zoneId_; + std::string chargeType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_CREATEDBINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/CreateDBInstanceResult.h b/dds/include/alibabacloud/dds/model/CreateDBInstanceResult.h new file mode 100644 index 000000000..71dcfbdb9 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/CreateDBInstanceResult.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_DDS_MODEL_CREATEDBINSTANCERESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_CREATEDBINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT CreateDBInstanceResult : public ServiceResult + { + public: + + + CreateDBInstanceResult(); + explicit CreateDBInstanceResult(const std::string &payload); + ~CreateDBInstanceResult(); + std::string getDBInstanceId()const; + std::string getOrderId()const; + + protected: + void parse(const std::string &payload); + private: + std::string dBInstanceId_; + std::string orderId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_CREATEDBINSTANCERESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/CreateNodeRequest.h b/dds/include/alibabacloud/dds/model/CreateNodeRequest.h new file mode 100644 index 000000000..a77cf1a3b --- /dev/null +++ b/dds/include/alibabacloud/dds/model/CreateNodeRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_DDS_MODEL_CREATENODEREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_CREATENODEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT CreateNodeRequest : public RpcServiceRequest + { + + public: + CreateNodeRequest(); + ~CreateNodeRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getNodeType()const; + void setNodeType(const std::string& nodeType); + bool getAutoPay()const; + void setAutoPay(bool autoPay); + std::string getFromApp()const; + void setFromApp(const std::string& fromApp); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + int getNodeStorage()const; + void setNodeStorage(int nodeStorage); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getNodeClass()const; + void setNodeClass(const std::string& nodeClass); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + + private: + long resourceOwnerId_; + std::string nodeType_; + bool autoPay_; + std::string fromApp_; + std::string resourceOwnerAccount_; + std::string clientToken_; + int nodeStorage_; + std::string ownerAccount_; + long ownerId_; + std::string nodeClass_; + std::string accessKeyId_; + std::string securityToken_; + std::string regionId_; + std::string dBInstanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_CREATENODEREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/CreateNodeResult.h b/dds/include/alibabacloud/dds/model/CreateNodeResult.h new file mode 100644 index 000000000..23ca8723f --- /dev/null +++ b/dds/include/alibabacloud/dds/model/CreateNodeResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DDS_MODEL_CREATENODERESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_CREATENODERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT CreateNodeResult : public ServiceResult + { + public: + + + CreateNodeResult(); + explicit CreateNodeResult(const std::string &payload); + ~CreateNodeResult(); + std::string getOrderId()const; + + protected: + void parse(const std::string &payload); + private: + std::string orderId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_CREATENODERESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/CreateRecommendationTaskRequest.h b/dds/include/alibabacloud/dds/model/CreateRecommendationTaskRequest.h new file mode 100644 index 000000000..cfc9c7cd8 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/CreateRecommendationTaskRequest.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_DDS_MODEL_CREATERECOMMENDATIONTASKREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_CREATERECOMMENDATIONTASKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT CreateRecommendationTaskRequest : public RpcServiceRequest + { + + public: + CreateRecommendationTaskRequest(); + ~CreateRecommendationTaskRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + 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 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 getNodeId()const; + void setNodeId(const std::string& nodeId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string instanceId_; + std::string securityToken_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string endTime_; + std::string startTime_; + long ownerId_; + std::string nodeId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_CREATERECOMMENDATIONTASKREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/CreateRecommendationTaskResult.h b/dds/include/alibabacloud/dds/model/CreateRecommendationTaskResult.h new file mode 100644 index 000000000..17fee41c3 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/CreateRecommendationTaskResult.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_DDS_MODEL_CREATERECOMMENDATIONTASKRESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_CREATERECOMMENDATIONTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT CreateRecommendationTaskResult : public ServiceResult + { + public: + + + CreateRecommendationTaskResult(); + explicit CreateRecommendationTaskResult(const std::string &payload); + ~CreateRecommendationTaskResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_CREATERECOMMENDATIONTASKRESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/CreateShardingDBInstanceRequest.h b/dds/include/alibabacloud/dds/model/CreateShardingDBInstanceRequest.h new file mode 100644 index 000000000..8273d34b5 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/CreateShardingDBInstanceRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_DDS_MODEL_CREATESHARDINGDBINSTANCEREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_CREATESHARDINGDBINSTANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT CreateShardingDBInstanceRequest : public RpcServiceRequest + { + struct ReplicaSet + { + int storage; + std::string class; + }; + struct ConfigServer + { + int storage; + std::string class; + }; + struct Mongos + { + std::string class; + }; + + public: + CreateShardingDBInstanceRequest(); + ~CreateShardingDBInstanceRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getEngineVersion()const; + void setEngineVersion(const std::string& engineVersion); + std::string getNetworkType()const; + void setNetworkType(const std::string& networkType); + std::vector getReplicaSet()const; + void setReplicaSet(const std::vector& replicaSet); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getStorageEngine()const; + void setStorageEngine(const std::string& storageEngine); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + 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); + int getPeriod()const; + void setPeriod(int period); + std::string getRestoreTime()const; + void setRestoreTime(const std::string& restoreTime); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getSrcDBInstanceId()const; + void setSrcDBInstanceId(const std::string& srcDBInstanceId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::vector getConfigServer()const; + void setConfigServer(const std::vector& configServer); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::vector getMongos()const; + void setMongos(const std::vector& mongos); + std::string getSecurityIPList()const; + void setSecurityIPList(const std::string& securityIPList); + std::string getVSwitchId()const; + void setVSwitchId(const std::string& vSwitchId); + std::string getAccountPassword()const; + void setAccountPassword(const std::string& accountPassword); + std::string getAutoRenew()const; + void setAutoRenew(const std::string& autoRenew); + std::string getVpcId()const; + void setVpcId(const std::string& vpcId); + std::string getZoneId()const; + void setZoneId(const std::string& zoneId); + std::string getChargeType()const; + void setChargeType(const std::string& chargeType); + + private: + long resourceOwnerId_; + std::string clientToken_; + std::string engineVersion_; + std::string networkType_; + std::vector replicaSet_; + std::string accessKeyId_; + std::string storageEngine_; + std::string securityToken_; + std::string regionId_; + std::string engine_; + std::string dBInstanceDescription_; + int period_; + std::string restoreTime_; + std::string resourceOwnerAccount_; + std::string srcDBInstanceId_; + std::string ownerAccount_; + std::vector configServer_; + long ownerId_; + std::vector mongos_; + std::string securityIPList_; + std::string vSwitchId_; + std::string accountPassword_; + std::string autoRenew_; + std::string vpcId_; + std::string zoneId_; + std::string chargeType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_CREATESHARDINGDBINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/CreateShardingDBInstanceResult.h b/dds/include/alibabacloud/dds/model/CreateShardingDBInstanceResult.h new file mode 100644 index 000000000..87d8352b0 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/CreateShardingDBInstanceResult.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_DDS_MODEL_CREATESHARDINGDBINSTANCERESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_CREATESHARDINGDBINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT CreateShardingDBInstanceResult : public ServiceResult + { + public: + + + CreateShardingDBInstanceResult(); + explicit CreateShardingDBInstanceResult(const std::string &payload); + ~CreateShardingDBInstanceResult(); + std::string getDBInstanceId()const; + std::string getOrderId()const; + + protected: + void parse(const std::string &payload); + private: + std::string dBInstanceId_; + std::string orderId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_CREATESHARDINGDBINSTANCERESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/CreateStaticVerificationRequest.h b/dds/include/alibabacloud/dds/model/CreateStaticVerificationRequest.h new file mode 100644 index 000000000..435205047 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/CreateStaticVerificationRequest.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_DDS_MODEL_CREATESTATICVERIFICATIONREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_CREATESTATICVERIFICATIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT CreateStaticVerificationRequest : public RpcServiceRequest + { + + public: + CreateStaticVerificationRequest(); + ~CreateStaticVerificationRequest(); + + 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); + std::string getDestinationInstanceId()const; + void setDestinationInstanceId(const std::string& destinationInstanceId); + std::string getSourceInstanceId()const; + void setSourceInstanceId(const std::string& sourceInstanceId); + 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_; + std::string destinationInstanceId_; + std::string sourceInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_CREATESTATICVERIFICATIONREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/CreateStaticVerificationResult.h b/dds/include/alibabacloud/dds/model/CreateStaticVerificationResult.h new file mode 100644 index 000000000..191f2d455 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/CreateStaticVerificationResult.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_DDS_MODEL_CREATESTATICVERIFICATIONRESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_CREATESTATICVERIFICATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT CreateStaticVerificationResult : public ServiceResult + { + public: + + + CreateStaticVerificationResult(); + explicit CreateStaticVerificationResult(const std::string &payload); + ~CreateStaticVerificationResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_CREATESTATICVERIFICATIONRESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DeleteDBInstanceRequest.h b/dds/include/alibabacloud/dds/model/DeleteDBInstanceRequest.h new file mode 100644 index 000000000..adf16fe09 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DeleteDBInstanceRequest.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_DDS_MODEL_DELETEDBINSTANCEREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_DELETEDBINSTANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DeleteDBInstanceRequest : public RpcServiceRequest + { + + public: + DeleteDBInstanceRequest(); + ~DeleteDBInstanceRequest(); + + 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 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 securityToken_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string clientToken_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DELETEDBINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DeleteDBInstanceResult.h b/dds/include/alibabacloud/dds/model/DeleteDBInstanceResult.h new file mode 100644 index 000000000..2a9af8404 --- /dev/null +++ b/dds/include/alibabacloud/dds/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_DDS_MODEL_DELETEDBINSTANCERESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_DELETEDBINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DeleteDBInstanceResult : public ServiceResult + { + public: + + + DeleteDBInstanceResult(); + explicit DeleteDBInstanceResult(const std::string &payload); + ~DeleteDBInstanceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DELETEDBINSTANCERESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DeleteNodeRequest.h b/dds/include/alibabacloud/dds/model/DeleteNodeRequest.h new file mode 100644 index 000000000..675d21ebc --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DeleteNodeRequest.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_DDS_MODEL_DELETENODEREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_DELETENODEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DeleteNodeRequest : public RpcServiceRequest + { + + public: + DeleteNodeRequest(); + ~DeleteNodeRequest(); + + 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 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 getNodeId()const; + void setNodeId(const std::string& nodeId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string securityToken_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string clientToken_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string nodeId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DELETENODEREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DeleteNodeResult.h b/dds/include/alibabacloud/dds/model/DeleteNodeResult.h new file mode 100644 index 000000000..4ac384cb6 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DeleteNodeResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DDS_MODEL_DELETENODERESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_DELETENODERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DeleteNodeResult : public ServiceResult + { + public: + + + DeleteNodeResult(); + explicit DeleteNodeResult(const std::string &payload); + ~DeleteNodeResult(); + int getTaskId()const; + + protected: + void parse(const std::string &payload); + private: + int taskId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DELETENODERESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeAccountsRequest.h b/dds/include/alibabacloud/dds/model/DescribeAccountsRequest.h new file mode 100644 index 000000000..3d04141f5 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeAccountsRequest.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_DDS_MODEL_DESCRIBEACCOUNTSREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEACCOUNTSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeAccountsRequest : public RpcServiceRequest + { + + public: + DescribeAccountsRequest(); + ~DescribeAccountsRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccountName()const; + void setAccountName(const std::string& accountName); + 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 accountName_; + std::string securityToken_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEACCOUNTSREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeAccountsResult.h b/dds/include/alibabacloud/dds/model/DescribeAccountsResult.h new file mode 100644 index 000000000..64f30dd4f --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeAccountsResult.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_DDS_MODEL_DESCRIBEACCOUNTSRESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEACCOUNTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeAccountsResult : public ServiceResult + { + public: + struct Account + { + std::string accountDescription; + std::string accountStatus; + std::string dBInstanceId; + std::string accountName; + }; + + + DescribeAccountsResult(); + explicit DescribeAccountsResult(const std::string &payload); + ~DescribeAccountsResult(); + std::vector getAccounts()const; + + protected: + void parse(const std::string &payload); + private: + std::vector accounts_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEACCOUNTSRESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeActiveOperationTaskCountRequest.h b/dds/include/alibabacloud/dds/model/DescribeActiveOperationTaskCountRequest.h new file mode 100644 index 000000000..49d74adf1 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeActiveOperationTaskCountRequest.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_DDS_MODEL_DESCRIBEACTIVEOPERATIONTASKCOUNTREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEACTIVEOPERATIONTASKCOUNTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeActiveOperationTaskCountRequest : public RpcServiceRequest + { + + public: + DescribeActiveOperationTaskCountRequest(); + ~DescribeActiveOperationTaskCountRequest(); + + 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); + 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_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEACTIVEOPERATIONTASKCOUNTREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeActiveOperationTaskCountResult.h b/dds/include/alibabacloud/dds/model/DescribeActiveOperationTaskCountResult.h new file mode 100644 index 000000000..dbbfdbadd --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeActiveOperationTaskCountResult.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_DDS_MODEL_DESCRIBEACTIVEOPERATIONTASKCOUNTRESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEACTIVEOPERATIONTASKCOUNTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeActiveOperationTaskCountResult : public ServiceResult + { + public: + + + DescribeActiveOperationTaskCountResult(); + explicit DescribeActiveOperationTaskCountResult(const std::string &payload); + ~DescribeActiveOperationTaskCountResult(); + int getNeedPop()const; + int getTaskCount()const; + + protected: + void parse(const std::string &payload); + private: + int needPop_; + int taskCount_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEACTIVEOPERATIONTASKCOUNTRESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeActiveOperationTaskRegionRequest.h b/dds/include/alibabacloud/dds/model/DescribeActiveOperationTaskRegionRequest.h new file mode 100644 index 000000000..eaf640435 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeActiveOperationTaskRegionRequest.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_DDS_MODEL_DESCRIBEACTIVEOPERATIONTASKREGIONREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEACTIVEOPERATIONTASKREGIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeActiveOperationTaskRegionRequest : public RpcServiceRequest + { + + public: + DescribeActiveOperationTaskRegionRequest(); + ~DescribeActiveOperationTaskRegionRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + int getIsHistory()const; + void setIsHistory(int isHistory); + std::string getTaskType()const; + void setTaskType(const std::string& taskType); + 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); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + int isHistory_; + std::string taskType_; + std::string securityToken_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEACTIVEOPERATIONTASKREGIONREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeActiveOperationTaskRegionResult.h b/dds/include/alibabacloud/dds/model/DescribeActiveOperationTaskRegionResult.h new file mode 100644 index 000000000..c79424281 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeActiveOperationTaskRegionResult.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_DDS_MODEL_DESCRIBEACTIVEOPERATIONTASKREGIONRESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEACTIVEOPERATIONTASKREGIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeActiveOperationTaskRegionResult : public ServiceResult + { + public: + struct Items + { + std::string region; + int count; + }; + + + DescribeActiveOperationTaskRegionResult(); + explicit DescribeActiveOperationTaskRegionResult(const std::string &payload); + ~DescribeActiveOperationTaskRegionResult(); + std::vector getRegionList()const; + + protected: + void parse(const std::string &payload); + private: + std::vector regionList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEACTIVEOPERATIONTASKREGIONRESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeActiveOperationTaskRequest.h b/dds/include/alibabacloud/dds/model/DescribeActiveOperationTaskRequest.h new file mode 100644 index 000000000..06c6a37f5 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeActiveOperationTaskRequest.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_DDS_MODEL_DESCRIBEACTIVEOPERATIONTASKREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEACTIVEOPERATIONTASKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeActiveOperationTaskRequest : public RpcServiceRequest + { + + public: + DescribeActiveOperationTaskRequest(); + ~DescribeActiveOperationTaskRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getTaskType()const; + void setTaskType(const std::string& taskType); + 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); + int getIsHistory()const; + void setIsHistory(int isHistory); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getRegion()const; + void setRegion(const std::string& region); + + private: + long resourceOwnerId_; + std::string taskType_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + int pageNumber_; + std::string accessKeyId_; + int isHistory_; + std::string securityToken_; + std::string regionId_; + int pageSize_; + std::string region_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEACTIVEOPERATIONTASKREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeActiveOperationTaskResult.h b/dds/include/alibabacloud/dds/model/DescribeActiveOperationTaskResult.h new file mode 100644 index 000000000..c565ab442 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeActiveOperationTaskResult.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_DDS_MODEL_DESCRIBEACTIVEOPERATIONTASKRESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEACTIVEOPERATIONTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeActiveOperationTaskResult : public ServiceResult + { + public: + struct ItemsItem + { + int status; + std::string createdTime; + std::string deadline; + std::string startTime; + std::string insName; + std::string dbType; + std::string taskParams; + std::string modifiedTime; + std::string taskType; + std::string prepareInterval; + int id; + std::string resultInfo; + std::string switchTime; + }; + + + DescribeActiveOperationTaskResult(); + explicit DescribeActiveOperationTaskResult(const std::string &payload); + ~DescribeActiveOperationTaskResult(); + int getTotalRecordCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getItems()const; + + protected: + void parse(const std::string &payload); + private: + int totalRecordCount_; + int pageSize_; + int pageNumber_; + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEACTIVEOPERATIONTASKRESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeActiveOperationTaskTypeRequest.h b/dds/include/alibabacloud/dds/model/DescribeActiveOperationTaskTypeRequest.h new file mode 100644 index 000000000..ea5e8a64d --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeActiveOperationTaskTypeRequest.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_DDS_MODEL_DESCRIBEACTIVEOPERATIONTASKTYPEREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEACTIVEOPERATIONTASKTYPEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeActiveOperationTaskTypeRequest : public RpcServiceRequest + { + + public: + DescribeActiveOperationTaskTypeRequest(); + ~DescribeActiveOperationTaskTypeRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + int getIsHistory()const; + void setIsHistory(int isHistory); + 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); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + int isHistory_; + std::string securityToken_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEACTIVEOPERATIONTASKTYPEREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeActiveOperationTaskTypeResult.h b/dds/include/alibabacloud/dds/model/DescribeActiveOperationTaskTypeResult.h new file mode 100644 index 000000000..1447f4935 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeActiveOperationTaskTypeResult.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_DDS_MODEL_DESCRIBEACTIVEOPERATIONTASKTYPERESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEACTIVEOPERATIONTASKTYPERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeActiveOperationTaskTypeResult : public ServiceResult + { + public: + struct Items + { + std::string taskType; + int count; + }; + + + DescribeActiveOperationTaskTypeResult(); + explicit DescribeActiveOperationTaskTypeResult(const std::string &payload); + ~DescribeActiveOperationTaskTypeResult(); + std::vector getTypeList()const; + + protected: + void parse(const std::string &payload); + private: + std::vector typeList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEACTIVEOPERATIONTASKTYPERESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeAuditFilesRequest.h b/dds/include/alibabacloud/dds/model/DescribeAuditFilesRequest.h new file mode 100644 index 000000000..d09a0ee69 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeAuditFilesRequest.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_DDS_MODEL_DESCRIBEAUDITFILESREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEAUDITFILESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeAuditFilesRequest : public RpcServiceRequest + { + + public: + DescribeAuditFilesRequest(); + ~DescribeAuditFilesRequest(); + + 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); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getNodeId()const; + void setNodeId(const std::string& nodeId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + 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_; + int pageSize_; + std::string dBInstanceId_; + long ownerId_; + std::string nodeId_; + int pageNumber_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEAUDITFILESREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeAuditFilesResult.h b/dds/include/alibabacloud/dds/model/DescribeAuditFilesResult.h new file mode 100644 index 000000000..b4ae2cadb --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeAuditFilesResult.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_DDS_MODEL_DESCRIBEAUDITFILESRESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEAUDITFILESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeAuditFilesResult : public ServiceResult + { + public: + struct LogFile + { + std::string logStatus; + std::string logStartTime; + long logSize; + std::string logDownloadURL; + int fileID; + std::string logEndTime; + }; + + + DescribeAuditFilesResult(); + explicit DescribeAuditFilesResult(const std::string &payload); + ~DescribeAuditFilesResult(); + int getTotalRecordCount()const; + int getPageRecordCount()const; + int getPageNumber()const; + std::string getDBInstanceId()const; + std::vector getItems()const; + + protected: + void parse(const std::string &payload); + private: + int totalRecordCount_; + int pageRecordCount_; + int pageNumber_; + std::string dBInstanceId_; + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEAUDITFILESRESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeAuditLogFilterRequest.h b/dds/include/alibabacloud/dds/model/DescribeAuditLogFilterRequest.h new file mode 100644 index 000000000..f098ebf22 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeAuditLogFilterRequest.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_DDS_MODEL_DESCRIBEAUDITLOGFILTERREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEAUDITLOGFILTERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeAuditLogFilterRequest : public RpcServiceRequest + { + + public: + DescribeAuditLogFilterRequest(); + ~DescribeAuditLogFilterRequest(); + + 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 getRoleType()const; + void setRoleType(const std::string& roleType); + 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 roleType_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEAUDITLOGFILTERREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeAuditLogFilterResult.h b/dds/include/alibabacloud/dds/model/DescribeAuditLogFilterResult.h new file mode 100644 index 000000000..c0c9f3348 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeAuditLogFilterResult.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_DDS_MODEL_DESCRIBEAUDITLOGFILTERRESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEAUDITLOGFILTERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeAuditLogFilterResult : public ServiceResult + { + public: + + + DescribeAuditLogFilterResult(); + explicit DescribeAuditLogFilterResult(const std::string &payload); + ~DescribeAuditLogFilterResult(); + std::string getFilter()const; + std::string getRoleType()const; + + protected: + void parse(const std::string &payload); + private: + std::string filter_; + std::string roleType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEAUDITLOGFILTERRESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeAuditPolicyRequest.h b/dds/include/alibabacloud/dds/model/DescribeAuditPolicyRequest.h new file mode 100644 index 000000000..a6dbe2adf --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeAuditPolicyRequest.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_DDS_MODEL_DESCRIBEAUDITPOLICYREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEAUDITPOLICYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeAuditPolicyRequest : public RpcServiceRequest + { + + public: + DescribeAuditPolicyRequest(); + ~DescribeAuditPolicyRequest(); + + 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_DDS_MODEL_DESCRIBEAUDITPOLICYREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeAuditPolicyResult.h b/dds/include/alibabacloud/dds/model/DescribeAuditPolicyResult.h new file mode 100644 index 000000000..76602a9ab --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeAuditPolicyResult.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_DDS_MODEL_DESCRIBEAUDITPOLICYRESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEAUDITPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeAuditPolicyResult : public ServiceResult + { + public: + + + DescribeAuditPolicyResult(); + explicit DescribeAuditPolicyResult(const std::string &payload); + ~DescribeAuditPolicyResult(); + int getStoragePeriod()const; + std::string getLogAuditStatus()const; + + protected: + void parse(const std::string &payload); + private: + int storagePeriod_; + std::string logAuditStatus_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEAUDITPOLICYRESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeAuditRecordsRequest.h b/dds/include/alibabacloud/dds/model/DescribeAuditRecordsRequest.h new file mode 100644 index 000000000..7587815cc --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeAuditRecordsRequest.h @@ -0,0 +1,96 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DDS_MODEL_DESCRIBEAUDITRECORDSREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEAUDITRECORDSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeAuditRecordsRequest : public RpcServiceRequest + { + + public: + DescribeAuditRecordsRequest(); + ~DescribeAuditRecordsRequest(); + + 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 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); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getNodeId()const; + void setNodeId(const std::string& nodeId); + std::string getUser()const; + void setUser(const std::string& user); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + 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_; + std::string securityToken_; + std::string regionId_; + int pageSize_; + std::string dBInstanceId_; + std::string nodeId_; + std::string user_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEAUDITRECORDSREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeAuditRecordsResult.h b/dds/include/alibabacloud/dds/model/DescribeAuditRecordsResult.h new file mode 100644 index 000000000..11914e379 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeAuditRecordsResult.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_DDS_MODEL_DESCRIBEAUDITRECORDSRESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEAUDITRECORDSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeAuditRecordsResult : public ServiceResult + { + public: + struct SQLRecord + { + std::string executeTime; + std::string threadID; + long returnRowCounts; + std::string dBName; + long totalExecutionTimes; + std::string hostAddress; + std::string syntax; + std::string accountName; + }; + + + DescribeAuditRecordsResult(); + explicit DescribeAuditRecordsResult(const std::string &payload); + ~DescribeAuditRecordsResult(); + int getTotalRecordCount()const; + int getPageRecordCount()const; + int getPageNumber()const; + std::vector getItems()const; + + protected: + void parse(const std::string &payload); + private: + int totalRecordCount_; + int pageRecordCount_; + int pageNumber_; + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEAUDITRECORDSRESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeAvailableEngineVersionRequest.h b/dds/include/alibabacloud/dds/model/DescribeAvailableEngineVersionRequest.h new file mode 100644 index 000000000..460f3ba93 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeAvailableEngineVersionRequest.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_DDS_MODEL_DESCRIBEAVAILABLEENGINEVERSIONREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEAVAILABLEENGINEVERSIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeAvailableEngineVersionRequest : public RpcServiceRequest + { + + public: + DescribeAvailableEngineVersionRequest(); + ~DescribeAvailableEngineVersionRequest(); + + 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_DDS_MODEL_DESCRIBEAVAILABLEENGINEVERSIONREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeAvailableEngineVersionResult.h b/dds/include/alibabacloud/dds/model/DescribeAvailableEngineVersionResult.h new file mode 100644 index 000000000..148f67871 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeAvailableEngineVersionResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DDS_MODEL_DESCRIBEAVAILABLEENGINEVERSIONRESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEAVAILABLEENGINEVERSIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeAvailableEngineVersionResult : public ServiceResult + { + public: + + + DescribeAvailableEngineVersionResult(); + explicit DescribeAvailableEngineVersionResult(const std::string &payload); + ~DescribeAvailableEngineVersionResult(); + std::vector getEngineVersions()const; + + protected: + void parse(const std::string &payload); + private: + std::vector engineVersions_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEAVAILABLEENGINEVERSIONRESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeAvailableTimeRangeRequest.h b/dds/include/alibabacloud/dds/model/DescribeAvailableTimeRangeRequest.h new file mode 100644 index 000000000..2c86915e7 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeAvailableTimeRangeRequest.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_DDS_MODEL_DESCRIBEAVAILABLETIMERANGEREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEAVAILABLETIMERANGEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeAvailableTimeRangeRequest : public RpcServiceRequest + { + + public: + DescribeAvailableTimeRangeRequest(); + ~DescribeAvailableTimeRangeRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + 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); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getNodeId()const; + void setNodeId(const std::string& nodeId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string instanceId_; + std::string securityToken_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + long ownerId_; + std::string nodeId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEAVAILABLETIMERANGEREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeAvailableTimeRangeResult.h b/dds/include/alibabacloud/dds/model/DescribeAvailableTimeRangeResult.h new file mode 100644 index 000000000..ed9a9605d --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeAvailableTimeRangeResult.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_DDS_MODEL_DESCRIBEAVAILABLETIMERANGERESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEAVAILABLETIMERANGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeAvailableTimeRangeResult : public ServiceResult + { + public: + struct TimeRangeItem + { + std::string status; + std::string taskId; + std::string endTime; + std::string startTime; + std::string nodeId; + }; + + + DescribeAvailableTimeRangeResult(); + explicit DescribeAvailableTimeRangeResult(const std::string &payload); + ~DescribeAvailableTimeRangeResult(); + std::vector getTimeRange()const; + + protected: + void parse(const std::string &payload); + private: + std::vector timeRange_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEAVAILABLETIMERANGERESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeAvaliableTimeRangeRequest.h b/dds/include/alibabacloud/dds/model/DescribeAvaliableTimeRangeRequest.h new file mode 100644 index 000000000..9b3372a0e --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeAvaliableTimeRangeRequest.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_DDS_MODEL_DESCRIBEAVALIABLETIMERANGEREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEAVALIABLETIMERANGEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeAvaliableTimeRangeRequest : public RpcServiceRequest + { + + public: + DescribeAvaliableTimeRangeRequest(); + ~DescribeAvaliableTimeRangeRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + 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); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getNodeId()const; + void setNodeId(const std::string& nodeId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string instanceId_; + std::string securityToken_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + long ownerId_; + std::string nodeId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEAVALIABLETIMERANGEREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeAvaliableTimeRangeResult.h b/dds/include/alibabacloud/dds/model/DescribeAvaliableTimeRangeResult.h new file mode 100644 index 000000000..10ebdab64 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeAvaliableTimeRangeResult.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_DDS_MODEL_DESCRIBEAVALIABLETIMERANGERESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEAVALIABLETIMERANGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeAvaliableTimeRangeResult : public ServiceResult + { + public: + struct TimeRangeItem + { + std::string status; + std::string endTime; + std::string startTime; + }; + + + DescribeAvaliableTimeRangeResult(); + explicit DescribeAvaliableTimeRangeResult(const std::string &payload); + ~DescribeAvaliableTimeRangeResult(); + std::vector getTimeRange()const; + + protected: + void parse(const std::string &payload); + private: + std::vector timeRange_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEAVALIABLETIMERANGERESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeBackupDBsRequest.h b/dds/include/alibabacloud/dds/model/DescribeBackupDBsRequest.h new file mode 100644 index 000000000..0cab383b4 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeBackupDBsRequest.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_DDS_MODEL_DESCRIBEBACKUPDBSREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEBACKUPDBSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeBackupDBsRequest : public RpcServiceRequest + { + + public: + DescribeBackupDBsRequest(); + ~DescribeBackupDBsRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRestoreTime()const; + void setRestoreTime(const std::string& restoreTime); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getBackupId()const; + void setBackupId(const std::string& backupId); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getSourceDBInstance()const; + void setSourceDBInstance(const std::string& sourceDBInstance); + 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 restoreTime_; + std::string securityToken_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string backupId_; + int pageSize_; + std::string sourceDBInstance_; + long ownerId_; + int pageNumber_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEBACKUPDBSREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeBackupDBsResult.h b/dds/include/alibabacloud/dds/model/DescribeBackupDBsResult.h new file mode 100644 index 000000000..a486d445a --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeBackupDBsResult.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_DDS_MODEL_DESCRIBEBACKUPDBSRESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEBACKUPDBSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeBackupDBsResult : public ServiceResult + { + public: + struct Database + { + std::string dBName; + }; + + + DescribeBackupDBsResult(); + explicit DescribeBackupDBsResult(const std::string &payload); + ~DescribeBackupDBsResult(); + int getTotalCount()const; + std::vector getDatabases()const; + int getPageSize()const; + int getPageNumber()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::vector databases_; + int pageSize_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEBACKUPDBSRESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeBackupPolicyRequest.h b/dds/include/alibabacloud/dds/model/DescribeBackupPolicyRequest.h new file mode 100644 index 000000000..51048d7ad --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeBackupPolicyRequest.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_DDS_MODEL_DESCRIBEBACKUPPOLICYREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEBACKUPPOLICYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeBackupPolicyRequest : public RpcServiceRequest + { + + public: + DescribeBackupPolicyRequest(); + ~DescribeBackupPolicyRequest(); + + 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_DDS_MODEL_DESCRIBEBACKUPPOLICYREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeBackupPolicyResult.h b/dds/include/alibabacloud/dds/model/DescribeBackupPolicyResult.h new file mode 100644 index 000000000..d879c5ee6 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeBackupPolicyResult.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_DDS_MODEL_DESCRIBEBACKUPPOLICYRESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEBACKUPPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeBackupPolicyResult : public ServiceResult + { + public: + + + DescribeBackupPolicyResult(); + explicit DescribeBackupPolicyResult(const std::string &payload); + ~DescribeBackupPolicyResult(); + std::string getPreferredBackupPeriod()const; + std::string getPreferredBackupTime()const; + std::string getBackupRetentionPeriod()const; + std::string getPreferredNextBackupTime()const; + + protected: + void parse(const std::string &payload); + private: + std::string preferredBackupPeriod_; + std::string preferredBackupTime_; + std::string backupRetentionPeriod_; + std::string preferredNextBackupTime_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEBACKUPPOLICYRESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeBackupsRequest.h b/dds/include/alibabacloud/dds/model/DescribeBackupsRequest.h new file mode 100644 index 000000000..738bc4125 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeBackupsRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_DDS_MODEL_DESCRIBEBACKUPSREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEBACKUPSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeBackupsRequest : public RpcServiceRequest + { + + public: + DescribeBackupsRequest(); + ~DescribeBackupsRequest(); + + 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 getBackupId()const; + void setBackupId(const std::string& backupId); + 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 getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getNodeId()const; + void setNodeId(const std::string& nodeId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string backupId_; + std::string endTime_; + std::string startTime_; + long ownerId_; + int pageNumber_; + std::string accessKeyId_; + std::string securityToken_; + std::string regionId_; + int pageSize_; + std::string dBInstanceId_; + std::string nodeId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEBACKUPSREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeBackupsResult.h b/dds/include/alibabacloud/dds/model/DescribeBackupsResult.h new file mode 100644 index 000000000..aa38ace3c --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeBackupsResult.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_DDS_MODEL_DESCRIBEBACKUPSRESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEBACKUPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeBackupsResult : public ServiceResult + { + public: + struct Backup + { + std::string backupMethod; + std::string backupDownloadURL; + std::string backupIntranetDownloadURL; + std::string backupEndTime; + std::string backupMode; + long backupSize; + std::string backupStartTime; + int backupId; + std::string backupType; + std::string backupDBNames; + std::string backupStatus; + }; + + + DescribeBackupsResult(); + explicit DescribeBackupsResult(const std::string &payload); + ~DescribeBackupsResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getBackups()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector backups_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEBACKUPSRESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeDBInstanceAttributeRequest.h b/dds/include/alibabacloud/dds/model/DescribeDBInstanceAttributeRequest.h new file mode 100644 index 000000000..9785861ae --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeDBInstanceAttributeRequest.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_DDS_MODEL_DESCRIBEDBINSTANCEATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEDBINSTANCEATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeDBInstanceAttributeRequest : public RpcServiceRequest + { + + public: + DescribeDBInstanceAttributeRequest(); + ~DescribeDBInstanceAttributeRequest(); + + 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 getEngine()const; + void setEngine(const std::string& engine); + 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 engine_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEDBINSTANCEATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeDBInstanceAttributeResult.h b/dds/include/alibabacloud/dds/model/DescribeDBInstanceAttributeResult.h new file mode 100644 index 000000000..446442308 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeDBInstanceAttributeResult.h @@ -0,0 +1,124 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DDS_MODEL_DESCRIBEDBINSTANCEATTRIBUTERESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEDBINSTANCEATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeDBInstanceAttributeResult : public ServiceResult + { + public: + struct DBInstance + { + struct MongosAttribute + { + std::string connectSting; + std::string nodeClass; + std::string nodeDescription; + int maxConnections; + std::string vPCId; + int port; + std::string vSwitchId; + std::string nodeId; + std::string vpcCloudInstanceId; + int maxIOPS; + }; + struct ShardAttribute + { + std::string nodeClass; + std::string nodeDescription; + int maxConnections; + std::string nodeId; + int nodeStorage; + int maxIOPS; + }; + struct ReplicaSet + { + std::string replicaSetRole; + std::string connectionDomain; + std::string vPCCloudInstanceId; + std::string connectionPort; + std::string vPCId; + std::string networkType; + std::string vSwitchId; + }; + struct Tag + { + std::string value; + std::string key; + }; + std::string vPCCloudInstanceIds; + std::string resourceGroupId; + std::string dBInstanceType; + std::string replicaSetName; + std::string storageEngine; + std::vector replicaSets; + std::string maintainEndTime; + std::vector mongosList; + std::string dBInstanceId; + std::string networkType; + int dBInstanceStorage; + std::string lastDowngradeTime; + std::vector tags; + std::string dBInstanceDescription; + std::string engine; + std::string maintainStartTime; + std::string replacateId; + std::string engineVersion; + std::string zoneId; + std::string dBInstanceStatus; + std::string replicationFactor; + int maxConnections; + std::string dBInstanceClass; + std::string vPCId; + std::string vSwitchId; + std::vector shardList; + std::string lockMode; + int maxIOPS; + std::string chargeType; + std::string currentKernelVersion; + std::string creationTime; + std::string regionId; + std::string expireTime; + }; + + + DescribeDBInstanceAttributeResult(); + explicit DescribeDBInstanceAttributeResult(const std::string &payload); + ~DescribeDBInstanceAttributeResult(); + std::vector getDBInstances()const; + + protected: + void parse(const std::string &payload); + private: + std::vector dBInstances_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEDBINSTANCEATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeDBInstanceMonitorRequest.h b/dds/include/alibabacloud/dds/model/DescribeDBInstanceMonitorRequest.h new file mode 100644 index 000000000..645f37702 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeDBInstanceMonitorRequest.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_DDS_MODEL_DESCRIBEDBINSTANCEMONITORREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEDBINSTANCEMONITORREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeDBInstanceMonitorRequest : public RpcServiceRequest + { + + public: + DescribeDBInstanceMonitorRequest(); + ~DescribeDBInstanceMonitorRequest(); + + 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_DDS_MODEL_DESCRIBEDBINSTANCEMONITORREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeDBInstanceMonitorResult.h b/dds/include/alibabacloud/dds/model/DescribeDBInstanceMonitorResult.h new file mode 100644 index 000000000..7faed3dfe --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeDBInstanceMonitorResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DDS_MODEL_DESCRIBEDBINSTANCEMONITORRESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEDBINSTANCEMONITORRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeDBInstanceMonitorResult : public ServiceResult + { + public: + + + DescribeDBInstanceMonitorResult(); + explicit DescribeDBInstanceMonitorResult(const std::string &payload); + ~DescribeDBInstanceMonitorResult(); + std::string getGranularity()const; + + protected: + void parse(const std::string &payload); + private: + std::string granularity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEDBINSTANCEMONITORRESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeDBInstancePerformanceRequest.h b/dds/include/alibabacloud/dds/model/DescribeDBInstancePerformanceRequest.h new file mode 100644 index 000000000..7c011c414 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeDBInstancePerformanceRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_DDS_MODEL_DESCRIBEDBINSTANCEPERFORMANCEREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEDBINSTANCEPERFORMANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeDBInstancePerformanceRequest : public RpcServiceRequest + { + + public: + DescribeDBInstancePerformanceRequest(); + ~DescribeDBInstancePerformanceRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRoleId()const; + void setRoleId(const std::string& roleId); + 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 getReplicaSetRole()const; + void setReplicaSetRole(const std::string& replicaSetRole); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getNodeId()const; + void setNodeId(const std::string& nodeId); + std::string getKey()const; + void setKey(const std::string& key); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string roleId_; + std::string ownerAccount_; + std::string endTime_; + std::string startTime_; + long ownerId_; + std::string accessKeyId_; + std::string replicaSetRole_; + std::string securityToken_; + std::string regionId_; + std::string dBInstanceId_; + std::string nodeId_; + std::string key_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEDBINSTANCEPERFORMANCEREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeDBInstancePerformanceResult.h b/dds/include/alibabacloud/dds/model/DescribeDBInstancePerformanceResult.h new file mode 100644 index 000000000..295bc7009 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeDBInstancePerformanceResult.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_DDS_MODEL_DESCRIBEDBINSTANCEPERFORMANCERESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEDBINSTANCEPERFORMANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeDBInstancePerformanceResult : public ServiceResult + { + public: + struct PerformanceKey + { + struct PerformanceValue + { + std::string value; + std::string date; + }; + std::vector performanceValues; + std::string valueFormat; + std::string unit; + std::string key; + }; + + + DescribeDBInstancePerformanceResult(); + explicit DescribeDBInstancePerformanceResult(const std::string &payload); + ~DescribeDBInstancePerformanceResult(); + std::vector getPerformanceKeys()const; + std::string getEndTime()const; + std::string getDBInstanceId()const; + std::string getStartTime()const; + std::string getEngine()const; + + 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_DDS_MODEL_DESCRIBEDBINSTANCEPERFORMANCERESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeDBInstanceSSLRequest.h b/dds/include/alibabacloud/dds/model/DescribeDBInstanceSSLRequest.h new file mode 100644 index 000000000..22bc68e8e --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeDBInstanceSSLRequest.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_DDS_MODEL_DESCRIBEDBINSTANCESSLREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEDBINSTANCESSLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeDBInstanceSSLRequest : public RpcServiceRequest + { + + public: + DescribeDBInstanceSSLRequest(); + ~DescribeDBInstanceSSLRequest(); + + 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_DDS_MODEL_DESCRIBEDBINSTANCESSLREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeDBInstanceSSLResult.h b/dds/include/alibabacloud/dds/model/DescribeDBInstanceSSLResult.h new file mode 100644 index 000000000..c52b30f94 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeDBInstanceSSLResult.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_DDS_MODEL_DESCRIBEDBINSTANCESSLRESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEDBINSTANCESSLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeDBInstanceSSLResult : public ServiceResult + { + public: + + + DescribeDBInstanceSSLResult(); + explicit DescribeDBInstanceSSLResult(const std::string &payload); + ~DescribeDBInstanceSSLResult(); + std::string getSSLExpiredTime()const; + std::string getSSLStatus()const; + std::string getCertCommonName()const; + + protected: + void parse(const std::string &payload); + private: + std::string sSLExpiredTime_; + std::string sSLStatus_; + std::string certCommonName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEDBINSTANCESSLRESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeDBInstancesRequest.h b/dds/include/alibabacloud/dds/model/DescribeDBInstancesRequest.h new file mode 100644 index 000000000..d260a7ed2 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeDBInstancesRequest.h @@ -0,0 +1,125 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DDS_MODEL_DESCRIBEDBINSTANCESREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEDBINSTANCESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeDBInstancesRequest : public RpcServiceRequest + { + struct Tag + { + std::string value; + std::string key; + }; + + public: + DescribeDBInstancesRequest(); + ~DescribeDBInstancesRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getEngineVersion()const; + void setEngineVersion(const std::string& engineVersion); + std::string getNetworkType()const; + void setNetworkType(const std::string& networkType); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getReplicationFactor()const; + void setReplicationFactor(const std::string& replicationFactor); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getExpired()const; + void setExpired(const std::string& expired); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + 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); + std::string getDBInstanceDescription()const; + void setDBInstanceDescription(const std::string& dBInstanceDescription); + std::string getDBInstanceStatus()const; + void setDBInstanceStatus(const std::string& dBInstanceStatus); + std::vector getTag()const; + void setTag(const std::vector& tag); + std::string getExpireTime()const; + void setExpireTime(const std::string& expireTime); + 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 getDBInstanceType()const; + void setDBInstanceType(const std::string& dBInstanceType); + std::string getDBInstanceClass()const; + void setDBInstanceClass(const std::string& dBInstanceClass); + std::string getVSwitchId()const; + void setVSwitchId(const std::string& vSwitchId); + std::string getVpcId()const; + void setVpcId(const std::string& vpcId); + std::string getZoneId()const; + void setZoneId(const std::string& zoneId); + std::string getChargeType()const; + void setChargeType(const std::string& chargeType); + + private: + long resourceOwnerId_; + std::string engineVersion_; + std::string networkType_; + int pageNumber_; + std::string replicationFactor_; + std::string accessKeyId_; + std::string expired_; + std::string securityToken_; + std::string regionId_; + std::string engine_; + int pageSize_; + std::string dBInstanceId_; + std::string dBInstanceDescription_; + std::string dBInstanceStatus_; + std::vector tag_; + std::string expireTime_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string dBInstanceType_; + std::string dBInstanceClass_; + std::string vSwitchId_; + std::string vpcId_; + std::string zoneId_; + std::string chargeType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEDBINSTANCESREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeDBInstancesResult.h b/dds/include/alibabacloud/dds/model/DescribeDBInstancesResult.h new file mode 100644 index 000000000..188985326 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeDBInstancesResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_DDS_MODEL_DESCRIBEDBINSTANCESRESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEDBINSTANCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeDBInstancesResult : public ServiceResult + { + public: + struct DBInstance + { + struct MongosAttribute + { + std::string connectSting; + std::string nodeClass; + std::string nodeDescription; + int port; + std::string nodeId; + }; + struct ShardAttribute + { + std::string nodeClass; + std::string nodeDescription; + std::string nodeId; + int nodeStorage; + }; + struct Tag + { + std::string value; + std::string key; + }; + std::string engineVersion; + std::string resourceGroupId; + std::string zoneId; + std::string dBInstanceStatus; + std::string replicationFactor; + std::string dBInstanceClass; + std::string destroyTime; + std::vector shardList; + std::string dBInstanceType; + std::string lockMode; + std::vector mongosList; + std::string dBInstanceId; + std::string chargeType; + std::string networkType; + int dBInstanceStorage; + std::string lastDowngradeTime; + std::string creationTime; + std::string regionId; + std::string expireTime; + std::vector tags; + std::string dBInstanceDescription; + std::string engine; + }; + + + DescribeDBInstancesResult(); + explicit DescribeDBInstancesResult(const std::string &payload); + ~DescribeDBInstancesResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getDBInstances()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector dBInstances_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEDBINSTANCESRESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeErrorLogRecordsRequest.h b/dds/include/alibabacloud/dds/model/DescribeErrorLogRecordsRequest.h new file mode 100644 index 000000000..bde766392 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeErrorLogRecordsRequest.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_DDS_MODEL_DESCRIBEERRORLOGRECORDSREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEERRORLOGRECORDSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeErrorLogRecordsRequest : public RpcServiceRequest + { + + public: + DescribeErrorLogRecordsRequest(); + ~DescribeErrorLogRecordsRequest(); + + 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); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getRoleType()const; + void setRoleType(const std::string& roleType); + std::string getNodeId()const; + void setNodeId(const std::string& nodeId); + + 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_; + std::string securityToken_; + std::string regionId_; + int pageSize_; + std::string dBInstanceId_; + std::string roleType_; + std::string nodeId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEERRORLOGRECORDSREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeErrorLogRecordsResult.h b/dds/include/alibabacloud/dds/model/DescribeErrorLogRecordsResult.h new file mode 100644 index 000000000..a47b698aa --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeErrorLogRecordsResult.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_DDS_MODEL_DESCRIBEERRORLOGRECORDSRESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEERRORLOGRECORDSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeErrorLogRecordsResult : public ServiceResult + { + public: + struct LogRecords + { + std::string connInfo; + std::string category; + long content; + std::string createTime; + int id; + }; + + + DescribeErrorLogRecordsResult(); + explicit DescribeErrorLogRecordsResult(const std::string &payload); + ~DescribeErrorLogRecordsResult(); + int getTotalRecordCount()const; + int getPageRecordCount()const; + int getPageNumber()const; + std::vector getItems()const; + std::string getEngine()const; + + protected: + void parse(const std::string &payload); + private: + int totalRecordCount_; + int pageRecordCount_; + int pageNumber_; + std::vector items_; + std::string engine_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEERRORLOGRECORDSRESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeIndexRecommendationRequest.h b/dds/include/alibabacloud/dds/model/DescribeIndexRecommendationRequest.h new file mode 100644 index 000000000..0a912f31d --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeIndexRecommendationRequest.h @@ -0,0 +1,96 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DDS_MODEL_DESCRIBEINDEXRECOMMENDATIONREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEINDEXRECOMMENDATIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeIndexRecommendationRequest : public RpcServiceRequest + { + + public: + DescribeIndexRecommendationRequest(); + ~DescribeIndexRecommendationRequest(); + + 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 getCollection()const; + void setCollection(const std::string& collection); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + std::string getOperationType()const; + void setOperationType(const std::string& operationType); + 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 getDatabase()const; + void setDatabase(const std::string& database); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getNodeId()const; + void setNodeId(const std::string& nodeId); + std::string getTaskId()const; + void setTaskId(const std::string& taskId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string endTime_; + std::string collection_; + std::string startTime_; + std::string operationType_; + long ownerId_; + int pageNumber_; + std::string accessKeyId_; + std::string database_; + std::string instanceId_; + std::string securityToken_; + std::string regionId_; + int pageSize_; + std::string nodeId_; + std::string taskId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEINDEXRECOMMENDATIONREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeIndexRecommendationResult.h b/dds/include/alibabacloud/dds/model/DescribeIndexRecommendationResult.h new file mode 100644 index 000000000..63ca97692 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeIndexRecommendationResult.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_DDS_MODEL_DESCRIBEINDEXRECOMMENDATIONRESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEINDEXRECOMMENDATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeIndexRecommendationResult : public ServiceResult + { + public: + struct Analyzation + { + struct Recommendation + { + std::string recmdType; + std::string content; + }; + long averageReturnRowCount; + std::string query; + long totalExecutionTime; + std::vector indexCombines; + long averageDocsExaminedCount; + std::string _namespace; + std::string operation; + long count; + std::vector indexRecommendations; + long averageKeysExaminedCount; + std::string executionPlan; + std::string inMemorySort; + std::string database; + std::string lastExecutionTime; + std::string sort; + long averageExecutionTime; + }; + + + DescribeIndexRecommendationResult(); + explicit DescribeIndexRecommendationResult(const std::string &payload); + ~DescribeIndexRecommendationResult(); + int getTotalRecordCount()const; + int getPageRecordCount()const; + std::vector getAnalyzations()const; + int getPageNumber()const; + + protected: + void parse(const std::string &payload); + private: + int totalRecordCount_; + int pageRecordCount_; + std::vector analyzations_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEINDEXRECOMMENDATIONRESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeInstanceAutoRenewalAttributeRequest.h b/dds/include/alibabacloud/dds/model/DescribeInstanceAutoRenewalAttributeRequest.h new file mode 100644 index 000000000..f69ca2ebb --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeInstanceAutoRenewalAttributeRequest.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_DDS_MODEL_DESCRIBEINSTANCEAUTORENEWALATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEINSTANCEAUTORENEWALATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeInstanceAutoRenewalAttributeRequest : public RpcServiceRequest + { + + public: + DescribeInstanceAutoRenewalAttributeRequest(); + ~DescribeInstanceAutoRenewalAttributeRequest(); + + 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 getPageSize()const; + void setPageSize(const std::string& pageSize); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getPageNumber()const; + void setPageNumber(const std::string& pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getDBInstanceType()const; + void setDBInstanceType(const std::string& dBInstanceType); + + private: + long resourceOwnerId_; + std::string securityToken_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string pageSize_; + std::string dBInstanceId_; + long ownerId_; + std::string pageNumber_; + std::string accessKeyId_; + std::string dBInstanceType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEINSTANCEAUTORENEWALATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeInstanceAutoRenewalAttributeResult.h b/dds/include/alibabacloud/dds/model/DescribeInstanceAutoRenewalAttributeResult.h new file mode 100644 index 000000000..64b479479 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeInstanceAutoRenewalAttributeResult.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_DDS_MODEL_DESCRIBEINSTANCEAUTORENEWALATTRIBUTERESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEINSTANCEAUTORENEWALATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeInstanceAutoRenewalAttributeResult : public ServiceResult + { + public: + struct Item + { + std::string autoRenew; + std::string dBInstanceType; + std::string duration; + std::string regionId; + std::string dbInstanceId; + }; + + + DescribeInstanceAutoRenewalAttributeResult(); + explicit DescribeInstanceAutoRenewalAttributeResult(const std::string &payload); + ~DescribeInstanceAutoRenewalAttributeResult(); + int getItemsNumbers()const; + int getPageRecordCount()const; + int getPageNumber()const; + std::vector getItems()const; + + protected: + void parse(const std::string &payload); + private: + int itemsNumbers_; + int pageRecordCount_; + int pageNumber_; + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEINSTANCEAUTORENEWALATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeKernelReleaseNotesRequest.h b/dds/include/alibabacloud/dds/model/DescribeKernelReleaseNotesRequest.h new file mode 100644 index 000000000..3df6aaaee --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeKernelReleaseNotesRequest.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_DDS_MODEL_DESCRIBEKERNELRELEASENOTESREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEKERNELRELEASENOTESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeKernelReleaseNotesRequest : public RpcServiceRequest + { + + public: + DescribeKernelReleaseNotesRequest(); + ~DescribeKernelReleaseNotesRequest(); + + 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); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getKernelVersion()const; + void setKernelVersion(const std::string& kernelVersion); + + private: + long resourceOwnerId_; + std::string securityToken_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + long ownerId_; + std::string accessKeyId_; + std::string kernelVersion_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEKERNELRELEASENOTESREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeKernelReleaseNotesResult.h b/dds/include/alibabacloud/dds/model/DescribeKernelReleaseNotesResult.h new file mode 100644 index 000000000..0395e5b91 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeKernelReleaseNotesResult.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_DDS_MODEL_DESCRIBEKERNELRELEASENOTESRESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEKERNELRELEASENOTESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeKernelReleaseNotesResult : public ServiceResult + { + public: + struct ReleaseNote + { + std::string kernelVersion; + std::string releaseNote; + }; + + + DescribeKernelReleaseNotesResult(); + explicit DescribeKernelReleaseNotesResult(const std::string &payload); + ~DescribeKernelReleaseNotesResult(); + std::vector getReleaseNotes()const; + + protected: + void parse(const std::string &payload); + private: + std::vector releaseNotes_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEKERNELRELEASENOTESRESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeParameterModificationHistoryRequest.h b/dds/include/alibabacloud/dds/model/DescribeParameterModificationHistoryRequest.h new file mode 100644 index 000000000..87cde96b4 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeParameterModificationHistoryRequest.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_DDS_MODEL_DESCRIBEPARAMETERMODIFICATIONHISTORYREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEPARAMETERMODIFICATIONHISTORYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeParameterModificationHistoryRequest : public RpcServiceRequest + { + + public: + DescribeParameterModificationHistoryRequest(); + ~DescribeParameterModificationHistoryRequest(); + + 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 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 getNodeId()const; + void setNodeId(const std::string& nodeId); + 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 endTime_; + std::string dBInstanceId_; + std::string startTime_; + long ownerId_; + std::string nodeId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEPARAMETERMODIFICATIONHISTORYREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeParameterModificationHistoryResult.h b/dds/include/alibabacloud/dds/model/DescribeParameterModificationHistoryResult.h new file mode 100644 index 000000000..c91c0701e --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeParameterModificationHistoryResult.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_DDS_MODEL_DESCRIBEPARAMETERMODIFICATIONHISTORYRESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEPARAMETERMODIFICATIONHISTORYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeParameterModificationHistoryResult : public ServiceResult + { + public: + struct HistoricalParameter + { + std::string modifyTime; + std::string newParameterValue; + std::string oldParameterValue; + std::string parameterName; + }; + + + DescribeParameterModificationHistoryResult(); + explicit DescribeParameterModificationHistoryResult(const std::string &payload); + ~DescribeParameterModificationHistoryResult(); + std::vector getHistoricalParameters()const; + + protected: + void parse(const std::string &payload); + private: + std::vector historicalParameters_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEPARAMETERMODIFICATIONHISTORYRESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeParameterTemplatesRequest.h b/dds/include/alibabacloud/dds/model/DescribeParameterTemplatesRequest.h new file mode 100644 index 000000000..eb749865c --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeParameterTemplatesRequest.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_DDS_MODEL_DESCRIBEPARAMETERTEMPLATESREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEPARAMETERTEMPLATESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeParameterTemplatesRequest : public RpcServiceRequest + { + + public: + DescribeParameterTemplatesRequest(); + ~DescribeParameterTemplatesRequest(); + + 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 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 securityToken_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string engine_; + std::string ownerAccount_; + std::string engineVersion_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEPARAMETERTEMPLATESREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeParameterTemplatesResult.h b/dds/include/alibabacloud/dds/model/DescribeParameterTemplatesResult.h new file mode 100644 index 000000000..0028fb114 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeParameterTemplatesResult.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_DDS_MODEL_DESCRIBEPARAMETERTEMPLATESRESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEPARAMETERTEMPLATESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeParameterTemplatesResult : public ServiceResult + { + public: + struct TemplateRecord + { + bool forceModify; + std::string checkingCode; + std::string parameterValue; + bool forceRestart; + std::string parameterName; + std::string parameterDescription; + }; + + + DescribeParameterTemplatesResult(); + explicit DescribeParameterTemplatesResult(const std::string &payload); + ~DescribeParameterTemplatesResult(); + std::string getParameterCount()const; + std::vector getParameters()const; + std::string getEngineVersion()const; + std::string getEngine()const; + + protected: + void parse(const std::string &payload); + private: + std::string parameterCount_; + std::vector parameters_; + std::string engineVersion_; + std::string engine_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEPARAMETERTEMPLATESRESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeParametersRequest.h b/dds/include/alibabacloud/dds/model/DescribeParametersRequest.h new file mode 100644 index 000000000..b0db1ab97 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeParametersRequest.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_DDS_MODEL_DESCRIBEPARAMETERSREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEPARAMETERSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeParametersRequest : public RpcServiceRequest + { + + public: + DescribeParametersRequest(); + ~DescribeParametersRequest(); + + 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 getNodeId()const; + void setNodeId(const std::string& nodeId); + 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 nodeId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEPARAMETERSREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeParametersResult.h b/dds/include/alibabacloud/dds/model/DescribeParametersResult.h new file mode 100644 index 000000000..ef2dcc911 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeParametersResult.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_DDS_MODEL_DESCRIBEPARAMETERSRESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEPARAMETERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeParametersResult : public ServiceResult + { + public: + struct Parameter + { + bool modifiableStatus; + std::string checkingCode; + std::string parameterValue; + bool forceRestart; + std::string parameterName; + std::string parameterDescription; + }; + + + DescribeParametersResult(); + explicit DescribeParametersResult(const std::string &payload); + ~DescribeParametersResult(); + std::vector getRunningParameters()const; + std::string getEngineVersion()const; + std::vector getConfigParameters()const; + std::string getEngine()const; + + protected: + void parse(const std::string &payload); + private: + std::vector runningParameters_; + std::string engineVersion_; + std::vector configParameters_; + std::string engine_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEPARAMETERSRESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeRdsVSwitchsRequest.h b/dds/include/alibabacloud/dds/model/DescribeRdsVSwitchsRequest.h new file mode 100644 index 000000000..767c993da --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeRdsVSwitchsRequest.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_DDS_MODEL_DESCRIBERDSVSWITCHSREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBERDSVSWITCHSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeRdsVSwitchsRequest : public RpcServiceRequest + { + + public: + DescribeRdsVSwitchsRequest(); + ~DescribeRdsVSwitchsRequest(); + + 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 getVpcId()const; + void setVpcId(const std::string& vpcId); + std::string getZoneId()const; + void setZoneId(const std::string& zoneId); + 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 vpcId_; + std::string zoneId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBERDSVSWITCHSREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeRdsVSwitchsResult.h b/dds/include/alibabacloud/dds/model/DescribeRdsVSwitchsResult.h new file mode 100644 index 000000000..967feb0a0 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeRdsVSwitchsResult.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_DDS_MODEL_DESCRIBERDSVSWITCHSRESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBERDSVSWITCHSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeRdsVSwitchsResult : public ServiceResult + { + public: + struct VSwitches + { + struct VSwitchItem + { + bool isDefault; + std::string status; + std::string izNo; + std::string regionNo; + std::string gmtCreate; + std::string vSwitchId; + std::string gmtModified; + std::string cidrBlock; + std::string vSwitchName; + std::string bid; + std::string aliUid; + }; + std::vector vSwitch; + }; + + + DescribeRdsVSwitchsResult(); + explicit DescribeRdsVSwitchsResult(const std::string &payload); + ~DescribeRdsVSwitchsResult(); + VSwitches getVSwitches()const; + + protected: + void parse(const std::string &payload); + private: + VSwitches vSwitches_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBERDSVSWITCHSRESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeRdsVpcsRequest.h b/dds/include/alibabacloud/dds/model/DescribeRdsVpcsRequest.h new file mode 100644 index 000000000..cfb9e3406 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeRdsVpcsRequest.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_DDS_MODEL_DESCRIBERDSVPCSREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBERDSVPCSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeRdsVpcsRequest : public RpcServiceRequest + { + + public: + DescribeRdsVpcsRequest(); + ~DescribeRdsVpcsRequest(); + + 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 getZoneId()const; + void setZoneId(const std::string& zoneId); + 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 zoneId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBERDSVPCSREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeRdsVpcsResult.h b/dds/include/alibabacloud/dds/model/DescribeRdsVpcsResult.h new file mode 100644 index 000000000..da296038a --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeRdsVpcsResult.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_DDS_MODEL_DESCRIBERDSVPCSRESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBERDSVPCSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeRdsVpcsResult : public ServiceResult + { + public: + struct Vpcs + { + struct VpcItem + { + struct VSwitch + { + bool isDefault; + std::string status; + std::string izNo; + std::string gmtCreate; + std::string vSwitchId; + std::string gmtModified; + std::string cidrBlock; + std::string vSwitchName; + }; + bool isDefault; + std::string status; + std::vector vSwitchs; + std::string regionNo; + std::string gmtCreate; + std::string vpcId; + std::string gmtModified; + std::string cidrBlock; + std::string vpcName; + std::string bid; + std::string aliUid; + }; + std::vector vpc; + }; + + + DescribeRdsVpcsResult(); + explicit DescribeRdsVpcsResult(const std::string &payload); + ~DescribeRdsVpcsResult(); + Vpcs getVpcs()const; + + protected: + void parse(const std::string &payload); + private: + Vpcs vpcs_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBERDSVPCSRESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeRegionsRequest.h b/dds/include/alibabacloud/dds/model/DescribeRegionsRequest.h new file mode 100644 index 000000000..dcbb510cd --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeRegionsRequest.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_DDS_MODEL_DESCRIBEREGIONSREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEREGIONSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeRegionsRequest : public RpcServiceRequest + { + + public: + DescribeRegionsRequest(); + ~DescribeRegionsRequest(); + + 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 getZoneId()const; + void setZoneId(const std::string& zoneId); + 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 zoneId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEREGIONSREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeRegionsResult.h b/dds/include/alibabacloud/dds/model/DescribeRegionsResult.h new file mode 100644 index 000000000..8f5dfba8e --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeRegionsResult.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_DDS_MODEL_DESCRIBEREGIONSRESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEREGIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeRegionsResult : public ServiceResult + { + public: + struct DdsRegion + { + struct Zone + { + bool vpcEnabled; + std::string zoneId; + }; + std::string regionId; + std::string zoneIds; + std::vector zones; + }; + + + DescribeRegionsResult(); + explicit DescribeRegionsResult(const std::string &payload); + ~DescribeRegionsResult(); + std::vector getRegions()const; + + protected: + void parse(const std::string &payload); + private: + std::vector regions_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEREGIONSRESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeRenewalPriceRequest.h b/dds/include/alibabacloud/dds/model/DescribeRenewalPriceRequest.h new file mode 100644 index 000000000..d79886261 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeRenewalPriceRequest.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_DDS_MODEL_DESCRIBERENEWALPRICEREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBERENEWALPRICEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeRenewalPriceRequest : public RpcServiceRequest + { + + public: + DescribeRenewalPriceRequest(); + ~DescribeRenewalPriceRequest(); + + 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 getCouponNo()const; + void setCouponNo(const std::string& couponNo); + 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 securityToken_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string couponNo_; + std::string dBInstanceId_; + long ownerId_; + std::string businessInfo_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBERENEWALPRICEREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeRenewalPriceResult.h b/dds/include/alibabacloud/dds/model/DescribeRenewalPriceResult.h new file mode 100644 index 000000000..3e89cade5 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeRenewalPriceResult.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_DDS_MODEL_DESCRIBERENEWALPRICERESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBERENEWALPRICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeRenewalPriceResult : public ServiceResult + { + public: + struct Order + { + struct Coupon + { + std::string couponNo; + std::string description; + std::string isSelected; + std::string name; + }; + std::vector ruleIds1; + std::string currency; + float tradeAmount; + std::vector coupons; + float originalAmount; + float discountAmount; + }; + struct Rule + { + long ruleDescId; + std::string title; + std::string name; + }; + struct SubOrder + { + std::string instanceId; + std::vector ruleIds; + float tradeAmount; + float originalAmount; + float discountAmount; + }; + + + DescribeRenewalPriceResult(); + explicit DescribeRenewalPriceResult(const std::string &payload); + ~DescribeRenewalPriceResult(); + Order getOrder()const; + std::vector getSubOrders()const; + std::vector getRules()const; + + protected: + void parse(const std::string &payload); + private: + Order order_; + std::vector subOrders_; + std::vector rules_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBERENEWALPRICERESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeReplicaConflictInfoRequest.h b/dds/include/alibabacloud/dds/model/DescribeReplicaConflictInfoRequest.h new file mode 100644 index 000000000..e25cc36e1 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeReplicaConflictInfoRequest.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_DDS_MODEL_DESCRIBEREPLICACONFLICTINFOREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEREPLICACONFLICTINFOREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeReplicaConflictInfoRequest : public RpcServiceRequest + { + + public: + DescribeReplicaConflictInfoRequest(); + ~DescribeReplicaConflictInfoRequest(); + + 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 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); + int getPageSize()const; + void setPageSize(int pageSize); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string endTime_; + std::string startTime_; + long ownerId_; + int pageNumber_; + std::string accessKeyId_; + std::string securityToken_; + std::string regionId_; + std::string replicaId_; + int pageSize_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEREPLICACONFLICTINFOREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeReplicaConflictInfoResult.h b/dds/include/alibabacloud/dds/model/DescribeReplicaConflictInfoResult.h new file mode 100644 index 000000000..751a3ccd7 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeReplicaConflictInfoResult.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_DDS_MODEL_DESCRIBEREPLICACONFLICTINFORESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEREPLICACONFLICTINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeReplicaConflictInfoResult : public ServiceResult + { + public: + struct ItemsItem + { + std::string recoveryMode; + std::string destinationInstanceId; + std::string confictReason; + std::string conflictGtid; + std::string detailInfo; + std::string databaseName; + std::string occurTime; + std::string sourceInstanceId; + std::string confictKey; + }; + + + DescribeReplicaConflictInfoResult(); + explicit DescribeReplicaConflictInfoResult(const std::string &payload); + ~DescribeReplicaConflictInfoResult(); + int getTotalRecordCount()const; + int getPageRecordCount()const; + std::vector getItems()const; + int getPagNumber()const; + std::string getReplicaId()const; + + protected: + void parse(const std::string &payload); + private: + int totalRecordCount_; + int pageRecordCount_; + std::vector items_; + int pagNumber_; + std::string replicaId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEREPLICACONFLICTINFORESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeReplicaInitializeProgressRequest.h b/dds/include/alibabacloud/dds/model/DescribeReplicaInitializeProgressRequest.h new file mode 100644 index 000000000..e2cc612bf --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeReplicaInitializeProgressRequest.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_DDS_MODEL_DESCRIBEREPLICAINITIALIZEPROGRESSREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEREPLICAINITIALIZEPROGRESSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeReplicaInitializeProgressRequest : public RpcServiceRequest + { + + 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_DDS_MODEL_DESCRIBEREPLICAINITIALIZEPROGRESSREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeReplicaInitializeProgressResult.h b/dds/include/alibabacloud/dds/model/DescribeReplicaInitializeProgressResult.h new file mode 100644 index 000000000..d8fa47850 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeReplicaInitializeProgressResult.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_DDS_MODEL_DESCRIBEREPLICAINITIALIZEPROGRESSRESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEREPLICAINITIALIZEPROGRESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_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; + + protected: + void parse(const std::string &payload); + private: + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEREPLICAINITIALIZEPROGRESSRESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeReplicaPerformanceRequest.h b/dds/include/alibabacloud/dds/model/DescribeReplicaPerformanceRequest.h new file mode 100644 index 000000000..3e0038e71 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeReplicaPerformanceRequest.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_DDS_MODEL_DESCRIBEREPLICAPERFORMANCEREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEREPLICAPERFORMANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeReplicaPerformanceRequest : public RpcServiceRequest + { + + public: + DescribeReplicaPerformanceRequest(); + ~DescribeReplicaPerformanceRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDestinationDBInstanceId()const; + void setDestinationDBInstanceId(const std::string& destinationDBInstanceId); + 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 destinationDBInstanceId_; + 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_DDS_MODEL_DESCRIBEREPLICAPERFORMANCEREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeReplicaPerformanceResult.h b/dds/include/alibabacloud/dds/model/DescribeReplicaPerformanceResult.h new file mode 100644 index 000000000..239606de5 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeReplicaPerformanceResult.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_DDS_MODEL_DESCRIBEREPLICAPERFORMANCERESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEREPLICAPERFORMANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeReplicaPerformanceResult : public ServiceResult + { + public: + struct PerformanceKeys + { + struct PerformanceKeyItem + { + struct PerformanceValues + { + struct PerformanceValueItem + { + std::string value; + std::string date; + }; + std::vector performanceValue; + }; + PerformanceValues performanceValues; + std::string valueFormat; + std::string unit; + std::string key; + }; + std::vector performanceKey; + }; + + + DescribeReplicaPerformanceResult(); + explicit DescribeReplicaPerformanceResult(const std::string &payload); + ~DescribeReplicaPerformanceResult(); + PerformanceKeys getPerformanceKeys()const; + std::string getEndTime()const; + std::string getStartTime()const; + std::string getReplicaId()const; + + protected: + void parse(const std::string &payload); + private: + PerformanceKeys performanceKeys_; + std::string endTime_; + std::string startTime_; + std::string replicaId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEREPLICAPERFORMANCERESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeReplicaSetRoleRequest.h b/dds/include/alibabacloud/dds/model/DescribeReplicaSetRoleRequest.h new file mode 100644 index 000000000..16b46f723 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeReplicaSetRoleRequest.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_DDS_MODEL_DESCRIBEREPLICASETROLEREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEREPLICASETROLEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeReplicaSetRoleRequest : public RpcServiceRequest + { + + public: + DescribeReplicaSetRoleRequest(); + ~DescribeReplicaSetRoleRequest(); + + 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_DDS_MODEL_DESCRIBEREPLICASETROLEREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeReplicaSetRoleResult.h b/dds/include/alibabacloud/dds/model/DescribeReplicaSetRoleResult.h new file mode 100644 index 000000000..bc28612b8 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeReplicaSetRoleResult.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_DDS_MODEL_DESCRIBEREPLICASETROLERESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEREPLICASETROLERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeReplicaSetRoleResult : public ServiceResult + { + public: + struct ReplicaSet + { + std::string replicaSetRole; + std::string connectionDomain; + std::string connectionPort; + std::string networkType; + std::string expiredTime; + std::string roleId; + }; + + + DescribeReplicaSetRoleResult(); + explicit DescribeReplicaSetRoleResult(const std::string &payload); + ~DescribeReplicaSetRoleResult(); + std::string getDBInstanceId()const; + std::vector getReplicaSets()const; + + protected: + void parse(const std::string &payload); + private: + std::string dBInstanceId_; + std::vector replicaSets_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEREPLICASETROLERESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeReplicaUsageRequest.h b/dds/include/alibabacloud/dds/model/DescribeReplicaUsageRequest.h new file mode 100644 index 000000000..f2d85ff77 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeReplicaUsageRequest.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_DDS_MODEL_DESCRIBEREPLICAUSAGEREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEREPLICAUSAGEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeReplicaUsageRequest : public RpcServiceRequest + { + + public: + DescribeReplicaUsageRequest(); + ~DescribeReplicaUsageRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSourceDBInstanceId()const; + void setSourceDBInstanceId(const std::string& sourceDBInstanceId); + std::string getDestinationDBInstanceId()const; + void setDestinationDBInstanceId(const std::string& destinationDBInstanceId); + 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 destinationDBInstanceId_; + std::string securityToken_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string replicaId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEREPLICAUSAGEREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeReplicaUsageResult.h b/dds/include/alibabacloud/dds/model/DescribeReplicaUsageResult.h new file mode 100644 index 000000000..b694c9a6d --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeReplicaUsageResult.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_DDS_MODEL_DESCRIBEREPLICAUSAGERESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEREPLICAUSAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeReplicaUsageResult : public ServiceResult + { + public: + struct PerformanceKeys + { + struct PerformanceKeyItem + { + struct PerformanceValues + { + struct PerformanceValueItem + { + std::string value; + std::string date; + }; + std::vector performanceValue; + }; + PerformanceValues performanceValues; + std::string valueFormat; + std::string unit; + std::string key; + }; + std::vector performanceKey; + }; + + + DescribeReplicaUsageResult(); + explicit DescribeReplicaUsageResult(const std::string &payload); + ~DescribeReplicaUsageResult(); + PerformanceKeys getPerformanceKeys()const; + std::string getEndTime()const; + std::string getStartTime()const; + std::string getReplicaId()const; + + protected: + void parse(const std::string &payload); + private: + PerformanceKeys performanceKeys_; + std::string endTime_; + std::string startTime_; + std::string replicaId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEREPLICAUSAGERESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeReplicasRequest.h b/dds/include/alibabacloud/dds/model/DescribeReplicasRequest.h new file mode 100644 index 000000000..ae2a2516e --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeReplicasRequest.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_DDS_MODEL_DESCRIBEREPLICASREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEREPLICASREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeReplicasRequest : public RpcServiceRequest + { + + public: + DescribeReplicasRequest(); + ~DescribeReplicasRequest(); + + 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); + bool getAttachDbInstanceData()const; + void setAttachDbInstanceData(bool attachDbInstanceData); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getReplicaId()const; + void setReplicaId(const std::string& replicaId); + int getPageSize()const; + void setPageSize(int pageSize); + 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 securityToken_; + std::string resourceOwnerAccount_; + std::string regionId_; + bool attachDbInstanceData_; + std::string ownerAccount_; + std::string replicaId_; + int pageSize_; + long ownerId_; + int pageNumber_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEREPLICASREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeReplicasResult.h b/dds/include/alibabacloud/dds/model/DescribeReplicasResult.h new file mode 100644 index 000000000..eea44e1ce --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeReplicasResult.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_DDS_MODEL_DESCRIBEREPLICASRESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEREPLICASRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeReplicasResult : public ServiceResult + { + public: + struct Items + { + struct Items1 + { + std::string role; + std::string dBInstanceStatus; + std::string dBInstanceId; + std::string readWriteType; + std::string regionId; + std::string dBInstanceDescription; + std::string engine; + std::string instanceNetworkType; + }; + std::string replicaDescription; + std::string replicaStatus; + std::vector dBInstances; + std::string domainMode; + std::string replicaId; + std::string replicaMode; + }; + + + DescribeReplicasResult(); + explicit DescribeReplicasResult(const std::string &payload); + ~DescribeReplicasResult(); + int getTotalRecordCount()const; + int getPageRecordCount()const; + std::string getPageNumber()const; + std::vector getReplicas()const; + + protected: + void parse(const std::string &payload); + private: + int totalRecordCount_; + int pageRecordCount_; + std::string pageNumber_; + std::vector replicas_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEREPLICASRESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeReplicationGroupRequest.h b/dds/include/alibabacloud/dds/model/DescribeReplicationGroupRequest.h new file mode 100644 index 000000000..22dcd09a2 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeReplicationGroupRequest.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_DDS_MODEL_DESCRIBEREPLICATIONGROUPREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEREPLICATIONGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeReplicationGroupRequest : public RpcServiceRequest + { + + public: + DescribeReplicationGroupRequest(); + ~DescribeReplicationGroupRequest(); + + std::string getDestinationInstanceIds()const; + void setDestinationInstanceIds(const std::string& destinationInstanceIds); + 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 getReplicationGroupId()const; + void setReplicationGroupId(const std::string& replicationGroupId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getSourceInstanceId()const; + void setSourceInstanceId(const std::string& sourceInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string destinationInstanceIds_; + long resourceOwnerId_; + std::string securityToken_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string replicationGroupId_; + std::string ownerAccount_; + std::string sourceInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEREPLICATIONGROUPREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeReplicationGroupResult.h b/dds/include/alibabacloud/dds/model/DescribeReplicationGroupResult.h new file mode 100644 index 000000000..817b01a90 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeReplicationGroupResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DDS_MODEL_DESCRIBEREPLICATIONGROUPRESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEREPLICATIONGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeReplicationGroupResult : public ServiceResult + { + public: + + + DescribeReplicationGroupResult(); + explicit DescribeReplicationGroupResult(const std::string &payload); + ~DescribeReplicationGroupResult(); + std::vector getTunnelContext()const; + + protected: + void parse(const std::string &payload); + private: + std::vector tunnelContext_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEREPLICATIONGROUPRESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeRunningLogRecordsRequest.h b/dds/include/alibabacloud/dds/model/DescribeRunningLogRecordsRequest.h new file mode 100644 index 000000000..92eb617da --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeRunningLogRecordsRequest.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_DDS_MODEL_DESCRIBERUNNINGLOGRECORDSREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBERUNNINGLOGRECORDSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeRunningLogRecordsRequest : public RpcServiceRequest + { + + public: + DescribeRunningLogRecordsRequest(); + ~DescribeRunningLogRecordsRequest(); + + 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); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getRoleType()const; + void setRoleType(const std::string& roleType); + std::string getNodeId()const; + void setNodeId(const std::string& nodeId); + + 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_; + std::string securityToken_; + std::string regionId_; + int pageSize_; + std::string dBInstanceId_; + std::string roleType_; + std::string nodeId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBERUNNINGLOGRECORDSREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeRunningLogRecordsResult.h b/dds/include/alibabacloud/dds/model/DescribeRunningLogRecordsResult.h new file mode 100644 index 000000000..b4742db9c --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeRunningLogRecordsResult.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_DDS_MODEL_DESCRIBERUNNINGLOGRECORDSRESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBERUNNINGLOGRECORDSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeRunningLogRecordsResult : public ServiceResult + { + public: + struct LogRecords + { + std::string connInfo; + std::string category; + long content; + std::string createTime; + int id; + }; + + + DescribeRunningLogRecordsResult(); + explicit DescribeRunningLogRecordsResult(const std::string &payload); + ~DescribeRunningLogRecordsResult(); + int getTotalRecordCount()const; + int getPageRecordCount()const; + int getPageNumber()const; + std::vector getItems()const; + std::string getEngine()const; + + protected: + void parse(const std::string &payload); + private: + int totalRecordCount_; + int pageRecordCount_; + int pageNumber_; + std::vector items_; + std::string engine_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBERUNNINGLOGRECORDSRESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeSecurityIpsRequest.h b/dds/include/alibabacloud/dds/model/DescribeSecurityIpsRequest.h new file mode 100644 index 000000000..d840dcc88 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeSecurityIpsRequest.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_DDS_MODEL_DESCRIBESECURITYIPSREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBESECURITYIPSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeSecurityIpsRequest : public RpcServiceRequest + { + + public: + DescribeSecurityIpsRequest(); + ~DescribeSecurityIpsRequest(); + + 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_DDS_MODEL_DESCRIBESECURITYIPSREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeSecurityIpsResult.h b/dds/include/alibabacloud/dds/model/DescribeSecurityIpsResult.h new file mode 100644 index 000000000..0ae89cb40 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeSecurityIpsResult.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_DDS_MODEL_DESCRIBESECURITYIPSRESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBESECURITYIPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeSecurityIpsResult : public ServiceResult + { + public: + struct SecurityIpGroup + { + std::string securityIpGroupAttribute; + std::string securityIpList; + std::string securityIpGroupName; + }; + + + DescribeSecurityIpsResult(); + explicit DescribeSecurityIpsResult(const std::string &payload); + ~DescribeSecurityIpsResult(); + std::string getSecurityIps()const; + std::vector getSecurityIpGroups()const; + + protected: + void parse(const std::string &payload); + private: + std::string securityIps_; + std::vector securityIpGroups_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBESECURITYIPSRESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeShardingNetworkAddressRequest.h b/dds/include/alibabacloud/dds/model/DescribeShardingNetworkAddressRequest.h new file mode 100644 index 000000000..d27df406a --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeShardingNetworkAddressRequest.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_DDS_MODEL_DESCRIBESHARDINGNETWORKADDRESSREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBESHARDINGNETWORKADDRESSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeShardingNetworkAddressRequest : public RpcServiceRequest + { + + public: + DescribeShardingNetworkAddressRequest(); + ~DescribeShardingNetworkAddressRequest(); + + 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 getNodeId()const; + void setNodeId(const std::string& nodeId); + 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 nodeId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBESHARDINGNETWORKADDRESSREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeShardingNetworkAddressResult.h b/dds/include/alibabacloud/dds/model/DescribeShardingNetworkAddressResult.h new file mode 100644 index 000000000..3bf12f71e --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeShardingNetworkAddressResult.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_DDS_MODEL_DESCRIBESHARDINGNETWORKADDRESSRESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBESHARDINGNETWORKADDRESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeShardingNetworkAddressResult : public ServiceResult + { + public: + struct NetworkAddress + { + std::string networkAddress; + std::string vPCId; + std::string networkType; + std::string port; + std::string expiredTime; + std::string nodeId; + std::string iPAddress; + std::string vswitchId; + }; + + + DescribeShardingNetworkAddressResult(); + explicit DescribeShardingNetworkAddressResult(const std::string &payload); + ~DescribeShardingNetworkAddressResult(); + std::vector getNetworkAddresses()const; + + protected: + void parse(const std::string &payload); + private: + std::vector networkAddresses_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBESHARDINGNETWORKADDRESSRESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeSlowLogRecordsRequest.h b/dds/include/alibabacloud/dds/model/DescribeSlowLogRecordsRequest.h new file mode 100644 index 000000000..8b2e84f75 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeSlowLogRecordsRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_DDS_MODEL_DESCRIBESLOWLOGRECORDSREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBESLOWLOGRECORDSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeSlowLogRecordsRequest : public RpcServiceRequest + { + + 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); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getNodeId()const; + void setNodeId(const std::string& nodeId); + + 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_; + std::string securityToken_; + std::string regionId_; + int pageSize_; + std::string dBInstanceId_; + std::string nodeId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBESLOWLOGRECORDSREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeSlowLogRecordsResult.h b/dds/include/alibabacloud/dds/model/DescribeSlowLogRecordsResult.h new file mode 100644 index 000000000..090456660 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeSlowLogRecordsResult.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_DDS_MODEL_DESCRIBESLOWLOGRECORDSRESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBESLOWLOGRECORDSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeSlowLogRecordsResult : public ServiceResult + { + public: + struct LogRecords + { + std::string queryTimes; + std::string executionStartTime; + long returnRowCounts; + std::string dBName; + long keysExamined; + std::string hostAddress; + long docsExamined; + std::string sQLText; + std::string accountName; + }; + + + DescribeSlowLogRecordsResult(); + explicit DescribeSlowLogRecordsResult(const std::string &payload); + ~DescribeSlowLogRecordsResult(); + int getTotalRecordCount()const; + int getPageRecordCount()const; + int getPageNumber()const; + std::vector getItems()const; + std::string getEngine()const; + + protected: + void parse(const std::string &payload); + private: + int totalRecordCount_; + int pageRecordCount_; + int pageNumber_; + std::vector items_; + std::string engine_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBESLOWLOGRECORDSRESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeStaticVerificationListRequest.h b/dds/include/alibabacloud/dds/model/DescribeStaticVerificationListRequest.h new file mode 100644 index 000000000..9291f3d56 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeStaticVerificationListRequest.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_DDS_MODEL_DESCRIBESTATICVERIFICATIONLISTREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBESTATICVERIFICATIONLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeStaticVerificationListRequest : public RpcServiceRequest + { + + public: + DescribeStaticVerificationListRequest(); + ~DescribeStaticVerificationListRequest(); + + 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); + std::string getDestinationInstanceId()const; + void setDestinationInstanceId(const std::string& destinationInstanceId); + std::string getSourceInstanceId()const; + void setSourceInstanceId(const std::string& sourceInstanceId); + 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_; + std::string destinationInstanceId_; + std::string sourceInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBESTATICVERIFICATIONLISTREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeStaticVerificationListResult.h b/dds/include/alibabacloud/dds/model/DescribeStaticVerificationListResult.h new file mode 100644 index 000000000..76efc4a41 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeStaticVerificationListResult.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_DDS_MODEL_DESCRIBESTATICVERIFICATIONLISTRESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBESTATICVERIFICATIONLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeStaticVerificationListResult : public ServiceResult + { + public: + struct ItemsItem + { + std::string destinationDetail; + std::string sourceDetail; + std::string abnormalType; + }; + + + DescribeStaticVerificationListResult(); + explicit DescribeStaticVerificationListResult(const std::string &payload); + ~DescribeStaticVerificationListResult(); + int getDestinationTableNumber()const; + std::string getDestinationInstanceId()const; + int getDestinationDBNumber()const; + std::string getSourceInstanceId()const; + int getSourceDBNumber()const; + std::string getReplicaId()const; + int getSourceDBSize()const; + int getSourceCountNumber()const; + int getDestinationCountNumber()const; + std::string getConsistencyPercent()const; + std::vector getItems()const; + int getDestinationDBSize()const; + int getSourceTableNumber()const; + + protected: + void parse(const std::string &payload); + private: + int destinationTableNumber_; + std::string destinationInstanceId_; + int destinationDBNumber_; + std::string sourceInstanceId_; + int sourceDBNumber_; + std::string replicaId_; + int sourceDBSize_; + int sourceCountNumber_; + int destinationCountNumber_; + std::string consistencyPercent_; + std::vector items_; + int destinationDBSize_; + int sourceTableNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBESTATICVERIFICATIONLISTRESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeStrategyRequest.h b/dds/include/alibabacloud/dds/model/DescribeStrategyRequest.h new file mode 100644 index 000000000..4e03c5d02 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeStrategyRequest.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_DDS_MODEL_DESCRIBESTRATEGYREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBESTRATEGYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeStrategyRequest : public RpcServiceRequest + { + + public: + DescribeStrategyRequest(); + ~DescribeStrategyRequest(); + + 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_DDS_MODEL_DESCRIBESTRATEGYREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeStrategyResult.h b/dds/include/alibabacloud/dds/model/DescribeStrategyResult.h new file mode 100644 index 000000000..6b6a8834b --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeStrategyResult.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_DDS_MODEL_DESCRIBESTRATEGYRESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBESTRATEGYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeStrategyResult : public ServiceResult + { + public: + + + DescribeStrategyResult(); + explicit DescribeStrategyResult(const std::string &payload); + ~DescribeStrategyResult(); + std::string getRecoveryMode()const; + std::string getReplicaId()const; + std::string getVerificationMode()const; + + protected: + void parse(const std::string &payload); + private: + std::string recoveryMode_; + std::string replicaId_; + std::string verificationMode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBESTRATEGYRESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeVerificationListRequest.h b/dds/include/alibabacloud/dds/model/DescribeVerificationListRequest.h new file mode 100644 index 000000000..4181a8f25 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeVerificationListRequest.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_DDS_MODEL_DESCRIBEVERIFICATIONLISTREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEVERIFICATIONLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeVerificationListRequest : public RpcServiceRequest + { + + public: + DescribeVerificationListRequest(); + ~DescribeVerificationListRequest(); + + 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 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); + int getPageSize()const; + void setPageSize(int pageSize); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string endTime_; + std::string startTime_; + long ownerId_; + int pageNumber_; + std::string accessKeyId_; + std::string securityToken_; + std::string regionId_; + std::string replicaId_; + int pageSize_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEVERIFICATIONLISTREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DescribeVerificationListResult.h b/dds/include/alibabacloud/dds/model/DescribeVerificationListResult.h new file mode 100644 index 000000000..06a554520 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DescribeVerificationListResult.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_DDS_MODEL_DESCRIBEVERIFICATIONLISTRESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_DESCRIBEVERIFICATIONLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DescribeVerificationListResult : public ServiceResult + { + public: + struct ItemsItem + { + std::string inconsistentType; + std::string keyType; + std::string schema; + std::string occurTime; + std::string inconsistentFields; + std::string instanceIdB; + std::string instanceIdA; + std::string key; + }; + + + DescribeVerificationListResult(); + explicit DescribeVerificationListResult(const std::string &payload); + ~DescribeVerificationListResult(); + int getTotalRecordCount()const; + int getPageRecordCount()const; + std::vector getItems()const; + int getPagNumber()const; + std::string getReplicaId()const; + + protected: + void parse(const std::string &payload); + private: + int totalRecordCount_; + int pageRecordCount_; + std::vector items_; + int pagNumber_; + std::string replicaId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEVERIFICATIONLISTRESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DestroyInstanceRequest.h b/dds/include/alibabacloud/dds/model/DestroyInstanceRequest.h new file mode 100644 index 000000000..5f5f560a6 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DestroyInstanceRequest.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_DDS_MODEL_DESTROYINSTANCEREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_DESTROYINSTANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DestroyInstanceRequest : public RpcServiceRequest + { + + public: + DestroyInstanceRequest(); + ~DestroyInstanceRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + 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 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 instanceId_; + std::string securityToken_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string clientToken_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESTROYINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/DestroyInstanceResult.h b/dds/include/alibabacloud/dds/model/DestroyInstanceResult.h new file mode 100644 index 000000000..a74e9055b --- /dev/null +++ b/dds/include/alibabacloud/dds/model/DestroyInstanceResult.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_DDS_MODEL_DESTROYINSTANCERESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_DESTROYINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT DestroyInstanceResult : public ServiceResult + { + public: + + + DestroyInstanceResult(); + explicit DestroyInstanceResult(const std::string &payload); + ~DestroyInstanceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_DESTROYINSTANCERESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/EvaluateFailOverSwitchRequest.h b/dds/include/alibabacloud/dds/model/EvaluateFailOverSwitchRequest.h new file mode 100644 index 000000000..ffce92818 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/EvaluateFailOverSwitchRequest.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_DDS_MODEL_EVALUATEFAILOVERSWITCHREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_EVALUATEFAILOVERSWITCHREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT EvaluateFailOverSwitchRequest : public RpcServiceRequest + { + + public: + EvaluateFailOverSwitchRequest(); + ~EvaluateFailOverSwitchRequest(); + + 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_DDS_MODEL_EVALUATEFAILOVERSWITCHREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/EvaluateFailOverSwitchResult.h b/dds/include/alibabacloud/dds/model/EvaluateFailOverSwitchResult.h new file mode 100644 index 000000000..e868358b0 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/EvaluateFailOverSwitchResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_DDS_MODEL_EVALUATEFAILOVERSWITCHRESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_EVALUATEFAILOVERSWITCHRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT EvaluateFailOverSwitchResult : public ServiceResult + { + public: + struct ItemsItem + { + struct AccountsItem + { + std::string accountDescription; + std::string accountStatus; + std::string accountID; + std::string privExceeded; + std::string accountPrivilege; + std::string accountPrivilegeDetail; + std::string accountType; + std::string engine; + std::string accountName; + }; + bool hasInternetIP; + std::string internetIP; + std::string dBInstanceId; + std::string securityIPList; + std::string readWriteType; + std::string regionId; + std::vector accounts; + std::string instanceNetworkType; + }; + struct ReportsItem + { + std::string checkType; + std::string reasonMessage; + std::string severity; + std::string reasonCode; + }; + + + EvaluateFailOverSwitchResult(); + explicit EvaluateFailOverSwitchResult(const std::string &payload); + ~EvaluateFailOverSwitchResult(); + std::string getEvaluateResult()const; + std::vector getReports()const; + std::vector getItems()const; + std::string getReplicaId()const; + + protected: + void parse(const std::string &payload); + private: + std::string evaluateResult_; + std::vector reports_; + std::vector items_; + std::string replicaId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_EVALUATEFAILOVERSWITCHRESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/ListTagResourcesRequest.h b/dds/include/alibabacloud/dds/model/ListTagResourcesRequest.h new file mode 100644 index 000000000..4aac3b06b --- /dev/null +++ b/dds/include/alibabacloud/dds/model/ListTagResourcesRequest.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_DDS_MODEL_LISTTAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_LISTTAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT ListTagResourcesRequest : public RpcServiceRequest + { + struct Tag + { + std::string value; + std::string key; + }; + + public: + ListTagResourcesRequest(); + ~ListTagResourcesRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::vector getResourceId()const; + void setResourceId(const std::vector& resourceId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getNextToken()const; + void setNextToken(const std::string& nextToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::vector getTag()const; + void setTag(const std::vector& tag); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getResourceType()const; + void setResourceType(const std::string& resourceType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::vector resourceId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string nextToken_; + std::string ownerAccount_; + std::vector tag_; + long ownerId_; + std::string resourceType_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_LISTTAGRESOURCESREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/ListTagResourcesResult.h b/dds/include/alibabacloud/dds/model/ListTagResourcesResult.h new file mode 100644 index 000000000..7311b0235 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/ListTagResourcesResult.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_DDS_MODEL_LISTTAGRESOURCESRESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_LISTTAGRESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT ListTagResourcesResult : public ServiceResult + { + public: + struct TagResource + { + std::string resourceId; + std::string tagKey; + std::string resourceType; + std::string tagValue; + }; + + + ListTagResourcesResult(); + explicit ListTagResourcesResult(const std::string &payload); + ~ListTagResourcesResult(); + std::string getNextToken()const; + std::vector getTagResources()const; + + protected: + void parse(const std::string &payload); + private: + std::string nextToken_; + std::vector tagResources_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_LISTTAGRESOURCESRESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/MigrateAvailableZoneRequest.h b/dds/include/alibabacloud/dds/model/MigrateAvailableZoneRequest.h new file mode 100644 index 000000000..dcf412006 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/MigrateAvailableZoneRequest.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_DDS_MODEL_MIGRATEAVAILABLEZONEREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_MIGRATEAVAILABLEZONEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT MigrateAvailableZoneRequest : public RpcServiceRequest + { + + public: + MigrateAvailableZoneRequest(); + ~MigrateAvailableZoneRequest(); + + std::string getVswitch()const; + void setVswitch(const std::string& vswitch); + 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: + std::string vswitch_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string effectiveTime_; + std::string ownerAccount_; + std::string zoneId_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_MIGRATEAVAILABLEZONEREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/MigrateAvailableZoneResult.h b/dds/include/alibabacloud/dds/model/MigrateAvailableZoneResult.h new file mode 100644 index 000000000..7bae30fb3 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/MigrateAvailableZoneResult.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_DDS_MODEL_MIGRATEAVAILABLEZONERESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_MIGRATEAVAILABLEZONERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT MigrateAvailableZoneResult : public ServiceResult + { + public: + + + MigrateAvailableZoneResult(); + explicit MigrateAvailableZoneResult(const std::string &payload); + ~MigrateAvailableZoneResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_MIGRATEAVAILABLEZONERESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/MigrateToOtherZoneRequest.h b/dds/include/alibabacloud/dds/model/MigrateToOtherZoneRequest.h new file mode 100644 index 000000000..5270bc980 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/MigrateToOtherZoneRequest.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_DDS_MODEL_MIGRATETOOTHERZONEREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_MIGRATETOOTHERZONEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT MigrateToOtherZoneRequest : public RpcServiceRequest + { + + public: + MigrateToOtherZoneRequest(); + ~MigrateToOtherZoneRequest(); + + std::string getVSwitchId()const; + void setVSwitchId(const std::string& vSwitchId); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + 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); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string vSwitchId_; + long resourceOwnerId_; + std::string instanceId_; + std::string resourceOwnerAccount_; + std::string effectiveTime_; + std::string ownerAccount_; + std::string zoneId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_MIGRATETOOTHERZONEREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/MigrateToOtherZoneResult.h b/dds/include/alibabacloud/dds/model/MigrateToOtherZoneResult.h new file mode 100644 index 000000000..28bb3b040 --- /dev/null +++ b/dds/include/alibabacloud/dds/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_DDS_MODEL_MIGRATETOOTHERZONERESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_MIGRATETOOTHERZONERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT MigrateToOtherZoneResult : public ServiceResult + { + public: + + + MigrateToOtherZoneResult(); + explicit MigrateToOtherZoneResult(const std::string &payload); + ~MigrateToOtherZoneResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_MIGRATETOOTHERZONERESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/ModifyAccountDescriptionRequest.h b/dds/include/alibabacloud/dds/model/ModifyAccountDescriptionRequest.h new file mode 100644 index 000000000..e1e5871d2 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/ModifyAccountDescriptionRequest.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_DDS_MODEL_MODIFYACCOUNTDESCRIPTIONREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_MODIFYACCOUNTDESCRIPTIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT ModifyAccountDescriptionRequest : public RpcServiceRequest + { + + public: + ModifyAccountDescriptionRequest(); + ~ModifyAccountDescriptionRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccountName()const; + void setAccountName(const std::string& accountName); + 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 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 securityToken_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accountDescription_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_MODIFYACCOUNTDESCRIPTIONREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/ModifyAccountDescriptionResult.h b/dds/include/alibabacloud/dds/model/ModifyAccountDescriptionResult.h new file mode 100644 index 000000000..38f8fb12e --- /dev/null +++ b/dds/include/alibabacloud/dds/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_DDS_MODEL_MODIFYACCOUNTDESCRIPTIONRESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_MODIFYACCOUNTDESCRIPTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT ModifyAccountDescriptionResult : public ServiceResult + { + public: + + + ModifyAccountDescriptionResult(); + explicit ModifyAccountDescriptionResult(const std::string &payload); + ~ModifyAccountDescriptionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_MODIFYACCOUNTDESCRIPTIONRESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/ModifyActiveOperationTaskRequest.h b/dds/include/alibabacloud/dds/model/ModifyActiveOperationTaskRequest.h new file mode 100644 index 000000000..8d6f74c67 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/ModifyActiveOperationTaskRequest.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_DDS_MODEL_MODIFYACTIVEOPERATIONTASKREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_MODIFYACTIVEOPERATIONTASKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT ModifyActiveOperationTaskRequest : public RpcServiceRequest + { + + public: + ModifyActiveOperationTaskRequest(); + ~ModifyActiveOperationTaskRequest(); + + 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 getIds()const; + void setIds(const std::string& ids); + std::string getSwitchTime()const; + void setSwitchTime(const std::string& switchTime); + 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 ids_; + std::string switchTime_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_MODIFYACTIVEOPERATIONTASKREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/ModifyActiveOperationTaskResult.h b/dds/include/alibabacloud/dds/model/ModifyActiveOperationTaskResult.h new file mode 100644 index 000000000..f5c1c82e0 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/ModifyActiveOperationTaskResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DDS_MODEL_MODIFYACTIVEOPERATIONTASKRESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_MODIFYACTIVEOPERATIONTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT ModifyActiveOperationTaskResult : public ServiceResult + { + public: + + + ModifyActiveOperationTaskResult(); + explicit ModifyActiveOperationTaskResult(const std::string &payload); + ~ModifyActiveOperationTaskResult(); + std::string getIds()const; + + protected: + void parse(const std::string &payload); + private: + std::string ids_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_MODIFYACTIVEOPERATIONTASKRESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/ModifyAuditLogFilterRequest.h b/dds/include/alibabacloud/dds/model/ModifyAuditLogFilterRequest.h new file mode 100644 index 000000000..335eaec11 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/ModifyAuditLogFilterRequest.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_DDS_MODEL_MODIFYAUDITLOGFILTERREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_MODIFYAUDITLOGFILTERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT ModifyAuditLogFilterRequest : public RpcServiceRequest + { + + public: + ModifyAuditLogFilterRequest(); + ~ModifyAuditLogFilterRequest(); + + std::string getFilter()const; + void setFilter(const std::string& filter); + 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 getRoleType()const; + void setRoleType(const std::string& roleType); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string filter_; + long resourceOwnerId_; + std::string securityToken_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string dBInstanceId_; + std::string roleType_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_MODIFYAUDITLOGFILTERREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/ModifyAuditLogFilterResult.h b/dds/include/alibabacloud/dds/model/ModifyAuditLogFilterResult.h new file mode 100644 index 000000000..6ce75261e --- /dev/null +++ b/dds/include/alibabacloud/dds/model/ModifyAuditLogFilterResult.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_DDS_MODEL_MODIFYAUDITLOGFILTERRESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_MODIFYAUDITLOGFILTERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT ModifyAuditLogFilterResult : public ServiceResult + { + public: + + + ModifyAuditLogFilterResult(); + explicit ModifyAuditLogFilterResult(const std::string &payload); + ~ModifyAuditLogFilterResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_MODIFYAUDITLOGFILTERRESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/ModifyAuditPolicyRequest.h b/dds/include/alibabacloud/dds/model/ModifyAuditPolicyRequest.h new file mode 100644 index 000000000..d6b7115c0 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/ModifyAuditPolicyRequest.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_DDS_MODEL_MODIFYAUDITPOLICYREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_MODIFYAUDITPOLICYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT ModifyAuditPolicyRequest : public RpcServiceRequest + { + + public: + ModifyAuditPolicyRequest(); + ~ModifyAuditPolicyRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAuditStatus()const; + void setAuditStatus(const std::string& auditStatus); + int getStoragePeriod()const; + void setStoragePeriod(int storagePeriod); + 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 auditStatus_; + int storagePeriod_; + std::string securityToken_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_MODIFYAUDITPOLICYREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/ModifyAuditPolicyResult.h b/dds/include/alibabacloud/dds/model/ModifyAuditPolicyResult.h new file mode 100644 index 000000000..3b0f3114b --- /dev/null +++ b/dds/include/alibabacloud/dds/model/ModifyAuditPolicyResult.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_DDS_MODEL_MODIFYAUDITPOLICYRESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_MODIFYAUDITPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT ModifyAuditPolicyResult : public ServiceResult + { + public: + + + ModifyAuditPolicyResult(); + explicit ModifyAuditPolicyResult(const std::string &payload); + ~ModifyAuditPolicyResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_MODIFYAUDITPOLICYRESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/ModifyBackupPolicyRequest.h b/dds/include/alibabacloud/dds/model/ModifyBackupPolicyRequest.h new file mode 100644 index 000000000..e9dddbf32 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/ModifyBackupPolicyRequest.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_DDS_MODEL_MODIFYBACKUPPOLICYREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_MODIFYBACKUPPOLICYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT ModifyBackupPolicyRequest : public RpcServiceRequest + { + + public: + ModifyBackupPolicyRequest(); + ~ModifyBackupPolicyRequest(); + + std::string getPreferredBackupTime()const; + void setPreferredBackupTime(const std::string& preferredBackupTime); + std::string getPreferredBackupPeriod()const; + void setPreferredBackupPeriod(const std::string& preferredBackupPeriod); + 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: + std::string preferredBackupTime_; + std::string preferredBackupPeriod_; + long resourceOwnerId_; + std::string securityToken_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_MODIFYBACKUPPOLICYREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/ModifyBackupPolicyResult.h b/dds/include/alibabacloud/dds/model/ModifyBackupPolicyResult.h new file mode 100644 index 000000000..a99ba1eb9 --- /dev/null +++ b/dds/include/alibabacloud/dds/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_DDS_MODEL_MODIFYBACKUPPOLICYRESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_MODIFYBACKUPPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT ModifyBackupPolicyResult : public ServiceResult + { + public: + + + ModifyBackupPolicyResult(); + explicit ModifyBackupPolicyResult(const std::string &payload); + ~ModifyBackupPolicyResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_MODIFYBACKUPPOLICYRESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/ModifyDBInstanceConnectionStringRequest.h b/dds/include/alibabacloud/dds/model/ModifyDBInstanceConnectionStringRequest.h new file mode 100644 index 000000000..1db3ccea7 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/ModifyDBInstanceConnectionStringRequest.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_DDS_MODEL_MODIFYDBINSTANCECONNECTIONSTRINGREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_MODIFYDBINSTANCECONNECTIONSTRINGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT ModifyDBInstanceConnectionStringRequest : public RpcServiceRequest + { + + public: + ModifyDBInstanceConnectionStringRequest(); + ~ModifyDBInstanceConnectionStringRequest(); + + 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 getNewConnectionString()const; + void setNewConnectionString(const std::string& newConnectionString); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getNodeId()const; + void setNodeId(const std::string& nodeId); + 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 securityToken_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string dBInstanceId_; + std::string newConnectionString_; + long ownerId_; + std::string nodeId_; + std::string currentConnectionString_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_MODIFYDBINSTANCECONNECTIONSTRINGREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/ModifyDBInstanceConnectionStringResult.h b/dds/include/alibabacloud/dds/model/ModifyDBInstanceConnectionStringResult.h new file mode 100644 index 000000000..b90b37640 --- /dev/null +++ b/dds/include/alibabacloud/dds/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_DDS_MODEL_MODIFYDBINSTANCECONNECTIONSTRINGRESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_MODIFYDBINSTANCECONNECTIONSTRINGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT ModifyDBInstanceConnectionStringResult : public ServiceResult + { + public: + + + ModifyDBInstanceConnectionStringResult(); + explicit ModifyDBInstanceConnectionStringResult(const std::string &payload); + ~ModifyDBInstanceConnectionStringResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_MODIFYDBINSTANCECONNECTIONSTRINGRESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/ModifyDBInstanceDescriptionRequest.h b/dds/include/alibabacloud/dds/model/ModifyDBInstanceDescriptionRequest.h new file mode 100644 index 000000000..87d912f51 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/ModifyDBInstanceDescriptionRequest.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_DDS_MODEL_MODIFYDBINSTANCEDESCRIPTIONREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_MODIFYDBINSTANCEDESCRIPTIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT ModifyDBInstanceDescriptionRequest : public RpcServiceRequest + { + + public: + ModifyDBInstanceDescriptionRequest(); + ~ModifyDBInstanceDescriptionRequest(); + + 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 getDBInstanceDescription()const; + void setDBInstanceDescription(const std::string& dBInstanceDescription); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getNodeId()const; + void setNodeId(const std::string& nodeId); + 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 dBInstanceDescription_; + long ownerId_; + std::string nodeId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_MODIFYDBINSTANCEDESCRIPTIONREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/ModifyDBInstanceDescriptionResult.h b/dds/include/alibabacloud/dds/model/ModifyDBInstanceDescriptionResult.h new file mode 100644 index 000000000..370badee5 --- /dev/null +++ b/dds/include/alibabacloud/dds/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_DDS_MODEL_MODIFYDBINSTANCEDESCRIPTIONRESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_MODIFYDBINSTANCEDESCRIPTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT ModifyDBInstanceDescriptionResult : public ServiceResult + { + public: + + + ModifyDBInstanceDescriptionResult(); + explicit ModifyDBInstanceDescriptionResult(const std::string &payload); + ~ModifyDBInstanceDescriptionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_MODIFYDBINSTANCEDESCRIPTIONRESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/ModifyDBInstanceMaintainTimeRequest.h b/dds/include/alibabacloud/dds/model/ModifyDBInstanceMaintainTimeRequest.h new file mode 100644 index 000000000..713ce25bb --- /dev/null +++ b/dds/include/alibabacloud/dds/model/ModifyDBInstanceMaintainTimeRequest.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_DDS_MODEL_MODIFYDBINSTANCEMAINTAINTIMEREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_MODIFYDBINSTANCEMAINTAINTIMEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT ModifyDBInstanceMaintainTimeRequest : public RpcServiceRequest + { + + public: + ModifyDBInstanceMaintainTimeRequest(); + ~ModifyDBInstanceMaintainTimeRequest(); + + 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 getMaintainStartTime()const; + void setMaintainStartTime(const std::string& maintainStartTime); + 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 getMaintainEndTime()const; + void setMaintainEndTime(const std::string& maintainEndTime); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string securityToken_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string maintainStartTime_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string maintainEndTime_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_MODIFYDBINSTANCEMAINTAINTIMEREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/ModifyDBInstanceMaintainTimeResult.h b/dds/include/alibabacloud/dds/model/ModifyDBInstanceMaintainTimeResult.h new file mode 100644 index 000000000..9d8922f87 --- /dev/null +++ b/dds/include/alibabacloud/dds/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_DDS_MODEL_MODIFYDBINSTANCEMAINTAINTIMERESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_MODIFYDBINSTANCEMAINTAINTIMERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT ModifyDBInstanceMaintainTimeResult : public ServiceResult + { + public: + + + ModifyDBInstanceMaintainTimeResult(); + explicit ModifyDBInstanceMaintainTimeResult(const std::string &payload); + ~ModifyDBInstanceMaintainTimeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_MODIFYDBINSTANCEMAINTAINTIMERESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/ModifyDBInstanceMonitorRequest.h b/dds/include/alibabacloud/dds/model/ModifyDBInstanceMonitorRequest.h new file mode 100644 index 000000000..4bf2028ac --- /dev/null +++ b/dds/include/alibabacloud/dds/model/ModifyDBInstanceMonitorRequest.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_DDS_MODEL_MODIFYDBINSTANCEMONITORREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_MODIFYDBINSTANCEMONITORREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT ModifyDBInstanceMonitorRequest : public RpcServiceRequest + { + + public: + ModifyDBInstanceMonitorRequest(); + ~ModifyDBInstanceMonitorRequest(); + + 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 getGranularity()const; + void setGranularity(const std::string& granularity); + 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 granularity_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_MODIFYDBINSTANCEMONITORREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/ModifyDBInstanceMonitorResult.h b/dds/include/alibabacloud/dds/model/ModifyDBInstanceMonitorResult.h new file mode 100644 index 000000000..eaec82194 --- /dev/null +++ b/dds/include/alibabacloud/dds/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_DDS_MODEL_MODIFYDBINSTANCEMONITORRESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_MODIFYDBINSTANCEMONITORRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT ModifyDBInstanceMonitorResult : public ServiceResult + { + public: + + + ModifyDBInstanceMonitorResult(); + explicit ModifyDBInstanceMonitorResult(const std::string &payload); + ~ModifyDBInstanceMonitorResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_MODIFYDBINSTANCEMONITORRESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/ModifyDBInstanceNetExpireTimeRequest.h b/dds/include/alibabacloud/dds/model/ModifyDBInstanceNetExpireTimeRequest.h new file mode 100644 index 000000000..2c0dbd55c --- /dev/null +++ b/dds/include/alibabacloud/dds/model/ModifyDBInstanceNetExpireTimeRequest.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_DDS_MODEL_MODIFYDBINSTANCENETEXPIRETIMEREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_MODIFYDBINSTANCENETEXPIRETIMEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT ModifyDBInstanceNetExpireTimeRequest : public RpcServiceRequest + { + + public: + ModifyDBInstanceNetExpireTimeRequest(); + ~ModifyDBInstanceNetExpireTimeRequest(); + + 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 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); + int getClassicExpendExpiredDays()const; + void setClassicExpendExpiredDays(int classicExpendExpiredDays); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string securityToken_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string connectionString_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + int classicExpendExpiredDays_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_MODIFYDBINSTANCENETEXPIRETIMEREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/ModifyDBInstanceNetExpireTimeResult.h b/dds/include/alibabacloud/dds/model/ModifyDBInstanceNetExpireTimeResult.h new file mode 100644 index 000000000..28c26671a --- /dev/null +++ b/dds/include/alibabacloud/dds/model/ModifyDBInstanceNetExpireTimeResult.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_DDS_MODEL_MODIFYDBINSTANCENETEXPIRETIMERESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_MODIFYDBINSTANCENETEXPIRETIMERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT ModifyDBInstanceNetExpireTimeResult : public ServiceResult + { + public: + + + ModifyDBInstanceNetExpireTimeResult(); + explicit ModifyDBInstanceNetExpireTimeResult(const std::string &payload); + ~ModifyDBInstanceNetExpireTimeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_MODIFYDBINSTANCENETEXPIRETIMERESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/ModifyDBInstanceNetworkTypeRequest.h b/dds/include/alibabacloud/dds/model/ModifyDBInstanceNetworkTypeRequest.h new file mode 100644 index 000000000..ff1347eef --- /dev/null +++ b/dds/include/alibabacloud/dds/model/ModifyDBInstanceNetworkTypeRequest.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_DDS_MODEL_MODIFYDBINSTANCENETWORKTYPEREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_MODIFYDBINSTANCENETWORKTYPEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT ModifyDBInstanceNetworkTypeRequest : public RpcServiceRequest + { + + 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); + std::string getNetworkType()const; + void setNetworkType(const std::string& networkType); + 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 getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRetainClassic()const; + void setRetainClassic(const std::string& retainClassic); + int getClassicExpiredDays()const; + void setClassicExpiredDays(int classicExpiredDays); + std::string getVpcId()const; + void setVpcId(const std::string& vpcId); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string networkType_; + long ownerId_; + std::string accessKeyId_; + std::string vSwitchId_; + std::string securityToken_; + std::string regionId_; + std::string retainClassic_; + int classicExpiredDays_; + std::string vpcId_; + std::string dBInstanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_MODIFYDBINSTANCENETWORKTYPEREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/ModifyDBInstanceNetworkTypeResult.h b/dds/include/alibabacloud/dds/model/ModifyDBInstanceNetworkTypeResult.h new file mode 100644 index 000000000..a84310b14 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/ModifyDBInstanceNetworkTypeResult.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_DDS_MODEL_MODIFYDBINSTANCENETWORKTYPERESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_MODIFYDBINSTANCENETWORKTYPERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT ModifyDBInstanceNetworkTypeResult : public ServiceResult + { + public: + + + ModifyDBInstanceNetworkTypeResult(); + explicit ModifyDBInstanceNetworkTypeResult(const std::string &payload); + ~ModifyDBInstanceNetworkTypeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_MODIFYDBINSTANCENETWORKTYPERESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/ModifyDBInstanceSSLRequest.h b/dds/include/alibabacloud/dds/model/ModifyDBInstanceSSLRequest.h new file mode 100644 index 000000000..df24771bd --- /dev/null +++ b/dds/include/alibabacloud/dds/model/ModifyDBInstanceSSLRequest.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_DDS_MODEL_MODIFYDBINSTANCESSLREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_MODIFYDBINSTANCESSLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT ModifyDBInstanceSSLRequest : public RpcServiceRequest + { + + public: + ModifyDBInstanceSSLRequest(); + ~ModifyDBInstanceSSLRequest(); + + 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 getSSLAction()const; + void setSSLAction(const std::string& sSLAction); + 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 sSLAction_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_MODIFYDBINSTANCESSLREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/ModifyDBInstanceSSLResult.h b/dds/include/alibabacloud/dds/model/ModifyDBInstanceSSLResult.h new file mode 100644 index 000000000..54f42f644 --- /dev/null +++ b/dds/include/alibabacloud/dds/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_DDS_MODEL_MODIFYDBINSTANCESSLRESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_MODIFYDBINSTANCESSLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT ModifyDBInstanceSSLResult : public ServiceResult + { + public: + + + ModifyDBInstanceSSLResult(); + explicit ModifyDBInstanceSSLResult(const std::string &payload); + ~ModifyDBInstanceSSLResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_MODIFYDBINSTANCESSLRESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/ModifyDBInstanceSpecRequest.h b/dds/include/alibabacloud/dds/model/ModifyDBInstanceSpecRequest.h new file mode 100644 index 000000000..1e1b5fa2b --- /dev/null +++ b/dds/include/alibabacloud/dds/model/ModifyDBInstanceSpecRequest.h @@ -0,0 +1,96 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DDS_MODEL_MODIFYDBINSTANCESPECREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_MODIFYDBINSTANCESPECREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT ModifyDBInstanceSpecRequest : public RpcServiceRequest + { + + public: + ModifyDBInstanceSpecRequest(); + ~ModifyDBInstanceSpecRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDBInstanceStorage()const; + void setDBInstanceStorage(const std::string& dBInstanceStorage); + bool getAutoPay()const; + void setAutoPay(bool autoPay); + std::string getFromApp()const; + void setFromApp(const std::string& fromApp); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getCouponNo()const; + void setCouponNo(const std::string& couponNo); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getReplicationFactor()const; + void setReplicationFactor(const std::string& replicationFactor); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getDBInstanceClass()const; + void setDBInstanceClass(const std::string& dBInstanceClass); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getEffectiveTime()const; + void setEffectiveTime(const std::string& effectiveTime); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getBusinessInfo()const; + void setBusinessInfo(const std::string& businessInfo); + std::string getOrderType()const; + void setOrderType(const std::string& orderType); + + private: + long resourceOwnerId_; + std::string dBInstanceStorage_; + bool autoPay_; + std::string fromApp_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string couponNo_; + long ownerId_; + std::string replicationFactor_; + std::string accessKeyId_; + std::string dBInstanceClass_; + std::string securityToken_; + std::string regionId_; + std::string effectiveTime_; + std::string dBInstanceId_; + std::string businessInfo_; + std::string orderType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_MODIFYDBINSTANCESPECREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/ModifyDBInstanceSpecResult.h b/dds/include/alibabacloud/dds/model/ModifyDBInstanceSpecResult.h new file mode 100644 index 000000000..ccd7430a3 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/ModifyDBInstanceSpecResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DDS_MODEL_MODIFYDBINSTANCESPECRESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_MODIFYDBINSTANCESPECRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT ModifyDBInstanceSpecResult : public ServiceResult + { + public: + + + ModifyDBInstanceSpecResult(); + explicit ModifyDBInstanceSpecResult(const std::string &payload); + ~ModifyDBInstanceSpecResult(); + std::string getOrderId()const; + + protected: + void parse(const std::string &payload); + private: + std::string orderId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_MODIFYDBINSTANCESPECRESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/ModifyGuardDomainModeRequest.h b/dds/include/alibabacloud/dds/model/ModifyGuardDomainModeRequest.h new file mode 100644 index 000000000..d3287c847 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/ModifyGuardDomainModeRequest.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_DDS_MODEL_MODIFYGUARDDOMAINMODEREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_MODIFYGUARDDOMAINMODEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT ModifyGuardDomainModeRequest : public RpcServiceRequest + { + + 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_DDS_MODEL_MODIFYGUARDDOMAINMODEREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/ModifyGuardDomainModeResult.h b/dds/include/alibabacloud/dds/model/ModifyGuardDomainModeResult.h new file mode 100644 index 000000000..a09abc137 --- /dev/null +++ b/dds/include/alibabacloud/dds/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_DDS_MODEL_MODIFYGUARDDOMAINMODERESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_MODIFYGUARDDOMAINMODERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT ModifyGuardDomainModeResult : public ServiceResult + { + public: + + + ModifyGuardDomainModeResult(); + explicit ModifyGuardDomainModeResult(const std::string &payload); + ~ModifyGuardDomainModeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_MODIFYGUARDDOMAINMODERESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/ModifyInstanceAutoRenewalAttributeRequest.h b/dds/include/alibabacloud/dds/model/ModifyInstanceAutoRenewalAttributeRequest.h new file mode 100644 index 000000000..cb2edd65b --- /dev/null +++ b/dds/include/alibabacloud/dds/model/ModifyInstanceAutoRenewalAttributeRequest.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_DDS_MODEL_MODIFYINSTANCEAUTORENEWALATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_MODIFYINSTANCEAUTORENEWALATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT ModifyInstanceAutoRenewalAttributeRequest : public RpcServiceRequest + { + + 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 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: + std::string duration_; + long resourceOwnerId_; + std::string autoRenew_; + std::string securityToken_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_MODIFYINSTANCEAUTORENEWALATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/ModifyInstanceAutoRenewalAttributeResult.h b/dds/include/alibabacloud/dds/model/ModifyInstanceAutoRenewalAttributeResult.h new file mode 100644 index 000000000..52cfb9a55 --- /dev/null +++ b/dds/include/alibabacloud/dds/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_DDS_MODEL_MODIFYINSTANCEAUTORENEWALATTRIBUTERESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_MODIFYINSTANCEAUTORENEWALATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT ModifyInstanceAutoRenewalAttributeResult : public ServiceResult + { + public: + + + ModifyInstanceAutoRenewalAttributeResult(); + explicit ModifyInstanceAutoRenewalAttributeResult(const std::string &payload); + ~ModifyInstanceAutoRenewalAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_MODIFYINSTANCEAUTORENEWALATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/ModifyNodeSpecRequest.h b/dds/include/alibabacloud/dds/model/ModifyNodeSpecRequest.h new file mode 100644 index 000000000..973685e19 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/ModifyNodeSpecRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_DDS_MODEL_MODIFYNODESPECREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_MODIFYNODESPECREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT ModifyNodeSpecRequest : public RpcServiceRequest + { + + public: + ModifyNodeSpecRequest(); + ~ModifyNodeSpecRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + bool getAutoPay()const; + void setAutoPay(bool autoPay); + std::string getFromApp()const; + void setFromApp(const std::string& fromApp); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + int getNodeStorage()const; + void setNodeStorage(int nodeStorage); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getNodeClass()const; + void setNodeClass(const std::string& nodeClass); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getEffectiveTime()const; + void setEffectiveTime(const std::string& effectiveTime); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getNodeId()const; + void setNodeId(const std::string& nodeId); + + private: + long resourceOwnerId_; + bool autoPay_; + std::string fromApp_; + std::string resourceOwnerAccount_; + std::string clientToken_; + int nodeStorage_; + std::string ownerAccount_; + long ownerId_; + std::string nodeClass_; + std::string accessKeyId_; + std::string securityToken_; + std::string regionId_; + std::string effectiveTime_; + std::string dBInstanceId_; + std::string nodeId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_MODIFYNODESPECREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/ModifyNodeSpecResult.h b/dds/include/alibabacloud/dds/model/ModifyNodeSpecResult.h new file mode 100644 index 000000000..542695f19 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/ModifyNodeSpecResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DDS_MODEL_MODIFYNODESPECRESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_MODIFYNODESPECRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT ModifyNodeSpecResult : public ServiceResult + { + public: + + + ModifyNodeSpecResult(); + explicit ModifyNodeSpecResult(const std::string &payload); + ~ModifyNodeSpecResult(); + std::string getOrderId()const; + + protected: + void parse(const std::string &payload); + private: + std::string orderId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_MODIFYNODESPECRESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/ModifyParametersRequest.h b/dds/include/alibabacloud/dds/model/ModifyParametersRequest.h new file mode 100644 index 000000000..9fe71a735 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/ModifyParametersRequest.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_DDS_MODEL_MODIFYPARAMETERSREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_MODIFYPARAMETERSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT ModifyParametersRequest : public RpcServiceRequest + { + + public: + ModifyParametersRequest(); + ~ModifyParametersRequest(); + + 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 getNodeId()const; + void setNodeId(const std::string& nodeId); + 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 securityToken_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string nodeId_; + std::string parameters_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_MODIFYPARAMETERSREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/ModifyParametersResult.h b/dds/include/alibabacloud/dds/model/ModifyParametersResult.h new file mode 100644 index 000000000..f80e766d4 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/ModifyParametersResult.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_DDS_MODEL_MODIFYPARAMETERSRESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_MODIFYPARAMETERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT ModifyParametersResult : public ServiceResult + { + public: + + + ModifyParametersResult(); + explicit ModifyParametersResult(const std::string &payload); + ~ModifyParametersResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_MODIFYPARAMETERSRESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/ModifyReplicaDescriptionRequest.h b/dds/include/alibabacloud/dds/model/ModifyReplicaDescriptionRequest.h new file mode 100644 index 000000000..2eced847f --- /dev/null +++ b/dds/include/alibabacloud/dds/model/ModifyReplicaDescriptionRequest.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_DDS_MODEL_MODIFYREPLICADESCRIPTIONREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_MODIFYREPLICADESCRIPTIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT ModifyReplicaDescriptionRequest : public RpcServiceRequest + { + + 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_DDS_MODEL_MODIFYREPLICADESCRIPTIONREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/ModifyReplicaDescriptionResult.h b/dds/include/alibabacloud/dds/model/ModifyReplicaDescriptionResult.h new file mode 100644 index 000000000..f872cf4d3 --- /dev/null +++ b/dds/include/alibabacloud/dds/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_DDS_MODEL_MODIFYREPLICADESCRIPTIONRESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_MODIFYREPLICADESCRIPTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT ModifyReplicaDescriptionResult : public ServiceResult + { + public: + + + ModifyReplicaDescriptionResult(); + explicit ModifyReplicaDescriptionResult(const std::string &payload); + ~ModifyReplicaDescriptionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_MODIFYREPLICADESCRIPTIONRESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/ModifyReplicaModeRequest.h b/dds/include/alibabacloud/dds/model/ModifyReplicaModeRequest.h new file mode 100644 index 000000000..d2345ca8b --- /dev/null +++ b/dds/include/alibabacloud/dds/model/ModifyReplicaModeRequest.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_DDS_MODEL_MODIFYREPLICAMODEREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_MODIFYREPLICAMODEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT ModifyReplicaModeRequest : public RpcServiceRequest + { + + 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_DDS_MODEL_MODIFYREPLICAMODEREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/ModifyReplicaModeResult.h b/dds/include/alibabacloud/dds/model/ModifyReplicaModeResult.h new file mode 100644 index 000000000..1195268c7 --- /dev/null +++ b/dds/include/alibabacloud/dds/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_DDS_MODEL_MODIFYREPLICAMODERESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_MODIFYREPLICAMODERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT ModifyReplicaModeResult : public ServiceResult + { + public: + + + ModifyReplicaModeResult(); + explicit ModifyReplicaModeResult(const std::string &payload); + ~ModifyReplicaModeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_MODIFYREPLICAMODERESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/ModifyReplicaRecoveryModeRequest.h b/dds/include/alibabacloud/dds/model/ModifyReplicaRecoveryModeRequest.h new file mode 100644 index 000000000..05424f85c --- /dev/null +++ b/dds/include/alibabacloud/dds/model/ModifyReplicaRecoveryModeRequest.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_DDS_MODEL_MODIFYREPLICARECOVERYMODEREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_MODIFYREPLICARECOVERYMODEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT ModifyReplicaRecoveryModeRequest : public RpcServiceRequest + { + + public: + ModifyReplicaRecoveryModeRequest(); + ~ModifyReplicaRecoveryModeRequest(); + + 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 getRecoveryMode()const; + void setRecoveryMode(const std::string& recoveryMode); + 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 recoveryMode_; + std::string ownerAccount_; + std::string replicaId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_MODIFYREPLICARECOVERYMODEREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/ModifyReplicaRecoveryModeResult.h b/dds/include/alibabacloud/dds/model/ModifyReplicaRecoveryModeResult.h new file mode 100644 index 000000000..2a7834a0e --- /dev/null +++ b/dds/include/alibabacloud/dds/model/ModifyReplicaRecoveryModeResult.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_DDS_MODEL_MODIFYREPLICARECOVERYMODERESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_MODIFYREPLICARECOVERYMODERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT ModifyReplicaRecoveryModeResult : public ServiceResult + { + public: + + + ModifyReplicaRecoveryModeResult(); + explicit ModifyReplicaRecoveryModeResult(const std::string &payload); + ~ModifyReplicaRecoveryModeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_MODIFYREPLICARECOVERYMODERESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/ModifyReplicaRelationRequest.h b/dds/include/alibabacloud/dds/model/ModifyReplicaRelationRequest.h new file mode 100644 index 000000000..9e50691e6 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/ModifyReplicaRelationRequest.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_DDS_MODEL_MODIFYREPLICARELATIONREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_MODIFYREPLICARELATIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT ModifyReplicaRelationRequest : public RpcServiceRequest + { + + 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_DDS_MODEL_MODIFYREPLICARELATIONREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/ModifyReplicaRelationResult.h b/dds/include/alibabacloud/dds/model/ModifyReplicaRelationResult.h new file mode 100644 index 000000000..61d4611a1 --- /dev/null +++ b/dds/include/alibabacloud/dds/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_DDS_MODEL_MODIFYREPLICARELATIONRESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_MODIFYREPLICARELATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT ModifyReplicaRelationResult : public ServiceResult + { + public: + + + ModifyReplicaRelationResult(); + explicit ModifyReplicaRelationResult(const std::string &payload); + ~ModifyReplicaRelationResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_MODIFYREPLICARELATIONRESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/ModifyReplicaVerificationModeRequest.h b/dds/include/alibabacloud/dds/model/ModifyReplicaVerificationModeRequest.h new file mode 100644 index 000000000..65ca36e92 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/ModifyReplicaVerificationModeRequest.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_DDS_MODEL_MODIFYREPLICAVERIFICATIONMODEREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_MODIFYREPLICAVERIFICATIONMODEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT ModifyReplicaVerificationModeRequest : public RpcServiceRequest + { + + public: + ModifyReplicaVerificationModeRequest(); + ~ModifyReplicaVerificationModeRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getVerificationMode()const; + void setVerificationMode(const std::string& verificationMode); + 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 verificationMode_; + std::string securityToken_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string replicaId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_MODIFYREPLICAVERIFICATIONMODEREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/ModifyReplicaVerificationModeResult.h b/dds/include/alibabacloud/dds/model/ModifyReplicaVerificationModeResult.h new file mode 100644 index 000000000..85c275c25 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/ModifyReplicaVerificationModeResult.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_DDS_MODEL_MODIFYREPLICAVERIFICATIONMODERESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_MODIFYREPLICAVERIFICATIONMODERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT ModifyReplicaVerificationModeResult : public ServiceResult + { + public: + + + ModifyReplicaVerificationModeResult(); + explicit ModifyReplicaVerificationModeResult(const std::string &payload); + ~ModifyReplicaVerificationModeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_MODIFYREPLICAVERIFICATIONMODERESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/ModifySecurityIpsRequest.h b/dds/include/alibabacloud/dds/model/ModifySecurityIpsRequest.h new file mode 100644 index 000000000..e1b46d27d --- /dev/null +++ b/dds/include/alibabacloud/dds/model/ModifySecurityIpsRequest.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_DDS_MODEL_MODIFYSECURITYIPSREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_MODIFYSECURITYIPSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT ModifySecurityIpsRequest : public RpcServiceRequest + { + + public: + ModifySecurityIpsRequest(); + ~ModifySecurityIpsRequest(); + + 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 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 getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityIpGroupName()const; + void setSecurityIpGroupName(const std::string& securityIpGroupName); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getSecurityIpGroupAttribute()const; + void setSecurityIpGroupAttribute(const std::string& securityIpGroupAttribute); + + private: + long resourceOwnerId_; + std::string modifyMode_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string securityIps_; + long ownerId_; + std::string accessKeyId_; + std::string securityIpGroupName_; + std::string securityToken_; + std::string regionId_; + std::string dBInstanceId_; + std::string securityIpGroupAttribute_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_MODIFYSECURITYIPSREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/ModifySecurityIpsResult.h b/dds/include/alibabacloud/dds/model/ModifySecurityIpsResult.h new file mode 100644 index 000000000..2029e9c63 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/ModifySecurityIpsResult.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_DDS_MODEL_MODIFYSECURITYIPSRESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_MODIFYSECURITYIPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT ModifySecurityIpsResult : public ServiceResult + { + public: + + + ModifySecurityIpsResult(); + explicit ModifySecurityIpsResult(const std::string &payload); + ~ModifySecurityIpsResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_MODIFYSECURITYIPSRESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/ReleasePublicNetworkAddressRequest.h b/dds/include/alibabacloud/dds/model/ReleasePublicNetworkAddressRequest.h new file mode 100644 index 000000000..6aa8b8891 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/ReleasePublicNetworkAddressRequest.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_DDS_MODEL_RELEASEPUBLICNETWORKADDRESSREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_RELEASEPUBLICNETWORKADDRESSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT ReleasePublicNetworkAddressRequest : public RpcServiceRequest + { + + public: + ReleasePublicNetworkAddressRequest(); + ~ReleasePublicNetworkAddressRequest(); + + 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 getNodeId()const; + void setNodeId(const std::string& nodeId); + 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 nodeId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_RELEASEPUBLICNETWORKADDRESSREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/ReleasePublicNetworkAddressResult.h b/dds/include/alibabacloud/dds/model/ReleasePublicNetworkAddressResult.h new file mode 100644 index 000000000..473d124be --- /dev/null +++ b/dds/include/alibabacloud/dds/model/ReleasePublicNetworkAddressResult.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_DDS_MODEL_RELEASEPUBLICNETWORKADDRESSRESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_RELEASEPUBLICNETWORKADDRESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT ReleasePublicNetworkAddressResult : public ServiceResult + { + public: + + + ReleasePublicNetworkAddressResult(); + explicit ReleasePublicNetworkAddressResult(const std::string &payload); + ~ReleasePublicNetworkAddressResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_RELEASEPUBLICNETWORKADDRESSRESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/ReleaseReplicaRequest.h b/dds/include/alibabacloud/dds/model/ReleaseReplicaRequest.h new file mode 100644 index 000000000..3a6f119a7 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/ReleaseReplicaRequest.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_DDS_MODEL_RELEASEREPLICAREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_RELEASEREPLICAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT ReleaseReplicaRequest : public RpcServiceRequest + { + + 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_DDS_MODEL_RELEASEREPLICAREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/ReleaseReplicaResult.h b/dds/include/alibabacloud/dds/model/ReleaseReplicaResult.h new file mode 100644 index 000000000..896f946d5 --- /dev/null +++ b/dds/include/alibabacloud/dds/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_DDS_MODEL_RELEASEREPLICARESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_RELEASEREPLICARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT ReleaseReplicaResult : public ServiceResult + { + public: + + + ReleaseReplicaResult(); + explicit ReleaseReplicaResult(const std::string &payload); + ~ReleaseReplicaResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_RELEASEREPLICARESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/RenewDBInstanceRequest.h b/dds/include/alibabacloud/dds/model/RenewDBInstanceRequest.h new file mode 100644 index 000000000..9f0451b0a --- /dev/null +++ b/dds/include/alibabacloud/dds/model/RenewDBInstanceRequest.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_DDS_MODEL_RENEWDBINSTANCEREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_RENEWDBINSTANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT RenewDBInstanceRequest : public RpcServiceRequest + { + + public: + RenewDBInstanceRequest(); + ~RenewDBInstanceRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + int getPeriod()const; + void setPeriod(int period); + bool getAutoPay()const; + void setAutoPay(bool autoPay); + 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 getCouponNo()const; + void setCouponNo(const std::string& couponNo); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getBusinessInfo()const; + void setBusinessInfo(const std::string& businessInfo); + + private: + long resourceOwnerId_; + int period_; + bool autoPay_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string ownerAccount_; + std::string couponNo_; + long ownerId_; + std::string accessKeyId_; + std::string securityToken_; + std::string regionId_; + std::string dBInstanceId_; + std::string businessInfo_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_RENEWDBINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/RenewDBInstanceResult.h b/dds/include/alibabacloud/dds/model/RenewDBInstanceResult.h new file mode 100644 index 000000000..716c32b0d --- /dev/null +++ b/dds/include/alibabacloud/dds/model/RenewDBInstanceResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DDS_MODEL_RENEWDBINSTANCERESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_RENEWDBINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT RenewDBInstanceResult : public ServiceResult + { + public: + + + RenewDBInstanceResult(); + explicit RenewDBInstanceResult(const std::string &payload); + ~RenewDBInstanceResult(); + std::string getOrderId()const; + + protected: + void parse(const std::string &payload); + private: + std::string orderId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_RENEWDBINSTANCERESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/ResetAccountPasswordRequest.h b/dds/include/alibabacloud/dds/model/ResetAccountPasswordRequest.h new file mode 100644 index 000000000..a00fb3eca --- /dev/null +++ b/dds/include/alibabacloud/dds/model/ResetAccountPasswordRequest.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_DDS_MODEL_RESETACCOUNTPASSWORDREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_RESETACCOUNTPASSWORDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT ResetAccountPasswordRequest : public RpcServiceRequest + { + + 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 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 accountPassword_; + std::string accountName_; + std::string securityToken_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_RESETACCOUNTPASSWORDREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/ResetAccountPasswordResult.h b/dds/include/alibabacloud/dds/model/ResetAccountPasswordResult.h new file mode 100644 index 000000000..c8da486da --- /dev/null +++ b/dds/include/alibabacloud/dds/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_DDS_MODEL_RESETACCOUNTPASSWORDRESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_RESETACCOUNTPASSWORDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT ResetAccountPasswordResult : public ServiceResult + { + public: + + + ResetAccountPasswordResult(); + explicit ResetAccountPasswordResult(const std::string &payload); + ~ResetAccountPasswordResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_RESETACCOUNTPASSWORDRESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/RestartDBInstanceRequest.h b/dds/include/alibabacloud/dds/model/RestartDBInstanceRequest.h new file mode 100644 index 000000000..9c6a79835 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/RestartDBInstanceRequest.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_DDS_MODEL_RESTARTDBINSTANCEREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_RESTARTDBINSTANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT RestartDBInstanceRequest : public RpcServiceRequest + { + + public: + RestartDBInstanceRequest(); + ~RestartDBInstanceRequest(); + + 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 getNodeId()const; + void setNodeId(const std::string& nodeId); + 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 nodeId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_RESTARTDBINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/RestartDBInstanceResult.h b/dds/include/alibabacloud/dds/model/RestartDBInstanceResult.h new file mode 100644 index 000000000..41cd58268 --- /dev/null +++ b/dds/include/alibabacloud/dds/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_DDS_MODEL_RESTARTDBINSTANCERESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_RESTARTDBINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT RestartDBInstanceResult : public ServiceResult + { + public: + + + RestartDBInstanceResult(); + explicit RestartDBInstanceResult(const std::string &payload); + ~RestartDBInstanceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_RESTARTDBINSTANCERESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/RestoreDBInstanceRequest.h b/dds/include/alibabacloud/dds/model/RestoreDBInstanceRequest.h new file mode 100644 index 000000000..6159c1b70 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/RestoreDBInstanceRequest.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_DDS_MODEL_RESTOREDBINSTANCEREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_RESTOREDBINSTANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT RestoreDBInstanceRequest : public RpcServiceRequest + { + + public: + RestoreDBInstanceRequest(); + ~RestoreDBInstanceRequest(); + + 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); + int getBackupId()const; + void setBackupId(int backupId); + 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_; + int backupId_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_RESTOREDBINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/RestoreDBInstanceResult.h b/dds/include/alibabacloud/dds/model/RestoreDBInstanceResult.h new file mode 100644 index 000000000..8835037bc --- /dev/null +++ b/dds/include/alibabacloud/dds/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_DDS_MODEL_RESTOREDBINSTANCERESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_RESTOREDBINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT RestoreDBInstanceResult : public ServiceResult + { + public: + + + RestoreDBInstanceResult(); + explicit RestoreDBInstanceResult(const std::string &payload); + ~RestoreDBInstanceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_RESTOREDBINSTANCERESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/SampleRequest.h b/dds/include/alibabacloud/dds/model/SampleRequest.h new file mode 100644 index 000000000..5be476ff1 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/SampleRequest.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_DDS_MODEL_SAMPLEREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_SAMPLEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT SampleRequest : public RpcServiceRequest + { + + public: + SampleRequest(); + ~SampleRequest(); + + 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_DDS_MODEL_SAMPLEREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/SampleResult.h b/dds/include/alibabacloud/dds/model/SampleResult.h new file mode 100644 index 000000000..79ac8605e --- /dev/null +++ b/dds/include/alibabacloud/dds/model/SampleResult.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_DDS_MODEL_SAMPLERESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_SAMPLERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT SampleResult : public ServiceResult + { + public: + struct SecurityIpGroup + { + std::string securityIpGroupAttribute; + std::string securityIpList; + std::string securityIpGroupName; + }; + + + SampleResult(); + explicit SampleResult(const std::string &payload); + ~SampleResult(); + std::string getSecurityIps()const; + std::vector getSecurityIpGroups()const; + + protected: + void parse(const std::string &payload); + private: + std::string securityIps_; + std::vector securityIpGroups_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_SAMPLERESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/SwitchDBInstanceHARequest.h b/dds/include/alibabacloud/dds/model/SwitchDBInstanceHARequest.h new file mode 100644 index 000000000..0100630f8 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/SwitchDBInstanceHARequest.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_DDS_MODEL_SWITCHDBINSTANCEHAREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_SWITCHDBINSTANCEHAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT SwitchDBInstanceHARequest : public RpcServiceRequest + { + + public: + SwitchDBInstanceHARequest(); + ~SwitchDBInstanceHARequest(); + + 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); + int getTargetInstanceId()const; + void setTargetInstanceId(int targetInstanceId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + int getSwitchType()const; + void setSwitchType(int switchType); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + int getSourceInstanceId()const; + void setSourceInstanceId(int sourceInstanceId); + std::string getNodeId()const; + void setNodeId(const std::string& nodeId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string accessKeyId_; + int targetInstanceId_; + std::string securityToken_; + std::string regionId_; + int switchType_; + std::string dBInstanceId_; + int sourceInstanceId_; + std::string nodeId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_SWITCHDBINSTANCEHAREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/SwitchDBInstanceHAResult.h b/dds/include/alibabacloud/dds/model/SwitchDBInstanceHAResult.h new file mode 100644 index 000000000..3d3c2cdb4 --- /dev/null +++ b/dds/include/alibabacloud/dds/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_DDS_MODEL_SWITCHDBINSTANCEHARESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_SWITCHDBINSTANCEHARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT SwitchDBInstanceHAResult : public ServiceResult + { + public: + + + SwitchDBInstanceHAResult(); + explicit SwitchDBInstanceHAResult(const std::string &payload); + ~SwitchDBInstanceHAResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_SWITCHDBINSTANCEHARESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/SwithcDBInstanceHARequest.h b/dds/include/alibabacloud/dds/model/SwithcDBInstanceHARequest.h new file mode 100644 index 000000000..bb26f0d11 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/SwithcDBInstanceHARequest.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_DDS_MODEL_SWITHCDBINSTANCEHAREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_SWITHCDBINSTANCEHAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT SwithcDBInstanceHARequest : public RpcServiceRequest + { + + public: + SwithcDBInstanceHARequest(); + ~SwithcDBInstanceHARequest(); + + 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); + int getTargetInstanceId()const; + void setTargetInstanceId(int targetInstanceId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + int getSwitchType()const; + void setSwitchType(int switchType); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + int getSourceInstanceId()const; + void setSourceInstanceId(int sourceInstanceId); + std::string getNodeId()const; + void setNodeId(const std::string& nodeId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string accessKeyId_; + int targetInstanceId_; + std::string securityToken_; + std::string regionId_; + int switchType_; + std::string dBInstanceId_; + int sourceInstanceId_; + std::string nodeId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_SWITHCDBINSTANCEHAREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/SwithcDBInstanceHAResult.h b/dds/include/alibabacloud/dds/model/SwithcDBInstanceHAResult.h new file mode 100644 index 000000000..286a088f6 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/SwithcDBInstanceHAResult.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_DDS_MODEL_SWITHCDBINSTANCEHARESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_SWITHCDBINSTANCEHARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT SwithcDBInstanceHAResult : public ServiceResult + { + public: + + + SwithcDBInstanceHAResult(); + explicit SwithcDBInstanceHAResult(const std::string &payload); + ~SwithcDBInstanceHAResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_SWITHCDBINSTANCEHARESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/TagResourcesRequest.h b/dds/include/alibabacloud/dds/model/TagResourcesRequest.h new file mode 100644 index 000000000..887347c03 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/TagResourcesRequest.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_DDS_MODEL_TAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_TAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT TagResourcesRequest : public RpcServiceRequest + { + struct Tag + { + std::string value; + std::string key; + }; + + public: + TagResourcesRequest(); + ~TagResourcesRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::vector getResourceId()const; + void setResourceId(const std::vector& resourceId); + 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::vector getTag()const; + void setTag(const std::vector& tag); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getResourceType()const; + void setResourceType(const std::string& resourceType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::vector resourceId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::vector tag_; + long ownerId_; + std::string resourceType_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_TAGRESOURCESREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/TagResourcesResult.h b/dds/include/alibabacloud/dds/model/TagResourcesResult.h new file mode 100644 index 000000000..ec4178c82 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/TagResourcesResult.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_DDS_MODEL_TAGRESOURCESRESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_TAGRESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT TagResourcesResult : public ServiceResult + { + public: + + + TagResourcesResult(); + explicit TagResourcesResult(const std::string &payload); + ~TagResourcesResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_TAGRESOURCESRESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/TransformToPrePaidRequest.h b/dds/include/alibabacloud/dds/model/TransformToPrePaidRequest.h new file mode 100644 index 000000000..957c8f439 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/TransformToPrePaidRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_DDS_MODEL_TRANSFORMTOPREPAIDREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_TRANSFORMTOPREPAIDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT TransformToPrePaidRequest : public RpcServiceRequest + { + + public: + TransformToPrePaidRequest(); + ~TransformToPrePaidRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getPeriod()const; + void setPeriod(long period); + bool getAutoPay()const; + void setAutoPay(bool autoPay); + std::string getFromApp()const; + void setFromApp(const std::string& fromApp); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getCouponNo()const; + void setCouponNo(const std::string& couponNo); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getAutoRenew()const; + void setAutoRenew(const std::string& autoRenew); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getBusinessInfo()const; + void setBusinessInfo(const std::string& businessInfo); + + private: + long resourceOwnerId_; + long period_; + bool autoPay_; + std::string fromApp_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string couponNo_; + long ownerId_; + std::string accessKeyId_; + std::string instanceId_; + std::string autoRenew_; + std::string securityToken_; + std::string regionId_; + std::string businessInfo_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_TRANSFORMTOPREPAIDREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/TransformToPrePaidResult.h b/dds/include/alibabacloud/dds/model/TransformToPrePaidResult.h new file mode 100644 index 000000000..7a20c246e --- /dev/null +++ b/dds/include/alibabacloud/dds/model/TransformToPrePaidResult.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_DDS_MODEL_TRANSFORMTOPREPAIDRESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_TRANSFORMTOPREPAIDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT TransformToPrePaidResult : public ServiceResult + { + public: + + + TransformToPrePaidResult(); + explicit TransformToPrePaidResult(const std::string &payload); + ~TransformToPrePaidResult(); + std::string getEndTime()const; + std::string getOrderId()const; + + protected: + void parse(const std::string &payload); + private: + std::string endTime_; + std::string orderId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_TRANSFORMTOPREPAIDRESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/UntagResourcesRequest.h b/dds/include/alibabacloud/dds/model/UntagResourcesRequest.h new file mode 100644 index 000000000..8382e45d7 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/UntagResourcesRequest.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_DDS_MODEL_UNTAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_UNTAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT UntagResourcesRequest : public RpcServiceRequest + { + + public: + UntagResourcesRequest(); + ~UntagResourcesRequest(); + + bool getAll()const; + void setAll(bool all); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::vector getResourceId()const; + void setResourceId(const std::vector& resourceId); + 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); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::vector getTagKey()const; + void setTagKey(const std::vector& tagKey); + std::string getResourceType()const; + void setResourceType(const std::string& resourceType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + bool all_; + long resourceOwnerId_; + std::vector resourceId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + long ownerId_; + std::vector tagKey_; + std::string resourceType_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_UNTAGRESOURCESREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/UntagResourcesResult.h b/dds/include/alibabacloud/dds/model/UntagResourcesResult.h new file mode 100644 index 000000000..dc8a3db7f --- /dev/null +++ b/dds/include/alibabacloud/dds/model/UntagResourcesResult.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_DDS_MODEL_UNTAGRESOURCESRESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_UNTAGRESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT UntagResourcesResult : public ServiceResult + { + public: + + + UntagResourcesResult(); + explicit UntagResourcesResult(const std::string &payload); + ~UntagResourcesResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_UNTAGRESOURCESRESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/UpgradeDBInstanceEngineVersionRequest.h b/dds/include/alibabacloud/dds/model/UpgradeDBInstanceEngineVersionRequest.h new file mode 100644 index 000000000..1c4d89aab --- /dev/null +++ b/dds/include/alibabacloud/dds/model/UpgradeDBInstanceEngineVersionRequest.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_DDS_MODEL_UPGRADEDBINSTANCEENGINEVERSIONREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_UPGRADEDBINSTANCEENGINEVERSIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT UpgradeDBInstanceEngineVersionRequest : public RpcServiceRequest + { + + public: + UpgradeDBInstanceEngineVersionRequest(); + ~UpgradeDBInstanceEngineVersionRequest(); + + 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 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 securityToken_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string dBInstanceId_; + std::string engineVersion_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_UPGRADEDBINSTANCEENGINEVERSIONREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/UpgradeDBInstanceEngineVersionResult.h b/dds/include/alibabacloud/dds/model/UpgradeDBInstanceEngineVersionResult.h new file mode 100644 index 000000000..232d1ada8 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/UpgradeDBInstanceEngineVersionResult.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_DDS_MODEL_UPGRADEDBINSTANCEENGINEVERSIONRESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_UPGRADEDBINSTANCEENGINEVERSIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT UpgradeDBInstanceEngineVersionResult : public ServiceResult + { + public: + + + UpgradeDBInstanceEngineVersionResult(); + explicit UpgradeDBInstanceEngineVersionResult(const std::string &payload); + ~UpgradeDBInstanceEngineVersionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_UPGRADEDBINSTANCEENGINEVERSIONRESULT_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/UpgradeDBInstanceKernelVersionRequest.h b/dds/include/alibabacloud/dds/model/UpgradeDBInstanceKernelVersionRequest.h new file mode 100644 index 000000000..9a3ba24dc --- /dev/null +++ b/dds/include/alibabacloud/dds/model/UpgradeDBInstanceKernelVersionRequest.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_DDS_MODEL_UPGRADEDBINSTANCEKERNELVERSIONREQUEST_H_ +#define ALIBABACLOUD_DDS_MODEL_UPGRADEDBINSTANCEKERNELVERSIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT UpgradeDBInstanceKernelVersionRequest : public RpcServiceRequest + { + + public: + UpgradeDBInstanceKernelVersionRequest(); + ~UpgradeDBInstanceKernelVersionRequest(); + + 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_DDS_MODEL_UPGRADEDBINSTANCEKERNELVERSIONREQUEST_H_ \ No newline at end of file diff --git a/dds/include/alibabacloud/dds/model/UpgradeDBInstanceKernelVersionResult.h b/dds/include/alibabacloud/dds/model/UpgradeDBInstanceKernelVersionResult.h new file mode 100644 index 000000000..f19992387 --- /dev/null +++ b/dds/include/alibabacloud/dds/model/UpgradeDBInstanceKernelVersionResult.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_DDS_MODEL_UPGRADEDBINSTANCEKERNELVERSIONRESULT_H_ +#define ALIBABACLOUD_DDS_MODEL_UPGRADEDBINSTANCEKERNELVERSIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dds + { + namespace Model + { + class ALIBABACLOUD_DDS_EXPORT UpgradeDBInstanceKernelVersionResult : public ServiceResult + { + public: + + + UpgradeDBInstanceKernelVersionResult(); + explicit UpgradeDBInstanceKernelVersionResult(const std::string &payload); + ~UpgradeDBInstanceKernelVersionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_DDS_MODEL_UPGRADEDBINSTANCEKERNELVERSIONRESULT_H_ \ No newline at end of file diff --git a/dds/src/DdsClient.cc b/dds/src/DdsClient.cc new file mode 100644 index 000000000..7456ae0f7 --- /dev/null +++ b/dds/src/DdsClient.cc @@ -0,0 +1,3581 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Dds; +using namespace AlibabaCloud::Dds::Model; + +namespace +{ + const std::string SERVICE_NAME = "Dds"; +} + +DdsClient::DdsClient(const Credentials &credentials, const ClientConfiguration &configuration) : + RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) +{ + auto locationClient = std::make_shared(credentials, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "Dds"); +} + +DdsClient::DdsClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : + RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration) +{ + auto locationClient = std::make_shared(credentialsProvider, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "Dds"); +} + +DdsClient::DdsClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : + RpcServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) +{ + auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "Dds"); +} + +DdsClient::~DdsClient() +{} + +DdsClient::ModifyAuditLogFilterOutcome DdsClient::modifyAuditLogFilter(const ModifyAuditLogFilterRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyAuditLogFilterOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyAuditLogFilterOutcome(ModifyAuditLogFilterResult(outcome.result())); + else + return ModifyAuditLogFilterOutcome(outcome.error()); +} + +void DdsClient::modifyAuditLogFilterAsync(const ModifyAuditLogFilterRequest& request, const ModifyAuditLogFilterAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyAuditLogFilter(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DdsClient::ModifyAuditLogFilterOutcomeCallable DdsClient::modifyAuditLogFilterCallable(const ModifyAuditLogFilterRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyAuditLogFilter(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DdsClient::UntagResourcesOutcome DdsClient::untagResources(const UntagResourcesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UntagResourcesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UntagResourcesOutcome(UntagResourcesResult(outcome.result())); + else + return UntagResourcesOutcome(outcome.error()); +} + +void DdsClient::untagResourcesAsync(const UntagResourcesRequest& request, const UntagResourcesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, untagResources(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DdsClient::UntagResourcesOutcomeCallable DdsClient::untagResourcesCallable(const UntagResourcesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->untagResources(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DdsClient::CheckRecoveryConditionOutcome DdsClient::checkRecoveryCondition(const CheckRecoveryConditionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CheckRecoveryConditionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CheckRecoveryConditionOutcome(CheckRecoveryConditionResult(outcome.result())); + else + return CheckRecoveryConditionOutcome(outcome.error()); +} + +void DdsClient::checkRecoveryConditionAsync(const CheckRecoveryConditionRequest& request, const CheckRecoveryConditionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, checkRecoveryCondition(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DdsClient::CheckRecoveryConditionOutcomeCallable DdsClient::checkRecoveryConditionCallable(const CheckRecoveryConditionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->checkRecoveryCondition(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DdsClient::ModifyParametersOutcome DdsClient::modifyParameters(const ModifyParametersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyParametersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyParametersOutcome(ModifyParametersResult(outcome.result())); + else + return ModifyParametersOutcome(outcome.error()); +} + +void DdsClient::modifyParametersAsync(const ModifyParametersRequest& request, const ModifyParametersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyParameters(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DdsClient::ModifyParametersOutcomeCallable DdsClient::modifyParametersCallable(const ModifyParametersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyParameters(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DdsClient::DescribeDBInstanceMonitorOutcome DdsClient::describeDBInstanceMonitor(const DescribeDBInstanceMonitorRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 DdsClient::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)); +} + +DdsClient::DescribeDBInstanceMonitorOutcomeCallable DdsClient::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(); +} + +DdsClient::DescribeReplicaSetRoleOutcome DdsClient::describeReplicaSetRole(const DescribeReplicaSetRoleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeReplicaSetRoleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeReplicaSetRoleOutcome(DescribeReplicaSetRoleResult(outcome.result())); + else + return DescribeReplicaSetRoleOutcome(outcome.error()); +} + +void DdsClient::describeReplicaSetRoleAsync(const DescribeReplicaSetRoleRequest& request, const DescribeReplicaSetRoleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeReplicaSetRole(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DdsClient::DescribeReplicaSetRoleOutcomeCallable DdsClient::describeReplicaSetRoleCallable(const DescribeReplicaSetRoleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeReplicaSetRole(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DdsClient::ModifyAccountDescriptionOutcome DdsClient::modifyAccountDescription(const ModifyAccountDescriptionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 DdsClient::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)); +} + +DdsClient::ModifyAccountDescriptionOutcomeCallable DdsClient::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(); +} + +DdsClient::DescribeShardingNetworkAddressOutcome DdsClient::describeShardingNetworkAddress(const DescribeShardingNetworkAddressRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeShardingNetworkAddressOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeShardingNetworkAddressOutcome(DescribeShardingNetworkAddressResult(outcome.result())); + else + return DescribeShardingNetworkAddressOutcome(outcome.error()); +} + +void DdsClient::describeShardingNetworkAddressAsync(const DescribeShardingNetworkAddressRequest& request, const DescribeShardingNetworkAddressAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeShardingNetworkAddress(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DdsClient::DescribeShardingNetworkAddressOutcomeCallable DdsClient::describeShardingNetworkAddressCallable(const DescribeShardingNetworkAddressRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeShardingNetworkAddress(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DdsClient::MigrateAvailableZoneOutcome DdsClient::migrateAvailableZone(const MigrateAvailableZoneRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return MigrateAvailableZoneOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return MigrateAvailableZoneOutcome(MigrateAvailableZoneResult(outcome.result())); + else + return MigrateAvailableZoneOutcome(outcome.error()); +} + +void DdsClient::migrateAvailableZoneAsync(const MigrateAvailableZoneRequest& request, const MigrateAvailableZoneAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, migrateAvailableZone(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DdsClient::MigrateAvailableZoneOutcomeCallable DdsClient::migrateAvailableZoneCallable(const MigrateAvailableZoneRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->migrateAvailableZone(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DdsClient::ReleaseReplicaOutcome DdsClient::releaseReplica(const ReleaseReplicaRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 DdsClient::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)); +} + +DdsClient::ReleaseReplicaOutcomeCallable DdsClient::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(); +} + +DdsClient::DescribeActiveOperationTaskOutcome DdsClient::describeActiveOperationTask(const DescribeActiveOperationTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeActiveOperationTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeActiveOperationTaskOutcome(DescribeActiveOperationTaskResult(outcome.result())); + else + return DescribeActiveOperationTaskOutcome(outcome.error()); +} + +void DdsClient::describeActiveOperationTaskAsync(const DescribeActiveOperationTaskRequest& request, const DescribeActiveOperationTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeActiveOperationTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DdsClient::DescribeActiveOperationTaskOutcomeCallable DdsClient::describeActiveOperationTaskCallable(const DescribeActiveOperationTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeActiveOperationTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DdsClient::UpgradeDBInstanceEngineVersionOutcome DdsClient::upgradeDBInstanceEngineVersion(const UpgradeDBInstanceEngineVersionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 DdsClient::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)); +} + +DdsClient::UpgradeDBInstanceEngineVersionOutcomeCallable DdsClient::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(); +} + +DdsClient::ModifyReplicaRecoveryModeOutcome DdsClient::modifyReplicaRecoveryMode(const ModifyReplicaRecoveryModeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyReplicaRecoveryModeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyReplicaRecoveryModeOutcome(ModifyReplicaRecoveryModeResult(outcome.result())); + else + return ModifyReplicaRecoveryModeOutcome(outcome.error()); +} + +void DdsClient::modifyReplicaRecoveryModeAsync(const ModifyReplicaRecoveryModeRequest& request, const ModifyReplicaRecoveryModeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyReplicaRecoveryMode(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DdsClient::ModifyReplicaRecoveryModeOutcomeCallable DdsClient::modifyReplicaRecoveryModeCallable(const ModifyReplicaRecoveryModeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyReplicaRecoveryMode(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DdsClient::ModifyDBInstanceConnectionStringOutcome DdsClient::modifyDBInstanceConnectionString(const ModifyDBInstanceConnectionStringRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 DdsClient::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)); +} + +DdsClient::ModifyDBInstanceConnectionStringOutcomeCallable DdsClient::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(); +} + +DdsClient::DescribeReplicasOutcome DdsClient::describeReplicas(const DescribeReplicasRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeReplicasOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeReplicasOutcome(DescribeReplicasResult(outcome.result())); + else + return DescribeReplicasOutcome(outcome.error()); +} + +void DdsClient::describeReplicasAsync(const DescribeReplicasRequest& request, const DescribeReplicasAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeReplicas(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DdsClient::DescribeReplicasOutcomeCallable DdsClient::describeReplicasCallable(const DescribeReplicasRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeReplicas(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DdsClient::RestartDBInstanceOutcome DdsClient::restartDBInstance(const RestartDBInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 DdsClient::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)); +} + +DdsClient::RestartDBInstanceOutcomeCallable DdsClient::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(); +} + +DdsClient::DescribeReplicaConflictInfoOutcome DdsClient::describeReplicaConflictInfo(const DescribeReplicaConflictInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeReplicaConflictInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeReplicaConflictInfoOutcome(DescribeReplicaConflictInfoResult(outcome.result())); + else + return DescribeReplicaConflictInfoOutcome(outcome.error()); +} + +void DdsClient::describeReplicaConflictInfoAsync(const DescribeReplicaConflictInfoRequest& request, const DescribeReplicaConflictInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeReplicaConflictInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DdsClient::DescribeReplicaConflictInfoOutcomeCallable DdsClient::describeReplicaConflictInfoCallable(const DescribeReplicaConflictInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeReplicaConflictInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DdsClient::DescribeAuditLogFilterOutcome DdsClient::describeAuditLogFilter(const DescribeAuditLogFilterRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAuditLogFilterOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAuditLogFilterOutcome(DescribeAuditLogFilterResult(outcome.result())); + else + return DescribeAuditLogFilterOutcome(outcome.error()); +} + +void DdsClient::describeAuditLogFilterAsync(const DescribeAuditLogFilterRequest& request, const DescribeAuditLogFilterAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAuditLogFilter(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DdsClient::DescribeAuditLogFilterOutcomeCallable DdsClient::describeAuditLogFilterCallable(const DescribeAuditLogFilterRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAuditLogFilter(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DdsClient::DescribeActiveOperationTaskCountOutcome DdsClient::describeActiveOperationTaskCount(const DescribeActiveOperationTaskCountRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeActiveOperationTaskCountOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeActiveOperationTaskCountOutcome(DescribeActiveOperationTaskCountResult(outcome.result())); + else + return DescribeActiveOperationTaskCountOutcome(outcome.error()); +} + +void DdsClient::describeActiveOperationTaskCountAsync(const DescribeActiveOperationTaskCountRequest& request, const DescribeActiveOperationTaskCountAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeActiveOperationTaskCount(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DdsClient::DescribeActiveOperationTaskCountOutcomeCallable DdsClient::describeActiveOperationTaskCountCallable(const DescribeActiveOperationTaskCountRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeActiveOperationTaskCount(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DdsClient::CreateAccountOutcome DdsClient::createAccount(const CreateAccountRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 DdsClient::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)); +} + +DdsClient::CreateAccountOutcomeCallable DdsClient::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(); +} + +DdsClient::ModifyDBInstanceMonitorOutcome DdsClient::modifyDBInstanceMonitor(const ModifyDBInstanceMonitorRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 DdsClient::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)); +} + +DdsClient::ModifyDBInstanceMonitorOutcomeCallable DdsClient::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(); +} + +DdsClient::ModifyReplicaDescriptionOutcome DdsClient::modifyReplicaDescription(const ModifyReplicaDescriptionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 DdsClient::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)); +} + +DdsClient::ModifyReplicaDescriptionOutcomeCallable DdsClient::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(); +} + +DdsClient::DescribeReplicaInitializeProgressOutcome DdsClient::describeReplicaInitializeProgress(const DescribeReplicaInitializeProgressRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 DdsClient::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)); +} + +DdsClient::DescribeReplicaInitializeProgressOutcomeCallable DdsClient::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(); +} + +DdsClient::ModifyBackupPolicyOutcome DdsClient::modifyBackupPolicy(const ModifyBackupPolicyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 DdsClient::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)); +} + +DdsClient::ModifyBackupPolicyOutcomeCallable DdsClient::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(); +} + +DdsClient::DescribeParametersOutcome DdsClient::describeParameters(const DescribeParametersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeParametersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeParametersOutcome(DescribeParametersResult(outcome.result())); + else + return DescribeParametersOutcome(outcome.error()); +} + +void DdsClient::describeParametersAsync(const DescribeParametersRequest& request, const DescribeParametersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeParameters(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DdsClient::DescribeParametersOutcomeCallable DdsClient::describeParametersCallable(const DescribeParametersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeParameters(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DdsClient::DescribeRenewalPriceOutcome DdsClient::describeRenewalPrice(const DescribeRenewalPriceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 DdsClient::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)); +} + +DdsClient::DescribeRenewalPriceOutcomeCallable DdsClient::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(); +} + +DdsClient::DescribeDBInstanceAttributeOutcome DdsClient::describeDBInstanceAttribute(const DescribeDBInstanceAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 DdsClient::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)); +} + +DdsClient::DescribeDBInstanceAttributeOutcomeCallable DdsClient::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(); +} + +DdsClient::CreateStaticVerificationOutcome DdsClient::createStaticVerification(const CreateStaticVerificationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateStaticVerificationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateStaticVerificationOutcome(CreateStaticVerificationResult(outcome.result())); + else + return CreateStaticVerificationOutcome(outcome.error()); +} + +void DdsClient::createStaticVerificationAsync(const CreateStaticVerificationRequest& request, const CreateStaticVerificationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createStaticVerification(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DdsClient::CreateStaticVerificationOutcomeCallable DdsClient::createStaticVerificationCallable(const CreateStaticVerificationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createStaticVerification(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DdsClient::CreateRecommendationTaskOutcome DdsClient::createRecommendationTask(const CreateRecommendationTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateRecommendationTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateRecommendationTaskOutcome(CreateRecommendationTaskResult(outcome.result())); + else + return CreateRecommendationTaskOutcome(outcome.error()); +} + +void DdsClient::createRecommendationTaskAsync(const CreateRecommendationTaskRequest& request, const CreateRecommendationTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createRecommendationTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DdsClient::CreateRecommendationTaskOutcomeCallable DdsClient::createRecommendationTaskCallable(const CreateRecommendationTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createRecommendationTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DdsClient::DescribeActiveOperationTaskTypeOutcome DdsClient::describeActiveOperationTaskType(const DescribeActiveOperationTaskTypeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeActiveOperationTaskTypeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeActiveOperationTaskTypeOutcome(DescribeActiveOperationTaskTypeResult(outcome.result())); + else + return DescribeActiveOperationTaskTypeOutcome(outcome.error()); +} + +void DdsClient::describeActiveOperationTaskTypeAsync(const DescribeActiveOperationTaskTypeRequest& request, const DescribeActiveOperationTaskTypeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeActiveOperationTaskType(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DdsClient::DescribeActiveOperationTaskTypeOutcomeCallable DdsClient::describeActiveOperationTaskTypeCallable(const DescribeActiveOperationTaskTypeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeActiveOperationTaskType(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DdsClient::DescribeAuditPolicyOutcome DdsClient::describeAuditPolicy(const DescribeAuditPolicyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAuditPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAuditPolicyOutcome(DescribeAuditPolicyResult(outcome.result())); + else + return DescribeAuditPolicyOutcome(outcome.error()); +} + +void DdsClient::describeAuditPolicyAsync(const DescribeAuditPolicyRequest& request, const DescribeAuditPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAuditPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DdsClient::DescribeAuditPolicyOutcomeCallable DdsClient::describeAuditPolicyCallable(const DescribeAuditPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAuditPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DdsClient::ModifyInstanceAutoRenewalAttributeOutcome DdsClient::modifyInstanceAutoRenewalAttribute(const ModifyInstanceAutoRenewalAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 DdsClient::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)); +} + +DdsClient::ModifyInstanceAutoRenewalAttributeOutcomeCallable DdsClient::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(); +} + +DdsClient::CreateNodeOutcome DdsClient::createNode(const CreateNodeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateNodeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateNodeOutcome(CreateNodeResult(outcome.result())); + else + return CreateNodeOutcome(outcome.error()); +} + +void DdsClient::createNodeAsync(const CreateNodeRequest& request, const CreateNodeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createNode(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DdsClient::CreateNodeOutcomeCallable DdsClient::createNodeCallable(const CreateNodeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createNode(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DdsClient::SwithcDBInstanceHAOutcome DdsClient::swithcDBInstanceHA(const SwithcDBInstanceHARequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SwithcDBInstanceHAOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SwithcDBInstanceHAOutcome(SwithcDBInstanceHAResult(outcome.result())); + else + return SwithcDBInstanceHAOutcome(outcome.error()); +} + +void DdsClient::swithcDBInstanceHAAsync(const SwithcDBInstanceHARequest& request, const SwithcDBInstanceHAAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, swithcDBInstanceHA(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DdsClient::SwithcDBInstanceHAOutcomeCallable DdsClient::swithcDBInstanceHACallable(const SwithcDBInstanceHARequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->swithcDBInstanceHA(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DdsClient::DescribeAuditRecordsOutcome DdsClient::describeAuditRecords(const DescribeAuditRecordsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAuditRecordsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAuditRecordsOutcome(DescribeAuditRecordsResult(outcome.result())); + else + return DescribeAuditRecordsOutcome(outcome.error()); +} + +void DdsClient::describeAuditRecordsAsync(const DescribeAuditRecordsRequest& request, const DescribeAuditRecordsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAuditRecords(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DdsClient::DescribeAuditRecordsOutcomeCallable DdsClient::describeAuditRecordsCallable(const DescribeAuditRecordsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAuditRecords(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DdsClient::DescribeBackupsOutcome DdsClient::describeBackups(const DescribeBackupsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 DdsClient::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)); +} + +DdsClient::DescribeBackupsOutcomeCallable DdsClient::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(); +} + +DdsClient::DescribeRdsVpcsOutcome DdsClient::describeRdsVpcs(const DescribeRdsVpcsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRdsVpcsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRdsVpcsOutcome(DescribeRdsVpcsResult(outcome.result())); + else + return DescribeRdsVpcsOutcome(outcome.error()); +} + +void DdsClient::describeRdsVpcsAsync(const DescribeRdsVpcsRequest& request, const DescribeRdsVpcsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRdsVpcs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DdsClient::DescribeRdsVpcsOutcomeCallable DdsClient::describeRdsVpcsCallable(const DescribeRdsVpcsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRdsVpcs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DdsClient::DeleteDBInstanceOutcome DdsClient::deleteDBInstance(const DeleteDBInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 DdsClient::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)); +} + +DdsClient::DeleteDBInstanceOutcomeCallable DdsClient::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(); +} + +DdsClient::DescribeInstanceAutoRenewalAttributeOutcome DdsClient::describeInstanceAutoRenewalAttribute(const DescribeInstanceAutoRenewalAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 DdsClient::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)); +} + +DdsClient::DescribeInstanceAutoRenewalAttributeOutcomeCallable DdsClient::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(); +} + +DdsClient::RestoreDBInstanceOutcome DdsClient::restoreDBInstance(const RestoreDBInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 DdsClient::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)); +} + +DdsClient::RestoreDBInstanceOutcomeCallable DdsClient::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(); +} + +DdsClient::DescribeRdsVSwitchsOutcome DdsClient::describeRdsVSwitchs(const DescribeRdsVSwitchsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRdsVSwitchsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRdsVSwitchsOutcome(DescribeRdsVSwitchsResult(outcome.result())); + else + return DescribeRdsVSwitchsOutcome(outcome.error()); +} + +void DdsClient::describeRdsVSwitchsAsync(const DescribeRdsVSwitchsRequest& request, const DescribeRdsVSwitchsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRdsVSwitchs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DdsClient::DescribeRdsVSwitchsOutcomeCallable DdsClient::describeRdsVSwitchsCallable(const DescribeRdsVSwitchsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRdsVSwitchs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DdsClient::ModifyDBInstanceSpecOutcome DdsClient::modifyDBInstanceSpec(const ModifyDBInstanceSpecRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 DdsClient::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)); +} + +DdsClient::ModifyDBInstanceSpecOutcomeCallable DdsClient::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(); +} + +DdsClient::CreateShardingDBInstanceOutcome DdsClient::createShardingDBInstance(const CreateShardingDBInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateShardingDBInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateShardingDBInstanceOutcome(CreateShardingDBInstanceResult(outcome.result())); + else + return CreateShardingDBInstanceOutcome(outcome.error()); +} + +void DdsClient::createShardingDBInstanceAsync(const CreateShardingDBInstanceRequest& request, const CreateShardingDBInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createShardingDBInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DdsClient::CreateShardingDBInstanceOutcomeCallable DdsClient::createShardingDBInstanceCallable(const CreateShardingDBInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createShardingDBInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DdsClient::DescribeErrorLogRecordsOutcome DdsClient::describeErrorLogRecords(const DescribeErrorLogRecordsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeErrorLogRecordsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeErrorLogRecordsOutcome(DescribeErrorLogRecordsResult(outcome.result())); + else + return DescribeErrorLogRecordsOutcome(outcome.error()); +} + +void DdsClient::describeErrorLogRecordsAsync(const DescribeErrorLogRecordsRequest& request, const DescribeErrorLogRecordsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeErrorLogRecords(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DdsClient::DescribeErrorLogRecordsOutcomeCallable DdsClient::describeErrorLogRecordsCallable(const DescribeErrorLogRecordsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeErrorLogRecords(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DdsClient::ModifySecurityIpsOutcome DdsClient::modifySecurityIps(const ModifySecurityIpsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 DdsClient::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)); +} + +DdsClient::ModifySecurityIpsOutcomeCallable DdsClient::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(); +} + +DdsClient::DescribeVerificationListOutcome DdsClient::describeVerificationList(const DescribeVerificationListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeVerificationListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeVerificationListOutcome(DescribeVerificationListResult(outcome.result())); + else + return DescribeVerificationListOutcome(outcome.error()); +} + +void DdsClient::describeVerificationListAsync(const DescribeVerificationListRequest& request, const DescribeVerificationListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeVerificationList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DdsClient::DescribeVerificationListOutcomeCallable DdsClient::describeVerificationListCallable(const DescribeVerificationListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeVerificationList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DdsClient::ModifyReplicaModeOutcome DdsClient::modifyReplicaMode(const ModifyReplicaModeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 DdsClient::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)); +} + +DdsClient::ModifyReplicaModeOutcomeCallable DdsClient::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(); +} + +DdsClient::DescribeStrategyOutcome DdsClient::describeStrategy(const DescribeStrategyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeStrategyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeStrategyOutcome(DescribeStrategyResult(outcome.result())); + else + return DescribeStrategyOutcome(outcome.error()); +} + +void DdsClient::describeStrategyAsync(const DescribeStrategyRequest& request, const DescribeStrategyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeStrategy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DdsClient::DescribeStrategyOutcomeCallable DdsClient::describeStrategyCallable(const DescribeStrategyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeStrategy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DdsClient::TagResourcesOutcome DdsClient::tagResources(const TagResourcesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return TagResourcesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return TagResourcesOutcome(TagResourcesResult(outcome.result())); + else + return TagResourcesOutcome(outcome.error()); +} + +void DdsClient::tagResourcesAsync(const TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, tagResources(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DdsClient::TagResourcesOutcomeCallable DdsClient::tagResourcesCallable(const TagResourcesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->tagResources(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DdsClient::TransformToPrePaidOutcome DdsClient::transformToPrePaid(const TransformToPrePaidRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return TransformToPrePaidOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return TransformToPrePaidOutcome(TransformToPrePaidResult(outcome.result())); + else + return TransformToPrePaidOutcome(outcome.error()); +} + +void DdsClient::transformToPrePaidAsync(const TransformToPrePaidRequest& request, const TransformToPrePaidAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, transformToPrePaid(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DdsClient::TransformToPrePaidOutcomeCallable DdsClient::transformToPrePaidCallable(const TransformToPrePaidRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->transformToPrePaid(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DdsClient::DescribeActiveOperationTaskRegionOutcome DdsClient::describeActiveOperationTaskRegion(const DescribeActiveOperationTaskRegionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeActiveOperationTaskRegionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeActiveOperationTaskRegionOutcome(DescribeActiveOperationTaskRegionResult(outcome.result())); + else + return DescribeActiveOperationTaskRegionOutcome(outcome.error()); +} + +void DdsClient::describeActiveOperationTaskRegionAsync(const DescribeActiveOperationTaskRegionRequest& request, const DescribeActiveOperationTaskRegionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeActiveOperationTaskRegion(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DdsClient::DescribeActiveOperationTaskRegionOutcomeCallable DdsClient::describeActiveOperationTaskRegionCallable(const DescribeActiveOperationTaskRegionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeActiveOperationTaskRegion(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DdsClient::DescribeDBInstancePerformanceOutcome DdsClient::describeDBInstancePerformance(const DescribeDBInstancePerformanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 DdsClient::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)); +} + +DdsClient::DescribeDBInstancePerformanceOutcomeCallable DdsClient::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(); +} + +DdsClient::ListTagResourcesOutcome DdsClient::listTagResources(const ListTagResourcesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListTagResourcesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListTagResourcesOutcome(ListTagResourcesResult(outcome.result())); + else + return ListTagResourcesOutcome(outcome.error()); +} + +void DdsClient::listTagResourcesAsync(const ListTagResourcesRequest& request, const ListTagResourcesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listTagResources(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DdsClient::ListTagResourcesOutcomeCallable DdsClient::listTagResourcesCallable(const ListTagResourcesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listTagResources(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DdsClient::ModifyDBInstanceNetExpireTimeOutcome DdsClient::modifyDBInstanceNetExpireTime(const ModifyDBInstanceNetExpireTimeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDBInstanceNetExpireTimeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDBInstanceNetExpireTimeOutcome(ModifyDBInstanceNetExpireTimeResult(outcome.result())); + else + return ModifyDBInstanceNetExpireTimeOutcome(outcome.error()); +} + +void DdsClient::modifyDBInstanceNetExpireTimeAsync(const ModifyDBInstanceNetExpireTimeRequest& request, const ModifyDBInstanceNetExpireTimeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDBInstanceNetExpireTime(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DdsClient::ModifyDBInstanceNetExpireTimeOutcomeCallable DdsClient::modifyDBInstanceNetExpireTimeCallable(const ModifyDBInstanceNetExpireTimeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDBInstanceNetExpireTime(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DdsClient::DescribeDBInstancesOutcome DdsClient::describeDBInstances(const DescribeDBInstancesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 DdsClient::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)); +} + +DdsClient::DescribeDBInstancesOutcomeCallable DdsClient::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(); +} + +DdsClient::DescribeParameterTemplatesOutcome DdsClient::describeParameterTemplates(const DescribeParameterTemplatesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 DdsClient::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)); +} + +DdsClient::DescribeParameterTemplatesOutcomeCallable DdsClient::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(); +} + +DdsClient::DeleteNodeOutcome DdsClient::deleteNode(const DeleteNodeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteNodeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteNodeOutcome(DeleteNodeResult(outcome.result())); + else + return DeleteNodeOutcome(outcome.error()); +} + +void DdsClient::deleteNodeAsync(const DeleteNodeRequest& request, const DeleteNodeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteNode(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DdsClient::DeleteNodeOutcomeCallable DdsClient::deleteNodeCallable(const DeleteNodeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteNode(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DdsClient::DestroyInstanceOutcome DdsClient::destroyInstance(const DestroyInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DestroyInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DestroyInstanceOutcome(DestroyInstanceResult(outcome.result())); + else + return DestroyInstanceOutcome(outcome.error()); +} + +void DdsClient::destroyInstanceAsync(const DestroyInstanceRequest& request, const DestroyInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, destroyInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DdsClient::DestroyInstanceOutcomeCallable DdsClient::destroyInstanceCallable(const DestroyInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->destroyInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DdsClient::DescribeRunningLogRecordsOutcome DdsClient::describeRunningLogRecords(const DescribeRunningLogRecordsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRunningLogRecordsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRunningLogRecordsOutcome(DescribeRunningLogRecordsResult(outcome.result())); + else + return DescribeRunningLogRecordsOutcome(outcome.error()); +} + +void DdsClient::describeRunningLogRecordsAsync(const DescribeRunningLogRecordsRequest& request, const DescribeRunningLogRecordsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRunningLogRecords(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DdsClient::DescribeRunningLogRecordsOutcomeCallable DdsClient::describeRunningLogRecordsCallable(const DescribeRunningLogRecordsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRunningLogRecords(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DdsClient::CreateDBInstanceOutcome DdsClient::createDBInstance(const CreateDBInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 DdsClient::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)); +} + +DdsClient::CreateDBInstanceOutcomeCallable DdsClient::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(); +} + +DdsClient::ModifyDBInstanceSSLOutcome DdsClient::modifyDBInstanceSSL(const ModifyDBInstanceSSLRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 DdsClient::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)); +} + +DdsClient::ModifyDBInstanceSSLOutcomeCallable DdsClient::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(); +} + +DdsClient::DescribeAuditFilesOutcome DdsClient::describeAuditFiles(const DescribeAuditFilesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAuditFilesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAuditFilesOutcome(DescribeAuditFilesResult(outcome.result())); + else + return DescribeAuditFilesOutcome(outcome.error()); +} + +void DdsClient::describeAuditFilesAsync(const DescribeAuditFilesRequest& request, const DescribeAuditFilesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAuditFiles(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DdsClient::DescribeAuditFilesOutcomeCallable DdsClient::describeAuditFilesCallable(const DescribeAuditFilesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAuditFiles(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DdsClient::DescribeStaticVerificationListOutcome DdsClient::describeStaticVerificationList(const DescribeStaticVerificationListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeStaticVerificationListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeStaticVerificationListOutcome(DescribeStaticVerificationListResult(outcome.result())); + else + return DescribeStaticVerificationListOutcome(outcome.error()); +} + +void DdsClient::describeStaticVerificationListAsync(const DescribeStaticVerificationListRequest& request, const DescribeStaticVerificationListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeStaticVerificationList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DdsClient::DescribeStaticVerificationListOutcomeCallable DdsClient::describeStaticVerificationListCallable(const DescribeStaticVerificationListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeStaticVerificationList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DdsClient::DescribeAvaliableTimeRangeOutcome DdsClient::describeAvaliableTimeRange(const DescribeAvaliableTimeRangeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAvaliableTimeRangeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAvaliableTimeRangeOutcome(DescribeAvaliableTimeRangeResult(outcome.result())); + else + return DescribeAvaliableTimeRangeOutcome(outcome.error()); +} + +void DdsClient::describeAvaliableTimeRangeAsync(const DescribeAvaliableTimeRangeRequest& request, const DescribeAvaliableTimeRangeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAvaliableTimeRange(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DdsClient::DescribeAvaliableTimeRangeOutcomeCallable DdsClient::describeAvaliableTimeRangeCallable(const DescribeAvaliableTimeRangeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAvaliableTimeRange(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DdsClient::AllocatePublicNetworkAddressOutcome DdsClient::allocatePublicNetworkAddress(const AllocatePublicNetworkAddressRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AllocatePublicNetworkAddressOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AllocatePublicNetworkAddressOutcome(AllocatePublicNetworkAddressResult(outcome.result())); + else + return AllocatePublicNetworkAddressOutcome(outcome.error()); +} + +void DdsClient::allocatePublicNetworkAddressAsync(const AllocatePublicNetworkAddressRequest& request, const AllocatePublicNetworkAddressAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, allocatePublicNetworkAddress(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DdsClient::AllocatePublicNetworkAddressOutcomeCallable DdsClient::allocatePublicNetworkAddressCallable(const AllocatePublicNetworkAddressRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->allocatePublicNetworkAddress(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DdsClient::DescribeSecurityIpsOutcome DdsClient::describeSecurityIps(const DescribeSecurityIpsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSecurityIpsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSecurityIpsOutcome(DescribeSecurityIpsResult(outcome.result())); + else + return DescribeSecurityIpsOutcome(outcome.error()); +} + +void DdsClient::describeSecurityIpsAsync(const DescribeSecurityIpsRequest& request, const DescribeSecurityIpsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSecurityIps(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DdsClient::DescribeSecurityIpsOutcomeCallable DdsClient::describeSecurityIpsCallable(const DescribeSecurityIpsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSecurityIps(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DdsClient::DescribeIndexRecommendationOutcome DdsClient::describeIndexRecommendation(const DescribeIndexRecommendationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeIndexRecommendationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeIndexRecommendationOutcome(DescribeIndexRecommendationResult(outcome.result())); + else + return DescribeIndexRecommendationOutcome(outcome.error()); +} + +void DdsClient::describeIndexRecommendationAsync(const DescribeIndexRecommendationRequest& request, const DescribeIndexRecommendationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeIndexRecommendation(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DdsClient::DescribeIndexRecommendationOutcomeCallable DdsClient::describeIndexRecommendationCallable(const DescribeIndexRecommendationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeIndexRecommendation(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DdsClient::DescribeAvailableEngineVersionOutcome DdsClient::describeAvailableEngineVersion(const DescribeAvailableEngineVersionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAvailableEngineVersionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAvailableEngineVersionOutcome(DescribeAvailableEngineVersionResult(outcome.result())); + else + return DescribeAvailableEngineVersionOutcome(outcome.error()); +} + +void DdsClient::describeAvailableEngineVersionAsync(const DescribeAvailableEngineVersionRequest& request, const DescribeAvailableEngineVersionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAvailableEngineVersion(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DdsClient::DescribeAvailableEngineVersionOutcomeCallable DdsClient::describeAvailableEngineVersionCallable(const DescribeAvailableEngineVersionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAvailableEngineVersion(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DdsClient::ModifyReplicaRelationOutcome DdsClient::modifyReplicaRelation(const ModifyReplicaRelationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 DdsClient::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)); +} + +DdsClient::ModifyReplicaRelationOutcomeCallable DdsClient::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(); +} + +DdsClient::ModifyDBInstanceNetworkTypeOutcome DdsClient::modifyDBInstanceNetworkType(const ModifyDBInstanceNetworkTypeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 DdsClient::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)); +} + +DdsClient::ModifyDBInstanceNetworkTypeOutcomeCallable DdsClient::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(); +} + +DdsClient::DescribeKernelReleaseNotesOutcome DdsClient::describeKernelReleaseNotes(const DescribeKernelReleaseNotesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeKernelReleaseNotesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeKernelReleaseNotesOutcome(DescribeKernelReleaseNotesResult(outcome.result())); + else + return DescribeKernelReleaseNotesOutcome(outcome.error()); +} + +void DdsClient::describeKernelReleaseNotesAsync(const DescribeKernelReleaseNotesRequest& request, const DescribeKernelReleaseNotesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeKernelReleaseNotes(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DdsClient::DescribeKernelReleaseNotesOutcomeCallable DdsClient::describeKernelReleaseNotesCallable(const DescribeKernelReleaseNotesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeKernelReleaseNotes(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DdsClient::DescribeAvailableTimeRangeOutcome DdsClient::describeAvailableTimeRange(const DescribeAvailableTimeRangeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAvailableTimeRangeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAvailableTimeRangeOutcome(DescribeAvailableTimeRangeResult(outcome.result())); + else + return DescribeAvailableTimeRangeOutcome(outcome.error()); +} + +void DdsClient::describeAvailableTimeRangeAsync(const DescribeAvailableTimeRangeRequest& request, const DescribeAvailableTimeRangeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAvailableTimeRange(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DdsClient::DescribeAvailableTimeRangeOutcomeCallable DdsClient::describeAvailableTimeRangeCallable(const DescribeAvailableTimeRangeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAvailableTimeRange(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DdsClient::ModifyAuditPolicyOutcome DdsClient::modifyAuditPolicy(const ModifyAuditPolicyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyAuditPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyAuditPolicyOutcome(ModifyAuditPolicyResult(outcome.result())); + else + return ModifyAuditPolicyOutcome(outcome.error()); +} + +void DdsClient::modifyAuditPolicyAsync(const ModifyAuditPolicyRequest& request, const ModifyAuditPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyAuditPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DdsClient::ModifyAuditPolicyOutcomeCallable DdsClient::modifyAuditPolicyCallable(const ModifyAuditPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyAuditPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DdsClient::DescribeReplicaUsageOutcome DdsClient::describeReplicaUsage(const DescribeReplicaUsageRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 DdsClient::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)); +} + +DdsClient::DescribeReplicaUsageOutcomeCallable DdsClient::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(); +} + +DdsClient::CreateBackupOutcome DdsClient::createBackup(const CreateBackupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 DdsClient::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)); +} + +DdsClient::CreateBackupOutcomeCallable DdsClient::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(); +} + +DdsClient::ModifyDBInstanceMaintainTimeOutcome DdsClient::modifyDBInstanceMaintainTime(const ModifyDBInstanceMaintainTimeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 DdsClient::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)); +} + +DdsClient::ModifyDBInstanceMaintainTimeOutcomeCallable DdsClient::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(); +} + +DdsClient::ModifyDBInstanceDescriptionOutcome DdsClient::modifyDBInstanceDescription(const ModifyDBInstanceDescriptionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 DdsClient::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)); +} + +DdsClient::ModifyDBInstanceDescriptionOutcomeCallable DdsClient::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(); +} + +DdsClient::DescribeReplicaPerformanceOutcome DdsClient::describeReplicaPerformance(const DescribeReplicaPerformanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 DdsClient::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)); +} + +DdsClient::DescribeReplicaPerformanceOutcomeCallable DdsClient::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(); +} + +DdsClient::ModifyNodeSpecOutcome DdsClient::modifyNodeSpec(const ModifyNodeSpecRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyNodeSpecOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyNodeSpecOutcome(ModifyNodeSpecResult(outcome.result())); + else + return ModifyNodeSpecOutcome(outcome.error()); +} + +void DdsClient::modifyNodeSpecAsync(const ModifyNodeSpecRequest& request, const ModifyNodeSpecAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyNodeSpec(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DdsClient::ModifyNodeSpecOutcomeCallable DdsClient::modifyNodeSpecCallable(const ModifyNodeSpecRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyNodeSpec(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DdsClient::UpgradeDBInstanceKernelVersionOutcome DdsClient::upgradeDBInstanceKernelVersion(const UpgradeDBInstanceKernelVersionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpgradeDBInstanceKernelVersionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpgradeDBInstanceKernelVersionOutcome(UpgradeDBInstanceKernelVersionResult(outcome.result())); + else + return UpgradeDBInstanceKernelVersionOutcome(outcome.error()); +} + +void DdsClient::upgradeDBInstanceKernelVersionAsync(const UpgradeDBInstanceKernelVersionRequest& request, const UpgradeDBInstanceKernelVersionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, upgradeDBInstanceKernelVersion(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DdsClient::UpgradeDBInstanceKernelVersionOutcomeCallable DdsClient::upgradeDBInstanceKernelVersionCallable(const UpgradeDBInstanceKernelVersionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->upgradeDBInstanceKernelVersion(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DdsClient::DescribeRegionsOutcome DdsClient::describeRegions(const DescribeRegionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 DdsClient::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)); +} + +DdsClient::DescribeRegionsOutcomeCallable DdsClient::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(); +} + +DdsClient::DescribeReplicationGroupOutcome DdsClient::describeReplicationGroup(const DescribeReplicationGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeReplicationGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeReplicationGroupOutcome(DescribeReplicationGroupResult(outcome.result())); + else + return DescribeReplicationGroupOutcome(outcome.error()); +} + +void DdsClient::describeReplicationGroupAsync(const DescribeReplicationGroupRequest& request, const DescribeReplicationGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeReplicationGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DdsClient::DescribeReplicationGroupOutcomeCallable DdsClient::describeReplicationGroupCallable(const DescribeReplicationGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeReplicationGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DdsClient::MigrateToOtherZoneOutcome DdsClient::migrateToOtherZone(const MigrateToOtherZoneRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 DdsClient::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)); +} + +DdsClient::MigrateToOtherZoneOutcomeCallable DdsClient::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(); +} + +DdsClient::DescribeSlowLogRecordsOutcome DdsClient::describeSlowLogRecords(const DescribeSlowLogRecordsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 DdsClient::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)); +} + +DdsClient::DescribeSlowLogRecordsOutcomeCallable DdsClient::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(); +} + +DdsClient::DescribeParameterModificationHistoryOutcome DdsClient::describeParameterModificationHistory(const DescribeParameterModificationHistoryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeParameterModificationHistoryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeParameterModificationHistoryOutcome(DescribeParameterModificationHistoryResult(outcome.result())); + else + return DescribeParameterModificationHistoryOutcome(outcome.error()); +} + +void DdsClient::describeParameterModificationHistoryAsync(const DescribeParameterModificationHistoryRequest& request, const DescribeParameterModificationHistoryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeParameterModificationHistory(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DdsClient::DescribeParameterModificationHistoryOutcomeCallable DdsClient::describeParameterModificationHistoryCallable(const DescribeParameterModificationHistoryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeParameterModificationHistory(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DdsClient::ResetAccountPasswordOutcome DdsClient::resetAccountPassword(const ResetAccountPasswordRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 DdsClient::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)); +} + +DdsClient::ResetAccountPasswordOutcomeCallable DdsClient::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(); +} + +DdsClient::SampleOutcome DdsClient::sample(const SampleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SampleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SampleOutcome(SampleResult(outcome.result())); + else + return SampleOutcome(outcome.error()); +} + +void DdsClient::sampleAsync(const SampleRequest& request, const SampleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, sample(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DdsClient::SampleOutcomeCallable DdsClient::sampleCallable(const SampleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->sample(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DdsClient::ReleasePublicNetworkAddressOutcome DdsClient::releasePublicNetworkAddress(const ReleasePublicNetworkAddressRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ReleasePublicNetworkAddressOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ReleasePublicNetworkAddressOutcome(ReleasePublicNetworkAddressResult(outcome.result())); + else + return ReleasePublicNetworkAddressOutcome(outcome.error()); +} + +void DdsClient::releasePublicNetworkAddressAsync(const ReleasePublicNetworkAddressRequest& request, const ReleasePublicNetworkAddressAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, releasePublicNetworkAddress(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DdsClient::ReleasePublicNetworkAddressOutcomeCallable DdsClient::releasePublicNetworkAddressCallable(const ReleasePublicNetworkAddressRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->releasePublicNetworkAddress(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DdsClient::DescribeAccountsOutcome DdsClient::describeAccounts(const DescribeAccountsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 DdsClient::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)); +} + +DdsClient::DescribeAccountsOutcomeCallable DdsClient::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(); +} + +DdsClient::DescribeDBInstanceSSLOutcome DdsClient::describeDBInstanceSSL(const DescribeDBInstanceSSLRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 DdsClient::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)); +} + +DdsClient::DescribeDBInstanceSSLOutcomeCallable DdsClient::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(); +} + +DdsClient::RenewDBInstanceOutcome DdsClient::renewDBInstance(const RenewDBInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 DdsClient::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)); +} + +DdsClient::RenewDBInstanceOutcomeCallable DdsClient::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(); +} + +DdsClient::EvaluateFailOverSwitchOutcome DdsClient::evaluateFailOverSwitch(const EvaluateFailOverSwitchRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return EvaluateFailOverSwitchOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return EvaluateFailOverSwitchOutcome(EvaluateFailOverSwitchResult(outcome.result())); + else + return EvaluateFailOverSwitchOutcome(outcome.error()); +} + +void DdsClient::evaluateFailOverSwitchAsync(const EvaluateFailOverSwitchRequest& request, const EvaluateFailOverSwitchAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, evaluateFailOverSwitch(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DdsClient::EvaluateFailOverSwitchOutcomeCallable DdsClient::evaluateFailOverSwitchCallable(const EvaluateFailOverSwitchRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->evaluateFailOverSwitch(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DdsClient::ModifyGuardDomainModeOutcome DdsClient::modifyGuardDomainMode(const ModifyGuardDomainModeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 DdsClient::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)); +} + +DdsClient::ModifyGuardDomainModeOutcomeCallable DdsClient::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(); +} + +DdsClient::ModifyReplicaVerificationModeOutcome DdsClient::modifyReplicaVerificationMode(const ModifyReplicaVerificationModeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyReplicaVerificationModeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyReplicaVerificationModeOutcome(ModifyReplicaVerificationModeResult(outcome.result())); + else + return ModifyReplicaVerificationModeOutcome(outcome.error()); +} + +void DdsClient::modifyReplicaVerificationModeAsync(const ModifyReplicaVerificationModeRequest& request, const ModifyReplicaVerificationModeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyReplicaVerificationMode(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DdsClient::ModifyReplicaVerificationModeOutcomeCallable DdsClient::modifyReplicaVerificationModeCallable(const ModifyReplicaVerificationModeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyReplicaVerificationMode(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DdsClient::ModifyActiveOperationTaskOutcome DdsClient::modifyActiveOperationTask(const ModifyActiveOperationTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyActiveOperationTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyActiveOperationTaskOutcome(ModifyActiveOperationTaskResult(outcome.result())); + else + return ModifyActiveOperationTaskOutcome(outcome.error()); +} + +void DdsClient::modifyActiveOperationTaskAsync(const ModifyActiveOperationTaskRequest& request, const ModifyActiveOperationTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyActiveOperationTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DdsClient::ModifyActiveOperationTaskOutcomeCallable DdsClient::modifyActiveOperationTaskCallable(const ModifyActiveOperationTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyActiveOperationTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DdsClient::DescribeBackupPolicyOutcome DdsClient::describeBackupPolicy(const DescribeBackupPolicyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 DdsClient::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)); +} + +DdsClient::DescribeBackupPolicyOutcomeCallable DdsClient::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(); +} + +DdsClient::SwitchDBInstanceHAOutcome DdsClient::switchDBInstanceHA(const SwitchDBInstanceHARequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 DdsClient::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)); +} + +DdsClient::SwitchDBInstanceHAOutcomeCallable DdsClient::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(); +} + +DdsClient::DescribeBackupDBsOutcome DdsClient::describeBackupDBs(const DescribeBackupDBsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeBackupDBsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeBackupDBsOutcome(DescribeBackupDBsResult(outcome.result())); + else + return DescribeBackupDBsOutcome(outcome.error()); +} + +void DdsClient::describeBackupDBsAsync(const DescribeBackupDBsRequest& request, const DescribeBackupDBsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeBackupDBs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DdsClient::DescribeBackupDBsOutcomeCallable DdsClient::describeBackupDBsCallable(const DescribeBackupDBsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeBackupDBs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/dds/src/model/AllocatePublicNetworkAddressRequest.cc b/dds/src/model/AllocatePublicNetworkAddressRequest.cc new file mode 100644 index 000000000..d260e29b6 --- /dev/null +++ b/dds/src/model/AllocatePublicNetworkAddressRequest.cc @@ -0,0 +1,126 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dds::Model::AllocatePublicNetworkAddressRequest; + +AllocatePublicNetworkAddressRequest::AllocatePublicNetworkAddressRequest() : + RpcServiceRequest("dds", "2015-12-01", "AllocatePublicNetworkAddress") +{} + +AllocatePublicNetworkAddressRequest::~AllocatePublicNetworkAddressRequest() +{} + +long AllocatePublicNetworkAddressRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void AllocatePublicNetworkAddressRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string AllocatePublicNetworkAddressRequest::getSecurityToken()const +{ + return securityToken_; +} + +void AllocatePublicNetworkAddressRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string AllocatePublicNetworkAddressRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void AllocatePublicNetworkAddressRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string AllocatePublicNetworkAddressRequest::getRegionId()const +{ + return regionId_; +} + +void AllocatePublicNetworkAddressRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string AllocatePublicNetworkAddressRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void AllocatePublicNetworkAddressRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string AllocatePublicNetworkAddressRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void AllocatePublicNetworkAddressRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setCoreParameter("DBInstanceId", dBInstanceId); +} + +long AllocatePublicNetworkAddressRequest::getOwnerId()const +{ + return ownerId_; +} + +void AllocatePublicNetworkAddressRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string AllocatePublicNetworkAddressRequest::getNodeId()const +{ + return nodeId_; +} + +void AllocatePublicNetworkAddressRequest::setNodeId(const std::string& nodeId) +{ + nodeId_ = nodeId; + setCoreParameter("NodeId", nodeId); +} + +std::string AllocatePublicNetworkAddressRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void AllocatePublicNetworkAddressRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dds/src/model/AllocatePublicNetworkAddressResult.cc b/dds/src/model/AllocatePublicNetworkAddressResult.cc new file mode 100644 index 000000000..7ff80ff98 --- /dev/null +++ b/dds/src/model/AllocatePublicNetworkAddressResult.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::Dds; +using namespace AlibabaCloud::Dds::Model; + +AllocatePublicNetworkAddressResult::AllocatePublicNetworkAddressResult() : + ServiceResult() +{} + +AllocatePublicNetworkAddressResult::AllocatePublicNetworkAddressResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AllocatePublicNetworkAddressResult::~AllocatePublicNetworkAddressResult() +{} + +void AllocatePublicNetworkAddressResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/dds/src/model/CheckRecoveryConditionRequest.cc b/dds/src/model/CheckRecoveryConditionRequest.cc new file mode 100644 index 000000000..ae1fb186a --- /dev/null +++ b/dds/src/model/CheckRecoveryConditionRequest.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 + +using AlibabaCloud::Dds::Model::CheckRecoveryConditionRequest; + +CheckRecoveryConditionRequest::CheckRecoveryConditionRequest() : + RpcServiceRequest("dds", "2015-12-01", "CheckRecoveryCondition") +{} + +CheckRecoveryConditionRequest::~CheckRecoveryConditionRequest() +{} + +long CheckRecoveryConditionRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CheckRecoveryConditionRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CheckRecoveryConditionRequest::getRestoreTime()const +{ + return restoreTime_; +} + +void CheckRecoveryConditionRequest::setRestoreTime(const std::string& restoreTime) +{ + restoreTime_ = restoreTime; + setCoreParameter("RestoreTime", restoreTime); +} + +std::string CheckRecoveryConditionRequest::getDatabaseNames()const +{ + return databaseNames_; +} + +void CheckRecoveryConditionRequest::setDatabaseNames(const std::string& databaseNames) +{ + databaseNames_ = databaseNames; + setCoreParameter("DatabaseNames", databaseNames); +} + +std::string CheckRecoveryConditionRequest::getSecurityToken()const +{ + return securityToken_; +} + +void CheckRecoveryConditionRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string CheckRecoveryConditionRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CheckRecoveryConditionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CheckRecoveryConditionRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CheckRecoveryConditionRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string CheckRecoveryConditionRequest::getBackupId()const +{ + return backupId_; +} + +void CheckRecoveryConditionRequest::setBackupId(const std::string& backupId) +{ + backupId_ = backupId; + setCoreParameter("BackupId", backupId); +} + +std::string CheckRecoveryConditionRequest::getSourceDBInstance()const +{ + return sourceDBInstance_; +} + +void CheckRecoveryConditionRequest::setSourceDBInstance(const std::string& sourceDBInstance) +{ + sourceDBInstance_ = sourceDBInstance; + setCoreParameter("SourceDBInstance", sourceDBInstance); +} + +long CheckRecoveryConditionRequest::getOwnerId()const +{ + return ownerId_; +} + +void CheckRecoveryConditionRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CheckRecoveryConditionRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CheckRecoveryConditionRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dds/src/model/CheckRecoveryConditionResult.cc b/dds/src/model/CheckRecoveryConditionResult.cc new file mode 100644 index 000000000..26b6db285 --- /dev/null +++ b/dds/src/model/CheckRecoveryConditionResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Dds; +using namespace AlibabaCloud::Dds::Model; + +CheckRecoveryConditionResult::CheckRecoveryConditionResult() : + ServiceResult() +{} + +CheckRecoveryConditionResult::CheckRecoveryConditionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CheckRecoveryConditionResult::~CheckRecoveryConditionResult() +{} + +void CheckRecoveryConditionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["DBInstanceName"].isNull()) + dBInstanceName_ = std::stoi(value["DBInstanceName"].asString()); + if(!value["IsValid"].isNull()) + isValid_ = value["IsValid"].asString() == "true"; + +} + +int CheckRecoveryConditionResult::getDBInstanceName()const +{ + return dBInstanceName_; +} + +bool CheckRecoveryConditionResult::getIsValid()const +{ + return isValid_; +} + diff --git a/dds/src/model/CreateAccountRequest.cc b/dds/src/model/CreateAccountRequest.cc new file mode 100644 index 000000000..fd3ec0969 --- /dev/null +++ b/dds/src/model/CreateAccountRequest.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 + +using AlibabaCloud::Dds::Model::CreateAccountRequest; + +CreateAccountRequest::CreateAccountRequest() : + RpcServiceRequest("dds", "2015-12-01", "CreateAccount") +{} + +CreateAccountRequest::~CreateAccountRequest() +{} + +long CreateAccountRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateAccountRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateAccountRequest::getAccountPassword()const +{ + return accountPassword_; +} + +void CreateAccountRequest::setAccountPassword(const std::string& accountPassword) +{ + accountPassword_ = accountPassword; + setCoreParameter("AccountPassword", accountPassword); +} + +std::string CreateAccountRequest::getAccountName()const +{ + return accountName_; +} + +void CreateAccountRequest::setAccountName(const std::string& accountName) +{ + accountName_ = accountName; + setCoreParameter("AccountName", accountName); +} + +std::string CreateAccountRequest::getSecurityToken()const +{ + return securityToken_; +} + +void CreateAccountRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string CreateAccountRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateAccountRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateAccountRequest::getRegionId()const +{ + return regionId_; +} + +void CreateAccountRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string CreateAccountRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateAccountRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string CreateAccountRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void CreateAccountRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setCoreParameter("DBInstanceId", dBInstanceId); +} + +long CreateAccountRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateAccountRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateAccountRequest::getAccountDescription()const +{ + return accountDescription_; +} + +void CreateAccountRequest::setAccountDescription(const std::string& accountDescription) +{ + accountDescription_ = accountDescription; + setCoreParameter("AccountDescription", accountDescription); +} + +std::string CreateAccountRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CreateAccountRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dds/src/model/CreateAccountResult.cc b/dds/src/model/CreateAccountResult.cc new file mode 100644 index 000000000..f26e89d90 --- /dev/null +++ b/dds/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::Dds; +using namespace AlibabaCloud::Dds::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/dds/src/model/CreateBackupRequest.cc b/dds/src/model/CreateBackupRequest.cc new file mode 100644 index 000000000..f4d5c1ec3 --- /dev/null +++ b/dds/src/model/CreateBackupRequest.cc @@ -0,0 +1,126 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dds::Model::CreateBackupRequest; + +CreateBackupRequest::CreateBackupRequest() : + RpcServiceRequest("dds", "2015-12-01", "CreateBackup") +{} + +CreateBackupRequest::~CreateBackupRequest() +{} + +std::string CreateBackupRequest::getBackupMethod()const +{ + return backupMethod_; +} + +void CreateBackupRequest::setBackupMethod(const std::string& backupMethod) +{ + backupMethod_ = backupMethod; + setCoreParameter("BackupMethod", backupMethod); +} + +long CreateBackupRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateBackupRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateBackupRequest::getSecurityToken()const +{ + return securityToken_; +} + +void CreateBackupRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string CreateBackupRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateBackupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateBackupRequest::getRegionId()const +{ + return regionId_; +} + +void CreateBackupRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string CreateBackupRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateBackupRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string CreateBackupRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void CreateBackupRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setCoreParameter("DBInstanceId", dBInstanceId); +} + +long CreateBackupRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateBackupRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateBackupRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CreateBackupRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dds/src/model/CreateBackupResult.cc b/dds/src/model/CreateBackupResult.cc new file mode 100644 index 000000000..3f42e2b19 --- /dev/null +++ b/dds/src/model/CreateBackupResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Dds; +using namespace AlibabaCloud::Dds::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()); + if(!value["BackupId"].isNull()) + backupId_ = value["BackupId"].asString(); + +} + +std::string CreateBackupResult::getBackupId()const +{ + return backupId_; +} + diff --git a/dds/src/model/CreateDBInstanceRequest.cc b/dds/src/model/CreateDBInstanceRequest.cc new file mode 100644 index 000000000..17883a8dd --- /dev/null +++ b/dds/src/model/CreateDBInstanceRequest.cc @@ -0,0 +1,368 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dds::Model::CreateDBInstanceRequest; + +CreateDBInstanceRequest::CreateDBInstanceRequest() : + RpcServiceRequest("dds", "2015-12-01", "CreateDBInstance") +{} + +CreateDBInstanceRequest::~CreateDBInstanceRequest() +{} + +long CreateDBInstanceRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateDBInstanceRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +int CreateDBInstanceRequest::getDBInstanceStorage()const +{ + return dBInstanceStorage_; +} + +void CreateDBInstanceRequest::setDBInstanceStorage(int dBInstanceStorage) +{ + dBInstanceStorage_ = dBInstanceStorage; + setCoreParameter("DBInstanceStorage", std::to_string(dBInstanceStorage)); +} + +std::string CreateDBInstanceRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateDBInstanceRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setCoreParameter("ClientToken", clientToken); +} + +std::string CreateDBInstanceRequest::getCouponNo()const +{ + return couponNo_; +} + +void CreateDBInstanceRequest::setCouponNo(const std::string& couponNo) +{ + couponNo_ = couponNo; + setCoreParameter("CouponNo", couponNo); +} + +std::string CreateDBInstanceRequest::getEngineVersion()const +{ + return engineVersion_; +} + +void CreateDBInstanceRequest::setEngineVersion(const std::string& engineVersion) +{ + engineVersion_ = engineVersion; + setCoreParameter("EngineVersion", engineVersion); +} + +std::string CreateDBInstanceRequest::getNetworkType()const +{ + return networkType_; +} + +void CreateDBInstanceRequest::setNetworkType(const std::string& networkType) +{ + networkType_ = networkType; + setCoreParameter("NetworkType", networkType); +} + +std::string CreateDBInstanceRequest::getReplicationFactor()const +{ + return replicationFactor_; +} + +void CreateDBInstanceRequest::setReplicationFactor(const std::string& replicationFactor) +{ + replicationFactor_ = replicationFactor; + setCoreParameter("ReplicationFactor", replicationFactor); +} + +std::string CreateDBInstanceRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CreateDBInstanceRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string CreateDBInstanceRequest::getStorageEngine()const +{ + return storageEngine_; +} + +void CreateDBInstanceRequest::setStorageEngine(const std::string& storageEngine) +{ + storageEngine_ = storageEngine; + setCoreParameter("StorageEngine", storageEngine); +} + +std::string CreateDBInstanceRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void CreateDBInstanceRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setCoreParameter("ResourceGroupId", resourceGroupId); +} + +std::string CreateDBInstanceRequest::getDatabaseNames()const +{ + return databaseNames_; +} + +void CreateDBInstanceRequest::setDatabaseNames(const std::string& databaseNames) +{ + databaseNames_ = databaseNames; + setCoreParameter("DatabaseNames", databaseNames); +} + +std::string CreateDBInstanceRequest::getSecurityToken()const +{ + return securityToken_; +} + +void CreateDBInstanceRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string CreateDBInstanceRequest::getRegionId()const +{ + return regionId_; +} + +void CreateDBInstanceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string CreateDBInstanceRequest::getEngine()const +{ + return engine_; +} + +void CreateDBInstanceRequest::setEngine(const std::string& engine) +{ + engine_ = engine; + setCoreParameter("Engine", engine); +} + +std::string CreateDBInstanceRequest::getDBInstanceDescription()const +{ + return dBInstanceDescription_; +} + +void CreateDBInstanceRequest::setDBInstanceDescription(const std::string& dBInstanceDescription) +{ + dBInstanceDescription_ = dBInstanceDescription; + setCoreParameter("DBInstanceDescription", dBInstanceDescription); +} + +std::string CreateDBInstanceRequest::getBusinessInfo()const +{ + return businessInfo_; +} + +void CreateDBInstanceRequest::setBusinessInfo(const std::string& businessInfo) +{ + businessInfo_ = businessInfo; + setCoreParameter("BusinessInfo", businessInfo); +} + +int CreateDBInstanceRequest::getPeriod()const +{ + return period_; +} + +void CreateDBInstanceRequest::setPeriod(int period) +{ + period_ = period; + setCoreParameter("Period", std::to_string(period)); +} + +std::string CreateDBInstanceRequest::getRestoreTime()const +{ + return restoreTime_; +} + +void CreateDBInstanceRequest::setRestoreTime(const std::string& restoreTime) +{ + restoreTime_ = restoreTime; + setCoreParameter("RestoreTime", restoreTime); +} + +std::string CreateDBInstanceRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateDBInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateDBInstanceRequest::getSrcDBInstanceId()const +{ + return srcDBInstanceId_; +} + +void CreateDBInstanceRequest::setSrcDBInstanceId(const std::string& srcDBInstanceId) +{ + srcDBInstanceId_ = srcDBInstanceId; + setCoreParameter("SrcDBInstanceId", srcDBInstanceId); +} + +std::string CreateDBInstanceRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateDBInstanceRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string CreateDBInstanceRequest::getBackupId()const +{ + return backupId_; +} + +void CreateDBInstanceRequest::setBackupId(const std::string& backupId) +{ + backupId_ = backupId; + setCoreParameter("BackupId", backupId); +} + +long CreateDBInstanceRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateDBInstanceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateDBInstanceRequest::getDBInstanceClass()const +{ + return dBInstanceClass_; +} + +void CreateDBInstanceRequest::setDBInstanceClass(const std::string& dBInstanceClass) +{ + dBInstanceClass_ = dBInstanceClass; + setCoreParameter("DBInstanceClass", dBInstanceClass); +} + +std::string CreateDBInstanceRequest::getSecurityIPList()const +{ + return securityIPList_; +} + +void CreateDBInstanceRequest::setSecurityIPList(const std::string& securityIPList) +{ + securityIPList_ = securityIPList; + setCoreParameter("SecurityIPList", securityIPList); +} + +std::string CreateDBInstanceRequest::getVSwitchId()const +{ + return vSwitchId_; +} + +void CreateDBInstanceRequest::setVSwitchId(const std::string& vSwitchId) +{ + vSwitchId_ = vSwitchId; + setCoreParameter("VSwitchId", vSwitchId); +} + +std::string CreateDBInstanceRequest::getAccountPassword()const +{ + return accountPassword_; +} + +void CreateDBInstanceRequest::setAccountPassword(const std::string& accountPassword) +{ + accountPassword_ = accountPassword; + setCoreParameter("AccountPassword", accountPassword); +} + +std::string CreateDBInstanceRequest::getAutoRenew()const +{ + return autoRenew_; +} + +void CreateDBInstanceRequest::setAutoRenew(const std::string& autoRenew) +{ + autoRenew_ = autoRenew; + setCoreParameter("AutoRenew", autoRenew); +} + +std::string CreateDBInstanceRequest::getVpcId()const +{ + return vpcId_; +} + +void CreateDBInstanceRequest::setVpcId(const std::string& vpcId) +{ + vpcId_ = vpcId; + setCoreParameter("VpcId", vpcId); +} + +std::string CreateDBInstanceRequest::getZoneId()const +{ + return zoneId_; +} + +void CreateDBInstanceRequest::setZoneId(const std::string& zoneId) +{ + zoneId_ = zoneId; + setCoreParameter("ZoneId", zoneId); +} + +std::string CreateDBInstanceRequest::getChargeType()const +{ + return chargeType_; +} + +void CreateDBInstanceRequest::setChargeType(const std::string& chargeType) +{ + chargeType_ = chargeType; + setCoreParameter("ChargeType", chargeType); +} + diff --git a/dds/src/model/CreateDBInstanceResult.cc b/dds/src/model/CreateDBInstanceResult.cc new file mode 100644 index 000000000..ce34627d5 --- /dev/null +++ b/dds/src/model/CreateDBInstanceResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Dds; +using namespace AlibabaCloud::Dds::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()); + if(!value["OrderId"].isNull()) + orderId_ = value["OrderId"].asString(); + if(!value["DBInstanceId"].isNull()) + dBInstanceId_ = value["DBInstanceId"].asString(); + +} + +std::string CreateDBInstanceResult::getDBInstanceId()const +{ + return dBInstanceId_; +} + +std::string CreateDBInstanceResult::getOrderId()const +{ + return orderId_; +} + diff --git a/dds/src/model/CreateNodeRequest.cc b/dds/src/model/CreateNodeRequest.cc new file mode 100644 index 000000000..4dd94145d --- /dev/null +++ b/dds/src/model/CreateNodeRequest.cc @@ -0,0 +1,181 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dds::Model::CreateNodeRequest; + +CreateNodeRequest::CreateNodeRequest() : + RpcServiceRequest("dds", "2015-12-01", "CreateNode") +{} + +CreateNodeRequest::~CreateNodeRequest() +{} + +long CreateNodeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateNodeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateNodeRequest::getNodeType()const +{ + return nodeType_; +} + +void CreateNodeRequest::setNodeType(const std::string& nodeType) +{ + nodeType_ = nodeType; + setCoreParameter("NodeType", nodeType); +} + +bool CreateNodeRequest::getAutoPay()const +{ + return autoPay_; +} + +void CreateNodeRequest::setAutoPay(bool autoPay) +{ + autoPay_ = autoPay; + setCoreParameter("AutoPay", autoPay ? "true" : "false"); +} + +std::string CreateNodeRequest::getFromApp()const +{ + return fromApp_; +} + +void CreateNodeRequest::setFromApp(const std::string& fromApp) +{ + fromApp_ = fromApp; + setCoreParameter("FromApp", fromApp); +} + +std::string CreateNodeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateNodeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateNodeRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateNodeRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setCoreParameter("ClientToken", clientToken); +} + +int CreateNodeRequest::getNodeStorage()const +{ + return nodeStorage_; +} + +void CreateNodeRequest::setNodeStorage(int nodeStorage) +{ + nodeStorage_ = nodeStorage; + setCoreParameter("NodeStorage", std::to_string(nodeStorage)); +} + +std::string CreateNodeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateNodeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +long CreateNodeRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateNodeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateNodeRequest::getNodeClass()const +{ + return nodeClass_; +} + +void CreateNodeRequest::setNodeClass(const std::string& nodeClass) +{ + nodeClass_ = nodeClass; + setCoreParameter("NodeClass", nodeClass); +} + +std::string CreateNodeRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CreateNodeRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string CreateNodeRequest::getSecurityToken()const +{ + return securityToken_; +} + +void CreateNodeRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string CreateNodeRequest::getRegionId()const +{ + return regionId_; +} + +void CreateNodeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string CreateNodeRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void CreateNodeRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setCoreParameter("DBInstanceId", dBInstanceId); +} + diff --git a/dds/src/model/CreateNodeResult.cc b/dds/src/model/CreateNodeResult.cc new file mode 100644 index 000000000..9eac915c5 --- /dev/null +++ b/dds/src/model/CreateNodeResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Dds; +using namespace AlibabaCloud::Dds::Model; + +CreateNodeResult::CreateNodeResult() : + ServiceResult() +{} + +CreateNodeResult::CreateNodeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateNodeResult::~CreateNodeResult() +{} + +void CreateNodeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["OrderId"].isNull()) + orderId_ = value["OrderId"].asString(); + +} + +std::string CreateNodeResult::getOrderId()const +{ + return orderId_; +} + diff --git a/dds/src/model/CreateRecommendationTaskRequest.cc b/dds/src/model/CreateRecommendationTaskRequest.cc new file mode 100644 index 000000000..d5aa8a4b1 --- /dev/null +++ b/dds/src/model/CreateRecommendationTaskRequest.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 + +using AlibabaCloud::Dds::Model::CreateRecommendationTaskRequest; + +CreateRecommendationTaskRequest::CreateRecommendationTaskRequest() : + RpcServiceRequest("dds", "2015-12-01", "CreateRecommendationTask") +{} + +CreateRecommendationTaskRequest::~CreateRecommendationTaskRequest() +{} + +long CreateRecommendationTaskRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateRecommendationTaskRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateRecommendationTaskRequest::getInstanceId()const +{ + return instanceId_; +} + +void CreateRecommendationTaskRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string CreateRecommendationTaskRequest::getSecurityToken()const +{ + return securityToken_; +} + +void CreateRecommendationTaskRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string CreateRecommendationTaskRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateRecommendationTaskRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateRecommendationTaskRequest::getRegionId()const +{ + return regionId_; +} + +void CreateRecommendationTaskRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string CreateRecommendationTaskRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateRecommendationTaskRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string CreateRecommendationTaskRequest::getEndTime()const +{ + return endTime_; +} + +void CreateRecommendationTaskRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setCoreParameter("EndTime", endTime); +} + +std::string CreateRecommendationTaskRequest::getStartTime()const +{ + return startTime_; +} + +void CreateRecommendationTaskRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setCoreParameter("StartTime", startTime); +} + +long CreateRecommendationTaskRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateRecommendationTaskRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateRecommendationTaskRequest::getNodeId()const +{ + return nodeId_; +} + +void CreateRecommendationTaskRequest::setNodeId(const std::string& nodeId) +{ + nodeId_ = nodeId; + setCoreParameter("NodeId", nodeId); +} + +std::string CreateRecommendationTaskRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CreateRecommendationTaskRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dds/src/model/CreateRecommendationTaskResult.cc b/dds/src/model/CreateRecommendationTaskResult.cc new file mode 100644 index 000000000..585b269ab --- /dev/null +++ b/dds/src/model/CreateRecommendationTaskResult.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::Dds; +using namespace AlibabaCloud::Dds::Model; + +CreateRecommendationTaskResult::CreateRecommendationTaskResult() : + ServiceResult() +{} + +CreateRecommendationTaskResult::CreateRecommendationTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateRecommendationTaskResult::~CreateRecommendationTaskResult() +{} + +void CreateRecommendationTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/dds/src/model/CreateShardingDBInstanceRequest.cc b/dds/src/model/CreateShardingDBInstanceRequest.cc new file mode 100644 index 000000000..ad19fa20d --- /dev/null +++ b/dds/src/model/CreateShardingDBInstanceRequest.cc @@ -0,0 +1,330 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dds::Model::CreateShardingDBInstanceRequest; + +CreateShardingDBInstanceRequest::CreateShardingDBInstanceRequest() : + RpcServiceRequest("dds", "2015-12-01", "CreateShardingDBInstance") +{} + +CreateShardingDBInstanceRequest::~CreateShardingDBInstanceRequest() +{} + +long CreateShardingDBInstanceRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateShardingDBInstanceRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateShardingDBInstanceRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateShardingDBInstanceRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setCoreParameter("ClientToken", clientToken); +} + +std::string CreateShardingDBInstanceRequest::getEngineVersion()const +{ + return engineVersion_; +} + +void CreateShardingDBInstanceRequest::setEngineVersion(const std::string& engineVersion) +{ + engineVersion_ = engineVersion; + setCoreParameter("EngineVersion", engineVersion); +} + +std::string CreateShardingDBInstanceRequest::getNetworkType()const +{ + return networkType_; +} + +void CreateShardingDBInstanceRequest::setNetworkType(const std::string& networkType) +{ + networkType_ = networkType; + setCoreParameter("NetworkType", networkType); +} + +std::vector CreateShardingDBInstanceRequest::getReplicaSet()const +{ + return replicaSet_; +} + +void CreateShardingDBInstanceRequest::setReplicaSet(const std::vector& replicaSet) +{ + replicaSet_ = replicaSet; + int i = 0; + for(int i = 0; i!= replicaSet.size(); i++) { + auto obj = replicaSet.at(i); + std::string str ="ReplicaSet."+ std::to_string(i); + setCoreParameter(str + ".Storage", std::to_string(obj.storage)); + setCoreParameter(str + ".Class", obj.class); + } +} + +std::string CreateShardingDBInstanceRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CreateShardingDBInstanceRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string CreateShardingDBInstanceRequest::getStorageEngine()const +{ + return storageEngine_; +} + +void CreateShardingDBInstanceRequest::setStorageEngine(const std::string& storageEngine) +{ + storageEngine_ = storageEngine; + setCoreParameter("StorageEngine", storageEngine); +} + +std::string CreateShardingDBInstanceRequest::getSecurityToken()const +{ + return securityToken_; +} + +void CreateShardingDBInstanceRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string CreateShardingDBInstanceRequest::getRegionId()const +{ + return regionId_; +} + +void CreateShardingDBInstanceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string CreateShardingDBInstanceRequest::getEngine()const +{ + return engine_; +} + +void CreateShardingDBInstanceRequest::setEngine(const std::string& engine) +{ + engine_ = engine; + setCoreParameter("Engine", engine); +} + +std::string CreateShardingDBInstanceRequest::getDBInstanceDescription()const +{ + return dBInstanceDescription_; +} + +void CreateShardingDBInstanceRequest::setDBInstanceDescription(const std::string& dBInstanceDescription) +{ + dBInstanceDescription_ = dBInstanceDescription; + setCoreParameter("DBInstanceDescription", dBInstanceDescription); +} + +int CreateShardingDBInstanceRequest::getPeriod()const +{ + return period_; +} + +void CreateShardingDBInstanceRequest::setPeriod(int period) +{ + period_ = period; + setCoreParameter("Period", std::to_string(period)); +} + +std::string CreateShardingDBInstanceRequest::getRestoreTime()const +{ + return restoreTime_; +} + +void CreateShardingDBInstanceRequest::setRestoreTime(const std::string& restoreTime) +{ + restoreTime_ = restoreTime; + setCoreParameter("RestoreTime", restoreTime); +} + +std::string CreateShardingDBInstanceRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateShardingDBInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateShardingDBInstanceRequest::getSrcDBInstanceId()const +{ + return srcDBInstanceId_; +} + +void CreateShardingDBInstanceRequest::setSrcDBInstanceId(const std::string& srcDBInstanceId) +{ + srcDBInstanceId_ = srcDBInstanceId; + setCoreParameter("SrcDBInstanceId", srcDBInstanceId); +} + +std::string CreateShardingDBInstanceRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateShardingDBInstanceRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::vector CreateShardingDBInstanceRequest::getConfigServer()const +{ + return configServer_; +} + +void CreateShardingDBInstanceRequest::setConfigServer(const std::vector& configServer) +{ + configServer_ = configServer; + int i = 0; + for(int i = 0; i!= configServer.size(); i++) { + auto obj = configServer.at(i); + std::string str ="ConfigServer."+ std::to_string(i); + setCoreParameter(str + ".Storage", std::to_string(obj.storage)); + setCoreParameter(str + ".Class", obj.class); + } +} + +long CreateShardingDBInstanceRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateShardingDBInstanceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::vector CreateShardingDBInstanceRequest::getMongos()const +{ + return mongos_; +} + +void CreateShardingDBInstanceRequest::setMongos(const std::vector& mongos) +{ + mongos_ = mongos; + int i = 0; + for(int i = 0; i!= mongos.size(); i++) { + auto obj = mongos.at(i); + std::string str ="Mongos."+ std::to_string(i); + setCoreParameter(str + ".Class", obj.class); + } +} + +std::string CreateShardingDBInstanceRequest::getSecurityIPList()const +{ + return securityIPList_; +} + +void CreateShardingDBInstanceRequest::setSecurityIPList(const std::string& securityIPList) +{ + securityIPList_ = securityIPList; + setCoreParameter("SecurityIPList", securityIPList); +} + +std::string CreateShardingDBInstanceRequest::getVSwitchId()const +{ + return vSwitchId_; +} + +void CreateShardingDBInstanceRequest::setVSwitchId(const std::string& vSwitchId) +{ + vSwitchId_ = vSwitchId; + setCoreParameter("VSwitchId", vSwitchId); +} + +std::string CreateShardingDBInstanceRequest::getAccountPassword()const +{ + return accountPassword_; +} + +void CreateShardingDBInstanceRequest::setAccountPassword(const std::string& accountPassword) +{ + accountPassword_ = accountPassword; + setCoreParameter("AccountPassword", accountPassword); +} + +std::string CreateShardingDBInstanceRequest::getAutoRenew()const +{ + return autoRenew_; +} + +void CreateShardingDBInstanceRequest::setAutoRenew(const std::string& autoRenew) +{ + autoRenew_ = autoRenew; + setCoreParameter("AutoRenew", autoRenew); +} + +std::string CreateShardingDBInstanceRequest::getVpcId()const +{ + return vpcId_; +} + +void CreateShardingDBInstanceRequest::setVpcId(const std::string& vpcId) +{ + vpcId_ = vpcId; + setCoreParameter("VpcId", vpcId); +} + +std::string CreateShardingDBInstanceRequest::getZoneId()const +{ + return zoneId_; +} + +void CreateShardingDBInstanceRequest::setZoneId(const std::string& zoneId) +{ + zoneId_ = zoneId; + setCoreParameter("ZoneId", zoneId); +} + +std::string CreateShardingDBInstanceRequest::getChargeType()const +{ + return chargeType_; +} + +void CreateShardingDBInstanceRequest::setChargeType(const std::string& chargeType) +{ + chargeType_ = chargeType; + setCoreParameter("ChargeType", chargeType); +} + diff --git a/dds/src/model/CreateShardingDBInstanceResult.cc b/dds/src/model/CreateShardingDBInstanceResult.cc new file mode 100644 index 000000000..14edf9c87 --- /dev/null +++ b/dds/src/model/CreateShardingDBInstanceResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Dds; +using namespace AlibabaCloud::Dds::Model; + +CreateShardingDBInstanceResult::CreateShardingDBInstanceResult() : + ServiceResult() +{} + +CreateShardingDBInstanceResult::CreateShardingDBInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateShardingDBInstanceResult::~CreateShardingDBInstanceResult() +{} + +void CreateShardingDBInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["OrderId"].isNull()) + orderId_ = value["OrderId"].asString(); + if(!value["DBInstanceId"].isNull()) + dBInstanceId_ = value["DBInstanceId"].asString(); + +} + +std::string CreateShardingDBInstanceResult::getDBInstanceId()const +{ + return dBInstanceId_; +} + +std::string CreateShardingDBInstanceResult::getOrderId()const +{ + return orderId_; +} + diff --git a/dds/src/model/CreateStaticVerificationRequest.cc b/dds/src/model/CreateStaticVerificationRequest.cc new file mode 100644 index 000000000..7ced73897 --- /dev/null +++ b/dds/src/model/CreateStaticVerificationRequest.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 + +using AlibabaCloud::Dds::Model::CreateStaticVerificationRequest; + +CreateStaticVerificationRequest::CreateStaticVerificationRequest() : + RpcServiceRequest("dds", "2015-12-01", "CreateStaticVerification") +{} + +CreateStaticVerificationRequest::~CreateStaticVerificationRequest() +{} + +long CreateStaticVerificationRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateStaticVerificationRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateStaticVerificationRequest::getSecurityToken()const +{ + return securityToken_; +} + +void CreateStaticVerificationRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string CreateStaticVerificationRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateStaticVerificationRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateStaticVerificationRequest::getRegionId()const +{ + return regionId_; +} + +void CreateStaticVerificationRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string CreateStaticVerificationRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateStaticVerificationRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string CreateStaticVerificationRequest::getReplicaId()const +{ + return replicaId_; +} + +void CreateStaticVerificationRequest::setReplicaId(const std::string& replicaId) +{ + replicaId_ = replicaId; + setCoreParameter("ReplicaId", replicaId); +} + +std::string CreateStaticVerificationRequest::getDestinationInstanceId()const +{ + return destinationInstanceId_; +} + +void CreateStaticVerificationRequest::setDestinationInstanceId(const std::string& destinationInstanceId) +{ + destinationInstanceId_ = destinationInstanceId; + setCoreParameter("DestinationInstanceId", destinationInstanceId); +} + +std::string CreateStaticVerificationRequest::getSourceInstanceId()const +{ + return sourceInstanceId_; +} + +void CreateStaticVerificationRequest::setSourceInstanceId(const std::string& sourceInstanceId) +{ + sourceInstanceId_ = sourceInstanceId; + setCoreParameter("SourceInstanceId", sourceInstanceId); +} + +long CreateStaticVerificationRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateStaticVerificationRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateStaticVerificationRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CreateStaticVerificationRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dds/src/model/CreateStaticVerificationResult.cc b/dds/src/model/CreateStaticVerificationResult.cc new file mode 100644 index 000000000..f7b00029e --- /dev/null +++ b/dds/src/model/CreateStaticVerificationResult.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::Dds; +using namespace AlibabaCloud::Dds::Model; + +CreateStaticVerificationResult::CreateStaticVerificationResult() : + ServiceResult() +{} + +CreateStaticVerificationResult::CreateStaticVerificationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateStaticVerificationResult::~CreateStaticVerificationResult() +{} + +void CreateStaticVerificationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/dds/src/model/DeleteDBInstanceRequest.cc b/dds/src/model/DeleteDBInstanceRequest.cc new file mode 100644 index 000000000..a5918c054 --- /dev/null +++ b/dds/src/model/DeleteDBInstanceRequest.cc @@ -0,0 +1,126 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dds::Model::DeleteDBInstanceRequest; + +DeleteDBInstanceRequest::DeleteDBInstanceRequest() : + RpcServiceRequest("dds", "2015-12-01", "DeleteDBInstance") +{} + +DeleteDBInstanceRequest::~DeleteDBInstanceRequest() +{} + +long DeleteDBInstanceRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteDBInstanceRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteDBInstanceRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DeleteDBInstanceRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DeleteDBInstanceRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteDBInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteDBInstanceRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteDBInstanceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DeleteDBInstanceRequest::getClientToken()const +{ + return clientToken_; +} + +void DeleteDBInstanceRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setCoreParameter("ClientToken", clientToken); +} + +std::string DeleteDBInstanceRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteDBInstanceRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string DeleteDBInstanceRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DeleteDBInstanceRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setCoreParameter("DBInstanceId", dBInstanceId); +} + +long DeleteDBInstanceRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteDBInstanceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DeleteDBInstanceRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DeleteDBInstanceRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dds/src/model/DeleteDBInstanceResult.cc b/dds/src/model/DeleteDBInstanceResult.cc new file mode 100644 index 000000000..4d1b2ff2a --- /dev/null +++ b/dds/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::Dds; +using namespace AlibabaCloud::Dds::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/dds/src/model/DeleteNodeRequest.cc b/dds/src/model/DeleteNodeRequest.cc new file mode 100644 index 000000000..cca2305aa --- /dev/null +++ b/dds/src/model/DeleteNodeRequest.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 + +using AlibabaCloud::Dds::Model::DeleteNodeRequest; + +DeleteNodeRequest::DeleteNodeRequest() : + RpcServiceRequest("dds", "2015-12-01", "DeleteNode") +{} + +DeleteNodeRequest::~DeleteNodeRequest() +{} + +long DeleteNodeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteNodeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteNodeRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DeleteNodeRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DeleteNodeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteNodeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteNodeRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteNodeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DeleteNodeRequest::getClientToken()const +{ + return clientToken_; +} + +void DeleteNodeRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setCoreParameter("ClientToken", clientToken); +} + +std::string DeleteNodeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteNodeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string DeleteNodeRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DeleteNodeRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setCoreParameter("DBInstanceId", dBInstanceId); +} + +long DeleteNodeRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteNodeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DeleteNodeRequest::getNodeId()const +{ + return nodeId_; +} + +void DeleteNodeRequest::setNodeId(const std::string& nodeId) +{ + nodeId_ = nodeId; + setCoreParameter("NodeId", nodeId); +} + +std::string DeleteNodeRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DeleteNodeRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dds/src/model/DeleteNodeResult.cc b/dds/src/model/DeleteNodeResult.cc new file mode 100644 index 000000000..db5443293 --- /dev/null +++ b/dds/src/model/DeleteNodeResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Dds; +using namespace AlibabaCloud::Dds::Model; + +DeleteNodeResult::DeleteNodeResult() : + ServiceResult() +{} + +DeleteNodeResult::DeleteNodeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteNodeResult::~DeleteNodeResult() +{} + +void DeleteNodeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["TaskId"].isNull()) + taskId_ = std::stoi(value["TaskId"].asString()); + +} + +int DeleteNodeResult::getTaskId()const +{ + return taskId_; +} + diff --git a/dds/src/model/DescribeAccountsRequest.cc b/dds/src/model/DescribeAccountsRequest.cc new file mode 100644 index 000000000..c5c64adcb --- /dev/null +++ b/dds/src/model/DescribeAccountsRequest.cc @@ -0,0 +1,126 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dds::Model::DescribeAccountsRequest; + +DescribeAccountsRequest::DescribeAccountsRequest() : + RpcServiceRequest("dds", "2015-12-01", "DescribeAccounts") +{} + +DescribeAccountsRequest::~DescribeAccountsRequest() +{} + +long DescribeAccountsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeAccountsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeAccountsRequest::getAccountName()const +{ + return accountName_; +} + +void DescribeAccountsRequest::setAccountName(const std::string& accountName) +{ + accountName_ = accountName; + setCoreParameter("AccountName", accountName); +} + +std::string DescribeAccountsRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeAccountsRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeAccountsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeAccountsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeAccountsRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeAccountsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeAccountsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeAccountsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeAccountsRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeAccountsRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setCoreParameter("DBInstanceId", dBInstanceId); +} + +long DescribeAccountsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeAccountsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeAccountsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeAccountsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dds/src/model/DescribeAccountsResult.cc b/dds/src/model/DescribeAccountsResult.cc new file mode 100644 index 000000000..1acea1d71 --- /dev/null +++ b/dds/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::Dds; +using namespace AlibabaCloud::Dds::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"]["Account"]; + for (auto value : allAccounts) + { + Account accountsObject; + if(!value["DBInstanceId"].isNull()) + accountsObject.dBInstanceId = value["DBInstanceId"].asString(); + if(!value["AccountName"].isNull()) + accountsObject.accountName = value["AccountName"].asString(); + if(!value["AccountStatus"].isNull()) + accountsObject.accountStatus = value["AccountStatus"].asString(); + if(!value["AccountDescription"].isNull()) + accountsObject.accountDescription = value["AccountDescription"].asString(); + accounts_.push_back(accountsObject); + } + +} + +std::vector DescribeAccountsResult::getAccounts()const +{ + return accounts_; +} + diff --git a/dds/src/model/DescribeActiveOperationTaskCountRequest.cc b/dds/src/model/DescribeActiveOperationTaskCountRequest.cc new file mode 100644 index 000000000..7395373bd --- /dev/null +++ b/dds/src/model/DescribeActiveOperationTaskCountRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Dds::Model::DescribeActiveOperationTaskCountRequest; + +DescribeActiveOperationTaskCountRequest::DescribeActiveOperationTaskCountRequest() : + RpcServiceRequest("dds", "2015-12-01", "DescribeActiveOperationTaskCount") +{} + +DescribeActiveOperationTaskCountRequest::~DescribeActiveOperationTaskCountRequest() +{} + +long DescribeActiveOperationTaskCountRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeActiveOperationTaskCountRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeActiveOperationTaskCountRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeActiveOperationTaskCountRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeActiveOperationTaskCountRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeActiveOperationTaskCountRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeActiveOperationTaskCountRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeActiveOperationTaskCountRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeActiveOperationTaskCountRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeActiveOperationTaskCountRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +long DescribeActiveOperationTaskCountRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeActiveOperationTaskCountRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeActiveOperationTaskCountRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeActiveOperationTaskCountRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dds/src/model/DescribeActiveOperationTaskCountResult.cc b/dds/src/model/DescribeActiveOperationTaskCountResult.cc new file mode 100644 index 000000000..02b0cc7df --- /dev/null +++ b/dds/src/model/DescribeActiveOperationTaskCountResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Dds; +using namespace AlibabaCloud::Dds::Model; + +DescribeActiveOperationTaskCountResult::DescribeActiveOperationTaskCountResult() : + ServiceResult() +{} + +DescribeActiveOperationTaskCountResult::DescribeActiveOperationTaskCountResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeActiveOperationTaskCountResult::~DescribeActiveOperationTaskCountResult() +{} + +void DescribeActiveOperationTaskCountResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["TaskCount"].isNull()) + taskCount_ = std::stoi(value["TaskCount"].asString()); + if(!value["NeedPop"].isNull()) + needPop_ = std::stoi(value["NeedPop"].asString()); + +} + +int DescribeActiveOperationTaskCountResult::getNeedPop()const +{ + return needPop_; +} + +int DescribeActiveOperationTaskCountResult::getTaskCount()const +{ + return taskCount_; +} + diff --git a/dds/src/model/DescribeActiveOperationTaskRegionRequest.cc b/dds/src/model/DescribeActiveOperationTaskRegionRequest.cc new file mode 100644 index 000000000..5ab9f9159 --- /dev/null +++ b/dds/src/model/DescribeActiveOperationTaskRegionRequest.cc @@ -0,0 +1,126 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dds::Model::DescribeActiveOperationTaskRegionRequest; + +DescribeActiveOperationTaskRegionRequest::DescribeActiveOperationTaskRegionRequest() : + RpcServiceRequest("dds", "2015-12-01", "DescribeActiveOperationTaskRegion") +{} + +DescribeActiveOperationTaskRegionRequest::~DescribeActiveOperationTaskRegionRequest() +{} + +long DescribeActiveOperationTaskRegionRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeActiveOperationTaskRegionRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +int DescribeActiveOperationTaskRegionRequest::getIsHistory()const +{ + return isHistory_; +} + +void DescribeActiveOperationTaskRegionRequest::setIsHistory(int isHistory) +{ + isHistory_ = isHistory; + setCoreParameter("IsHistory", std::to_string(isHistory)); +} + +std::string DescribeActiveOperationTaskRegionRequest::getTaskType()const +{ + return taskType_; +} + +void DescribeActiveOperationTaskRegionRequest::setTaskType(const std::string& taskType) +{ + taskType_ = taskType; + setCoreParameter("TaskType", taskType); +} + +std::string DescribeActiveOperationTaskRegionRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeActiveOperationTaskRegionRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeActiveOperationTaskRegionRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeActiveOperationTaskRegionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeActiveOperationTaskRegionRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeActiveOperationTaskRegionRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeActiveOperationTaskRegionRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeActiveOperationTaskRegionRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +long DescribeActiveOperationTaskRegionRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeActiveOperationTaskRegionRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeActiveOperationTaskRegionRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeActiveOperationTaskRegionRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dds/src/model/DescribeActiveOperationTaskRegionResult.cc b/dds/src/model/DescribeActiveOperationTaskRegionResult.cc new file mode 100644 index 000000000..dc4da2214 --- /dev/null +++ b/dds/src/model/DescribeActiveOperationTaskRegionResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Dds; +using namespace AlibabaCloud::Dds::Model; + +DescribeActiveOperationTaskRegionResult::DescribeActiveOperationTaskRegionResult() : + ServiceResult() +{} + +DescribeActiveOperationTaskRegionResult::DescribeActiveOperationTaskRegionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeActiveOperationTaskRegionResult::~DescribeActiveOperationTaskRegionResult() +{} + +void DescribeActiveOperationTaskRegionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allRegionList = value["RegionList"]["Items"]; + for (auto value : allRegionList) + { + Items regionListObject; + if(!value["Region"].isNull()) + regionListObject.region = value["Region"].asString(); + if(!value["Count"].isNull()) + regionListObject.count = std::stoi(value["Count"].asString()); + regionList_.push_back(regionListObject); + } + +} + +std::vector DescribeActiveOperationTaskRegionResult::getRegionList()const +{ + return regionList_; +} + diff --git a/dds/src/model/DescribeActiveOperationTaskRequest.cc b/dds/src/model/DescribeActiveOperationTaskRequest.cc new file mode 100644 index 000000000..db8da6b88 --- /dev/null +++ b/dds/src/model/DescribeActiveOperationTaskRequest.cc @@ -0,0 +1,159 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dds::Model::DescribeActiveOperationTaskRequest; + +DescribeActiveOperationTaskRequest::DescribeActiveOperationTaskRequest() : + RpcServiceRequest("dds", "2015-12-01", "DescribeActiveOperationTask") +{} + +DescribeActiveOperationTaskRequest::~DescribeActiveOperationTaskRequest() +{} + +long DescribeActiveOperationTaskRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeActiveOperationTaskRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeActiveOperationTaskRequest::getTaskType()const +{ + return taskType_; +} + +void DescribeActiveOperationTaskRequest::setTaskType(const std::string& taskType) +{ + taskType_ = taskType; + setCoreParameter("TaskType", taskType); +} + +std::string DescribeActiveOperationTaskRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeActiveOperationTaskRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeActiveOperationTaskRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeActiveOperationTaskRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +long DescribeActiveOperationTaskRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeActiveOperationTaskRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeActiveOperationTaskRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeActiveOperationTaskRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeActiveOperationTaskRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeActiveOperationTaskRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +int DescribeActiveOperationTaskRequest::getIsHistory()const +{ + return isHistory_; +} + +void DescribeActiveOperationTaskRequest::setIsHistory(int isHistory) +{ + isHistory_ = isHistory; + setCoreParameter("IsHistory", std::to_string(isHistory)); +} + +std::string DescribeActiveOperationTaskRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeActiveOperationTaskRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeActiveOperationTaskRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeActiveOperationTaskRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +int DescribeActiveOperationTaskRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeActiveOperationTaskRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeActiveOperationTaskRequest::getRegion()const +{ + return region_; +} + +void DescribeActiveOperationTaskRequest::setRegion(const std::string& region) +{ + region_ = region; + setCoreParameter("Region", region); +} + diff --git a/dds/src/model/DescribeActiveOperationTaskResult.cc b/dds/src/model/DescribeActiveOperationTaskResult.cc new file mode 100644 index 000000000..d7a0e19cb --- /dev/null +++ b/dds/src/model/DescribeActiveOperationTaskResult.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::Dds; +using namespace AlibabaCloud::Dds::Model; + +DescribeActiveOperationTaskResult::DescribeActiveOperationTaskResult() : + ServiceResult() +{} + +DescribeActiveOperationTaskResult::DescribeActiveOperationTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeActiveOperationTaskResult::~DescribeActiveOperationTaskResult() +{} + +void DescribeActiveOperationTaskResult::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 itemsObject; + if(!value["Id"].isNull()) + itemsObject.id = std::stoi(value["Id"].asString()); + if(!value["InsName"].isNull()) + itemsObject.insName = value["InsName"].asString(); + if(!value["DbType"].isNull()) + itemsObject.dbType = value["DbType"].asString(); + if(!value["StartTime"].isNull()) + itemsObject.startTime = value["StartTime"].asString(); + if(!value["SwitchTime"].isNull()) + itemsObject.switchTime = value["SwitchTime"].asString(); + if(!value["Deadline"].isNull()) + itemsObject.deadline = value["Deadline"].asString(); + if(!value["Status"].isNull()) + itemsObject.status = std::stoi(value["Status"].asString()); + if(!value["CreatedTime"].isNull()) + itemsObject.createdTime = value["CreatedTime"].asString(); + if(!value["ModifiedTime"].isNull()) + itemsObject.modifiedTime = value["ModifiedTime"].asString(); + if(!value["ResultInfo"].isNull()) + itemsObject.resultInfo = value["ResultInfo"].asString(); + if(!value["PrepareInterval"].isNull()) + itemsObject.prepareInterval = value["PrepareInterval"].asString(); + if(!value["TaskParams"].isNull()) + itemsObject.taskParams = value["TaskParams"].asString(); + if(!value["TaskType"].isNull()) + itemsObject.taskType = value["TaskType"].asString(); + items_.push_back(itemsObject); + } + if(!value["TotalRecordCount"].isNull()) + totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + +} + +int DescribeActiveOperationTaskResult::getTotalRecordCount()const +{ + return totalRecordCount_; +} + +int DescribeActiveOperationTaskResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeActiveOperationTaskResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeActiveOperationTaskResult::getItems()const +{ + return items_; +} + diff --git a/dds/src/model/DescribeActiveOperationTaskTypeRequest.cc b/dds/src/model/DescribeActiveOperationTaskTypeRequest.cc new file mode 100644 index 000000000..4895e9374 --- /dev/null +++ b/dds/src/model/DescribeActiveOperationTaskTypeRequest.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dds::Model::DescribeActiveOperationTaskTypeRequest; + +DescribeActiveOperationTaskTypeRequest::DescribeActiveOperationTaskTypeRequest() : + RpcServiceRequest("dds", "2015-12-01", "DescribeActiveOperationTaskType") +{} + +DescribeActiveOperationTaskTypeRequest::~DescribeActiveOperationTaskTypeRequest() +{} + +long DescribeActiveOperationTaskTypeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeActiveOperationTaskTypeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +int DescribeActiveOperationTaskTypeRequest::getIsHistory()const +{ + return isHistory_; +} + +void DescribeActiveOperationTaskTypeRequest::setIsHistory(int isHistory) +{ + isHistory_ = isHistory; + setCoreParameter("IsHistory", std::to_string(isHistory)); +} + +std::string DescribeActiveOperationTaskTypeRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeActiveOperationTaskTypeRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeActiveOperationTaskTypeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeActiveOperationTaskTypeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeActiveOperationTaskTypeRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeActiveOperationTaskTypeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeActiveOperationTaskTypeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeActiveOperationTaskTypeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +long DescribeActiveOperationTaskTypeRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeActiveOperationTaskTypeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeActiveOperationTaskTypeRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeActiveOperationTaskTypeRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dds/src/model/DescribeActiveOperationTaskTypeResult.cc b/dds/src/model/DescribeActiveOperationTaskTypeResult.cc new file mode 100644 index 000000000..8fb5a61bb --- /dev/null +++ b/dds/src/model/DescribeActiveOperationTaskTypeResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Dds; +using namespace AlibabaCloud::Dds::Model; + +DescribeActiveOperationTaskTypeResult::DescribeActiveOperationTaskTypeResult() : + ServiceResult() +{} + +DescribeActiveOperationTaskTypeResult::DescribeActiveOperationTaskTypeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeActiveOperationTaskTypeResult::~DescribeActiveOperationTaskTypeResult() +{} + +void DescribeActiveOperationTaskTypeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allTypeList = value["TypeList"]["Items"]; + for (auto value : allTypeList) + { + Items typeListObject; + if(!value["TaskType"].isNull()) + typeListObject.taskType = value["TaskType"].asString(); + if(!value["Count"].isNull()) + typeListObject.count = std::stoi(value["Count"].asString()); + typeList_.push_back(typeListObject); + } + +} + +std::vector DescribeActiveOperationTaskTypeResult::getTypeList()const +{ + return typeList_; +} + diff --git a/dds/src/model/DescribeAuditFilesRequest.cc b/dds/src/model/DescribeAuditFilesRequest.cc new file mode 100644 index 000000000..ef1290016 --- /dev/null +++ b/dds/src/model/DescribeAuditFilesRequest.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 + +using AlibabaCloud::Dds::Model::DescribeAuditFilesRequest; + +DescribeAuditFilesRequest::DescribeAuditFilesRequest() : + RpcServiceRequest("dds", "2015-12-01", "DescribeAuditFiles") +{} + +DescribeAuditFilesRequest::~DescribeAuditFilesRequest() +{} + +long DescribeAuditFilesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeAuditFilesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeAuditFilesRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeAuditFilesRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeAuditFilesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeAuditFilesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeAuditFilesRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeAuditFilesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeAuditFilesRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeAuditFilesRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +int DescribeAuditFilesRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeAuditFilesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeAuditFilesRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeAuditFilesRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setCoreParameter("DBInstanceId", dBInstanceId); +} + +long DescribeAuditFilesRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeAuditFilesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeAuditFilesRequest::getNodeId()const +{ + return nodeId_; +} + +void DescribeAuditFilesRequest::setNodeId(const std::string& nodeId) +{ + nodeId_ = nodeId; + setCoreParameter("NodeId", nodeId); +} + +int DescribeAuditFilesRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeAuditFilesRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeAuditFilesRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeAuditFilesRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dds/src/model/DescribeAuditFilesResult.cc b/dds/src/model/DescribeAuditFilesResult.cc new file mode 100644 index 000000000..d518a0059 --- /dev/null +++ b/dds/src/model/DescribeAuditFilesResult.cc @@ -0,0 +1,96 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dds; +using namespace AlibabaCloud::Dds::Model; + +DescribeAuditFilesResult::DescribeAuditFilesResult() : + ServiceResult() +{} + +DescribeAuditFilesResult::DescribeAuditFilesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAuditFilesResult::~DescribeAuditFilesResult() +{} + +void DescribeAuditFilesResult::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 itemsObject; + if(!value["FileID"].isNull()) + itemsObject.fileID = std::stoi(value["FileID"].asString()); + if(!value["LogStatus"].isNull()) + itemsObject.logStatus = value["LogStatus"].asString(); + if(!value["LogStartTime"].isNull()) + itemsObject.logStartTime = value["LogStartTime"].asString(); + if(!value["LogEndTime"].isNull()) + itemsObject.logEndTime = value["LogEndTime"].asString(); + if(!value["LogDownloadURL"].isNull()) + itemsObject.logDownloadURL = value["LogDownloadURL"].asString(); + if(!value["LogSize"].isNull()) + itemsObject.logSize = std::stol(value["LogSize"].asString()); + items_.push_back(itemsObject); + } + if(!value["TotalRecordCount"].isNull()) + totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageRecordCount"].isNull()) + pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); + if(!value["DBInstanceId"].isNull()) + dBInstanceId_ = value["DBInstanceId"].asString(); + +} + +int DescribeAuditFilesResult::getTotalRecordCount()const +{ + return totalRecordCount_; +} + +int DescribeAuditFilesResult::getPageRecordCount()const +{ + return pageRecordCount_; +} + +int DescribeAuditFilesResult::getPageNumber()const +{ + return pageNumber_; +} + +std::string DescribeAuditFilesResult::getDBInstanceId()const +{ + return dBInstanceId_; +} + +std::vector DescribeAuditFilesResult::getItems()const +{ + return items_; +} + diff --git a/dds/src/model/DescribeAuditLogFilterRequest.cc b/dds/src/model/DescribeAuditLogFilterRequest.cc new file mode 100644 index 000000000..62090abd4 --- /dev/null +++ b/dds/src/model/DescribeAuditLogFilterRequest.cc @@ -0,0 +1,126 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dds::Model::DescribeAuditLogFilterRequest; + +DescribeAuditLogFilterRequest::DescribeAuditLogFilterRequest() : + RpcServiceRequest("dds", "2015-12-01", "DescribeAuditLogFilter") +{} + +DescribeAuditLogFilterRequest::~DescribeAuditLogFilterRequest() +{} + +long DescribeAuditLogFilterRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeAuditLogFilterRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeAuditLogFilterRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeAuditLogFilterRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeAuditLogFilterRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeAuditLogFilterRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeAuditLogFilterRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeAuditLogFilterRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeAuditLogFilterRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeAuditLogFilterRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeAuditLogFilterRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeAuditLogFilterRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setCoreParameter("DBInstanceId", dBInstanceId); +} + +std::string DescribeAuditLogFilterRequest::getRoleType()const +{ + return roleType_; +} + +void DescribeAuditLogFilterRequest::setRoleType(const std::string& roleType) +{ + roleType_ = roleType; + setCoreParameter("RoleType", roleType); +} + +long DescribeAuditLogFilterRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeAuditLogFilterRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeAuditLogFilterRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeAuditLogFilterRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dds/src/model/DescribeAuditLogFilterResult.cc b/dds/src/model/DescribeAuditLogFilterResult.cc new file mode 100644 index 000000000..3a1fd6ff8 --- /dev/null +++ b/dds/src/model/DescribeAuditLogFilterResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Dds; +using namespace AlibabaCloud::Dds::Model; + +DescribeAuditLogFilterResult::DescribeAuditLogFilterResult() : + ServiceResult() +{} + +DescribeAuditLogFilterResult::DescribeAuditLogFilterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAuditLogFilterResult::~DescribeAuditLogFilterResult() +{} + +void DescribeAuditLogFilterResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["Filter"].isNull()) + filter_ = value["Filter"].asString(); + if(!value["RoleType"].isNull()) + roleType_ = value["RoleType"].asString(); + +} + +std::string DescribeAuditLogFilterResult::getFilter()const +{ + return filter_; +} + +std::string DescribeAuditLogFilterResult::getRoleType()const +{ + return roleType_; +} + diff --git a/dds/src/model/DescribeAuditPolicyRequest.cc b/dds/src/model/DescribeAuditPolicyRequest.cc new file mode 100644 index 000000000..42ac8e7a3 --- /dev/null +++ b/dds/src/model/DescribeAuditPolicyRequest.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dds::Model::DescribeAuditPolicyRequest; + +DescribeAuditPolicyRequest::DescribeAuditPolicyRequest() : + RpcServiceRequest("dds", "2015-12-01", "DescribeAuditPolicy") +{} + +DescribeAuditPolicyRequest::~DescribeAuditPolicyRequest() +{} + +long DescribeAuditPolicyRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeAuditPolicyRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeAuditPolicyRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeAuditPolicyRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeAuditPolicyRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeAuditPolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeAuditPolicyRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeAuditPolicyRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeAuditPolicyRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeAuditPolicyRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeAuditPolicyRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeAuditPolicyRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setCoreParameter("DBInstanceId", dBInstanceId); +} + +long DescribeAuditPolicyRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeAuditPolicyRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeAuditPolicyRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeAuditPolicyRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dds/src/model/DescribeAuditPolicyResult.cc b/dds/src/model/DescribeAuditPolicyResult.cc new file mode 100644 index 000000000..92d60f6ff --- /dev/null +++ b/dds/src/model/DescribeAuditPolicyResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Dds; +using namespace AlibabaCloud::Dds::Model; + +DescribeAuditPolicyResult::DescribeAuditPolicyResult() : + ServiceResult() +{} + +DescribeAuditPolicyResult::DescribeAuditPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAuditPolicyResult::~DescribeAuditPolicyResult() +{} + +void DescribeAuditPolicyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["LogAuditStatus"].isNull()) + logAuditStatus_ = value["LogAuditStatus"].asString(); + if(!value["StoragePeriod"].isNull()) + storagePeriod_ = std::stoi(value["StoragePeriod"].asString()); + +} + +int DescribeAuditPolicyResult::getStoragePeriod()const +{ + return storagePeriod_; +} + +std::string DescribeAuditPolicyResult::getLogAuditStatus()const +{ + return logAuditStatus_; +} + diff --git a/dds/src/model/DescribeAuditRecordsRequest.cc b/dds/src/model/DescribeAuditRecordsRequest.cc new file mode 100644 index 000000000..aa0e3a96f --- /dev/null +++ b/dds/src/model/DescribeAuditRecordsRequest.cc @@ -0,0 +1,214 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dds::Model::DescribeAuditRecordsRequest; + +DescribeAuditRecordsRequest::DescribeAuditRecordsRequest() : + RpcServiceRequest("dds", "2015-12-01", "DescribeAuditRecords") +{} + +DescribeAuditRecordsRequest::~DescribeAuditRecordsRequest() +{} + +long DescribeAuditRecordsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeAuditRecordsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeAuditRecordsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeAuditRecordsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeAuditRecordsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeAuditRecordsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeAuditRecordsRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeAuditRecordsRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setCoreParameter("EndTime", endTime); +} + +std::string DescribeAuditRecordsRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeAuditRecordsRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setCoreParameter("StartTime", startTime); +} + +long DescribeAuditRecordsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeAuditRecordsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeAuditRecordsRequest::getQueryKeywords()const +{ + return queryKeywords_; +} + +void DescribeAuditRecordsRequest::setQueryKeywords(const std::string& queryKeywords) +{ + queryKeywords_ = queryKeywords; + setCoreParameter("QueryKeywords", queryKeywords); +} + +int DescribeAuditRecordsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeAuditRecordsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeAuditRecordsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeAuditRecordsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeAuditRecordsRequest::getDatabase()const +{ + return database_; +} + +void DescribeAuditRecordsRequest::setDatabase(const std::string& database) +{ + database_ = database; + setCoreParameter("Database", database); +} + +std::string DescribeAuditRecordsRequest::getForm()const +{ + return form_; +} + +void DescribeAuditRecordsRequest::setForm(const std::string& form) +{ + form_ = form; + setCoreParameter("Form", form); +} + +std::string DescribeAuditRecordsRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeAuditRecordsRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeAuditRecordsRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeAuditRecordsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +int DescribeAuditRecordsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeAuditRecordsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeAuditRecordsRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeAuditRecordsRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setCoreParameter("DBInstanceId", dBInstanceId); +} + +std::string DescribeAuditRecordsRequest::getNodeId()const +{ + return nodeId_; +} + +void DescribeAuditRecordsRequest::setNodeId(const std::string& nodeId) +{ + nodeId_ = nodeId; + setCoreParameter("NodeId", nodeId); +} + +std::string DescribeAuditRecordsRequest::getUser()const +{ + return user_; +} + +void DescribeAuditRecordsRequest::setUser(const std::string& user) +{ + user_ = user; + setCoreParameter("User", user); +} + diff --git a/dds/src/model/DescribeAuditRecordsResult.cc b/dds/src/model/DescribeAuditRecordsResult.cc new file mode 100644 index 000000000..2a023946f --- /dev/null +++ b/dds/src/model/DescribeAuditRecordsResult.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::Dds; +using namespace AlibabaCloud::Dds::Model; + +DescribeAuditRecordsResult::DescribeAuditRecordsResult() : + ServiceResult() +{} + +DescribeAuditRecordsResult::DescribeAuditRecordsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAuditRecordsResult::~DescribeAuditRecordsResult() +{} + +void DescribeAuditRecordsResult::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 itemsObject; + if(!value["DBName"].isNull()) + itemsObject.dBName = value["DBName"].asString(); + if(!value["AccountName"].isNull()) + itemsObject.accountName = value["AccountName"].asString(); + if(!value["HostAddress"].isNull()) + itemsObject.hostAddress = value["HostAddress"].asString(); + if(!value["Syntax"].isNull()) + itemsObject.syntax = value["Syntax"].asString(); + if(!value["TotalExecutionTimes"].isNull()) + itemsObject.totalExecutionTimes = std::stol(value["TotalExecutionTimes"].asString()); + if(!value["ReturnRowCounts"].isNull()) + itemsObject.returnRowCounts = std::stol(value["ReturnRowCounts"].asString()); + if(!value["ExecuteTime"].isNull()) + itemsObject.executeTime = value["ExecuteTime"].asString(); + if(!value["ThreadID"].isNull()) + itemsObject.threadID = value["ThreadID"].asString(); + items_.push_back(itemsObject); + } + if(!value["TotalRecordCount"].isNull()) + totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageRecordCount"].isNull()) + pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); + +} + +int DescribeAuditRecordsResult::getTotalRecordCount()const +{ + return totalRecordCount_; +} + +int DescribeAuditRecordsResult::getPageRecordCount()const +{ + return pageRecordCount_; +} + +int DescribeAuditRecordsResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeAuditRecordsResult::getItems()const +{ + return items_; +} + diff --git a/dds/src/model/DescribeAvailableEngineVersionRequest.cc b/dds/src/model/DescribeAvailableEngineVersionRequest.cc new file mode 100644 index 000000000..d35a7eef7 --- /dev/null +++ b/dds/src/model/DescribeAvailableEngineVersionRequest.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dds::Model::DescribeAvailableEngineVersionRequest; + +DescribeAvailableEngineVersionRequest::DescribeAvailableEngineVersionRequest() : + RpcServiceRequest("dds", "2015-12-01", "DescribeAvailableEngineVersion") +{} + +DescribeAvailableEngineVersionRequest::~DescribeAvailableEngineVersionRequest() +{} + +long DescribeAvailableEngineVersionRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeAvailableEngineVersionRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeAvailableEngineVersionRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeAvailableEngineVersionRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeAvailableEngineVersionRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeAvailableEngineVersionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeAvailableEngineVersionRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeAvailableEngineVersionRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeAvailableEngineVersionRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeAvailableEngineVersionRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeAvailableEngineVersionRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeAvailableEngineVersionRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setCoreParameter("DBInstanceId", dBInstanceId); +} + +long DescribeAvailableEngineVersionRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeAvailableEngineVersionRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeAvailableEngineVersionRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeAvailableEngineVersionRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dds/src/model/DescribeAvailableEngineVersionResult.cc b/dds/src/model/DescribeAvailableEngineVersionResult.cc new file mode 100644 index 000000000..f34b77ae2 --- /dev/null +++ b/dds/src/model/DescribeAvailableEngineVersionResult.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::Dds; +using namespace AlibabaCloud::Dds::Model; + +DescribeAvailableEngineVersionResult::DescribeAvailableEngineVersionResult() : + ServiceResult() +{} + +DescribeAvailableEngineVersionResult::DescribeAvailableEngineVersionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAvailableEngineVersionResult::~DescribeAvailableEngineVersionResult() +{} + +void DescribeAvailableEngineVersionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allEngineVersions = value["EngineVersions"]["EngineVersion"]; + for (const auto &item : allEngineVersions) + engineVersions_.push_back(item.asString()); + +} + +std::vector DescribeAvailableEngineVersionResult::getEngineVersions()const +{ + return engineVersions_; +} + diff --git a/dds/src/model/DescribeAvailableTimeRangeRequest.cc b/dds/src/model/DescribeAvailableTimeRangeRequest.cc new file mode 100644 index 000000000..c8baf1a10 --- /dev/null +++ b/dds/src/model/DescribeAvailableTimeRangeRequest.cc @@ -0,0 +1,126 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dds::Model::DescribeAvailableTimeRangeRequest; + +DescribeAvailableTimeRangeRequest::DescribeAvailableTimeRangeRequest() : + RpcServiceRequest("dds", "2015-12-01", "DescribeAvailableTimeRange") +{} + +DescribeAvailableTimeRangeRequest::~DescribeAvailableTimeRangeRequest() +{} + +long DescribeAvailableTimeRangeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeAvailableTimeRangeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeAvailableTimeRangeRequest::getInstanceId()const +{ + return instanceId_; +} + +void DescribeAvailableTimeRangeRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string DescribeAvailableTimeRangeRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeAvailableTimeRangeRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeAvailableTimeRangeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeAvailableTimeRangeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeAvailableTimeRangeRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeAvailableTimeRangeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeAvailableTimeRangeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeAvailableTimeRangeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +long DescribeAvailableTimeRangeRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeAvailableTimeRangeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeAvailableTimeRangeRequest::getNodeId()const +{ + return nodeId_; +} + +void DescribeAvailableTimeRangeRequest::setNodeId(const std::string& nodeId) +{ + nodeId_ = nodeId; + setCoreParameter("NodeId", nodeId); +} + +std::string DescribeAvailableTimeRangeRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeAvailableTimeRangeRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dds/src/model/DescribeAvailableTimeRangeResult.cc b/dds/src/model/DescribeAvailableTimeRangeResult.cc new file mode 100644 index 000000000..388267ca0 --- /dev/null +++ b/dds/src/model/DescribeAvailableTimeRangeResult.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::Dds; +using namespace AlibabaCloud::Dds::Model; + +DescribeAvailableTimeRangeResult::DescribeAvailableTimeRangeResult() : + ServiceResult() +{} + +DescribeAvailableTimeRangeResult::DescribeAvailableTimeRangeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAvailableTimeRangeResult::~DescribeAvailableTimeRangeResult() +{} + +void DescribeAvailableTimeRangeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allTimeRange = value["TimeRange"]["TimeRangeItem"]; + for (auto value : allTimeRange) + { + TimeRangeItem timeRangeObject; + if(!value["StartTime"].isNull()) + timeRangeObject.startTime = value["StartTime"].asString(); + if(!value["EndTime"].isNull()) + timeRangeObject.endTime = value["EndTime"].asString(); + if(!value["Status"].isNull()) + timeRangeObject.status = value["Status"].asString(); + if(!value["NodeId"].isNull()) + timeRangeObject.nodeId = value["NodeId"].asString(); + if(!value["TaskId"].isNull()) + timeRangeObject.taskId = value["TaskId"].asString(); + timeRange_.push_back(timeRangeObject); + } + +} + +std::vector DescribeAvailableTimeRangeResult::getTimeRange()const +{ + return timeRange_; +} + diff --git a/dds/src/model/DescribeAvaliableTimeRangeRequest.cc b/dds/src/model/DescribeAvaliableTimeRangeRequest.cc new file mode 100644 index 000000000..a4a433f94 --- /dev/null +++ b/dds/src/model/DescribeAvaliableTimeRangeRequest.cc @@ -0,0 +1,126 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dds::Model::DescribeAvaliableTimeRangeRequest; + +DescribeAvaliableTimeRangeRequest::DescribeAvaliableTimeRangeRequest() : + RpcServiceRequest("dds", "2015-12-01", "DescribeAvaliableTimeRange") +{} + +DescribeAvaliableTimeRangeRequest::~DescribeAvaliableTimeRangeRequest() +{} + +long DescribeAvaliableTimeRangeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeAvaliableTimeRangeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeAvaliableTimeRangeRequest::getInstanceId()const +{ + return instanceId_; +} + +void DescribeAvaliableTimeRangeRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string DescribeAvaliableTimeRangeRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeAvaliableTimeRangeRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeAvaliableTimeRangeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeAvaliableTimeRangeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeAvaliableTimeRangeRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeAvaliableTimeRangeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeAvaliableTimeRangeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeAvaliableTimeRangeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +long DescribeAvaliableTimeRangeRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeAvaliableTimeRangeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeAvaliableTimeRangeRequest::getNodeId()const +{ + return nodeId_; +} + +void DescribeAvaliableTimeRangeRequest::setNodeId(const std::string& nodeId) +{ + nodeId_ = nodeId; + setCoreParameter("NodeId", nodeId); +} + +std::string DescribeAvaliableTimeRangeRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeAvaliableTimeRangeRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dds/src/model/DescribeAvaliableTimeRangeResult.cc b/dds/src/model/DescribeAvaliableTimeRangeResult.cc new file mode 100644 index 000000000..d3de61ae6 --- /dev/null +++ b/dds/src/model/DescribeAvaliableTimeRangeResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Dds; +using namespace AlibabaCloud::Dds::Model; + +DescribeAvaliableTimeRangeResult::DescribeAvaliableTimeRangeResult() : + ServiceResult() +{} + +DescribeAvaliableTimeRangeResult::DescribeAvaliableTimeRangeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAvaliableTimeRangeResult::~DescribeAvaliableTimeRangeResult() +{} + +void DescribeAvaliableTimeRangeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allTimeRange = value["TimeRange"]["TimeRangeItem"]; + for (auto value : allTimeRange) + { + TimeRangeItem timeRangeObject; + if(!value["StartTime"].isNull()) + timeRangeObject.startTime = value["StartTime"].asString(); + if(!value["EndTime"].isNull()) + timeRangeObject.endTime = value["EndTime"].asString(); + if(!value["Status"].isNull()) + timeRangeObject.status = value["Status"].asString(); + timeRange_.push_back(timeRangeObject); + } + +} + +std::vector DescribeAvaliableTimeRangeResult::getTimeRange()const +{ + return timeRange_; +} + diff --git a/dds/src/model/DescribeBackupDBsRequest.cc b/dds/src/model/DescribeBackupDBsRequest.cc new file mode 100644 index 000000000..4ce27642a --- /dev/null +++ b/dds/src/model/DescribeBackupDBsRequest.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 + +using AlibabaCloud::Dds::Model::DescribeBackupDBsRequest; + +DescribeBackupDBsRequest::DescribeBackupDBsRequest() : + RpcServiceRequest("dds", "2015-12-01", "DescribeBackupDBs") +{} + +DescribeBackupDBsRequest::~DescribeBackupDBsRequest() +{} + +long DescribeBackupDBsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeBackupDBsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeBackupDBsRequest::getRestoreTime()const +{ + return restoreTime_; +} + +void DescribeBackupDBsRequest::setRestoreTime(const std::string& restoreTime) +{ + restoreTime_ = restoreTime; + setCoreParameter("RestoreTime", restoreTime); +} + +std::string DescribeBackupDBsRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeBackupDBsRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeBackupDBsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeBackupDBsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeBackupDBsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeBackupDBsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeBackupDBsRequest::getBackupId()const +{ + return backupId_; +} + +void DescribeBackupDBsRequest::setBackupId(const std::string& backupId) +{ + backupId_ = backupId; + setCoreParameter("BackupId", backupId); +} + +int DescribeBackupDBsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeBackupDBsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeBackupDBsRequest::getSourceDBInstance()const +{ + return sourceDBInstance_; +} + +void DescribeBackupDBsRequest::setSourceDBInstance(const std::string& sourceDBInstance) +{ + sourceDBInstance_ = sourceDBInstance; + setCoreParameter("SourceDBInstance", sourceDBInstance); +} + +long DescribeBackupDBsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeBackupDBsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeBackupDBsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeBackupDBsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeBackupDBsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeBackupDBsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dds/src/model/DescribeBackupDBsResult.cc b/dds/src/model/DescribeBackupDBsResult.cc new file mode 100644 index 000000000..a533402cb --- /dev/null +++ b/dds/src/model/DescribeBackupDBsResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Dds; +using namespace AlibabaCloud::Dds::Model; + +DescribeBackupDBsResult::DescribeBackupDBsResult() : + ServiceResult() +{} + +DescribeBackupDBsResult::DescribeBackupDBsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeBackupDBsResult::~DescribeBackupDBsResult() +{} + +void DescribeBackupDBsResult::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 databasesObject; + if(!value["DBName"].isNull()) + databasesObject.dBName = value["DBName"].asString(); + databases_.push_back(databasesObject); + } + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int DescribeBackupDBsResult::getTotalCount()const +{ + return totalCount_; +} + +std::vector DescribeBackupDBsResult::getDatabases()const +{ + return databases_; +} + +int DescribeBackupDBsResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeBackupDBsResult::getPageNumber()const +{ + return pageNumber_; +} + diff --git a/dds/src/model/DescribeBackupPolicyRequest.cc b/dds/src/model/DescribeBackupPolicyRequest.cc new file mode 100644 index 000000000..2996abbd7 --- /dev/null +++ b/dds/src/model/DescribeBackupPolicyRequest.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dds::Model::DescribeBackupPolicyRequest; + +DescribeBackupPolicyRequest::DescribeBackupPolicyRequest() : + RpcServiceRequest("dds", "2015-12-01", "DescribeBackupPolicy") +{} + +DescribeBackupPolicyRequest::~DescribeBackupPolicyRequest() +{} + +long DescribeBackupPolicyRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeBackupPolicyRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeBackupPolicyRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeBackupPolicyRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeBackupPolicyRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeBackupPolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeBackupPolicyRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeBackupPolicyRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeBackupPolicyRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeBackupPolicyRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeBackupPolicyRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeBackupPolicyRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setCoreParameter("DBInstanceId", dBInstanceId); +} + +long DescribeBackupPolicyRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeBackupPolicyRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeBackupPolicyRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeBackupPolicyRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dds/src/model/DescribeBackupPolicyResult.cc b/dds/src/model/DescribeBackupPolicyResult.cc new file mode 100644 index 000000000..1cb334800 --- /dev/null +++ b/dds/src/model/DescribeBackupPolicyResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Dds; +using namespace AlibabaCloud::Dds::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()); + if(!value["BackupRetentionPeriod"].isNull()) + backupRetentionPeriod_ = value["BackupRetentionPeriod"].asString(); + if(!value["PreferredBackupTime"].isNull()) + preferredBackupTime_ = value["PreferredBackupTime"].asString(); + if(!value["PreferredBackupPeriod"].isNull()) + preferredBackupPeriod_ = value["PreferredBackupPeriod"].asString(); + if(!value["PreferredNextBackupTime"].isNull()) + preferredNextBackupTime_ = value["PreferredNextBackupTime"].asString(); + +} + +std::string DescribeBackupPolicyResult::getPreferredBackupPeriod()const +{ + return preferredBackupPeriod_; +} + +std::string DescribeBackupPolicyResult::getPreferredBackupTime()const +{ + return preferredBackupTime_; +} + +std::string DescribeBackupPolicyResult::getBackupRetentionPeriod()const +{ + return backupRetentionPeriod_; +} + +std::string DescribeBackupPolicyResult::getPreferredNextBackupTime()const +{ + return preferredNextBackupTime_; +} + diff --git a/dds/src/model/DescribeBackupsRequest.cc b/dds/src/model/DescribeBackupsRequest.cc new file mode 100644 index 000000000..000a1fbc3 --- /dev/null +++ b/dds/src/model/DescribeBackupsRequest.cc @@ -0,0 +1,181 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dds::Model::DescribeBackupsRequest; + +DescribeBackupsRequest::DescribeBackupsRequest() : + RpcServiceRequest("dds", "2015-12-01", "DescribeBackups") +{} + +DescribeBackupsRequest::~DescribeBackupsRequest() +{} + +long DescribeBackupsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeBackupsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeBackupsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeBackupsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeBackupsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeBackupsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeBackupsRequest::getBackupId()const +{ + return backupId_; +} + +void DescribeBackupsRequest::setBackupId(const std::string& backupId) +{ + backupId_ = backupId; + setCoreParameter("BackupId", backupId); +} + +std::string DescribeBackupsRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeBackupsRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setCoreParameter("EndTime", endTime); +} + +std::string DescribeBackupsRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeBackupsRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setCoreParameter("StartTime", startTime); +} + +long DescribeBackupsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeBackupsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeBackupsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeBackupsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeBackupsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeBackupsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeBackupsRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeBackupsRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeBackupsRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeBackupsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +int DescribeBackupsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeBackupsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeBackupsRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeBackupsRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setCoreParameter("DBInstanceId", dBInstanceId); +} + +std::string DescribeBackupsRequest::getNodeId()const +{ + return nodeId_; +} + +void DescribeBackupsRequest::setNodeId(const std::string& nodeId) +{ + nodeId_ = nodeId; + setCoreParameter("NodeId", nodeId); +} + diff --git a/dds/src/model/DescribeBackupsResult.cc b/dds/src/model/DescribeBackupsResult.cc new file mode 100644 index 000000000..7bd029491 --- /dev/null +++ b/dds/src/model/DescribeBackupsResult.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::Dds; +using namespace AlibabaCloud::Dds::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 allBackups = value["Backups"]["Backup"]; + for (auto value : allBackups) + { + Backup backupsObject; + if(!value["BackupDBNames"].isNull()) + backupsObject.backupDBNames = value["BackupDBNames"].asString(); + if(!value["BackupId"].isNull()) + backupsObject.backupId = std::stoi(value["BackupId"].asString()); + if(!value["BackupStatus"].isNull()) + backupsObject.backupStatus = value["BackupStatus"].asString(); + if(!value["BackupStartTime"].isNull()) + backupsObject.backupStartTime = value["BackupStartTime"].asString(); + if(!value["BackupEndTime"].isNull()) + backupsObject.backupEndTime = value["BackupEndTime"].asString(); + if(!value["BackupType"].isNull()) + backupsObject.backupType = value["BackupType"].asString(); + if(!value["BackupMode"].isNull()) + backupsObject.backupMode = value["BackupMode"].asString(); + if(!value["BackupMethod"].isNull()) + backupsObject.backupMethod = value["BackupMethod"].asString(); + if(!value["BackupDownloadURL"].isNull()) + backupsObject.backupDownloadURL = value["BackupDownloadURL"].asString(); + if(!value["BackupIntranetDownloadURL"].isNull()) + backupsObject.backupIntranetDownloadURL = value["BackupIntranetDownloadURL"].asString(); + if(!value["BackupSize"].isNull()) + backupsObject.backupSize = std::stol(value["BackupSize"].asString()); + backups_.push_back(backupsObject); + } + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int DescribeBackupsResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeBackupsResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeBackupsResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeBackupsResult::getBackups()const +{ + return backups_; +} + diff --git a/dds/src/model/DescribeDBInstanceAttributeRequest.cc b/dds/src/model/DescribeDBInstanceAttributeRequest.cc new file mode 100644 index 000000000..319860099 --- /dev/null +++ b/dds/src/model/DescribeDBInstanceAttributeRequest.cc @@ -0,0 +1,126 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dds::Model::DescribeDBInstanceAttributeRequest; + +DescribeDBInstanceAttributeRequest::DescribeDBInstanceAttributeRequest() : + RpcServiceRequest("dds", "2015-12-01", "DescribeDBInstanceAttribute") +{} + +DescribeDBInstanceAttributeRequest::~DescribeDBInstanceAttributeRequest() +{} + +long DescribeDBInstanceAttributeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeDBInstanceAttributeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeDBInstanceAttributeRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeDBInstanceAttributeRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeDBInstanceAttributeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeDBInstanceAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeDBInstanceAttributeRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeDBInstanceAttributeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeDBInstanceAttributeRequest::getEngine()const +{ + return engine_; +} + +void DescribeDBInstanceAttributeRequest::setEngine(const std::string& engine) +{ + engine_ = engine; + setCoreParameter("Engine", engine); +} + +std::string DescribeDBInstanceAttributeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeDBInstanceAttributeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeDBInstanceAttributeRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeDBInstanceAttributeRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setCoreParameter("DBInstanceId", dBInstanceId); +} + +long DescribeDBInstanceAttributeRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeDBInstanceAttributeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeDBInstanceAttributeRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeDBInstanceAttributeRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dds/src/model/DescribeDBInstanceAttributeResult.cc b/dds/src/model/DescribeDBInstanceAttributeResult.cc new file mode 100644 index 000000000..4ea7ec3ef --- /dev/null +++ b/dds/src/model/DescribeDBInstanceAttributeResult.cc @@ -0,0 +1,188 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Dds; +using namespace AlibabaCloud::Dds::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 allDBInstances = value["DBInstances"]["DBInstance"]; + for (auto value : allDBInstances) + { + DBInstance dBInstancesObject; + if(!value["ResourceGroupId"].isNull()) + dBInstancesObject.resourceGroupId = value["ResourceGroupId"].asString(); + if(!value["DBInstanceId"].isNull()) + dBInstancesObject.dBInstanceId = value["DBInstanceId"].asString(); + if(!value["DBInstanceDescription"].isNull()) + dBInstancesObject.dBInstanceDescription = value["DBInstanceDescription"].asString(); + if(!value["RegionId"].isNull()) + dBInstancesObject.regionId = value["RegionId"].asString(); + if(!value["ZoneId"].isNull()) + dBInstancesObject.zoneId = value["ZoneId"].asString(); + if(!value["Engine"].isNull()) + dBInstancesObject.engine = value["Engine"].asString(); + if(!value["EngineVersion"].isNull()) + dBInstancesObject.engineVersion = value["EngineVersion"].asString(); + if(!value["StorageEngine"].isNull()) + dBInstancesObject.storageEngine = value["StorageEngine"].asString(); + if(!value["DBInstanceClass"].isNull()) + dBInstancesObject.dBInstanceClass = value["DBInstanceClass"].asString(); + if(!value["DBInstanceStorage"].isNull()) + dBInstancesObject.dBInstanceStorage = std::stoi(value["DBInstanceStorage"].asString()); + if(!value["ReplacateId"].isNull()) + dBInstancesObject.replacateId = value["ReplacateId"].asString(); + if(!value["VPCId"].isNull()) + dBInstancesObject.vPCId = value["VPCId"].asString(); + if(!value["VSwitchId"].isNull()) + dBInstancesObject.vSwitchId = value["VSwitchId"].asString(); + if(!value["VPCCloudInstanceIds"].isNull()) + dBInstancesObject.vPCCloudInstanceIds = value["VPCCloudInstanceIds"].asString(); + if(!value["DBInstanceStatus"].isNull()) + dBInstancesObject.dBInstanceStatus = value["DBInstanceStatus"].asString(); + if(!value["LockMode"].isNull()) + dBInstancesObject.lockMode = value["LockMode"].asString(); + if(!value["ChargeType"].isNull()) + dBInstancesObject.chargeType = value["ChargeType"].asString(); + if(!value["CreationTime"].isNull()) + dBInstancesObject.creationTime = value["CreationTime"].asString(); + if(!value["ReplicaSetName"].isNull()) + dBInstancesObject.replicaSetName = value["ReplicaSetName"].asString(); + if(!value["NetworkType"].isNull()) + dBInstancesObject.networkType = value["NetworkType"].asString(); + if(!value["ExpireTime"].isNull()) + dBInstancesObject.expireTime = value["ExpireTime"].asString(); + if(!value["MaintainStartTime"].isNull()) + dBInstancesObject.maintainStartTime = value["MaintainStartTime"].asString(); + if(!value["MaintainEndTime"].isNull()) + dBInstancesObject.maintainEndTime = value["MaintainEndTime"].asString(); + if(!value["DBInstanceType"].isNull()) + dBInstancesObject.dBInstanceType = value["DBInstanceType"].asString(); + if(!value["LastDowngradeTime"].isNull()) + dBInstancesObject.lastDowngradeTime = value["LastDowngradeTime"].asString(); + if(!value["ReplicationFactor"].isNull()) + dBInstancesObject.replicationFactor = value["ReplicationFactor"].asString(); + if(!value["MaxIOPS"].isNull()) + dBInstancesObject.maxIOPS = std::stoi(value["MaxIOPS"].asString()); + if(!value["MaxConnections"].isNull()) + dBInstancesObject.maxConnections = std::stoi(value["MaxConnections"].asString()); + if(!value["CurrentKernelVersion"].isNull()) + dBInstancesObject.currentKernelVersion = value["CurrentKernelVersion"].asString(); + auto allMongosList = value["MongosList"]["MongosAttribute"]; + for (auto value : allMongosList) + { + DBInstance::MongosAttribute mongosListObject; + if(!value["NodeId"].isNull()) + mongosListObject.nodeId = value["NodeId"].asString(); + if(!value["NodeDescription"].isNull()) + mongosListObject.nodeDescription = value["NodeDescription"].asString(); + if(!value["NodeClass"].isNull()) + mongosListObject.nodeClass = value["NodeClass"].asString(); + if(!value["ConnectSting"].isNull()) + mongosListObject.connectSting = value["ConnectSting"].asString(); + if(!value["MaxIOPS"].isNull()) + mongosListObject.maxIOPS = std::stoi(value["MaxIOPS"].asString()); + if(!value["MaxConnections"].isNull()) + mongosListObject.maxConnections = std::stoi(value["MaxConnections"].asString()); + if(!value["Port"].isNull()) + mongosListObject.port = std::stoi(value["Port"].asString()); + if(!value["VpcCloudInstanceId"].isNull()) + mongosListObject.vpcCloudInstanceId = value["VpcCloudInstanceId"].asString(); + if(!value["VPCId"].isNull()) + mongosListObject.vPCId = value["VPCId"].asString(); + if(!value["VSwitchId"].isNull()) + mongosListObject.vSwitchId = value["VSwitchId"].asString(); + dBInstancesObject.mongosList.push_back(mongosListObject); + } + auto allShardList = value["ShardList"]["ShardAttribute"]; + for (auto value : allShardList) + { + DBInstance::ShardAttribute shardListObject; + if(!value["NodeId"].isNull()) + shardListObject.nodeId = value["NodeId"].asString(); + if(!value["NodeDescription"].isNull()) + shardListObject.nodeDescription = value["NodeDescription"].asString(); + if(!value["NodeClass"].isNull()) + shardListObject.nodeClass = value["NodeClass"].asString(); + if(!value["NodeStorage"].isNull()) + shardListObject.nodeStorage = std::stoi(value["NodeStorage"].asString()); + if(!value["MaxIOPS"].isNull()) + shardListObject.maxIOPS = std::stoi(value["MaxIOPS"].asString()); + if(!value["MaxConnections"].isNull()) + shardListObject.maxConnections = std::stoi(value["MaxConnections"].asString()); + dBInstancesObject.shardList.push_back(shardListObject); + } + auto allReplicaSets = value["ReplicaSets"]["ReplicaSet"]; + for (auto value : allReplicaSets) + { + DBInstance::ReplicaSet replicaSetsObject; + if(!value["ReplicaSetRole"].isNull()) + replicaSetsObject.replicaSetRole = value["ReplicaSetRole"].asString(); + if(!value["ConnectionDomain"].isNull()) + replicaSetsObject.connectionDomain = value["ConnectionDomain"].asString(); + if(!value["ConnectionPort"].isNull()) + replicaSetsObject.connectionPort = value["ConnectionPort"].asString(); + if(!value["VPCCloudInstanceId"].isNull()) + replicaSetsObject.vPCCloudInstanceId = value["VPCCloudInstanceId"].asString(); + if(!value["VPCId"].isNull()) + replicaSetsObject.vPCId = value["VPCId"].asString(); + if(!value["VSwitchId"].isNull()) + replicaSetsObject.vSwitchId = value["VSwitchId"].asString(); + if(!value["NetworkType"].isNull()) + replicaSetsObject.networkType = value["NetworkType"].asString(); + dBInstancesObject.replicaSets.push_back(replicaSetsObject); + } + auto allTags = value["Tags"]["Tag"]; + for (auto value : allTags) + { + DBInstance::Tag tagsObject; + if(!value["Key"].isNull()) + tagsObject.key = value["Key"].asString(); + if(!value["Value"].isNull()) + tagsObject.value = value["Value"].asString(); + dBInstancesObject.tags.push_back(tagsObject); + } + dBInstances_.push_back(dBInstancesObject); + } + +} + +std::vector DescribeDBInstanceAttributeResult::getDBInstances()const +{ + return dBInstances_; +} + diff --git a/dds/src/model/DescribeDBInstanceMonitorRequest.cc b/dds/src/model/DescribeDBInstanceMonitorRequest.cc new file mode 100644 index 000000000..b056728c4 --- /dev/null +++ b/dds/src/model/DescribeDBInstanceMonitorRequest.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dds::Model::DescribeDBInstanceMonitorRequest; + +DescribeDBInstanceMonitorRequest::DescribeDBInstanceMonitorRequest() : + RpcServiceRequest("dds", "2015-12-01", "DescribeDBInstanceMonitor") +{} + +DescribeDBInstanceMonitorRequest::~DescribeDBInstanceMonitorRequest() +{} + +long DescribeDBInstanceMonitorRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeDBInstanceMonitorRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeDBInstanceMonitorRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeDBInstanceMonitorRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeDBInstanceMonitorRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeDBInstanceMonitorRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeDBInstanceMonitorRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeDBInstanceMonitorRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeDBInstanceMonitorRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeDBInstanceMonitorRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeDBInstanceMonitorRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeDBInstanceMonitorRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setCoreParameter("DBInstanceId", dBInstanceId); +} + +long DescribeDBInstanceMonitorRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeDBInstanceMonitorRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeDBInstanceMonitorRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeDBInstanceMonitorRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dds/src/model/DescribeDBInstanceMonitorResult.cc b/dds/src/model/DescribeDBInstanceMonitorResult.cc new file mode 100644 index 000000000..cc75665ec --- /dev/null +++ b/dds/src/model/DescribeDBInstanceMonitorResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Dds; +using namespace AlibabaCloud::Dds::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()); + if(!value["Granularity"].isNull()) + granularity_ = value["Granularity"].asString(); + +} + +std::string DescribeDBInstanceMonitorResult::getGranularity()const +{ + return granularity_; +} + diff --git a/dds/src/model/DescribeDBInstancePerformanceRequest.cc b/dds/src/model/DescribeDBInstancePerformanceRequest.cc new file mode 100644 index 000000000..6a3246d41 --- /dev/null +++ b/dds/src/model/DescribeDBInstancePerformanceRequest.cc @@ -0,0 +1,181 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dds::Model::DescribeDBInstancePerformanceRequest; + +DescribeDBInstancePerformanceRequest::DescribeDBInstancePerformanceRequest() : + RpcServiceRequest("dds", "2015-12-01", "DescribeDBInstancePerformance") +{} + +DescribeDBInstancePerformanceRequest::~DescribeDBInstancePerformanceRequest() +{} + +long DescribeDBInstancePerformanceRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeDBInstancePerformanceRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeDBInstancePerformanceRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeDBInstancePerformanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeDBInstancePerformanceRequest::getRoleId()const +{ + return roleId_; +} + +void DescribeDBInstancePerformanceRequest::setRoleId(const std::string& roleId) +{ + roleId_ = roleId; + setCoreParameter("RoleId", roleId); +} + +std::string DescribeDBInstancePerformanceRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeDBInstancePerformanceRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeDBInstancePerformanceRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeDBInstancePerformanceRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setCoreParameter("EndTime", endTime); +} + +std::string DescribeDBInstancePerformanceRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeDBInstancePerformanceRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setCoreParameter("StartTime", startTime); +} + +long DescribeDBInstancePerformanceRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeDBInstancePerformanceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeDBInstancePerformanceRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeDBInstancePerformanceRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeDBInstancePerformanceRequest::getReplicaSetRole()const +{ + return replicaSetRole_; +} + +void DescribeDBInstancePerformanceRequest::setReplicaSetRole(const std::string& replicaSetRole) +{ + replicaSetRole_ = replicaSetRole; + setCoreParameter("ReplicaSetRole", replicaSetRole); +} + +std::string DescribeDBInstancePerformanceRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeDBInstancePerformanceRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeDBInstancePerformanceRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeDBInstancePerformanceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeDBInstancePerformanceRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeDBInstancePerformanceRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setCoreParameter("DBInstanceId", dBInstanceId); +} + +std::string DescribeDBInstancePerformanceRequest::getNodeId()const +{ + return nodeId_; +} + +void DescribeDBInstancePerformanceRequest::setNodeId(const std::string& nodeId) +{ + nodeId_ = nodeId; + setCoreParameter("NodeId", nodeId); +} + +std::string DescribeDBInstancePerformanceRequest::getKey()const +{ + return key_; +} + +void DescribeDBInstancePerformanceRequest::setKey(const std::string& key) +{ + key_ = key; + setCoreParameter("Key", key); +} + diff --git a/dds/src/model/DescribeDBInstancePerformanceResult.cc b/dds/src/model/DescribeDBInstancePerformanceResult.cc new file mode 100644 index 000000000..16421b45a --- /dev/null +++ b/dds/src/model/DescribeDBInstancePerformanceResult.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::Dds; +using namespace AlibabaCloud::Dds::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 performanceKeysObject; + if(!value["Key"].isNull()) + performanceKeysObject.key = value["Key"].asString(); + if(!value["Unit"].isNull()) + performanceKeysObject.unit = value["Unit"].asString(); + if(!value["ValueFormat"].isNull()) + performanceKeysObject.valueFormat = value["ValueFormat"].asString(); + auto allPerformanceValues = value["PerformanceValues"]["PerformanceValue"]; + for (auto value : allPerformanceValues) + { + PerformanceKey::PerformanceValue performanceValuesObject; + if(!value["Value"].isNull()) + performanceValuesObject.value = value["Value"].asString(); + if(!value["Date"].isNull()) + performanceValuesObject.date = value["Date"].asString(); + performanceKeysObject.performanceValues.push_back(performanceValuesObject); + } + performanceKeys_.push_back(performanceKeysObject); + } + if(!value["DBInstanceId"].isNull()) + dBInstanceId_ = value["DBInstanceId"].asString(); + if(!value["Engine"].isNull()) + engine_ = value["Engine"].asString(); + if(!value["StartTime"].isNull()) + startTime_ = value["StartTime"].asString(); + if(!value["EndTime"].isNull()) + endTime_ = value["EndTime"].asString(); + +} + +std::vector DescribeDBInstancePerformanceResult::getPerformanceKeys()const +{ + return performanceKeys_; +} + +std::string DescribeDBInstancePerformanceResult::getEndTime()const +{ + return endTime_; +} + +std::string DescribeDBInstancePerformanceResult::getDBInstanceId()const +{ + return dBInstanceId_; +} + +std::string DescribeDBInstancePerformanceResult::getStartTime()const +{ + return startTime_; +} + +std::string DescribeDBInstancePerformanceResult::getEngine()const +{ + return engine_; +} + diff --git a/dds/src/model/DescribeDBInstanceSSLRequest.cc b/dds/src/model/DescribeDBInstanceSSLRequest.cc new file mode 100644 index 000000000..5c0066e45 --- /dev/null +++ b/dds/src/model/DescribeDBInstanceSSLRequest.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dds::Model::DescribeDBInstanceSSLRequest; + +DescribeDBInstanceSSLRequest::DescribeDBInstanceSSLRequest() : + RpcServiceRequest("dds", "2015-12-01", "DescribeDBInstanceSSL") +{} + +DescribeDBInstanceSSLRequest::~DescribeDBInstanceSSLRequest() +{} + +long DescribeDBInstanceSSLRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeDBInstanceSSLRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeDBInstanceSSLRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeDBInstanceSSLRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeDBInstanceSSLRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeDBInstanceSSLRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeDBInstanceSSLRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeDBInstanceSSLRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeDBInstanceSSLRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeDBInstanceSSLRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeDBInstanceSSLRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeDBInstanceSSLRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setCoreParameter("DBInstanceId", dBInstanceId); +} + +long DescribeDBInstanceSSLRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeDBInstanceSSLRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeDBInstanceSSLRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeDBInstanceSSLRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dds/src/model/DescribeDBInstanceSSLResult.cc b/dds/src/model/DescribeDBInstanceSSLResult.cc new file mode 100644 index 000000000..7f01f8c05 --- /dev/null +++ b/dds/src/model/DescribeDBInstanceSSLResult.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::Dds; +using namespace AlibabaCloud::Dds::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()); + if(!value["SSLExpiredTime"].isNull()) + sSLExpiredTime_ = value["SSLExpiredTime"].asString(); + if(!value["CertCommonName"].isNull()) + certCommonName_ = value["CertCommonName"].asString(); + if(!value["SSLStatus"].isNull()) + sSLStatus_ = value["SSLStatus"].asString(); + +} + +std::string DescribeDBInstanceSSLResult::getSSLExpiredTime()const +{ + return sSLExpiredTime_; +} + +std::string DescribeDBInstanceSSLResult::getSSLStatus()const +{ + return sSLStatus_; +} + +std::string DescribeDBInstanceSSLResult::getCertCommonName()const +{ + return certCommonName_; +} + diff --git a/dds/src/model/DescribeDBInstancesRequest.cc b/dds/src/model/DescribeDBInstancesRequest.cc new file mode 100644 index 000000000..9e4942ba1 --- /dev/null +++ b/dds/src/model/DescribeDBInstancesRequest.cc @@ -0,0 +1,308 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dds::Model::DescribeDBInstancesRequest; + +DescribeDBInstancesRequest::DescribeDBInstancesRequest() : + RpcServiceRequest("dds", "2015-12-01", "DescribeDBInstances") +{} + +DescribeDBInstancesRequest::~DescribeDBInstancesRequest() +{} + +long DescribeDBInstancesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeDBInstancesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeDBInstancesRequest::getEngineVersion()const +{ + return engineVersion_; +} + +void DescribeDBInstancesRequest::setEngineVersion(const std::string& engineVersion) +{ + engineVersion_ = engineVersion; + setCoreParameter("EngineVersion", engineVersion); +} + +std::string DescribeDBInstancesRequest::getNetworkType()const +{ + return networkType_; +} + +void DescribeDBInstancesRequest::setNetworkType(const std::string& networkType) +{ + networkType_ = networkType; + setCoreParameter("NetworkType", networkType); +} + +int DescribeDBInstancesRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeDBInstancesRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeDBInstancesRequest::getReplicationFactor()const +{ + return replicationFactor_; +} + +void DescribeDBInstancesRequest::setReplicationFactor(const std::string& replicationFactor) +{ + replicationFactor_ = replicationFactor; + setCoreParameter("ReplicationFactor", replicationFactor); +} + +std::string DescribeDBInstancesRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeDBInstancesRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeDBInstancesRequest::getExpired()const +{ + return expired_; +} + +void DescribeDBInstancesRequest::setExpired(const std::string& expired) +{ + expired_ = expired; + setCoreParameter("Expired", expired); +} + +std::string DescribeDBInstancesRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeDBInstancesRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeDBInstancesRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeDBInstancesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeDBInstancesRequest::getEngine()const +{ + return engine_; +} + +void DescribeDBInstancesRequest::setEngine(const std::string& engine) +{ + engine_ = engine; + setCoreParameter("Engine", engine); +} + +int DescribeDBInstancesRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeDBInstancesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeDBInstancesRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeDBInstancesRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setCoreParameter("DBInstanceId", dBInstanceId); +} + +std::string DescribeDBInstancesRequest::getDBInstanceDescription()const +{ + return dBInstanceDescription_; +} + +void DescribeDBInstancesRequest::setDBInstanceDescription(const std::string& dBInstanceDescription) +{ + dBInstanceDescription_ = dBInstanceDescription; + setCoreParameter("DBInstanceDescription", dBInstanceDescription); +} + +std::string DescribeDBInstancesRequest::getDBInstanceStatus()const +{ + return dBInstanceStatus_; +} + +void DescribeDBInstancesRequest::setDBInstanceStatus(const std::string& dBInstanceStatus) +{ + dBInstanceStatus_ = dBInstanceStatus; + setCoreParameter("DBInstanceStatus", dBInstanceStatus); +} + +std::vector DescribeDBInstancesRequest::getTag()const +{ + return tag_; +} + +void DescribeDBInstancesRequest::setTag(const std::vector& tag) +{ + tag_ = tag; + int i = 0; + for(int i = 0; i!= tag.size(); i++) { + auto obj = tag.at(i); + std::string str ="Tag."+ std::to_string(i); + setCoreParameter(str + ".Value", obj.value); + setCoreParameter(str + ".Key", obj.key); + } +} + +std::string DescribeDBInstancesRequest::getExpireTime()const +{ + return expireTime_; +} + +void DescribeDBInstancesRequest::setExpireTime(const std::string& expireTime) +{ + expireTime_ = expireTime; + setCoreParameter("ExpireTime", expireTime); +} + +std::string DescribeDBInstancesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeDBInstancesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeDBInstancesRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeDBInstancesRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +long DescribeDBInstancesRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeDBInstancesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeDBInstancesRequest::getDBInstanceType()const +{ + return dBInstanceType_; +} + +void DescribeDBInstancesRequest::setDBInstanceType(const std::string& dBInstanceType) +{ + dBInstanceType_ = dBInstanceType; + setCoreParameter("DBInstanceType", dBInstanceType); +} + +std::string DescribeDBInstancesRequest::getDBInstanceClass()const +{ + return dBInstanceClass_; +} + +void DescribeDBInstancesRequest::setDBInstanceClass(const std::string& dBInstanceClass) +{ + dBInstanceClass_ = dBInstanceClass; + setCoreParameter("DBInstanceClass", dBInstanceClass); +} + +std::string DescribeDBInstancesRequest::getVSwitchId()const +{ + return vSwitchId_; +} + +void DescribeDBInstancesRequest::setVSwitchId(const std::string& vSwitchId) +{ + vSwitchId_ = vSwitchId; + setCoreParameter("VSwitchId", vSwitchId); +} + +std::string DescribeDBInstancesRequest::getVpcId()const +{ + return vpcId_; +} + +void DescribeDBInstancesRequest::setVpcId(const std::string& vpcId) +{ + vpcId_ = vpcId; + setCoreParameter("VpcId", vpcId); +} + +std::string DescribeDBInstancesRequest::getZoneId()const +{ + return zoneId_; +} + +void DescribeDBInstancesRequest::setZoneId(const std::string& zoneId) +{ + zoneId_ = zoneId; + setCoreParameter("ZoneId", zoneId); +} + +std::string DescribeDBInstancesRequest::getChargeType()const +{ + return chargeType_; +} + +void DescribeDBInstancesRequest::setChargeType(const std::string& chargeType) +{ + chargeType_ = chargeType; + setCoreParameter("ChargeType", chargeType); +} + diff --git a/dds/src/model/DescribeDBInstancesResult.cc b/dds/src/model/DescribeDBInstancesResult.cc new file mode 100644 index 000000000..4ed453f45 --- /dev/null +++ b/dds/src/model/DescribeDBInstancesResult.cc @@ -0,0 +1,155 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Dds; +using namespace AlibabaCloud::Dds::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 allDBInstances = value["DBInstances"]["DBInstance"]; + for (auto value : allDBInstances) + { + DBInstance dBInstancesObject; + if(!value["ResourceGroupId"].isNull()) + dBInstancesObject.resourceGroupId = value["ResourceGroupId"].asString(); + if(!value["DBInstanceId"].isNull()) + dBInstancesObject.dBInstanceId = value["DBInstanceId"].asString(); + if(!value["DBInstanceDescription"].isNull()) + dBInstancesObject.dBInstanceDescription = value["DBInstanceDescription"].asString(); + if(!value["RegionId"].isNull()) + dBInstancesObject.regionId = value["RegionId"].asString(); + if(!value["ZoneId"].isNull()) + dBInstancesObject.zoneId = value["ZoneId"].asString(); + if(!value["Engine"].isNull()) + dBInstancesObject.engine = value["Engine"].asString(); + if(!value["EngineVersion"].isNull()) + dBInstancesObject.engineVersion = value["EngineVersion"].asString(); + if(!value["DBInstanceClass"].isNull()) + dBInstancesObject.dBInstanceClass = value["DBInstanceClass"].asString(); + if(!value["DBInstanceStorage"].isNull()) + dBInstancesObject.dBInstanceStorage = std::stoi(value["DBInstanceStorage"].asString()); + if(!value["DBInstanceStatus"].isNull()) + dBInstancesObject.dBInstanceStatus = value["DBInstanceStatus"].asString(); + if(!value["LockMode"].isNull()) + dBInstancesObject.lockMode = value["LockMode"].asString(); + if(!value["ChargeType"].isNull()) + dBInstancesObject.chargeType = value["ChargeType"].asString(); + if(!value["NetworkType"].isNull()) + dBInstancesObject.networkType = value["NetworkType"].asString(); + if(!value["CreationTime"].isNull()) + dBInstancesObject.creationTime = value["CreationTime"].asString(); + if(!value["ExpireTime"].isNull()) + dBInstancesObject.expireTime = value["ExpireTime"].asString(); + if(!value["DBInstanceType"].isNull()) + dBInstancesObject.dBInstanceType = value["DBInstanceType"].asString(); + if(!value["LastDowngradeTime"].isNull()) + dBInstancesObject.lastDowngradeTime = value["LastDowngradeTime"].asString(); + if(!value["ReplicationFactor"].isNull()) + dBInstancesObject.replicationFactor = value["ReplicationFactor"].asString(); + if(!value["DestroyTime"].isNull()) + dBInstancesObject.destroyTime = value["DestroyTime"].asString(); + auto allMongosList = value["MongosList"]["MongosAttribute"]; + for (auto value : allMongosList) + { + DBInstance::MongosAttribute mongosListObject; + if(!value["NodeId"].isNull()) + mongosListObject.nodeId = value["NodeId"].asString(); + if(!value["NodeDescription"].isNull()) + mongosListObject.nodeDescription = value["NodeDescription"].asString(); + if(!value["NodeClass"].isNull()) + mongosListObject.nodeClass = value["NodeClass"].asString(); + if(!value["ConnectSting"].isNull()) + mongosListObject.connectSting = value["ConnectSting"].asString(); + if(!value["Port"].isNull()) + mongosListObject.port = std::stoi(value["Port"].asString()); + dBInstancesObject.mongosList.push_back(mongosListObject); + } + auto allShardList = value["ShardList"]["ShardAttribute"]; + for (auto value : allShardList) + { + DBInstance::ShardAttribute shardListObject; + if(!value["NodeId"].isNull()) + shardListObject.nodeId = value["NodeId"].asString(); + if(!value["NodeDescription"].isNull()) + shardListObject.nodeDescription = value["NodeDescription"].asString(); + if(!value["NodeClass"].isNull()) + shardListObject.nodeClass = value["NodeClass"].asString(); + if(!value["NodeStorage"].isNull()) + shardListObject.nodeStorage = std::stoi(value["NodeStorage"].asString()); + dBInstancesObject.shardList.push_back(shardListObject); + } + auto allTags = value["Tags"]["Tag"]; + for (auto value : allTags) + { + DBInstance::Tag tagsObject; + if(!value["Key"].isNull()) + tagsObject.key = value["Key"].asString(); + if(!value["Value"].isNull()) + tagsObject.value = value["Value"].asString(); + dBInstancesObject.tags.push_back(tagsObject); + } + dBInstances_.push_back(dBInstancesObject); + } + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int DescribeDBInstancesResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeDBInstancesResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeDBInstancesResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeDBInstancesResult::getDBInstances()const +{ + return dBInstances_; +} + diff --git a/dds/src/model/DescribeErrorLogRecordsRequest.cc b/dds/src/model/DescribeErrorLogRecordsRequest.cc new file mode 100644 index 000000000..7d1baffc4 --- /dev/null +++ b/dds/src/model/DescribeErrorLogRecordsRequest.cc @@ -0,0 +1,203 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dds::Model::DescribeErrorLogRecordsRequest; + +DescribeErrorLogRecordsRequest::DescribeErrorLogRecordsRequest() : + RpcServiceRequest("dds", "2015-12-01", "DescribeErrorLogRecords") +{} + +DescribeErrorLogRecordsRequest::~DescribeErrorLogRecordsRequest() +{} + +long DescribeErrorLogRecordsRequest::getSQLId()const +{ + return sQLId_; +} + +void DescribeErrorLogRecordsRequest::setSQLId(long sQLId) +{ + sQLId_ = sQLId; + setCoreParameter("SQLId", std::to_string(sQLId)); +} + +long DescribeErrorLogRecordsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeErrorLogRecordsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeErrorLogRecordsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeErrorLogRecordsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeErrorLogRecordsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeErrorLogRecordsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeErrorLogRecordsRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeErrorLogRecordsRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setCoreParameter("EndTime", endTime); +} + +std::string DescribeErrorLogRecordsRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeErrorLogRecordsRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setCoreParameter("StartTime", startTime); +} + +long DescribeErrorLogRecordsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeErrorLogRecordsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeErrorLogRecordsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeErrorLogRecordsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeErrorLogRecordsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeErrorLogRecordsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeErrorLogRecordsRequest::getDBName()const +{ + return dBName_; +} + +void DescribeErrorLogRecordsRequest::setDBName(const std::string& dBName) +{ + dBName_ = dBName; + setCoreParameter("DBName", dBName); +} + +std::string DescribeErrorLogRecordsRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeErrorLogRecordsRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeErrorLogRecordsRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeErrorLogRecordsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +int DescribeErrorLogRecordsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeErrorLogRecordsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeErrorLogRecordsRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeErrorLogRecordsRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setCoreParameter("DBInstanceId", dBInstanceId); +} + +std::string DescribeErrorLogRecordsRequest::getRoleType()const +{ + return roleType_; +} + +void DescribeErrorLogRecordsRequest::setRoleType(const std::string& roleType) +{ + roleType_ = roleType; + setCoreParameter("RoleType", roleType); +} + +std::string DescribeErrorLogRecordsRequest::getNodeId()const +{ + return nodeId_; +} + +void DescribeErrorLogRecordsRequest::setNodeId(const std::string& nodeId) +{ + nodeId_ = nodeId; + setCoreParameter("NodeId", nodeId); +} + diff --git a/dds/src/model/DescribeErrorLogRecordsResult.cc b/dds/src/model/DescribeErrorLogRecordsResult.cc new file mode 100644 index 000000000..c0b78c79b --- /dev/null +++ b/dds/src/model/DescribeErrorLogRecordsResult.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::Dds; +using namespace AlibabaCloud::Dds::Model; + +DescribeErrorLogRecordsResult::DescribeErrorLogRecordsResult() : + ServiceResult() +{} + +DescribeErrorLogRecordsResult::DescribeErrorLogRecordsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeErrorLogRecordsResult::~DescribeErrorLogRecordsResult() +{} + +void DescribeErrorLogRecordsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["LogRecords"]; + for (auto value : allItems) + { + LogRecords itemsObject; + if(!value["Id"].isNull()) + itemsObject.id = std::stoi(value["Id"].asString()); + if(!value["CreateTime"].isNull()) + itemsObject.createTime = value["CreateTime"].asString(); + if(!value["Category"].isNull()) + itemsObject.category = value["Category"].asString(); + if(!value["ConnInfo"].isNull()) + itemsObject.connInfo = value["ConnInfo"].asString(); + if(!value["Content"].isNull()) + itemsObject.content = std::stol(value["Content"].asString()); + items_.push_back(itemsObject); + } + if(!value["Engine"].isNull()) + engine_ = value["Engine"].asString(); + if(!value["TotalRecordCount"].isNull()) + totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageRecordCount"].isNull()) + pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); + +} + +int DescribeErrorLogRecordsResult::getTotalRecordCount()const +{ + return totalRecordCount_; +} + +int DescribeErrorLogRecordsResult::getPageRecordCount()const +{ + return pageRecordCount_; +} + +int DescribeErrorLogRecordsResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeErrorLogRecordsResult::getItems()const +{ + return items_; +} + +std::string DescribeErrorLogRecordsResult::getEngine()const +{ + return engine_; +} + diff --git a/dds/src/model/DescribeIndexRecommendationRequest.cc b/dds/src/model/DescribeIndexRecommendationRequest.cc new file mode 100644 index 000000000..f14fac1b5 --- /dev/null +++ b/dds/src/model/DescribeIndexRecommendationRequest.cc @@ -0,0 +1,214 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dds::Model::DescribeIndexRecommendationRequest; + +DescribeIndexRecommendationRequest::DescribeIndexRecommendationRequest() : + RpcServiceRequest("dds", "2015-12-01", "DescribeIndexRecommendation") +{} + +DescribeIndexRecommendationRequest::~DescribeIndexRecommendationRequest() +{} + +long DescribeIndexRecommendationRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeIndexRecommendationRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeIndexRecommendationRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeIndexRecommendationRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeIndexRecommendationRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeIndexRecommendationRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeIndexRecommendationRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeIndexRecommendationRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setCoreParameter("EndTime", endTime); +} + +std::string DescribeIndexRecommendationRequest::getCollection()const +{ + return collection_; +} + +void DescribeIndexRecommendationRequest::setCollection(const std::string& collection) +{ + collection_ = collection; + setCoreParameter("Collection", collection); +} + +std::string DescribeIndexRecommendationRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeIndexRecommendationRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setCoreParameter("StartTime", startTime); +} + +std::string DescribeIndexRecommendationRequest::getOperationType()const +{ + return operationType_; +} + +void DescribeIndexRecommendationRequest::setOperationType(const std::string& operationType) +{ + operationType_ = operationType; + setCoreParameter("OperationType", operationType); +} + +long DescribeIndexRecommendationRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeIndexRecommendationRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeIndexRecommendationRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeIndexRecommendationRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeIndexRecommendationRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeIndexRecommendationRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeIndexRecommendationRequest::getDatabase()const +{ + return database_; +} + +void DescribeIndexRecommendationRequest::setDatabase(const std::string& database) +{ + database_ = database; + setCoreParameter("Database", database); +} + +std::string DescribeIndexRecommendationRequest::getInstanceId()const +{ + return instanceId_; +} + +void DescribeIndexRecommendationRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string DescribeIndexRecommendationRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeIndexRecommendationRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeIndexRecommendationRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeIndexRecommendationRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +int DescribeIndexRecommendationRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeIndexRecommendationRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeIndexRecommendationRequest::getNodeId()const +{ + return nodeId_; +} + +void DescribeIndexRecommendationRequest::setNodeId(const std::string& nodeId) +{ + nodeId_ = nodeId; + setCoreParameter("NodeId", nodeId); +} + +std::string DescribeIndexRecommendationRequest::getTaskId()const +{ + return taskId_; +} + +void DescribeIndexRecommendationRequest::setTaskId(const std::string& taskId) +{ + taskId_ = taskId; + setCoreParameter("TaskId", taskId); +} + diff --git a/dds/src/model/DescribeIndexRecommendationResult.cc b/dds/src/model/DescribeIndexRecommendationResult.cc new file mode 100644 index 000000000..64d24cc75 --- /dev/null +++ b/dds/src/model/DescribeIndexRecommendationResult.cc @@ -0,0 +1,118 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Dds; +using namespace AlibabaCloud::Dds::Model; + +DescribeIndexRecommendationResult::DescribeIndexRecommendationResult() : + ServiceResult() +{} + +DescribeIndexRecommendationResult::DescribeIndexRecommendationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeIndexRecommendationResult::~DescribeIndexRecommendationResult() +{} + +void DescribeIndexRecommendationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allAnalyzations = value["Analyzations"]["Analyzation"]; + for (auto value : allAnalyzations) + { + Analyzation analyzationsObject; + if(!value["Database"].isNull()) + analyzationsObject.database = value["Database"].asString(); + if(!value["Namespace"].isNull()) + analyzationsObject._namespace = value["Namespace"].asString(); + if(!value["Operation"].isNull()) + analyzationsObject.operation = value["Operation"].asString(); + if(!value["Query"].isNull()) + analyzationsObject.query = value["Query"].asString(); + if(!value["Sort"].isNull()) + analyzationsObject.sort = value["Sort"].asString(); + if(!value["Count"].isNull()) + analyzationsObject.count = std::stol(value["Count"].asString()); + if(!value["TotalExecutionTime"].isNull()) + analyzationsObject.totalExecutionTime = std::stol(value["TotalExecutionTime"].asString()); + if(!value["AverageExecutionTime"].isNull()) + analyzationsObject.averageExecutionTime = std::stol(value["AverageExecutionTime"].asString()); + if(!value["AverageReturnRowCount"].isNull()) + analyzationsObject.averageReturnRowCount = std::stol(value["AverageReturnRowCount"].asString()); + if(!value["AverageDocsExaminedCount"].isNull()) + analyzationsObject.averageDocsExaminedCount = std::stol(value["AverageDocsExaminedCount"].asString()); + if(!value["AverageKeysExaminedCount"].isNull()) + analyzationsObject.averageKeysExaminedCount = std::stol(value["AverageKeysExaminedCount"].asString()); + if(!value["InMemorySort"].isNull()) + analyzationsObject.inMemorySort = value["InMemorySort"].asString(); + if(!value["LastExecutionTime"].isNull()) + analyzationsObject.lastExecutionTime = value["LastExecutionTime"].asString(); + if(!value["ExecutionPlan"].isNull()) + analyzationsObject.executionPlan = value["ExecutionPlan"].asString(); + auto allIndexRecommendations = value["IndexRecommendations"]["Recommendation"]; + for (auto value : allIndexRecommendations) + { + Analyzation::Recommendation indexRecommendationsObject; + if(!value["RecmdType"].isNull()) + indexRecommendationsObject.recmdType = value["RecmdType"].asString(); + if(!value["Content"].isNull()) + indexRecommendationsObject.content = value["Content"].asString(); + analyzationsObject.indexRecommendations.push_back(indexRecommendationsObject); + } + auto allIndexCombines = value["IndexCombines"]["IndexCombine"]; + for (auto value : allIndexCombines) + analyzationsObject.indexCombines.push_back(value.asString()); + analyzations_.push_back(analyzationsObject); + } + if(!value["TotalRecordCount"].isNull()) + totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageRecordCount"].isNull()) + pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); + +} + +int DescribeIndexRecommendationResult::getTotalRecordCount()const +{ + return totalRecordCount_; +} + +int DescribeIndexRecommendationResult::getPageRecordCount()const +{ + return pageRecordCount_; +} + +std::vector DescribeIndexRecommendationResult::getAnalyzations()const +{ + return analyzations_; +} + +int DescribeIndexRecommendationResult::getPageNumber()const +{ + return pageNumber_; +} + diff --git a/dds/src/model/DescribeInstanceAutoRenewalAttributeRequest.cc b/dds/src/model/DescribeInstanceAutoRenewalAttributeRequest.cc new file mode 100644 index 000000000..40b76ee71 --- /dev/null +++ b/dds/src/model/DescribeInstanceAutoRenewalAttributeRequest.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 + +using AlibabaCloud::Dds::Model::DescribeInstanceAutoRenewalAttributeRequest; + +DescribeInstanceAutoRenewalAttributeRequest::DescribeInstanceAutoRenewalAttributeRequest() : + RpcServiceRequest("dds", "2015-12-01", "DescribeInstanceAutoRenewalAttribute") +{} + +DescribeInstanceAutoRenewalAttributeRequest::~DescribeInstanceAutoRenewalAttributeRequest() +{} + +long DescribeInstanceAutoRenewalAttributeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeInstanceAutoRenewalAttributeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeInstanceAutoRenewalAttributeRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeInstanceAutoRenewalAttributeRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeInstanceAutoRenewalAttributeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeInstanceAutoRenewalAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeInstanceAutoRenewalAttributeRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeInstanceAutoRenewalAttributeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeInstanceAutoRenewalAttributeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeInstanceAutoRenewalAttributeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeInstanceAutoRenewalAttributeRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeInstanceAutoRenewalAttributeRequest::setPageSize(const std::string& pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", pageSize); +} + +std::string DescribeInstanceAutoRenewalAttributeRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeInstanceAutoRenewalAttributeRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setCoreParameter("DBInstanceId", dBInstanceId); +} + +long DescribeInstanceAutoRenewalAttributeRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeInstanceAutoRenewalAttributeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeInstanceAutoRenewalAttributeRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeInstanceAutoRenewalAttributeRequest::setPageNumber(const std::string& pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", pageNumber); +} + +std::string DescribeInstanceAutoRenewalAttributeRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeInstanceAutoRenewalAttributeRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeInstanceAutoRenewalAttributeRequest::getDBInstanceType()const +{ + return dBInstanceType_; +} + +void DescribeInstanceAutoRenewalAttributeRequest::setDBInstanceType(const std::string& dBInstanceType) +{ + dBInstanceType_ = dBInstanceType; + setCoreParameter("DBInstanceType", dBInstanceType); +} + diff --git a/dds/src/model/DescribeInstanceAutoRenewalAttributeResult.cc b/dds/src/model/DescribeInstanceAutoRenewalAttributeResult.cc new file mode 100644 index 000000000..c5d2d274f --- /dev/null +++ b/dds/src/model/DescribeInstanceAutoRenewalAttributeResult.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::Dds; +using namespace AlibabaCloud::Dds::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 itemsObject; + if(!value["DbInstanceId"].isNull()) + itemsObject.dbInstanceId = value["DbInstanceId"].asString(); + if(!value["RegionId"].isNull()) + itemsObject.regionId = value["RegionId"].asString(); + if(!value["Duration"].isNull()) + itemsObject.duration = value["Duration"].asString(); + if(!value["AutoRenew"].isNull()) + itemsObject.autoRenew = value["AutoRenew"].asString(); + if(!value["DBInstanceType"].isNull()) + itemsObject.dBInstanceType = value["DBInstanceType"].asString(); + items_.push_back(itemsObject); + } + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageRecordCount"].isNull()) + pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); + if(!value["ItemsNumbers"].isNull()) + itemsNumbers_ = std::stoi(value["ItemsNumbers"].asString()); + +} + +int DescribeInstanceAutoRenewalAttributeResult::getItemsNumbers()const +{ + return itemsNumbers_; +} + +int DescribeInstanceAutoRenewalAttributeResult::getPageRecordCount()const +{ + return pageRecordCount_; +} + +int DescribeInstanceAutoRenewalAttributeResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeInstanceAutoRenewalAttributeResult::getItems()const +{ + return items_; +} + diff --git a/dds/src/model/DescribeKernelReleaseNotesRequest.cc b/dds/src/model/DescribeKernelReleaseNotesRequest.cc new file mode 100644 index 000000000..6d030c091 --- /dev/null +++ b/dds/src/model/DescribeKernelReleaseNotesRequest.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dds::Model::DescribeKernelReleaseNotesRequest; + +DescribeKernelReleaseNotesRequest::DescribeKernelReleaseNotesRequest() : + RpcServiceRequest("dds", "2015-12-01", "DescribeKernelReleaseNotes") +{} + +DescribeKernelReleaseNotesRequest::~DescribeKernelReleaseNotesRequest() +{} + +long DescribeKernelReleaseNotesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeKernelReleaseNotesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeKernelReleaseNotesRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeKernelReleaseNotesRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeKernelReleaseNotesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeKernelReleaseNotesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeKernelReleaseNotesRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeKernelReleaseNotesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeKernelReleaseNotesRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeKernelReleaseNotesRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +long DescribeKernelReleaseNotesRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeKernelReleaseNotesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeKernelReleaseNotesRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeKernelReleaseNotesRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeKernelReleaseNotesRequest::getKernelVersion()const +{ + return kernelVersion_; +} + +void DescribeKernelReleaseNotesRequest::setKernelVersion(const std::string& kernelVersion) +{ + kernelVersion_ = kernelVersion; + setCoreParameter("KernelVersion", kernelVersion); +} + diff --git a/dds/src/model/DescribeKernelReleaseNotesResult.cc b/dds/src/model/DescribeKernelReleaseNotesResult.cc new file mode 100644 index 000000000..0860bacc8 --- /dev/null +++ b/dds/src/model/DescribeKernelReleaseNotesResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Dds; +using namespace AlibabaCloud::Dds::Model; + +DescribeKernelReleaseNotesResult::DescribeKernelReleaseNotesResult() : + ServiceResult() +{} + +DescribeKernelReleaseNotesResult::DescribeKernelReleaseNotesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeKernelReleaseNotesResult::~DescribeKernelReleaseNotesResult() +{} + +void DescribeKernelReleaseNotesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allReleaseNotes = value["ReleaseNotes"]["ReleaseNote"]; + for (auto value : allReleaseNotes) + { + ReleaseNote releaseNotesObject; + if(!value["KernelVersion"].isNull()) + releaseNotesObject.kernelVersion = value["KernelVersion"].asString(); + if(!value["ReleaseNote"].isNull()) + releaseNotesObject.releaseNote = value["ReleaseNote"].asString(); + releaseNotes_.push_back(releaseNotesObject); + } + +} + +std::vector DescribeKernelReleaseNotesResult::getReleaseNotes()const +{ + return releaseNotes_; +} + diff --git a/dds/src/model/DescribeParameterModificationHistoryRequest.cc b/dds/src/model/DescribeParameterModificationHistoryRequest.cc new file mode 100644 index 000000000..8238dc29b --- /dev/null +++ b/dds/src/model/DescribeParameterModificationHistoryRequest.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 + +using AlibabaCloud::Dds::Model::DescribeParameterModificationHistoryRequest; + +DescribeParameterModificationHistoryRequest::DescribeParameterModificationHistoryRequest() : + RpcServiceRequest("dds", "2015-12-01", "DescribeParameterModificationHistory") +{} + +DescribeParameterModificationHistoryRequest::~DescribeParameterModificationHistoryRequest() +{} + +long DescribeParameterModificationHistoryRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeParameterModificationHistoryRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeParameterModificationHistoryRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeParameterModificationHistoryRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeParameterModificationHistoryRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeParameterModificationHistoryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeParameterModificationHistoryRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeParameterModificationHistoryRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeParameterModificationHistoryRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeParameterModificationHistoryRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeParameterModificationHistoryRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeParameterModificationHistoryRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setCoreParameter("EndTime", endTime); +} + +std::string DescribeParameterModificationHistoryRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeParameterModificationHistoryRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setCoreParameter("DBInstanceId", dBInstanceId); +} + +std::string DescribeParameterModificationHistoryRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeParameterModificationHistoryRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setCoreParameter("StartTime", startTime); +} + +long DescribeParameterModificationHistoryRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeParameterModificationHistoryRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeParameterModificationHistoryRequest::getNodeId()const +{ + return nodeId_; +} + +void DescribeParameterModificationHistoryRequest::setNodeId(const std::string& nodeId) +{ + nodeId_ = nodeId; + setCoreParameter("NodeId", nodeId); +} + +std::string DescribeParameterModificationHistoryRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeParameterModificationHistoryRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dds/src/model/DescribeParameterModificationHistoryResult.cc b/dds/src/model/DescribeParameterModificationHistoryResult.cc new file mode 100644 index 000000000..77ec08090 --- /dev/null +++ b/dds/src/model/DescribeParameterModificationHistoryResult.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::Dds; +using namespace AlibabaCloud::Dds::Model; + +DescribeParameterModificationHistoryResult::DescribeParameterModificationHistoryResult() : + ServiceResult() +{} + +DescribeParameterModificationHistoryResult::DescribeParameterModificationHistoryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeParameterModificationHistoryResult::~DescribeParameterModificationHistoryResult() +{} + +void DescribeParameterModificationHistoryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allHistoricalParameters = value["HistoricalParameters"]["HistoricalParameter"]; + for (auto value : allHistoricalParameters) + { + HistoricalParameter historicalParametersObject; + if(!value["ParameterName"].isNull()) + historicalParametersObject.parameterName = value["ParameterName"].asString(); + if(!value["ModifyTime"].isNull()) + historicalParametersObject.modifyTime = value["ModifyTime"].asString(); + if(!value["OldParameterValue"].isNull()) + historicalParametersObject.oldParameterValue = value["OldParameterValue"].asString(); + if(!value["NewParameterValue"].isNull()) + historicalParametersObject.newParameterValue = value["NewParameterValue"].asString(); + historicalParameters_.push_back(historicalParametersObject); + } + +} + +std::vector DescribeParameterModificationHistoryResult::getHistoricalParameters()const +{ + return historicalParameters_; +} + diff --git a/dds/src/model/DescribeParameterTemplatesRequest.cc b/dds/src/model/DescribeParameterTemplatesRequest.cc new file mode 100644 index 000000000..fe9ca4401 --- /dev/null +++ b/dds/src/model/DescribeParameterTemplatesRequest.cc @@ -0,0 +1,126 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dds::Model::DescribeParameterTemplatesRequest; + +DescribeParameterTemplatesRequest::DescribeParameterTemplatesRequest() : + RpcServiceRequest("dds", "2015-12-01", "DescribeParameterTemplates") +{} + +DescribeParameterTemplatesRequest::~DescribeParameterTemplatesRequest() +{} + +long DescribeParameterTemplatesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeParameterTemplatesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeParameterTemplatesRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeParameterTemplatesRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeParameterTemplatesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeParameterTemplatesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeParameterTemplatesRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeParameterTemplatesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeParameterTemplatesRequest::getEngine()const +{ + return engine_; +} + +void DescribeParameterTemplatesRequest::setEngine(const std::string& engine) +{ + engine_ = engine; + setCoreParameter("Engine", engine); +} + +std::string DescribeParameterTemplatesRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeParameterTemplatesRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeParameterTemplatesRequest::getEngineVersion()const +{ + return engineVersion_; +} + +void DescribeParameterTemplatesRequest::setEngineVersion(const std::string& engineVersion) +{ + engineVersion_ = engineVersion; + setCoreParameter("EngineVersion", engineVersion); +} + +long DescribeParameterTemplatesRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeParameterTemplatesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeParameterTemplatesRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeParameterTemplatesRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dds/src/model/DescribeParameterTemplatesResult.cc b/dds/src/model/DescribeParameterTemplatesResult.cc new file mode 100644 index 000000000..bb23d2945 --- /dev/null +++ b/dds/src/model/DescribeParameterTemplatesResult.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::Dds; +using namespace AlibabaCloud::Dds::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 parametersObject; + if(!value["ParameterName"].isNull()) + parametersObject.parameterName = value["ParameterName"].asString(); + if(!value["ParameterValue"].isNull()) + parametersObject.parameterValue = value["ParameterValue"].asString(); + if(!value["ForceModify"].isNull()) + parametersObject.forceModify = value["ForceModify"].asString() == "true"; + if(!value["ForceRestart"].isNull()) + parametersObject.forceRestart = value["ForceRestart"].asString() == "true"; + if(!value["CheckingCode"].isNull()) + parametersObject.checkingCode = value["CheckingCode"].asString(); + if(!value["ParameterDescription"].isNull()) + parametersObject.parameterDescription = value["ParameterDescription"].asString(); + parameters_.push_back(parametersObject); + } + if(!value["Engine"].isNull()) + engine_ = value["Engine"].asString(); + if(!value["EngineVersion"].isNull()) + engineVersion_ = value["EngineVersion"].asString(); + if(!value["ParameterCount"].isNull()) + parameterCount_ = value["ParameterCount"].asString(); + +} + +std::string DescribeParameterTemplatesResult::getParameterCount()const +{ + return parameterCount_; +} + +std::vector DescribeParameterTemplatesResult::getParameters()const +{ + return parameters_; +} + +std::string DescribeParameterTemplatesResult::getEngineVersion()const +{ + return engineVersion_; +} + +std::string DescribeParameterTemplatesResult::getEngine()const +{ + return engine_; +} + diff --git a/dds/src/model/DescribeParametersRequest.cc b/dds/src/model/DescribeParametersRequest.cc new file mode 100644 index 000000000..4dbc05bc2 --- /dev/null +++ b/dds/src/model/DescribeParametersRequest.cc @@ -0,0 +1,126 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dds::Model::DescribeParametersRequest; + +DescribeParametersRequest::DescribeParametersRequest() : + RpcServiceRequest("dds", "2015-12-01", "DescribeParameters") +{} + +DescribeParametersRequest::~DescribeParametersRequest() +{} + +long DescribeParametersRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeParametersRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeParametersRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeParametersRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeParametersRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeParametersRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeParametersRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeParametersRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeParametersRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeParametersRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeParametersRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeParametersRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setCoreParameter("DBInstanceId", dBInstanceId); +} + +long DescribeParametersRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeParametersRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeParametersRequest::getNodeId()const +{ + return nodeId_; +} + +void DescribeParametersRequest::setNodeId(const std::string& nodeId) +{ + nodeId_ = nodeId; + setCoreParameter("NodeId", nodeId); +} + +std::string DescribeParametersRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeParametersRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dds/src/model/DescribeParametersResult.cc b/dds/src/model/DescribeParametersResult.cc new file mode 100644 index 000000000..93af7d773 --- /dev/null +++ b/dds/src/model/DescribeParametersResult.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 +#include + +using namespace AlibabaCloud::Dds; +using namespace AlibabaCloud::Dds::Model; + +DescribeParametersResult::DescribeParametersResult() : + ServiceResult() +{} + +DescribeParametersResult::DescribeParametersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeParametersResult::~DescribeParametersResult() +{} + +void DescribeParametersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allConfigParameters = value["ConfigParameters"]["Parameter"]; + for (auto value : allConfigParameters) + { + Parameter configParametersObject; + if(!value["ParameterName"].isNull()) + configParametersObject.parameterName = value["ParameterName"].asString(); + if(!value["ParameterValue"].isNull()) + configParametersObject.parameterValue = value["ParameterValue"].asString(); + if(!value["ModifiableStatus"].isNull()) + configParametersObject.modifiableStatus = value["ModifiableStatus"].asString() == "true"; + if(!value["ForceRestart"].isNull()) + configParametersObject.forceRestart = value["ForceRestart"].asString() == "true"; + if(!value["CheckingCode"].isNull()) + configParametersObject.checkingCode = value["CheckingCode"].asString(); + if(!value["ParameterDescription"].isNull()) + configParametersObject.parameterDescription = value["ParameterDescription"].asString(); + configParameters_.push_back(configParametersObject); + } + auto allRunningParameters = value["RunningParameters"]["Parameter"]; + for (auto value : allRunningParameters) + { + Parameter runningParametersObject; + if(!value["ParameterName"].isNull()) + runningParametersObject.parameterName = value["ParameterName"].asString(); + if(!value["ParameterValue"].isNull()) + runningParametersObject.parameterValue = value["ParameterValue"].asString(); + if(!value["ModifiableStatus"].isNull()) + runningParametersObject.modifiableStatus = value["ModifiableStatus"].asString() == "true"; + if(!value["ForceRestart"].isNull()) + runningParametersObject.forceRestart = value["ForceRestart"].asString() == "true"; + if(!value["CheckingCode"].isNull()) + runningParametersObject.checkingCode = value["CheckingCode"].asString(); + if(!value["ParameterDescription"].isNull()) + runningParametersObject.parameterDescription = value["ParameterDescription"].asString(); + runningParameters_.push_back(runningParametersObject); + } + if(!value["Engine"].isNull()) + engine_ = value["Engine"].asString(); + if(!value["EngineVersion"].isNull()) + engineVersion_ = value["EngineVersion"].asString(); + +} + +std::vector DescribeParametersResult::getRunningParameters()const +{ + return runningParameters_; +} + +std::string DescribeParametersResult::getEngineVersion()const +{ + return engineVersion_; +} + +std::vector DescribeParametersResult::getConfigParameters()const +{ + return configParameters_; +} + +std::string DescribeParametersResult::getEngine()const +{ + return engine_; +} + diff --git a/dds/src/model/DescribeRdsVSwitchsRequest.cc b/dds/src/model/DescribeRdsVSwitchsRequest.cc new file mode 100644 index 000000000..0fdbfe076 --- /dev/null +++ b/dds/src/model/DescribeRdsVSwitchsRequest.cc @@ -0,0 +1,126 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dds::Model::DescribeRdsVSwitchsRequest; + +DescribeRdsVSwitchsRequest::DescribeRdsVSwitchsRequest() : + RpcServiceRequest("dds", "2015-12-01", "DescribeRdsVSwitchs") +{} + +DescribeRdsVSwitchsRequest::~DescribeRdsVSwitchsRequest() +{} + +long DescribeRdsVSwitchsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeRdsVSwitchsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeRdsVSwitchsRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeRdsVSwitchsRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeRdsVSwitchsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeRdsVSwitchsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeRdsVSwitchsRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeRdsVSwitchsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeRdsVSwitchsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeRdsVSwitchsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeRdsVSwitchsRequest::getVpcId()const +{ + return vpcId_; +} + +void DescribeRdsVSwitchsRequest::setVpcId(const std::string& vpcId) +{ + vpcId_ = vpcId; + setCoreParameter("VpcId", vpcId); +} + +std::string DescribeRdsVSwitchsRequest::getZoneId()const +{ + return zoneId_; +} + +void DescribeRdsVSwitchsRequest::setZoneId(const std::string& zoneId) +{ + zoneId_ = zoneId; + setCoreParameter("ZoneId", zoneId); +} + +long DescribeRdsVSwitchsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeRdsVSwitchsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeRdsVSwitchsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeRdsVSwitchsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dds/src/model/DescribeRdsVSwitchsResult.cc b/dds/src/model/DescribeRdsVSwitchsResult.cc new file mode 100644 index 000000000..1a64c159a --- /dev/null +++ b/dds/src/model/DescribeRdsVSwitchsResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Dds; +using namespace AlibabaCloud::Dds::Model; + +DescribeRdsVSwitchsResult::DescribeRdsVSwitchsResult() : + ServiceResult() +{} + +DescribeRdsVSwitchsResult::DescribeRdsVSwitchsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRdsVSwitchsResult::~DescribeRdsVSwitchsResult() +{} + +void DescribeRdsVSwitchsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto vSwitchesNode = value["VSwitches"]; + auto allVSwitch = value["VSwitch"]["VSwitchItem"]; + for (auto value : allVSwitch) + { + VSwitches::VSwitchItem vSwitchItemObject; + if(!value["VSwitchId"].isNull()) + vSwitchItemObject.vSwitchId = value["VSwitchId"].asString(); + if(!value["VSwitchName"].isNull()) + vSwitchItemObject.vSwitchName = value["VSwitchName"].asString(); + if(!value["IzNo"].isNull()) + vSwitchItemObject.izNo = value["IzNo"].asString(); + if(!value["Bid"].isNull()) + vSwitchItemObject.bid = value["Bid"].asString(); + if(!value["AliUid"].isNull()) + vSwitchItemObject.aliUid = value["AliUid"].asString(); + if(!value["RegionNo"].isNull()) + vSwitchItemObject.regionNo = value["RegionNo"].asString(); + if(!value["CidrBlock"].isNull()) + vSwitchItemObject.cidrBlock = value["CidrBlock"].asString(); + if(!value["IsDefault"].isNull()) + vSwitchItemObject.isDefault = value["IsDefault"].asString() == "true"; + if(!value["Status"].isNull()) + vSwitchItemObject.status = value["Status"].asString(); + if(!value["GmtCreate"].isNull()) + vSwitchItemObject.gmtCreate = value["GmtCreate"].asString(); + if(!value["GmtModified"].isNull()) + vSwitchItemObject.gmtModified = value["GmtModified"].asString(); + vSwitches_.vSwitch.push_back(vSwitchItemObject); + } + +} + +DescribeRdsVSwitchsResult::VSwitches DescribeRdsVSwitchsResult::getVSwitches()const +{ + return vSwitches_; +} + diff --git a/dds/src/model/DescribeRdsVpcsRequest.cc b/dds/src/model/DescribeRdsVpcsRequest.cc new file mode 100644 index 000000000..02dabc2b0 --- /dev/null +++ b/dds/src/model/DescribeRdsVpcsRequest.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dds::Model::DescribeRdsVpcsRequest; + +DescribeRdsVpcsRequest::DescribeRdsVpcsRequest() : + RpcServiceRequest("dds", "2015-12-01", "DescribeRdsVpcs") +{} + +DescribeRdsVpcsRequest::~DescribeRdsVpcsRequest() +{} + +long DescribeRdsVpcsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeRdsVpcsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeRdsVpcsRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeRdsVpcsRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeRdsVpcsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeRdsVpcsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeRdsVpcsRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeRdsVpcsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeRdsVpcsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeRdsVpcsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeRdsVpcsRequest::getZoneId()const +{ + return zoneId_; +} + +void DescribeRdsVpcsRequest::setZoneId(const std::string& zoneId) +{ + zoneId_ = zoneId; + setCoreParameter("ZoneId", zoneId); +} + +long DescribeRdsVpcsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeRdsVpcsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeRdsVpcsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeRdsVpcsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dds/src/model/DescribeRdsVpcsResult.cc b/dds/src/model/DescribeRdsVpcsResult.cc new file mode 100644 index 000000000..bcc76f4c6 --- /dev/null +++ b/dds/src/model/DescribeRdsVpcsResult.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::Dds; +using namespace AlibabaCloud::Dds::Model; + +DescribeRdsVpcsResult::DescribeRdsVpcsResult() : + ServiceResult() +{} + +DescribeRdsVpcsResult::DescribeRdsVpcsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRdsVpcsResult::~DescribeRdsVpcsResult() +{} + +void DescribeRdsVpcsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto vpcsNode = value["Vpcs"]; + auto allVpc = value["Vpc"]["VpcItem"]; + for (auto value : allVpc) + { + Vpcs::VpcItem vpcItemObject; + if(!value["VpcId"].isNull()) + vpcItemObject.vpcId = value["VpcId"].asString(); + if(!value["VpcName"].isNull()) + vpcItemObject.vpcName = value["VpcName"].asString(); + if(!value["Bid"].isNull()) + vpcItemObject.bid = value["Bid"].asString(); + if(!value["AliUid"].isNull()) + vpcItemObject.aliUid = value["AliUid"].asString(); + if(!value["RegionNo"].isNull()) + vpcItemObject.regionNo = value["RegionNo"].asString(); + if(!value["CidrBlock"].isNull()) + vpcItemObject.cidrBlock = value["CidrBlock"].asString(); + if(!value["IsDefault"].isNull()) + vpcItemObject.isDefault = value["IsDefault"].asString() == "true"; + if(!value["Status"].isNull()) + vpcItemObject.status = value["Status"].asString(); + if(!value["GmtCreate"].isNull()) + vpcItemObject.gmtCreate = value["GmtCreate"].asString(); + if(!value["GmtModified"].isNull()) + vpcItemObject.gmtModified = value["GmtModified"].asString(); + auto allVSwitchs = value["VSwitchs"]["VSwitch"]; + for (auto value : allVSwitchs) + { + Vpcs::VpcItem::VSwitch vSwitchsObject; + if(!value["VSwitchId"].isNull()) + vSwitchsObject.vSwitchId = value["VSwitchId"].asString(); + if(!value["VSwitchName"].isNull()) + vSwitchsObject.vSwitchName = value["VSwitchName"].asString(); + if(!value["IzNo"].isNull()) + vSwitchsObject.izNo = value["IzNo"].asString(); + if(!value["CidrBlock"].isNull()) + vSwitchsObject.cidrBlock = value["CidrBlock"].asString(); + if(!value["IsDefault"].isNull()) + vSwitchsObject.isDefault = value["IsDefault"].asString() == "true"; + if(!value["Status"].isNull()) + vSwitchsObject.status = value["Status"].asString(); + if(!value["GmtCreate"].isNull()) + vSwitchsObject.gmtCreate = value["GmtCreate"].asString(); + if(!value["GmtModified"].isNull()) + vSwitchsObject.gmtModified = value["GmtModified"].asString(); + vpcItemObject.vSwitchs.push_back(vSwitchsObject); + } + vpcs_.vpc.push_back(vpcItemObject); + } + +} + +DescribeRdsVpcsResult::Vpcs DescribeRdsVpcsResult::getVpcs()const +{ + return vpcs_; +} + diff --git a/dds/src/model/DescribeRegionsRequest.cc b/dds/src/model/DescribeRegionsRequest.cc new file mode 100644 index 000000000..3ef9aeeae --- /dev/null +++ b/dds/src/model/DescribeRegionsRequest.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dds::Model::DescribeRegionsRequest; + +DescribeRegionsRequest::DescribeRegionsRequest() : + RpcServiceRequest("dds", "2015-12-01", "DescribeRegions") +{} + +DescribeRegionsRequest::~DescribeRegionsRequest() +{} + +long DescribeRegionsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeRegionsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeRegionsRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeRegionsRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeRegionsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeRegionsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeRegionsRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeRegionsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeRegionsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeRegionsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeRegionsRequest::getZoneId()const +{ + return zoneId_; +} + +void DescribeRegionsRequest::setZoneId(const std::string& zoneId) +{ + zoneId_ = zoneId; + setCoreParameter("ZoneId", zoneId); +} + +long DescribeRegionsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeRegionsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeRegionsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeRegionsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dds/src/model/DescribeRegionsResult.cc b/dds/src/model/DescribeRegionsResult.cc new file mode 100644 index 000000000..76ad48140 --- /dev/null +++ b/dds/src/model/DescribeRegionsResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Dds; +using namespace AlibabaCloud::Dds::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"]["DdsRegion"]; + for (auto value : allRegions) + { + DdsRegion regionsObject; + if(!value["RegionId"].isNull()) + regionsObject.regionId = value["RegionId"].asString(); + if(!value["ZoneIds"].isNull()) + regionsObject.zoneIds = value["ZoneIds"].asString(); + auto allZones = value["Zones"]["Zone"]; + for (auto value : allZones) + { + DdsRegion::Zone zonesObject; + if(!value["ZoneId"].isNull()) + zonesObject.zoneId = value["ZoneId"].asString(); + if(!value["VpcEnabled"].isNull()) + zonesObject.vpcEnabled = value["VpcEnabled"].asString() == "true"; + regionsObject.zones.push_back(zonesObject); + } + regions_.push_back(regionsObject); + } + +} + +std::vector DescribeRegionsResult::getRegions()const +{ + return regions_; +} + diff --git a/dds/src/model/DescribeRenewalPriceRequest.cc b/dds/src/model/DescribeRenewalPriceRequest.cc new file mode 100644 index 000000000..60665efc8 --- /dev/null +++ b/dds/src/model/DescribeRenewalPriceRequest.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 + +using AlibabaCloud::Dds::Model::DescribeRenewalPriceRequest; + +DescribeRenewalPriceRequest::DescribeRenewalPriceRequest() : + RpcServiceRequest("dds", "2015-12-01", "DescribeRenewalPrice") +{} + +DescribeRenewalPriceRequest::~DescribeRenewalPriceRequest() +{} + +long DescribeRenewalPriceRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeRenewalPriceRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeRenewalPriceRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeRenewalPriceRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeRenewalPriceRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeRenewalPriceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeRenewalPriceRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeRenewalPriceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeRenewalPriceRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeRenewalPriceRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeRenewalPriceRequest::getCouponNo()const +{ + return couponNo_; +} + +void DescribeRenewalPriceRequest::setCouponNo(const std::string& couponNo) +{ + couponNo_ = couponNo; + setCoreParameter("CouponNo", couponNo); +} + +std::string DescribeRenewalPriceRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeRenewalPriceRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setCoreParameter("DBInstanceId", dBInstanceId); +} + +long DescribeRenewalPriceRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeRenewalPriceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeRenewalPriceRequest::getBusinessInfo()const +{ + return businessInfo_; +} + +void DescribeRenewalPriceRequest::setBusinessInfo(const std::string& businessInfo) +{ + businessInfo_ = businessInfo; + setCoreParameter("BusinessInfo", businessInfo); +} + +std::string DescribeRenewalPriceRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeRenewalPriceRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dds/src/model/DescribeRenewalPriceResult.cc b/dds/src/model/DescribeRenewalPriceResult.cc new file mode 100644 index 000000000..246d3b053 --- /dev/null +++ b/dds/src/model/DescribeRenewalPriceResult.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Dds; +using namespace AlibabaCloud::Dds::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 rulesObject; + if(!value["RuleDescId"].isNull()) + rulesObject.ruleDescId = std::stol(value["RuleDescId"].asString()); + if(!value["Name"].isNull()) + rulesObject.name = value["Name"].asString(); + if(!value["Title"].isNull()) + rulesObject.title = value["Title"].asString(); + rules_.push_back(rulesObject); + } + auto allSubOrders = value["SubOrders"]["SubOrder"]; + for (auto value : allSubOrders) + { + SubOrder subOrdersObject; + if(!value["OriginalAmount"].isNull()) + subOrdersObject.originalAmount = std::stof(value["OriginalAmount"].asString()); + if(!value["TradeAmount"].isNull()) + subOrdersObject.tradeAmount = std::stof(value["TradeAmount"].asString()); + if(!value["DiscountAmount"].isNull()) + subOrdersObject.discountAmount = std::stof(value["DiscountAmount"].asString()); + if(!value["InstanceId"].isNull()) + subOrdersObject.instanceId = value["InstanceId"].asString(); + auto allRuleIds = value["RuleIds"]["RuleId"]; + for (auto value : allRuleIds) + subOrdersObject.ruleIds.push_back(value.asString()); + subOrders_.push_back(subOrdersObject); + } + auto orderNode = value["Order"]; + if(!orderNode["OriginalAmount"].isNull()) + order_.originalAmount = std::stof(orderNode["OriginalAmount"].asString()); + if(!orderNode["TradeAmount"].isNull()) + order_.tradeAmount = std::stof(orderNode["TradeAmount"].asString()); + if(!orderNode["DiscountAmount"].isNull()) + order_.discountAmount = std::stof(orderNode["DiscountAmount"].asString()); + if(!orderNode["Currency"].isNull()) + order_.currency = orderNode["Currency"].asString(); + auto allCoupons = value["Coupons"]["Coupon"]; + for (auto value : allCoupons) + { + Order::Coupon couponObject; + if(!value["CouponNo"].isNull()) + couponObject.couponNo = value["CouponNo"].asString(); + if(!value["Name"].isNull()) + couponObject.name = value["Name"].asString(); + if(!value["Description"].isNull()) + couponObject.description = value["Description"].asString(); + if(!value["IsSelected"].isNull()) + couponObject.isSelected = value["IsSelected"].asString(); + order_.coupons.push_back(couponObject); + } + auto allRuleIds1 = orderNode["RuleIds"]["RuleId"]; + for (auto value : allRuleIds1) + order_.ruleIds1.push_back(value.asString()); + +} + +DescribeRenewalPriceResult::Order DescribeRenewalPriceResult::getOrder()const +{ + return order_; +} + +std::vector DescribeRenewalPriceResult::getSubOrders()const +{ + return subOrders_; +} + +std::vector DescribeRenewalPriceResult::getRules()const +{ + return rules_; +} + diff --git a/dds/src/model/DescribeReplicaConflictInfoRequest.cc b/dds/src/model/DescribeReplicaConflictInfoRequest.cc new file mode 100644 index 000000000..44ed9c231 --- /dev/null +++ b/dds/src/model/DescribeReplicaConflictInfoRequest.cc @@ -0,0 +1,159 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dds::Model::DescribeReplicaConflictInfoRequest; + +DescribeReplicaConflictInfoRequest::DescribeReplicaConflictInfoRequest() : + RpcServiceRequest("dds", "2015-12-01", "DescribeReplicaConflictInfo") +{} + +DescribeReplicaConflictInfoRequest::~DescribeReplicaConflictInfoRequest() +{} + +long DescribeReplicaConflictInfoRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeReplicaConflictInfoRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeReplicaConflictInfoRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeReplicaConflictInfoRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeReplicaConflictInfoRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeReplicaConflictInfoRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeReplicaConflictInfoRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeReplicaConflictInfoRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setCoreParameter("EndTime", endTime); +} + +std::string DescribeReplicaConflictInfoRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeReplicaConflictInfoRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setCoreParameter("StartTime", startTime); +} + +long DescribeReplicaConflictInfoRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeReplicaConflictInfoRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeReplicaConflictInfoRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeReplicaConflictInfoRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeReplicaConflictInfoRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeReplicaConflictInfoRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeReplicaConflictInfoRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeReplicaConflictInfoRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeReplicaConflictInfoRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeReplicaConflictInfoRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeReplicaConflictInfoRequest::getReplicaId()const +{ + return replicaId_; +} + +void DescribeReplicaConflictInfoRequest::setReplicaId(const std::string& replicaId) +{ + replicaId_ = replicaId; + setCoreParameter("ReplicaId", replicaId); +} + +int DescribeReplicaConflictInfoRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeReplicaConflictInfoRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + diff --git a/dds/src/model/DescribeReplicaConflictInfoResult.cc b/dds/src/model/DescribeReplicaConflictInfoResult.cc new file mode 100644 index 000000000..f979df293 --- /dev/null +++ b/dds/src/model/DescribeReplicaConflictInfoResult.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::Dds; +using namespace AlibabaCloud::Dds::Model; + +DescribeReplicaConflictInfoResult::DescribeReplicaConflictInfoResult() : + ServiceResult() +{} + +DescribeReplicaConflictInfoResult::DescribeReplicaConflictInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeReplicaConflictInfoResult::~DescribeReplicaConflictInfoResult() +{} + +void DescribeReplicaConflictInfoResult::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 itemsObject; + if(!value["SourceInstanceId"].isNull()) + itemsObject.sourceInstanceId = value["SourceInstanceId"].asString(); + if(!value["DestinationInstanceId"].isNull()) + itemsObject.destinationInstanceId = value["DestinationInstanceId"].asString(); + if(!value["OccurTime"].isNull()) + itemsObject.occurTime = value["OccurTime"].asString(); + if(!value["DetailInfo"].isNull()) + itemsObject.detailInfo = value["DetailInfo"].asString(); + if(!value["ConfictKey"].isNull()) + itemsObject.confictKey = value["ConfictKey"].asString(); + if(!value["ConfictReason"].isNull()) + itemsObject.confictReason = value["ConfictReason"].asString(); + if(!value["DatabaseName"].isNull()) + itemsObject.databaseName = value["DatabaseName"].asString(); + if(!value["RecoveryMode"].isNull()) + itemsObject.recoveryMode = value["RecoveryMode"].asString(); + if(!value["ConflictGtid"].isNull()) + itemsObject.conflictGtid = value["ConflictGtid"].asString(); + items_.push_back(itemsObject); + } + if(!value["ReplicaId"].isNull()) + replicaId_ = value["ReplicaId"].asString(); + if(!value["PagNumber"].isNull()) + pagNumber_ = std::stoi(value["PagNumber"].asString()); + if(!value["PageRecordCount"].isNull()) + pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); + if(!value["TotalRecordCount"].isNull()) + totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString()); + +} + +int DescribeReplicaConflictInfoResult::getTotalRecordCount()const +{ + return totalRecordCount_; +} + +int DescribeReplicaConflictInfoResult::getPageRecordCount()const +{ + return pageRecordCount_; +} + +std::vector DescribeReplicaConflictInfoResult::getItems()const +{ + return items_; +} + +int DescribeReplicaConflictInfoResult::getPagNumber()const +{ + return pagNumber_; +} + +std::string DescribeReplicaConflictInfoResult::getReplicaId()const +{ + return replicaId_; +} + diff --git a/dds/src/model/DescribeReplicaInitializeProgressRequest.cc b/dds/src/model/DescribeReplicaInitializeProgressRequest.cc new file mode 100644 index 000000000..f951e6ad8 --- /dev/null +++ b/dds/src/model/DescribeReplicaInitializeProgressRequest.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dds::Model::DescribeReplicaInitializeProgressRequest; + +DescribeReplicaInitializeProgressRequest::DescribeReplicaInitializeProgressRequest() : + RpcServiceRequest("dds", "2015-12-01", "DescribeReplicaInitializeProgress") +{} + +DescribeReplicaInitializeProgressRequest::~DescribeReplicaInitializeProgressRequest() +{} + +long DescribeReplicaInitializeProgressRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeReplicaInitializeProgressRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeReplicaInitializeProgressRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeReplicaInitializeProgressRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeReplicaInitializeProgressRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeReplicaInitializeProgressRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeReplicaInitializeProgressRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeReplicaInitializeProgressRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeReplicaInitializeProgressRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeReplicaInitializeProgressRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeReplicaInitializeProgressRequest::getReplicaId()const +{ + return replicaId_; +} + +void DescribeReplicaInitializeProgressRequest::setReplicaId(const std::string& replicaId) +{ + replicaId_ = replicaId; + setCoreParameter("ReplicaId", replicaId); +} + +long DescribeReplicaInitializeProgressRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeReplicaInitializeProgressRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeReplicaInitializeProgressRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeReplicaInitializeProgressRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dds/src/model/DescribeReplicaInitializeProgressResult.cc b/dds/src/model/DescribeReplicaInitializeProgressResult.cc new file mode 100644 index 000000000..6166ac1f3 --- /dev/null +++ b/dds/src/model/DescribeReplicaInitializeProgressResult.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::Dds; +using namespace AlibabaCloud::Dds::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 itemsObject; + if(!value["ReplicaId"].isNull()) + itemsObject.replicaId = value["ReplicaId"].asString(); + if(!value["Status"].isNull()) + itemsObject.status = value["Status"].asString(); + if(!value["Progress"].isNull()) + itemsObject.progress = value["Progress"].asString(); + if(!value["FinishTime"].isNull()) + itemsObject.finishTime = value["FinishTime"].asString(); + if(!value["CurrentStep"].isNull()) + itemsObject.currentStep = value["CurrentStep"].asString(); + items_.push_back(itemsObject); + } + +} + +std::vector DescribeReplicaInitializeProgressResult::getItems()const +{ + return items_; +} + diff --git a/dds/src/model/DescribeReplicaPerformanceRequest.cc b/dds/src/model/DescribeReplicaPerformanceRequest.cc new file mode 100644 index 000000000..92bbb5f62 --- /dev/null +++ b/dds/src/model/DescribeReplicaPerformanceRequest.cc @@ -0,0 +1,170 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dds::Model::DescribeReplicaPerformanceRequest; + +DescribeReplicaPerformanceRequest::DescribeReplicaPerformanceRequest() : + RpcServiceRequest("dds", "2015-12-01", "DescribeReplicaPerformance") +{} + +DescribeReplicaPerformanceRequest::~DescribeReplicaPerformanceRequest() +{} + +long DescribeReplicaPerformanceRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeReplicaPerformanceRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeReplicaPerformanceRequest::getDestinationDBInstanceId()const +{ + return destinationDBInstanceId_; +} + +void DescribeReplicaPerformanceRequest::setDestinationDBInstanceId(const std::string& destinationDBInstanceId) +{ + destinationDBInstanceId_ = destinationDBInstanceId; + setCoreParameter("DestinationDBInstanceId", destinationDBInstanceId); +} + +std::string DescribeReplicaPerformanceRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeReplicaPerformanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeReplicaPerformanceRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeReplicaPerformanceRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeReplicaPerformanceRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeReplicaPerformanceRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setCoreParameter("EndTime", endTime); +} + +std::string DescribeReplicaPerformanceRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeReplicaPerformanceRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setCoreParameter("StartTime", startTime); +} + +long DescribeReplicaPerformanceRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeReplicaPerformanceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeReplicaPerformanceRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeReplicaPerformanceRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeReplicaPerformanceRequest::getSourceDBInstanceId()const +{ + return sourceDBInstanceId_; +} + +void DescribeReplicaPerformanceRequest::setSourceDBInstanceId(const std::string& sourceDBInstanceId) +{ + sourceDBInstanceId_ = sourceDBInstanceId; + setCoreParameter("SourceDBInstanceId", sourceDBInstanceId); +} + +std::string DescribeReplicaPerformanceRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeReplicaPerformanceRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeReplicaPerformanceRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeReplicaPerformanceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeReplicaPerformanceRequest::getReplicaId()const +{ + return replicaId_; +} + +void DescribeReplicaPerformanceRequest::setReplicaId(const std::string& replicaId) +{ + replicaId_ = replicaId; + setCoreParameter("ReplicaId", replicaId); +} + +std::string DescribeReplicaPerformanceRequest::getKey()const +{ + return key_; +} + +void DescribeReplicaPerformanceRequest::setKey(const std::string& key) +{ + key_ = key; + setCoreParameter("Key", key); +} + diff --git a/dds/src/model/DescribeReplicaPerformanceResult.cc b/dds/src/model/DescribeReplicaPerformanceResult.cc new file mode 100644 index 000000000..5a695f828 --- /dev/null +++ b/dds/src/model/DescribeReplicaPerformanceResult.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::Dds; +using namespace AlibabaCloud::Dds::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 performanceKeysNode = value["PerformanceKeys"]; + auto allPerformanceKey = value["PerformanceKey"]["PerformanceKeyItem"]; + for (auto value : allPerformanceKey) + { + PerformanceKeys::PerformanceKeyItem performanceKeyItemObject; + if(!value["Key"].isNull()) + performanceKeyItemObject.key = value["Key"].asString(); + if(!value["Unit"].isNull()) + performanceKeyItemObject.unit = value["Unit"].asString(); + if(!value["ValueFormat"].isNull()) + performanceKeyItemObject.valueFormat = value["ValueFormat"].asString(); + auto performanceValuesNode = value["PerformanceValues"]; + auto allPerformanceValue = value["PerformanceValue"]["PerformanceValueItem"]; + for (auto value : allPerformanceValue) + { + PerformanceKeys::PerformanceKeyItem::PerformanceValues::PerformanceValueItem performanceValueItemObject; + if(!value["Value"].isNull()) + performanceValueItemObject.value = value["Value"].asString(); + if(!value["Date"].isNull()) + performanceValueItemObject.date = value["Date"].asString(); + performanceKeyItemObject.performanceValues.performanceValue.push_back(performanceValueItemObject); + } + performanceKeys_.performanceKey.push_back(performanceKeyItemObject); + } + if(!value["StartTime"].isNull()) + startTime_ = value["StartTime"].asString(); + if(!value["EndTime"].isNull()) + endTime_ = value["EndTime"].asString(); + if(!value["ReplicaId"].isNull()) + replicaId_ = value["ReplicaId"].asString(); + +} + +DescribeReplicaPerformanceResult::PerformanceKeys DescribeReplicaPerformanceResult::getPerformanceKeys()const +{ + return performanceKeys_; +} + +std::string DescribeReplicaPerformanceResult::getEndTime()const +{ + return endTime_; +} + +std::string DescribeReplicaPerformanceResult::getStartTime()const +{ + return startTime_; +} + +std::string DescribeReplicaPerformanceResult::getReplicaId()const +{ + return replicaId_; +} + diff --git a/dds/src/model/DescribeReplicaSetRoleRequest.cc b/dds/src/model/DescribeReplicaSetRoleRequest.cc new file mode 100644 index 000000000..6b899b649 --- /dev/null +++ b/dds/src/model/DescribeReplicaSetRoleRequest.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dds::Model::DescribeReplicaSetRoleRequest; + +DescribeReplicaSetRoleRequest::DescribeReplicaSetRoleRequest() : + RpcServiceRequest("dds", "2015-12-01", "DescribeReplicaSetRole") +{} + +DescribeReplicaSetRoleRequest::~DescribeReplicaSetRoleRequest() +{} + +long DescribeReplicaSetRoleRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeReplicaSetRoleRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeReplicaSetRoleRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeReplicaSetRoleRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeReplicaSetRoleRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeReplicaSetRoleRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeReplicaSetRoleRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeReplicaSetRoleRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeReplicaSetRoleRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeReplicaSetRoleRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeReplicaSetRoleRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeReplicaSetRoleRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setCoreParameter("DBInstanceId", dBInstanceId); +} + +long DescribeReplicaSetRoleRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeReplicaSetRoleRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeReplicaSetRoleRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeReplicaSetRoleRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dds/src/model/DescribeReplicaSetRoleResult.cc b/dds/src/model/DescribeReplicaSetRoleResult.cc new file mode 100644 index 000000000..dd6d3acad --- /dev/null +++ b/dds/src/model/DescribeReplicaSetRoleResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Dds; +using namespace AlibabaCloud::Dds::Model; + +DescribeReplicaSetRoleResult::DescribeReplicaSetRoleResult() : + ServiceResult() +{} + +DescribeReplicaSetRoleResult::DescribeReplicaSetRoleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeReplicaSetRoleResult::~DescribeReplicaSetRoleResult() +{} + +void DescribeReplicaSetRoleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allReplicaSets = value["ReplicaSets"]["ReplicaSet"]; + for (auto value : allReplicaSets) + { + ReplicaSet replicaSetsObject; + if(!value["ReplicaSetRole"].isNull()) + replicaSetsObject.replicaSetRole = value["ReplicaSetRole"].asString(); + if(!value["RoleId"].isNull()) + replicaSetsObject.roleId = value["RoleId"].asString(); + if(!value["ConnectionDomain"].isNull()) + replicaSetsObject.connectionDomain = value["ConnectionDomain"].asString(); + if(!value["ConnectionPort"].isNull()) + replicaSetsObject.connectionPort = value["ConnectionPort"].asString(); + if(!value["ExpiredTime"].isNull()) + replicaSetsObject.expiredTime = value["ExpiredTime"].asString(); + if(!value["NetworkType"].isNull()) + replicaSetsObject.networkType = value["NetworkType"].asString(); + replicaSets_.push_back(replicaSetsObject); + } + if(!value["DBInstanceId"].isNull()) + dBInstanceId_ = value["DBInstanceId"].asString(); + +} + +std::string DescribeReplicaSetRoleResult::getDBInstanceId()const +{ + return dBInstanceId_; +} + +std::vector DescribeReplicaSetRoleResult::getReplicaSets()const +{ + return replicaSets_; +} + diff --git a/dds/src/model/DescribeReplicaUsageRequest.cc b/dds/src/model/DescribeReplicaUsageRequest.cc new file mode 100644 index 000000000..eee2fb1bd --- /dev/null +++ b/dds/src/model/DescribeReplicaUsageRequest.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 + +using AlibabaCloud::Dds::Model::DescribeReplicaUsageRequest; + +DescribeReplicaUsageRequest::DescribeReplicaUsageRequest() : + RpcServiceRequest("dds", "2015-12-01", "DescribeReplicaUsage") +{} + +DescribeReplicaUsageRequest::~DescribeReplicaUsageRequest() +{} + +long DescribeReplicaUsageRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeReplicaUsageRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeReplicaUsageRequest::getSourceDBInstanceId()const +{ + return sourceDBInstanceId_; +} + +void DescribeReplicaUsageRequest::setSourceDBInstanceId(const std::string& sourceDBInstanceId) +{ + sourceDBInstanceId_ = sourceDBInstanceId; + setCoreParameter("SourceDBInstanceId", sourceDBInstanceId); +} + +std::string DescribeReplicaUsageRequest::getDestinationDBInstanceId()const +{ + return destinationDBInstanceId_; +} + +void DescribeReplicaUsageRequest::setDestinationDBInstanceId(const std::string& destinationDBInstanceId) +{ + destinationDBInstanceId_ = destinationDBInstanceId; + setCoreParameter("DestinationDBInstanceId", destinationDBInstanceId); +} + +std::string DescribeReplicaUsageRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeReplicaUsageRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeReplicaUsageRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeReplicaUsageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeReplicaUsageRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeReplicaUsageRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeReplicaUsageRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeReplicaUsageRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeReplicaUsageRequest::getReplicaId()const +{ + return replicaId_; +} + +void DescribeReplicaUsageRequest::setReplicaId(const std::string& replicaId) +{ + replicaId_ = replicaId; + setCoreParameter("ReplicaId", replicaId); +} + +long DescribeReplicaUsageRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeReplicaUsageRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeReplicaUsageRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeReplicaUsageRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dds/src/model/DescribeReplicaUsageResult.cc b/dds/src/model/DescribeReplicaUsageResult.cc new file mode 100644 index 000000000..b9b40c3bf --- /dev/null +++ b/dds/src/model/DescribeReplicaUsageResult.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::Dds; +using namespace AlibabaCloud::Dds::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 performanceKeysNode = value["PerformanceKeys"]; + auto allPerformanceKey = value["PerformanceKey"]["PerformanceKeyItem"]; + for (auto value : allPerformanceKey) + { + PerformanceKeys::PerformanceKeyItem performanceKeyItemObject; + if(!value["Key"].isNull()) + performanceKeyItemObject.key = value["Key"].asString(); + if(!value["Unit"].isNull()) + performanceKeyItemObject.unit = value["Unit"].asString(); + if(!value["ValueFormat"].isNull()) + performanceKeyItemObject.valueFormat = value["ValueFormat"].asString(); + auto performanceValuesNode = value["PerformanceValues"]; + auto allPerformanceValue = value["PerformanceValue"]["PerformanceValueItem"]; + for (auto value : allPerformanceValue) + { + PerformanceKeys::PerformanceKeyItem::PerformanceValues::PerformanceValueItem performanceValueItemObject; + if(!value["Value"].isNull()) + performanceValueItemObject.value = value["Value"].asString(); + if(!value["Date"].isNull()) + performanceValueItemObject.date = value["Date"].asString(); + performanceKeyItemObject.performanceValues.performanceValue.push_back(performanceValueItemObject); + } + performanceKeys_.performanceKey.push_back(performanceKeyItemObject); + } + if(!value["StartTime"].isNull()) + startTime_ = value["StartTime"].asString(); + if(!value["EndTime"].isNull()) + endTime_ = value["EndTime"].asString(); + if(!value["ReplicaId"].isNull()) + replicaId_ = value["ReplicaId"].asString(); + +} + +DescribeReplicaUsageResult::PerformanceKeys DescribeReplicaUsageResult::getPerformanceKeys()const +{ + return performanceKeys_; +} + +std::string DescribeReplicaUsageResult::getEndTime()const +{ + return endTime_; +} + +std::string DescribeReplicaUsageResult::getStartTime()const +{ + return startTime_; +} + +std::string DescribeReplicaUsageResult::getReplicaId()const +{ + return replicaId_; +} + diff --git a/dds/src/model/DescribeReplicasRequest.cc b/dds/src/model/DescribeReplicasRequest.cc new file mode 100644 index 000000000..c1b7a267e --- /dev/null +++ b/dds/src/model/DescribeReplicasRequest.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 + +using AlibabaCloud::Dds::Model::DescribeReplicasRequest; + +DescribeReplicasRequest::DescribeReplicasRequest() : + RpcServiceRequest("dds", "2015-12-01", "DescribeReplicas") +{} + +DescribeReplicasRequest::~DescribeReplicasRequest() +{} + +long DescribeReplicasRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeReplicasRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeReplicasRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeReplicasRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeReplicasRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeReplicasRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeReplicasRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeReplicasRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +bool DescribeReplicasRequest::getAttachDbInstanceData()const +{ + return attachDbInstanceData_; +} + +void DescribeReplicasRequest::setAttachDbInstanceData(bool attachDbInstanceData) +{ + attachDbInstanceData_ = attachDbInstanceData; + setCoreParameter("AttachDbInstanceData", attachDbInstanceData ? "true" : "false"); +} + +std::string DescribeReplicasRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeReplicasRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeReplicasRequest::getReplicaId()const +{ + return replicaId_; +} + +void DescribeReplicasRequest::setReplicaId(const std::string& replicaId) +{ + replicaId_ = replicaId; + setCoreParameter("ReplicaId", replicaId); +} + +int DescribeReplicasRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeReplicasRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +long DescribeReplicasRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeReplicasRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeReplicasRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeReplicasRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeReplicasRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeReplicasRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dds/src/model/DescribeReplicasResult.cc b/dds/src/model/DescribeReplicasResult.cc new file mode 100644 index 000000000..583fc2704 --- /dev/null +++ b/dds/src/model/DescribeReplicasResult.cc @@ -0,0 +1,109 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Dds; +using namespace AlibabaCloud::Dds::Model; + +DescribeReplicasResult::DescribeReplicasResult() : + ServiceResult() +{} + +DescribeReplicasResult::DescribeReplicasResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeReplicasResult::~DescribeReplicasResult() +{} + +void DescribeReplicasResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allReplicas = value["Replicas"]["Items"]; + for (auto value : allReplicas) + { + Items replicasObject; + if(!value["ReplicaId"].isNull()) + replicasObject.replicaId = value["ReplicaId"].asString(); + if(!value["ReplicaDescription"].isNull()) + replicasObject.replicaDescription = value["ReplicaDescription"].asString(); + if(!value["ReplicaStatus"].isNull()) + replicasObject.replicaStatus = value["ReplicaStatus"].asString(); + if(!value["ReplicaMode"].isNull()) + replicasObject.replicaMode = value["ReplicaMode"].asString(); + if(!value["DomainMode"].isNull()) + replicasObject.domainMode = value["DomainMode"].asString(); + auto allDBInstances = value["DBInstances"]["Items"]; + for (auto value : allDBInstances) + { + Items::Items1 dBInstancesObject; + if(!value["DBInstanceId"].isNull()) + dBInstancesObject.dBInstanceId = value["DBInstanceId"].asString(); + if(!value["Role"].isNull()) + dBInstancesObject.role = value["Role"].asString(); + if(!value["ReadWriteType"].isNull()) + dBInstancesObject.readWriteType = value["ReadWriteType"].asString(); + if(!value["InstanceNetworkType"].isNull()) + dBInstancesObject.instanceNetworkType = value["InstanceNetworkType"].asString(); + if(!value["DBInstanceDescription"].isNull()) + dBInstancesObject.dBInstanceDescription = value["DBInstanceDescription"].asString(); + if(!value["DBInstanceStatus"].isNull()) + dBInstancesObject.dBInstanceStatus = value["DBInstanceStatus"].asString(); + if(!value["Engine"].isNull()) + dBInstancesObject.engine = value["Engine"].asString(); + if(!value["RegionId"].isNull()) + dBInstancesObject.regionId = value["RegionId"].asString(); + replicasObject.dBInstances.push_back(dBInstancesObject); + } + replicas_.push_back(replicasObject); + } + if(!value["PageNumber"].isNull()) + pageNumber_ = value["PageNumber"].asString(); + if(!value["TotalRecordCount"].isNull()) + totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString()); + if(!value["PageRecordCount"].isNull()) + pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); + +} + +int DescribeReplicasResult::getTotalRecordCount()const +{ + return totalRecordCount_; +} + +int DescribeReplicasResult::getPageRecordCount()const +{ + return pageRecordCount_; +} + +std::string DescribeReplicasResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeReplicasResult::getReplicas()const +{ + return replicas_; +} + diff --git a/dds/src/model/DescribeReplicationGroupRequest.cc b/dds/src/model/DescribeReplicationGroupRequest.cc new file mode 100644 index 000000000..bb65ffc43 --- /dev/null +++ b/dds/src/model/DescribeReplicationGroupRequest.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 + +using AlibabaCloud::Dds::Model::DescribeReplicationGroupRequest; + +DescribeReplicationGroupRequest::DescribeReplicationGroupRequest() : + RpcServiceRequest("dds", "2015-12-01", "DescribeReplicationGroup") +{} + +DescribeReplicationGroupRequest::~DescribeReplicationGroupRequest() +{} + +std::string DescribeReplicationGroupRequest::getDestinationInstanceIds()const +{ + return destinationInstanceIds_; +} + +void DescribeReplicationGroupRequest::setDestinationInstanceIds(const std::string& destinationInstanceIds) +{ + destinationInstanceIds_ = destinationInstanceIds; + setCoreParameter("DestinationInstanceIds", destinationInstanceIds); +} + +long DescribeReplicationGroupRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeReplicationGroupRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeReplicationGroupRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeReplicationGroupRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeReplicationGroupRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeReplicationGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeReplicationGroupRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeReplicationGroupRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeReplicationGroupRequest::getReplicationGroupId()const +{ + return replicationGroupId_; +} + +void DescribeReplicationGroupRequest::setReplicationGroupId(const std::string& replicationGroupId) +{ + replicationGroupId_ = replicationGroupId; + setCoreParameter("ReplicationGroupId", replicationGroupId); +} + +std::string DescribeReplicationGroupRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeReplicationGroupRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeReplicationGroupRequest::getSourceInstanceId()const +{ + return sourceInstanceId_; +} + +void DescribeReplicationGroupRequest::setSourceInstanceId(const std::string& sourceInstanceId) +{ + sourceInstanceId_ = sourceInstanceId; + setCoreParameter("SourceInstanceId", sourceInstanceId); +} + +long DescribeReplicationGroupRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeReplicationGroupRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeReplicationGroupRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeReplicationGroupRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dds/src/model/DescribeReplicationGroupResult.cc b/dds/src/model/DescribeReplicationGroupResult.cc new file mode 100644 index 000000000..959d9b27d --- /dev/null +++ b/dds/src/model/DescribeReplicationGroupResult.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::Dds; +using namespace AlibabaCloud::Dds::Model; + +DescribeReplicationGroupResult::DescribeReplicationGroupResult() : + ServiceResult() +{} + +DescribeReplicationGroupResult::DescribeReplicationGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeReplicationGroupResult::~DescribeReplicationGroupResult() +{} + +void DescribeReplicationGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto alltunnelContext = value["tunnelContext"]["TunnelContext"]; + for (const auto &item : alltunnelContext) + tunnelContext_.push_back(item.asString()); + +} + +std::vector DescribeReplicationGroupResult::getTunnelContext()const +{ + return tunnelContext_; +} + diff --git a/dds/src/model/DescribeRunningLogRecordsRequest.cc b/dds/src/model/DescribeRunningLogRecordsRequest.cc new file mode 100644 index 000000000..48da69f52 --- /dev/null +++ b/dds/src/model/DescribeRunningLogRecordsRequest.cc @@ -0,0 +1,203 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dds::Model::DescribeRunningLogRecordsRequest; + +DescribeRunningLogRecordsRequest::DescribeRunningLogRecordsRequest() : + RpcServiceRequest("dds", "2015-12-01", "DescribeRunningLogRecords") +{} + +DescribeRunningLogRecordsRequest::~DescribeRunningLogRecordsRequest() +{} + +long DescribeRunningLogRecordsRequest::getSQLId()const +{ + return sQLId_; +} + +void DescribeRunningLogRecordsRequest::setSQLId(long sQLId) +{ + sQLId_ = sQLId; + setCoreParameter("SQLId", std::to_string(sQLId)); +} + +long DescribeRunningLogRecordsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeRunningLogRecordsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeRunningLogRecordsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeRunningLogRecordsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeRunningLogRecordsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeRunningLogRecordsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeRunningLogRecordsRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeRunningLogRecordsRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setCoreParameter("EndTime", endTime); +} + +std::string DescribeRunningLogRecordsRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeRunningLogRecordsRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setCoreParameter("StartTime", startTime); +} + +long DescribeRunningLogRecordsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeRunningLogRecordsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeRunningLogRecordsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeRunningLogRecordsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeRunningLogRecordsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeRunningLogRecordsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeRunningLogRecordsRequest::getDBName()const +{ + return dBName_; +} + +void DescribeRunningLogRecordsRequest::setDBName(const std::string& dBName) +{ + dBName_ = dBName; + setCoreParameter("DBName", dBName); +} + +std::string DescribeRunningLogRecordsRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeRunningLogRecordsRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeRunningLogRecordsRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeRunningLogRecordsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +int DescribeRunningLogRecordsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeRunningLogRecordsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeRunningLogRecordsRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeRunningLogRecordsRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setCoreParameter("DBInstanceId", dBInstanceId); +} + +std::string DescribeRunningLogRecordsRequest::getRoleType()const +{ + return roleType_; +} + +void DescribeRunningLogRecordsRequest::setRoleType(const std::string& roleType) +{ + roleType_ = roleType; + setCoreParameter("RoleType", roleType); +} + +std::string DescribeRunningLogRecordsRequest::getNodeId()const +{ + return nodeId_; +} + +void DescribeRunningLogRecordsRequest::setNodeId(const std::string& nodeId) +{ + nodeId_ = nodeId; + setCoreParameter("NodeId", nodeId); +} + diff --git a/dds/src/model/DescribeRunningLogRecordsResult.cc b/dds/src/model/DescribeRunningLogRecordsResult.cc new file mode 100644 index 000000000..7f8024b6a --- /dev/null +++ b/dds/src/model/DescribeRunningLogRecordsResult.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::Dds; +using namespace AlibabaCloud::Dds::Model; + +DescribeRunningLogRecordsResult::DescribeRunningLogRecordsResult() : + ServiceResult() +{} + +DescribeRunningLogRecordsResult::DescribeRunningLogRecordsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRunningLogRecordsResult::~DescribeRunningLogRecordsResult() +{} + +void DescribeRunningLogRecordsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["LogRecords"]; + for (auto value : allItems) + { + LogRecords itemsObject; + if(!value["Id"].isNull()) + itemsObject.id = std::stoi(value["Id"].asString()); + if(!value["CreateTime"].isNull()) + itemsObject.createTime = value["CreateTime"].asString(); + if(!value["Category"].isNull()) + itemsObject.category = value["Category"].asString(); + if(!value["ConnInfo"].isNull()) + itemsObject.connInfo = value["ConnInfo"].asString(); + if(!value["Content"].isNull()) + itemsObject.content = std::stol(value["Content"].asString()); + items_.push_back(itemsObject); + } + if(!value["Engine"].isNull()) + engine_ = value["Engine"].asString(); + if(!value["TotalRecordCount"].isNull()) + totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageRecordCount"].isNull()) + pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); + +} + +int DescribeRunningLogRecordsResult::getTotalRecordCount()const +{ + return totalRecordCount_; +} + +int DescribeRunningLogRecordsResult::getPageRecordCount()const +{ + return pageRecordCount_; +} + +int DescribeRunningLogRecordsResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeRunningLogRecordsResult::getItems()const +{ + return items_; +} + +std::string DescribeRunningLogRecordsResult::getEngine()const +{ + return engine_; +} + diff --git a/dds/src/model/DescribeSecurityIpsRequest.cc b/dds/src/model/DescribeSecurityIpsRequest.cc new file mode 100644 index 000000000..bb7937ba7 --- /dev/null +++ b/dds/src/model/DescribeSecurityIpsRequest.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dds::Model::DescribeSecurityIpsRequest; + +DescribeSecurityIpsRequest::DescribeSecurityIpsRequest() : + RpcServiceRequest("dds", "2015-12-01", "DescribeSecurityIps") +{} + +DescribeSecurityIpsRequest::~DescribeSecurityIpsRequest() +{} + +long DescribeSecurityIpsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeSecurityIpsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeSecurityIpsRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeSecurityIpsRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeSecurityIpsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeSecurityIpsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeSecurityIpsRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeSecurityIpsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeSecurityIpsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeSecurityIpsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeSecurityIpsRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeSecurityIpsRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setCoreParameter("DBInstanceId", dBInstanceId); +} + +long DescribeSecurityIpsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeSecurityIpsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeSecurityIpsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeSecurityIpsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dds/src/model/DescribeSecurityIpsResult.cc b/dds/src/model/DescribeSecurityIpsResult.cc new file mode 100644 index 000000000..bba324abe --- /dev/null +++ b/dds/src/model/DescribeSecurityIpsResult.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::Dds; +using namespace AlibabaCloud::Dds::Model; + +DescribeSecurityIpsResult::DescribeSecurityIpsResult() : + ServiceResult() +{} + +DescribeSecurityIpsResult::DescribeSecurityIpsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSecurityIpsResult::~DescribeSecurityIpsResult() +{} + +void DescribeSecurityIpsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allSecurityIpGroups = value["SecurityIpGroups"]["SecurityIpGroup"]; + for (auto value : allSecurityIpGroups) + { + SecurityIpGroup securityIpGroupsObject; + if(!value["SecurityIpGroupName"].isNull()) + securityIpGroupsObject.securityIpGroupName = value["SecurityIpGroupName"].asString(); + if(!value["SecurityIpGroupAttribute"].isNull()) + securityIpGroupsObject.securityIpGroupAttribute = value["SecurityIpGroupAttribute"].asString(); + if(!value["SecurityIpList"].isNull()) + securityIpGroupsObject.securityIpList = value["SecurityIpList"].asString(); + securityIpGroups_.push_back(securityIpGroupsObject); + } + if(!value["SecurityIps"].isNull()) + securityIps_ = value["SecurityIps"].asString(); + +} + +std::string DescribeSecurityIpsResult::getSecurityIps()const +{ + return securityIps_; +} + +std::vector DescribeSecurityIpsResult::getSecurityIpGroups()const +{ + return securityIpGroups_; +} + diff --git a/dds/src/model/DescribeShardingNetworkAddressRequest.cc b/dds/src/model/DescribeShardingNetworkAddressRequest.cc new file mode 100644 index 000000000..4551b53db --- /dev/null +++ b/dds/src/model/DescribeShardingNetworkAddressRequest.cc @@ -0,0 +1,126 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dds::Model::DescribeShardingNetworkAddressRequest; + +DescribeShardingNetworkAddressRequest::DescribeShardingNetworkAddressRequest() : + RpcServiceRequest("dds", "2015-12-01", "DescribeShardingNetworkAddress") +{} + +DescribeShardingNetworkAddressRequest::~DescribeShardingNetworkAddressRequest() +{} + +long DescribeShardingNetworkAddressRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeShardingNetworkAddressRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeShardingNetworkAddressRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeShardingNetworkAddressRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeShardingNetworkAddressRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeShardingNetworkAddressRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeShardingNetworkAddressRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeShardingNetworkAddressRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeShardingNetworkAddressRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeShardingNetworkAddressRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeShardingNetworkAddressRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeShardingNetworkAddressRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setCoreParameter("DBInstanceId", dBInstanceId); +} + +long DescribeShardingNetworkAddressRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeShardingNetworkAddressRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeShardingNetworkAddressRequest::getNodeId()const +{ + return nodeId_; +} + +void DescribeShardingNetworkAddressRequest::setNodeId(const std::string& nodeId) +{ + nodeId_ = nodeId; + setCoreParameter("NodeId", nodeId); +} + +std::string DescribeShardingNetworkAddressRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeShardingNetworkAddressRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dds/src/model/DescribeShardingNetworkAddressResult.cc b/dds/src/model/DescribeShardingNetworkAddressResult.cc new file mode 100644 index 000000000..b8a83f74f --- /dev/null +++ b/dds/src/model/DescribeShardingNetworkAddressResult.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 +#include + +using namespace AlibabaCloud::Dds; +using namespace AlibabaCloud::Dds::Model; + +DescribeShardingNetworkAddressResult::DescribeShardingNetworkAddressResult() : + ServiceResult() +{} + +DescribeShardingNetworkAddressResult::DescribeShardingNetworkAddressResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeShardingNetworkAddressResult::~DescribeShardingNetworkAddressResult() +{} + +void DescribeShardingNetworkAddressResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allNetworkAddresses = value["NetworkAddresses"]["NetworkAddress"]; + for (auto value : allNetworkAddresses) + { + NetworkAddress networkAddressesObject; + if(!value["NetworkAddress"].isNull()) + networkAddressesObject.networkAddress = value["NetworkAddress"].asString(); + if(!value["IPAddress"].isNull()) + networkAddressesObject.iPAddress = value["IPAddress"].asString(); + if(!value["NetworkType"].isNull()) + networkAddressesObject.networkType = value["NetworkType"].asString(); + if(!value["Port"].isNull()) + networkAddressesObject.port = value["Port"].asString(); + if(!value["VPCId"].isNull()) + networkAddressesObject.vPCId = value["VPCId"].asString(); + if(!value["VswitchId"].isNull()) + networkAddressesObject.vswitchId = value["VswitchId"].asString(); + if(!value["NodeId"].isNull()) + networkAddressesObject.nodeId = value["NodeId"].asString(); + if(!value["ExpiredTime"].isNull()) + networkAddressesObject.expiredTime = value["ExpiredTime"].asString(); + networkAddresses_.push_back(networkAddressesObject); + } + +} + +std::vector DescribeShardingNetworkAddressResult::getNetworkAddresses()const +{ + return networkAddresses_; +} + diff --git a/dds/src/model/DescribeSlowLogRecordsRequest.cc b/dds/src/model/DescribeSlowLogRecordsRequest.cc new file mode 100644 index 000000000..b7052dbf3 --- /dev/null +++ b/dds/src/model/DescribeSlowLogRecordsRequest.cc @@ -0,0 +1,192 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dds::Model::DescribeSlowLogRecordsRequest; + +DescribeSlowLogRecordsRequest::DescribeSlowLogRecordsRequest() : + RpcServiceRequest("dds", "2015-12-01", "DescribeSlowLogRecords") +{} + +DescribeSlowLogRecordsRequest::~DescribeSlowLogRecordsRequest() +{} + +long DescribeSlowLogRecordsRequest::getSQLId()const +{ + return sQLId_; +} + +void DescribeSlowLogRecordsRequest::setSQLId(long sQLId) +{ + sQLId_ = sQLId; + setCoreParameter("SQLId", std::to_string(sQLId)); +} + +long DescribeSlowLogRecordsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeSlowLogRecordsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeSlowLogRecordsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeSlowLogRecordsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeSlowLogRecordsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeSlowLogRecordsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeSlowLogRecordsRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeSlowLogRecordsRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setCoreParameter("EndTime", endTime); +} + +std::string DescribeSlowLogRecordsRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeSlowLogRecordsRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setCoreParameter("StartTime", startTime); +} + +long DescribeSlowLogRecordsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeSlowLogRecordsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeSlowLogRecordsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeSlowLogRecordsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeSlowLogRecordsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeSlowLogRecordsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeSlowLogRecordsRequest::getDBName()const +{ + return dBName_; +} + +void DescribeSlowLogRecordsRequest::setDBName(const std::string& dBName) +{ + dBName_ = dBName; + setCoreParameter("DBName", dBName); +} + +std::string DescribeSlowLogRecordsRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeSlowLogRecordsRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeSlowLogRecordsRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeSlowLogRecordsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +int DescribeSlowLogRecordsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeSlowLogRecordsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeSlowLogRecordsRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeSlowLogRecordsRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setCoreParameter("DBInstanceId", dBInstanceId); +} + +std::string DescribeSlowLogRecordsRequest::getNodeId()const +{ + return nodeId_; +} + +void DescribeSlowLogRecordsRequest::setNodeId(const std::string& nodeId) +{ + nodeId_ = nodeId; + setCoreParameter("NodeId", nodeId); +} + diff --git a/dds/src/model/DescribeSlowLogRecordsResult.cc b/dds/src/model/DescribeSlowLogRecordsResult.cc new file mode 100644 index 000000000..8aa7deef4 --- /dev/null +++ b/dds/src/model/DescribeSlowLogRecordsResult.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::Dds; +using namespace AlibabaCloud::Dds::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"]["LogRecords"]; + for (auto value : allItems) + { + LogRecords itemsObject; + if(!value["HostAddress"].isNull()) + itemsObject.hostAddress = value["HostAddress"].asString(); + if(!value["DBName"].isNull()) + itemsObject.dBName = value["DBName"].asString(); + if(!value["SQLText"].isNull()) + itemsObject.sQLText = value["SQLText"].asString(); + if(!value["QueryTimes"].isNull()) + itemsObject.queryTimes = value["QueryTimes"].asString(); + if(!value["DocsExamined"].isNull()) + itemsObject.docsExamined = std::stol(value["DocsExamined"].asString()); + if(!value["KeysExamined"].isNull()) + itemsObject.keysExamined = std::stol(value["KeysExamined"].asString()); + if(!value["ReturnRowCounts"].isNull()) + itemsObject.returnRowCounts = std::stol(value["ReturnRowCounts"].asString()); + if(!value["ExecutionStartTime"].isNull()) + itemsObject.executionStartTime = value["ExecutionStartTime"].asString(); + if(!value["AccountName"].isNull()) + itemsObject.accountName = value["AccountName"].asString(); + items_.push_back(itemsObject); + } + if(!value["Engine"].isNull()) + engine_ = value["Engine"].asString(); + if(!value["TotalRecordCount"].isNull()) + totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageRecordCount"].isNull()) + pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); + +} + +int DescribeSlowLogRecordsResult::getTotalRecordCount()const +{ + return totalRecordCount_; +} + +int DescribeSlowLogRecordsResult::getPageRecordCount()const +{ + return pageRecordCount_; +} + +int DescribeSlowLogRecordsResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeSlowLogRecordsResult::getItems()const +{ + return items_; +} + +std::string DescribeSlowLogRecordsResult::getEngine()const +{ + return engine_; +} + diff --git a/dds/src/model/DescribeStaticVerificationListRequest.cc b/dds/src/model/DescribeStaticVerificationListRequest.cc new file mode 100644 index 000000000..4ee633831 --- /dev/null +++ b/dds/src/model/DescribeStaticVerificationListRequest.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 + +using AlibabaCloud::Dds::Model::DescribeStaticVerificationListRequest; + +DescribeStaticVerificationListRequest::DescribeStaticVerificationListRequest() : + RpcServiceRequest("dds", "2015-12-01", "DescribeStaticVerificationList") +{} + +DescribeStaticVerificationListRequest::~DescribeStaticVerificationListRequest() +{} + +long DescribeStaticVerificationListRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeStaticVerificationListRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeStaticVerificationListRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeStaticVerificationListRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeStaticVerificationListRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeStaticVerificationListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeStaticVerificationListRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeStaticVerificationListRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeStaticVerificationListRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeStaticVerificationListRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeStaticVerificationListRequest::getReplicaId()const +{ + return replicaId_; +} + +void DescribeStaticVerificationListRequest::setReplicaId(const std::string& replicaId) +{ + replicaId_ = replicaId; + setCoreParameter("ReplicaId", replicaId); +} + +std::string DescribeStaticVerificationListRequest::getDestinationInstanceId()const +{ + return destinationInstanceId_; +} + +void DescribeStaticVerificationListRequest::setDestinationInstanceId(const std::string& destinationInstanceId) +{ + destinationInstanceId_ = destinationInstanceId; + setCoreParameter("DestinationInstanceId", destinationInstanceId); +} + +std::string DescribeStaticVerificationListRequest::getSourceInstanceId()const +{ + return sourceInstanceId_; +} + +void DescribeStaticVerificationListRequest::setSourceInstanceId(const std::string& sourceInstanceId) +{ + sourceInstanceId_ = sourceInstanceId; + setCoreParameter("SourceInstanceId", sourceInstanceId); +} + +long DescribeStaticVerificationListRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeStaticVerificationListRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeStaticVerificationListRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeStaticVerificationListRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dds/src/model/DescribeStaticVerificationListResult.cc b/dds/src/model/DescribeStaticVerificationListResult.cc new file mode 100644 index 000000000..63e84fed0 --- /dev/null +++ b/dds/src/model/DescribeStaticVerificationListResult.cc @@ -0,0 +1,146 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Dds; +using namespace AlibabaCloud::Dds::Model; + +DescribeStaticVerificationListResult::DescribeStaticVerificationListResult() : + ServiceResult() +{} + +DescribeStaticVerificationListResult::DescribeStaticVerificationListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeStaticVerificationListResult::~DescribeStaticVerificationListResult() +{} + +void DescribeStaticVerificationListResult::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 itemsObject; + if(!value["AbnormalType"].isNull()) + itemsObject.abnormalType = value["AbnormalType"].asString(); + if(!value["SourceDetail"].isNull()) + itemsObject.sourceDetail = value["SourceDetail"].asString(); + if(!value["DestinationDetail"].isNull()) + itemsObject.destinationDetail = value["DestinationDetail"].asString(); + items_.push_back(itemsObject); + } + if(!value["ReplicaId"].isNull()) + replicaId_ = value["ReplicaId"].asString(); + if(!value["SourceInstanceId"].isNull()) + sourceInstanceId_ = value["SourceInstanceId"].asString(); + if(!value["SourceDBNumber"].isNull()) + sourceDBNumber_ = std::stoi(value["SourceDBNumber"].asString()); + if(!value["SourceTableNumber"].isNull()) + sourceTableNumber_ = std::stoi(value["SourceTableNumber"].asString()); + if(!value["SourceCountNumber"].isNull()) + sourceCountNumber_ = std::stoi(value["SourceCountNumber"].asString()); + if(!value["SourceDBSize"].isNull()) + sourceDBSize_ = std::stoi(value["SourceDBSize"].asString()); + if(!value["DestinationInstanceId"].isNull()) + destinationInstanceId_ = value["DestinationInstanceId"].asString(); + if(!value["DestinationDBNumber"].isNull()) + destinationDBNumber_ = std::stoi(value["DestinationDBNumber"].asString()); + if(!value["DestinationTableNumber"].isNull()) + destinationTableNumber_ = std::stoi(value["DestinationTableNumber"].asString()); + if(!value["DestinationCountNumber"].isNull()) + destinationCountNumber_ = std::stoi(value["DestinationCountNumber"].asString()); + if(!value["DestinationDBSize"].isNull()) + destinationDBSize_ = std::stoi(value["DestinationDBSize"].asString()); + if(!value["ConsistencyPercent"].isNull()) + consistencyPercent_ = value["ConsistencyPercent"].asString(); + +} + +int DescribeStaticVerificationListResult::getDestinationTableNumber()const +{ + return destinationTableNumber_; +} + +std::string DescribeStaticVerificationListResult::getDestinationInstanceId()const +{ + return destinationInstanceId_; +} + +int DescribeStaticVerificationListResult::getDestinationDBNumber()const +{ + return destinationDBNumber_; +} + +std::string DescribeStaticVerificationListResult::getSourceInstanceId()const +{ + return sourceInstanceId_; +} + +int DescribeStaticVerificationListResult::getSourceDBNumber()const +{ + return sourceDBNumber_; +} + +std::string DescribeStaticVerificationListResult::getReplicaId()const +{ + return replicaId_; +} + +int DescribeStaticVerificationListResult::getSourceDBSize()const +{ + return sourceDBSize_; +} + +int DescribeStaticVerificationListResult::getSourceCountNumber()const +{ + return sourceCountNumber_; +} + +int DescribeStaticVerificationListResult::getDestinationCountNumber()const +{ + return destinationCountNumber_; +} + +std::string DescribeStaticVerificationListResult::getConsistencyPercent()const +{ + return consistencyPercent_; +} + +std::vector DescribeStaticVerificationListResult::getItems()const +{ + return items_; +} + +int DescribeStaticVerificationListResult::getDestinationDBSize()const +{ + return destinationDBSize_; +} + +int DescribeStaticVerificationListResult::getSourceTableNumber()const +{ + return sourceTableNumber_; +} + diff --git a/dds/src/model/DescribeStrategyRequest.cc b/dds/src/model/DescribeStrategyRequest.cc new file mode 100644 index 000000000..ecbdcfa2c --- /dev/null +++ b/dds/src/model/DescribeStrategyRequest.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dds::Model::DescribeStrategyRequest; + +DescribeStrategyRequest::DescribeStrategyRequest() : + RpcServiceRequest("dds", "2015-12-01", "DescribeStrategy") +{} + +DescribeStrategyRequest::~DescribeStrategyRequest() +{} + +long DescribeStrategyRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeStrategyRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeStrategyRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeStrategyRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeStrategyRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeStrategyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeStrategyRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeStrategyRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeStrategyRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeStrategyRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeStrategyRequest::getReplicaId()const +{ + return replicaId_; +} + +void DescribeStrategyRequest::setReplicaId(const std::string& replicaId) +{ + replicaId_ = replicaId; + setCoreParameter("ReplicaId", replicaId); +} + +long DescribeStrategyRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeStrategyRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeStrategyRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeStrategyRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dds/src/model/DescribeStrategyResult.cc b/dds/src/model/DescribeStrategyResult.cc new file mode 100644 index 000000000..b3eba6503 --- /dev/null +++ b/dds/src/model/DescribeStrategyResult.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::Dds; +using namespace AlibabaCloud::Dds::Model; + +DescribeStrategyResult::DescribeStrategyResult() : + ServiceResult() +{} + +DescribeStrategyResult::DescribeStrategyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeStrategyResult::~DescribeStrategyResult() +{} + +void DescribeStrategyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["ReplicaId"].isNull()) + replicaId_ = value["ReplicaId"].asString(); + if(!value["RecoveryMode"].isNull()) + recoveryMode_ = value["RecoveryMode"].asString(); + if(!value["VerificationMode"].isNull()) + verificationMode_ = value["VerificationMode"].asString(); + +} + +std::string DescribeStrategyResult::getRecoveryMode()const +{ + return recoveryMode_; +} + +std::string DescribeStrategyResult::getReplicaId()const +{ + return replicaId_; +} + +std::string DescribeStrategyResult::getVerificationMode()const +{ + return verificationMode_; +} + diff --git a/dds/src/model/DescribeVerificationListRequest.cc b/dds/src/model/DescribeVerificationListRequest.cc new file mode 100644 index 000000000..55a773bb8 --- /dev/null +++ b/dds/src/model/DescribeVerificationListRequest.cc @@ -0,0 +1,159 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dds::Model::DescribeVerificationListRequest; + +DescribeVerificationListRequest::DescribeVerificationListRequest() : + RpcServiceRequest("dds", "2015-12-01", "DescribeVerificationList") +{} + +DescribeVerificationListRequest::~DescribeVerificationListRequest() +{} + +long DescribeVerificationListRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeVerificationListRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeVerificationListRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeVerificationListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeVerificationListRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeVerificationListRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeVerificationListRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeVerificationListRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setCoreParameter("EndTime", endTime); +} + +std::string DescribeVerificationListRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeVerificationListRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setCoreParameter("StartTime", startTime); +} + +long DescribeVerificationListRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeVerificationListRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeVerificationListRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeVerificationListRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeVerificationListRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeVerificationListRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeVerificationListRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeVerificationListRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DescribeVerificationListRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeVerificationListRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DescribeVerificationListRequest::getReplicaId()const +{ + return replicaId_; +} + +void DescribeVerificationListRequest::setReplicaId(const std::string& replicaId) +{ + replicaId_ = replicaId; + setCoreParameter("ReplicaId", replicaId); +} + +int DescribeVerificationListRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeVerificationListRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + diff --git a/dds/src/model/DescribeVerificationListResult.cc b/dds/src/model/DescribeVerificationListResult.cc new file mode 100644 index 000000000..0722f2895 --- /dev/null +++ b/dds/src/model/DescribeVerificationListResult.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::Dds; +using namespace AlibabaCloud::Dds::Model; + +DescribeVerificationListResult::DescribeVerificationListResult() : + ServiceResult() +{} + +DescribeVerificationListResult::DescribeVerificationListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeVerificationListResult::~DescribeVerificationListResult() +{} + +void DescribeVerificationListResult::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 itemsObject; + if(!value["InstanceIdA"].isNull()) + itemsObject.instanceIdA = value["InstanceIdA"].asString(); + if(!value["InstanceIdB"].isNull()) + itemsObject.instanceIdB = value["InstanceIdB"].asString(); + if(!value["Key"].isNull()) + itemsObject.key = value["Key"].asString(); + if(!value["KeyType"].isNull()) + itemsObject.keyType = value["KeyType"].asString(); + if(!value["InconsistentType"].isNull()) + itemsObject.inconsistentType = value["InconsistentType"].asString(); + if(!value["OccurTime"].isNull()) + itemsObject.occurTime = value["OccurTime"].asString(); + if(!value["Schema"].isNull()) + itemsObject.schema = value["Schema"].asString(); + if(!value["InconsistentFields"].isNull()) + itemsObject.inconsistentFields = value["InconsistentFields"].asString(); + items_.push_back(itemsObject); + } + if(!value["ReplicaId"].isNull()) + replicaId_ = value["ReplicaId"].asString(); + if(!value["PagNumber"].isNull()) + pagNumber_ = std::stoi(value["PagNumber"].asString()); + if(!value["PageRecordCount"].isNull()) + pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); + if(!value["TotalRecordCount"].isNull()) + totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString()); + +} + +int DescribeVerificationListResult::getTotalRecordCount()const +{ + return totalRecordCount_; +} + +int DescribeVerificationListResult::getPageRecordCount()const +{ + return pageRecordCount_; +} + +std::vector DescribeVerificationListResult::getItems()const +{ + return items_; +} + +int DescribeVerificationListResult::getPagNumber()const +{ + return pagNumber_; +} + +std::string DescribeVerificationListResult::getReplicaId()const +{ + return replicaId_; +} + diff --git a/dds/src/model/DestroyInstanceRequest.cc b/dds/src/model/DestroyInstanceRequest.cc new file mode 100644 index 000000000..041c9d0d9 --- /dev/null +++ b/dds/src/model/DestroyInstanceRequest.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 + +using AlibabaCloud::Dds::Model::DestroyInstanceRequest; + +DestroyInstanceRequest::DestroyInstanceRequest() : + RpcServiceRequest("dds", "2015-12-01", "DestroyInstance") +{} + +DestroyInstanceRequest::~DestroyInstanceRequest() +{} + +long DestroyInstanceRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DestroyInstanceRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DestroyInstanceRequest::getInstanceId()const +{ + return instanceId_; +} + +void DestroyInstanceRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string DestroyInstanceRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DestroyInstanceRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string DestroyInstanceRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DestroyInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DestroyInstanceRequest::getRegionId()const +{ + return regionId_; +} + +void DestroyInstanceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DestroyInstanceRequest::getClientToken()const +{ + return clientToken_; +} + +void DestroyInstanceRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setCoreParameter("ClientToken", clientToken); +} + +std::string DestroyInstanceRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DestroyInstanceRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string DestroyInstanceRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DestroyInstanceRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setCoreParameter("DBInstanceId", dBInstanceId); +} + +long DestroyInstanceRequest::getOwnerId()const +{ + return ownerId_; +} + +void DestroyInstanceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DestroyInstanceRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DestroyInstanceRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dds/src/model/DestroyInstanceResult.cc b/dds/src/model/DestroyInstanceResult.cc new file mode 100644 index 000000000..4d42f12df --- /dev/null +++ b/dds/src/model/DestroyInstanceResult.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::Dds; +using namespace AlibabaCloud::Dds::Model; + +DestroyInstanceResult::DestroyInstanceResult() : + ServiceResult() +{} + +DestroyInstanceResult::DestroyInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DestroyInstanceResult::~DestroyInstanceResult() +{} + +void DestroyInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/dds/src/model/EvaluateFailOverSwitchRequest.cc b/dds/src/model/EvaluateFailOverSwitchRequest.cc new file mode 100644 index 000000000..59f05b786 --- /dev/null +++ b/dds/src/model/EvaluateFailOverSwitchRequest.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dds::Model::EvaluateFailOverSwitchRequest; + +EvaluateFailOverSwitchRequest::EvaluateFailOverSwitchRequest() : + RpcServiceRequest("dds", "2015-12-01", "EvaluateFailOverSwitch") +{} + +EvaluateFailOverSwitchRequest::~EvaluateFailOverSwitchRequest() +{} + +long EvaluateFailOverSwitchRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void EvaluateFailOverSwitchRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string EvaluateFailOverSwitchRequest::getSecurityToken()const +{ + return securityToken_; +} + +void EvaluateFailOverSwitchRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string EvaluateFailOverSwitchRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void EvaluateFailOverSwitchRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string EvaluateFailOverSwitchRequest::getRegionId()const +{ + return regionId_; +} + +void EvaluateFailOverSwitchRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string EvaluateFailOverSwitchRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void EvaluateFailOverSwitchRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string EvaluateFailOverSwitchRequest::getReplicaId()const +{ + return replicaId_; +} + +void EvaluateFailOverSwitchRequest::setReplicaId(const std::string& replicaId) +{ + replicaId_ = replicaId; + setCoreParameter("ReplicaId", replicaId); +} + +long EvaluateFailOverSwitchRequest::getOwnerId()const +{ + return ownerId_; +} + +void EvaluateFailOverSwitchRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string EvaluateFailOverSwitchRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void EvaluateFailOverSwitchRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dds/src/model/EvaluateFailOverSwitchResult.cc b/dds/src/model/EvaluateFailOverSwitchResult.cc new file mode 100644 index 000000000..cb77fd764 --- /dev/null +++ b/dds/src/model/EvaluateFailOverSwitchResult.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 +#include + +using namespace AlibabaCloud::Dds; +using namespace AlibabaCloud::Dds::Model; + +EvaluateFailOverSwitchResult::EvaluateFailOverSwitchResult() : + ServiceResult() +{} + +EvaluateFailOverSwitchResult::EvaluateFailOverSwitchResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +EvaluateFailOverSwitchResult::~EvaluateFailOverSwitchResult() +{} + +void EvaluateFailOverSwitchResult::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 itemsObject; + if(!value["DBInstanceId"].isNull()) + itemsObject.dBInstanceId = value["DBInstanceId"].asString(); + if(!value["RegionId"].isNull()) + itemsObject.regionId = value["RegionId"].asString(); + if(!value["ReadWriteType"].isNull()) + itemsObject.readWriteType = value["ReadWriteType"].asString(); + if(!value["InstanceNetworkType"].isNull()) + itemsObject.instanceNetworkType = value["InstanceNetworkType"].asString(); + if(!value["SecurityIPList"].isNull()) + itemsObject.securityIPList = value["SecurityIPList"].asString(); + if(!value["HasInternetIP"].isNull()) + itemsObject.hasInternetIP = value["HasInternetIP"].asString() == "true"; + if(!value["InternetIP"].isNull()) + itemsObject.internetIP = value["InternetIP"].asString(); + auto allAccounts = value["Accounts"]["AccountsItem"]; + for (auto value : allAccounts) + { + ItemsItem::AccountsItem accountsObject; + if(!value["AccountPrivilege"].isNull()) + accountsObject.accountPrivilege = value["AccountPrivilege"].asString(); + if(!value["AccountStatus"].isNull()) + accountsObject.accountStatus = value["AccountStatus"].asString(); + if(!value["AccountPrivilegeDetail"].isNull()) + accountsObject.accountPrivilegeDetail = value["AccountPrivilegeDetail"].asString(); + if(!value["AccountDescription"].isNull()) + accountsObject.accountDescription = value["AccountDescription"].asString(); + if(!value["AccountID"].isNull()) + accountsObject.accountID = value["AccountID"].asString(); + if(!value["AccountName"].isNull()) + accountsObject.accountName = value["AccountName"].asString(); + if(!value["PrivExceeded"].isNull()) + accountsObject.privExceeded = value["PrivExceeded"].asString(); + if(!value["Engine"].isNull()) + accountsObject.engine = value["Engine"].asString(); + if(!value["AccountType"].isNull()) + accountsObject.accountType = value["AccountType"].asString(); + itemsObject.accounts.push_back(accountsObject); + } + items_.push_back(itemsObject); + } + auto allReports = value["Reports"]["ReportsItem"]; + for (auto value : allReports) + { + ReportsItem reportsObject; + if(!value["CheckType"].isNull()) + reportsObject.checkType = value["CheckType"].asString(); + if(!value["Severity"].isNull()) + reportsObject.severity = value["Severity"].asString(); + if(!value["ReasonCode"].isNull()) + reportsObject.reasonCode = value["ReasonCode"].asString(); + if(!value["ReasonMessage"].isNull()) + reportsObject.reasonMessage = value["ReasonMessage"].asString(); + reports_.push_back(reportsObject); + } + if(!value["ReplicaId"].isNull()) + replicaId_ = value["ReplicaId"].asString(); + if(!value["EvaluateResult"].isNull()) + evaluateResult_ = value["EvaluateResult"].asString(); + +} + +std::string EvaluateFailOverSwitchResult::getEvaluateResult()const +{ + return evaluateResult_; +} + +std::vector EvaluateFailOverSwitchResult::getReports()const +{ + return reports_; +} + +std::vector EvaluateFailOverSwitchResult::getItems()const +{ + return items_; +} + +std::string EvaluateFailOverSwitchResult::getReplicaId()const +{ + return replicaId_; +} + diff --git a/dds/src/model/ListTagResourcesRequest.cc b/dds/src/model/ListTagResourcesRequest.cc new file mode 100644 index 000000000..55c5d2178 --- /dev/null +++ b/dds/src/model/ListTagResourcesRequest.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 + +using AlibabaCloud::Dds::Model::ListTagResourcesRequest; + +ListTagResourcesRequest::ListTagResourcesRequest() : + RpcServiceRequest("dds", "2015-12-01", "ListTagResources") +{} + +ListTagResourcesRequest::~ListTagResourcesRequest() +{} + +long ListTagResourcesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ListTagResourcesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::vector ListTagResourcesRequest::getResourceId()const +{ + return resourceId_; +} + +void ListTagResourcesRequest::setResourceId(const std::vector& resourceId) +{ + resourceId_ = resourceId; + for(int i = 0; i!= resourceId.size(); i++) + setCoreParameter("ResourceId."+ std::to_string(i), resourceId.at(i)); +} + +std::string ListTagResourcesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ListTagResourcesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ListTagResourcesRequest::getRegionId()const +{ + return regionId_; +} + +void ListTagResourcesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ListTagResourcesRequest::getNextToken()const +{ + return nextToken_; +} + +void ListTagResourcesRequest::setNextToken(const std::string& nextToken) +{ + nextToken_ = nextToken; + setCoreParameter("NextToken", nextToken); +} + +std::string ListTagResourcesRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ListTagResourcesRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::vector ListTagResourcesRequest::getTag()const +{ + return tag_; +} + +void ListTagResourcesRequest::setTag(const std::vector& tag) +{ + tag_ = tag; + int i = 0; + for(int i = 0; i!= tag.size(); i++) { + auto obj = tag.at(i); + std::string str ="Tag."+ std::to_string(i); + setCoreParameter(str + ".Value", obj.value); + setCoreParameter(str + ".Key", obj.key); + } +} + +long ListTagResourcesRequest::getOwnerId()const +{ + return ownerId_; +} + +void ListTagResourcesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ListTagResourcesRequest::getResourceType()const +{ + return resourceType_; +} + +void ListTagResourcesRequest::setResourceType(const std::string& resourceType) +{ + resourceType_ = resourceType; + setCoreParameter("ResourceType", resourceType); +} + +std::string ListTagResourcesRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ListTagResourcesRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dds/src/model/ListTagResourcesResult.cc b/dds/src/model/ListTagResourcesResult.cc new file mode 100644 index 000000000..13b2f6ed4 --- /dev/null +++ b/dds/src/model/ListTagResourcesResult.cc @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dds; +using namespace AlibabaCloud::Dds::Model; + +ListTagResourcesResult::ListTagResourcesResult() : + ServiceResult() +{} + +ListTagResourcesResult::ListTagResourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListTagResourcesResult::~ListTagResourcesResult() +{} + +void ListTagResourcesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allTagResources = value["TagResources"]["TagResource"]; + for (auto value : allTagResources) + { + TagResource tagResourcesObject; + if(!value["TagKey"].isNull()) + tagResourcesObject.tagKey = value["TagKey"].asString(); + if(!value["TagValue"].isNull()) + tagResourcesObject.tagValue = value["TagValue"].asString(); + if(!value["ResourceType"].isNull()) + tagResourcesObject.resourceType = value["ResourceType"].asString(); + if(!value["ResourceId"].isNull()) + tagResourcesObject.resourceId = value["ResourceId"].asString(); + tagResources_.push_back(tagResourcesObject); + } + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + +} + +std::string ListTagResourcesResult::getNextToken()const +{ + return nextToken_; +} + +std::vector ListTagResourcesResult::getTagResources()const +{ + return tagResources_; +} + diff --git a/dds/src/model/MigrateAvailableZoneRequest.cc b/dds/src/model/MigrateAvailableZoneRequest.cc new file mode 100644 index 000000000..e6048890c --- /dev/null +++ b/dds/src/model/MigrateAvailableZoneRequest.cc @@ -0,0 +1,126 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dds::Model::MigrateAvailableZoneRequest; + +MigrateAvailableZoneRequest::MigrateAvailableZoneRequest() : + RpcServiceRequest("dds", "2015-12-01", "MigrateAvailableZone") +{} + +MigrateAvailableZoneRequest::~MigrateAvailableZoneRequest() +{} + +std::string MigrateAvailableZoneRequest::getVswitch()const +{ + return vswitch_; +} + +void MigrateAvailableZoneRequest::setVswitch(const std::string& vswitch) +{ + vswitch_ = vswitch; + setCoreParameter("Vswitch", vswitch); +} + +long MigrateAvailableZoneRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void MigrateAvailableZoneRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string MigrateAvailableZoneRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void MigrateAvailableZoneRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string MigrateAvailableZoneRequest::getEffectiveTime()const +{ + return effectiveTime_; +} + +void MigrateAvailableZoneRequest::setEffectiveTime(const std::string& effectiveTime) +{ + effectiveTime_ = effectiveTime; + setCoreParameter("EffectiveTime", effectiveTime); +} + +std::string MigrateAvailableZoneRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void MigrateAvailableZoneRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string MigrateAvailableZoneRequest::getZoneId()const +{ + return zoneId_; +} + +void MigrateAvailableZoneRequest::setZoneId(const std::string& zoneId) +{ + zoneId_ = zoneId; + setCoreParameter("ZoneId", zoneId); +} + +std::string MigrateAvailableZoneRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void MigrateAvailableZoneRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setCoreParameter("DBInstanceId", dBInstanceId); +} + +long MigrateAvailableZoneRequest::getOwnerId()const +{ + return ownerId_; +} + +void MigrateAvailableZoneRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string MigrateAvailableZoneRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void MigrateAvailableZoneRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dds/src/model/MigrateAvailableZoneResult.cc b/dds/src/model/MigrateAvailableZoneResult.cc new file mode 100644 index 000000000..6c59fffae --- /dev/null +++ b/dds/src/model/MigrateAvailableZoneResult.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::Dds; +using namespace AlibabaCloud::Dds::Model; + +MigrateAvailableZoneResult::MigrateAvailableZoneResult() : + ServiceResult() +{} + +MigrateAvailableZoneResult::MigrateAvailableZoneResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +MigrateAvailableZoneResult::~MigrateAvailableZoneResult() +{} + +void MigrateAvailableZoneResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/dds/src/model/MigrateToOtherZoneRequest.cc b/dds/src/model/MigrateToOtherZoneRequest.cc new file mode 100644 index 000000000..bc82f8d8f --- /dev/null +++ b/dds/src/model/MigrateToOtherZoneRequest.cc @@ -0,0 +1,126 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dds::Model::MigrateToOtherZoneRequest; + +MigrateToOtherZoneRequest::MigrateToOtherZoneRequest() : + RpcServiceRequest("dds", "2015-12-01", "MigrateToOtherZone") +{} + +MigrateToOtherZoneRequest::~MigrateToOtherZoneRequest() +{} + +std::string MigrateToOtherZoneRequest::getVSwitchId()const +{ + return vSwitchId_; +} + +void MigrateToOtherZoneRequest::setVSwitchId(const std::string& vSwitchId) +{ + vSwitchId_ = vSwitchId; + setCoreParameter("VSwitchId", vSwitchId); +} + +long MigrateToOtherZoneRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void MigrateToOtherZoneRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string MigrateToOtherZoneRequest::getInstanceId()const +{ + return instanceId_; +} + +void MigrateToOtherZoneRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string MigrateToOtherZoneRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void MigrateToOtherZoneRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string MigrateToOtherZoneRequest::getEffectiveTime()const +{ + return effectiveTime_; +} + +void MigrateToOtherZoneRequest::setEffectiveTime(const std::string& effectiveTime) +{ + effectiveTime_ = effectiveTime; + setCoreParameter("EffectiveTime", effectiveTime); +} + +std::string MigrateToOtherZoneRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void MigrateToOtherZoneRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string MigrateToOtherZoneRequest::getZoneId()const +{ + return zoneId_; +} + +void MigrateToOtherZoneRequest::setZoneId(const std::string& zoneId) +{ + zoneId_ = zoneId; + setCoreParameter("ZoneId", zoneId); +} + +long MigrateToOtherZoneRequest::getOwnerId()const +{ + return ownerId_; +} + +void MigrateToOtherZoneRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string MigrateToOtherZoneRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void MigrateToOtherZoneRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dds/src/model/MigrateToOtherZoneResult.cc b/dds/src/model/MigrateToOtherZoneResult.cc new file mode 100644 index 000000000..1efbfb119 --- /dev/null +++ b/dds/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::Dds; +using namespace AlibabaCloud::Dds::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/dds/src/model/ModifyAccountDescriptionRequest.cc b/dds/src/model/ModifyAccountDescriptionRequest.cc new file mode 100644 index 000000000..854a3510a --- /dev/null +++ b/dds/src/model/ModifyAccountDescriptionRequest.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 + +using AlibabaCloud::Dds::Model::ModifyAccountDescriptionRequest; + +ModifyAccountDescriptionRequest::ModifyAccountDescriptionRequest() : + RpcServiceRequest("dds", "2015-12-01", "ModifyAccountDescription") +{} + +ModifyAccountDescriptionRequest::~ModifyAccountDescriptionRequest() +{} + +long ModifyAccountDescriptionRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyAccountDescriptionRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyAccountDescriptionRequest::getAccountName()const +{ + return accountName_; +} + +void ModifyAccountDescriptionRequest::setAccountName(const std::string& accountName) +{ + accountName_ = accountName; + setCoreParameter("AccountName", accountName); +} + +std::string ModifyAccountDescriptionRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ModifyAccountDescriptionRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string ModifyAccountDescriptionRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyAccountDescriptionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyAccountDescriptionRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyAccountDescriptionRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ModifyAccountDescriptionRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyAccountDescriptionRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyAccountDescriptionRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void ModifyAccountDescriptionRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setCoreParameter("DBInstanceId", dBInstanceId); +} + +long ModifyAccountDescriptionRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyAccountDescriptionRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyAccountDescriptionRequest::getAccountDescription()const +{ + return accountDescription_; +} + +void ModifyAccountDescriptionRequest::setAccountDescription(const std::string& accountDescription) +{ + accountDescription_ = accountDescription; + setCoreParameter("AccountDescription", accountDescription); +} + +std::string ModifyAccountDescriptionRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyAccountDescriptionRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dds/src/model/ModifyAccountDescriptionResult.cc b/dds/src/model/ModifyAccountDescriptionResult.cc new file mode 100644 index 000000000..bad5f07a4 --- /dev/null +++ b/dds/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::Dds; +using namespace AlibabaCloud::Dds::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/dds/src/model/ModifyActiveOperationTaskRequest.cc b/dds/src/model/ModifyActiveOperationTaskRequest.cc new file mode 100644 index 000000000..f97726e37 --- /dev/null +++ b/dds/src/model/ModifyActiveOperationTaskRequest.cc @@ -0,0 +1,126 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dds::Model::ModifyActiveOperationTaskRequest; + +ModifyActiveOperationTaskRequest::ModifyActiveOperationTaskRequest() : + RpcServiceRequest("dds", "2015-12-01", "ModifyActiveOperationTask") +{} + +ModifyActiveOperationTaskRequest::~ModifyActiveOperationTaskRequest() +{} + +long ModifyActiveOperationTaskRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyActiveOperationTaskRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyActiveOperationTaskRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ModifyActiveOperationTaskRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string ModifyActiveOperationTaskRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyActiveOperationTaskRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyActiveOperationTaskRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyActiveOperationTaskRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ModifyActiveOperationTaskRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyActiveOperationTaskRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyActiveOperationTaskRequest::getIds()const +{ + return ids_; +} + +void ModifyActiveOperationTaskRequest::setIds(const std::string& ids) +{ + ids_ = ids; + setCoreParameter("Ids", ids); +} + +std::string ModifyActiveOperationTaskRequest::getSwitchTime()const +{ + return switchTime_; +} + +void ModifyActiveOperationTaskRequest::setSwitchTime(const std::string& switchTime) +{ + switchTime_ = switchTime; + setCoreParameter("SwitchTime", switchTime); +} + +long ModifyActiveOperationTaskRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyActiveOperationTaskRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyActiveOperationTaskRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyActiveOperationTaskRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dds/src/model/ModifyActiveOperationTaskResult.cc b/dds/src/model/ModifyActiveOperationTaskResult.cc new file mode 100644 index 000000000..52933079f --- /dev/null +++ b/dds/src/model/ModifyActiveOperationTaskResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Dds; +using namespace AlibabaCloud::Dds::Model; + +ModifyActiveOperationTaskResult::ModifyActiveOperationTaskResult() : + ServiceResult() +{} + +ModifyActiveOperationTaskResult::ModifyActiveOperationTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyActiveOperationTaskResult::~ModifyActiveOperationTaskResult() +{} + +void ModifyActiveOperationTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["Ids"].isNull()) + ids_ = value["Ids"].asString(); + +} + +std::string ModifyActiveOperationTaskResult::getIds()const +{ + return ids_; +} + diff --git a/dds/src/model/ModifyAuditLogFilterRequest.cc b/dds/src/model/ModifyAuditLogFilterRequest.cc new file mode 100644 index 000000000..50e0bd374 --- /dev/null +++ b/dds/src/model/ModifyAuditLogFilterRequest.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 + +using AlibabaCloud::Dds::Model::ModifyAuditLogFilterRequest; + +ModifyAuditLogFilterRequest::ModifyAuditLogFilterRequest() : + RpcServiceRequest("dds", "2015-12-01", "ModifyAuditLogFilter") +{} + +ModifyAuditLogFilterRequest::~ModifyAuditLogFilterRequest() +{} + +std::string ModifyAuditLogFilterRequest::getFilter()const +{ + return filter_; +} + +void ModifyAuditLogFilterRequest::setFilter(const std::string& filter) +{ + filter_ = filter; + setCoreParameter("Filter", filter); +} + +long ModifyAuditLogFilterRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyAuditLogFilterRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyAuditLogFilterRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ModifyAuditLogFilterRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string ModifyAuditLogFilterRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyAuditLogFilterRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyAuditLogFilterRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyAuditLogFilterRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ModifyAuditLogFilterRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyAuditLogFilterRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyAuditLogFilterRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void ModifyAuditLogFilterRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setCoreParameter("DBInstanceId", dBInstanceId); +} + +std::string ModifyAuditLogFilterRequest::getRoleType()const +{ + return roleType_; +} + +void ModifyAuditLogFilterRequest::setRoleType(const std::string& roleType) +{ + roleType_ = roleType; + setCoreParameter("RoleType", roleType); +} + +long ModifyAuditLogFilterRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyAuditLogFilterRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyAuditLogFilterRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyAuditLogFilterRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dds/src/model/ModifyAuditLogFilterResult.cc b/dds/src/model/ModifyAuditLogFilterResult.cc new file mode 100644 index 000000000..e469d0a3f --- /dev/null +++ b/dds/src/model/ModifyAuditLogFilterResult.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::Dds; +using namespace AlibabaCloud::Dds::Model; + +ModifyAuditLogFilterResult::ModifyAuditLogFilterResult() : + ServiceResult() +{} + +ModifyAuditLogFilterResult::ModifyAuditLogFilterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyAuditLogFilterResult::~ModifyAuditLogFilterResult() +{} + +void ModifyAuditLogFilterResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/dds/src/model/ModifyAuditPolicyRequest.cc b/dds/src/model/ModifyAuditPolicyRequest.cc new file mode 100644 index 000000000..67844df56 --- /dev/null +++ b/dds/src/model/ModifyAuditPolicyRequest.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 + +using AlibabaCloud::Dds::Model::ModifyAuditPolicyRequest; + +ModifyAuditPolicyRequest::ModifyAuditPolicyRequest() : + RpcServiceRequest("dds", "2015-12-01", "ModifyAuditPolicy") +{} + +ModifyAuditPolicyRequest::~ModifyAuditPolicyRequest() +{} + +long ModifyAuditPolicyRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyAuditPolicyRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyAuditPolicyRequest::getAuditStatus()const +{ + return auditStatus_; +} + +void ModifyAuditPolicyRequest::setAuditStatus(const std::string& auditStatus) +{ + auditStatus_ = auditStatus; + setCoreParameter("AuditStatus", auditStatus); +} + +int ModifyAuditPolicyRequest::getStoragePeriod()const +{ + return storagePeriod_; +} + +void ModifyAuditPolicyRequest::setStoragePeriod(int storagePeriod) +{ + storagePeriod_ = storagePeriod; + setCoreParameter("StoragePeriod", std::to_string(storagePeriod)); +} + +std::string ModifyAuditPolicyRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ModifyAuditPolicyRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string ModifyAuditPolicyRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyAuditPolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyAuditPolicyRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyAuditPolicyRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ModifyAuditPolicyRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyAuditPolicyRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyAuditPolicyRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void ModifyAuditPolicyRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setCoreParameter("DBInstanceId", dBInstanceId); +} + +long ModifyAuditPolicyRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyAuditPolicyRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyAuditPolicyRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyAuditPolicyRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dds/src/model/ModifyAuditPolicyResult.cc b/dds/src/model/ModifyAuditPolicyResult.cc new file mode 100644 index 000000000..6aed2cdbd --- /dev/null +++ b/dds/src/model/ModifyAuditPolicyResult.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::Dds; +using namespace AlibabaCloud::Dds::Model; + +ModifyAuditPolicyResult::ModifyAuditPolicyResult() : + ServiceResult() +{} + +ModifyAuditPolicyResult::ModifyAuditPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyAuditPolicyResult::~ModifyAuditPolicyResult() +{} + +void ModifyAuditPolicyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/dds/src/model/ModifyBackupPolicyRequest.cc b/dds/src/model/ModifyBackupPolicyRequest.cc new file mode 100644 index 000000000..09c2e2839 --- /dev/null +++ b/dds/src/model/ModifyBackupPolicyRequest.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 + +using AlibabaCloud::Dds::Model::ModifyBackupPolicyRequest; + +ModifyBackupPolicyRequest::ModifyBackupPolicyRequest() : + RpcServiceRequest("dds", "2015-12-01", "ModifyBackupPolicy") +{} + +ModifyBackupPolicyRequest::~ModifyBackupPolicyRequest() +{} + +std::string ModifyBackupPolicyRequest::getPreferredBackupTime()const +{ + return preferredBackupTime_; +} + +void ModifyBackupPolicyRequest::setPreferredBackupTime(const std::string& preferredBackupTime) +{ + preferredBackupTime_ = preferredBackupTime; + setCoreParameter("PreferredBackupTime", preferredBackupTime); +} + +std::string ModifyBackupPolicyRequest::getPreferredBackupPeriod()const +{ + return preferredBackupPeriod_; +} + +void ModifyBackupPolicyRequest::setPreferredBackupPeriod(const std::string& preferredBackupPeriod) +{ + preferredBackupPeriod_ = preferredBackupPeriod; + setCoreParameter("PreferredBackupPeriod", preferredBackupPeriod); +} + +long ModifyBackupPolicyRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyBackupPolicyRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyBackupPolicyRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ModifyBackupPolicyRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string ModifyBackupPolicyRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyBackupPolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyBackupPolicyRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyBackupPolicyRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ModifyBackupPolicyRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyBackupPolicyRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyBackupPolicyRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void ModifyBackupPolicyRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setCoreParameter("DBInstanceId", dBInstanceId); +} + +long ModifyBackupPolicyRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyBackupPolicyRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyBackupPolicyRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyBackupPolicyRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dds/src/model/ModifyBackupPolicyResult.cc b/dds/src/model/ModifyBackupPolicyResult.cc new file mode 100644 index 000000000..f0bf881dd --- /dev/null +++ b/dds/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::Dds; +using namespace AlibabaCloud::Dds::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/dds/src/model/ModifyDBInstanceConnectionStringRequest.cc b/dds/src/model/ModifyDBInstanceConnectionStringRequest.cc new file mode 100644 index 000000000..e1915f849 --- /dev/null +++ b/dds/src/model/ModifyDBInstanceConnectionStringRequest.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 + +using AlibabaCloud::Dds::Model::ModifyDBInstanceConnectionStringRequest; + +ModifyDBInstanceConnectionStringRequest::ModifyDBInstanceConnectionStringRequest() : + RpcServiceRequest("dds", "2015-12-01", "ModifyDBInstanceConnectionString") +{} + +ModifyDBInstanceConnectionStringRequest::~ModifyDBInstanceConnectionStringRequest() +{} + +long ModifyDBInstanceConnectionStringRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyDBInstanceConnectionStringRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyDBInstanceConnectionStringRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ModifyDBInstanceConnectionStringRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string ModifyDBInstanceConnectionStringRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyDBInstanceConnectionStringRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyDBInstanceConnectionStringRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyDBInstanceConnectionStringRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ModifyDBInstanceConnectionStringRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyDBInstanceConnectionStringRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyDBInstanceConnectionStringRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void ModifyDBInstanceConnectionStringRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setCoreParameter("DBInstanceId", dBInstanceId); +} + +std::string ModifyDBInstanceConnectionStringRequest::getNewConnectionString()const +{ + return newConnectionString_; +} + +void ModifyDBInstanceConnectionStringRequest::setNewConnectionString(const std::string& newConnectionString) +{ + newConnectionString_ = newConnectionString; + setCoreParameter("NewConnectionString", newConnectionString); +} + +long ModifyDBInstanceConnectionStringRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyDBInstanceConnectionStringRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyDBInstanceConnectionStringRequest::getNodeId()const +{ + return nodeId_; +} + +void ModifyDBInstanceConnectionStringRequest::setNodeId(const std::string& nodeId) +{ + nodeId_ = nodeId; + setCoreParameter("NodeId", nodeId); +} + +std::string ModifyDBInstanceConnectionStringRequest::getCurrentConnectionString()const +{ + return currentConnectionString_; +} + +void ModifyDBInstanceConnectionStringRequest::setCurrentConnectionString(const std::string& currentConnectionString) +{ + currentConnectionString_ = currentConnectionString; + setCoreParameter("CurrentConnectionString", currentConnectionString); +} + +std::string ModifyDBInstanceConnectionStringRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyDBInstanceConnectionStringRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dds/src/model/ModifyDBInstanceConnectionStringResult.cc b/dds/src/model/ModifyDBInstanceConnectionStringResult.cc new file mode 100644 index 000000000..a75be0d78 --- /dev/null +++ b/dds/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::Dds; +using namespace AlibabaCloud::Dds::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/dds/src/model/ModifyDBInstanceDescriptionRequest.cc b/dds/src/model/ModifyDBInstanceDescriptionRequest.cc new file mode 100644 index 000000000..5c99be6cf --- /dev/null +++ b/dds/src/model/ModifyDBInstanceDescriptionRequest.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 + +using AlibabaCloud::Dds::Model::ModifyDBInstanceDescriptionRequest; + +ModifyDBInstanceDescriptionRequest::ModifyDBInstanceDescriptionRequest() : + RpcServiceRequest("dds", "2015-12-01", "ModifyDBInstanceDescription") +{} + +ModifyDBInstanceDescriptionRequest::~ModifyDBInstanceDescriptionRequest() +{} + +long ModifyDBInstanceDescriptionRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyDBInstanceDescriptionRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyDBInstanceDescriptionRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ModifyDBInstanceDescriptionRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string ModifyDBInstanceDescriptionRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyDBInstanceDescriptionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyDBInstanceDescriptionRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyDBInstanceDescriptionRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ModifyDBInstanceDescriptionRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyDBInstanceDescriptionRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyDBInstanceDescriptionRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void ModifyDBInstanceDescriptionRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setCoreParameter("DBInstanceId", dBInstanceId); +} + +std::string ModifyDBInstanceDescriptionRequest::getDBInstanceDescription()const +{ + return dBInstanceDescription_; +} + +void ModifyDBInstanceDescriptionRequest::setDBInstanceDescription(const std::string& dBInstanceDescription) +{ + dBInstanceDescription_ = dBInstanceDescription; + setCoreParameter("DBInstanceDescription", dBInstanceDescription); +} + +long ModifyDBInstanceDescriptionRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyDBInstanceDescriptionRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyDBInstanceDescriptionRequest::getNodeId()const +{ + return nodeId_; +} + +void ModifyDBInstanceDescriptionRequest::setNodeId(const std::string& nodeId) +{ + nodeId_ = nodeId; + setCoreParameter("NodeId", nodeId); +} + +std::string ModifyDBInstanceDescriptionRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyDBInstanceDescriptionRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dds/src/model/ModifyDBInstanceDescriptionResult.cc b/dds/src/model/ModifyDBInstanceDescriptionResult.cc new file mode 100644 index 000000000..ea233c7ee --- /dev/null +++ b/dds/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::Dds; +using namespace AlibabaCloud::Dds::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/dds/src/model/ModifyDBInstanceMaintainTimeRequest.cc b/dds/src/model/ModifyDBInstanceMaintainTimeRequest.cc new file mode 100644 index 000000000..27d1065f5 --- /dev/null +++ b/dds/src/model/ModifyDBInstanceMaintainTimeRequest.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 + +using AlibabaCloud::Dds::Model::ModifyDBInstanceMaintainTimeRequest; + +ModifyDBInstanceMaintainTimeRequest::ModifyDBInstanceMaintainTimeRequest() : + RpcServiceRequest("dds", "2015-12-01", "ModifyDBInstanceMaintainTime") +{} + +ModifyDBInstanceMaintainTimeRequest::~ModifyDBInstanceMaintainTimeRequest() +{} + +long ModifyDBInstanceMaintainTimeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyDBInstanceMaintainTimeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyDBInstanceMaintainTimeRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ModifyDBInstanceMaintainTimeRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string ModifyDBInstanceMaintainTimeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyDBInstanceMaintainTimeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyDBInstanceMaintainTimeRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyDBInstanceMaintainTimeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ModifyDBInstanceMaintainTimeRequest::getMaintainStartTime()const +{ + return maintainStartTime_; +} + +void ModifyDBInstanceMaintainTimeRequest::setMaintainStartTime(const std::string& maintainStartTime) +{ + maintainStartTime_ = maintainStartTime; + setCoreParameter("MaintainStartTime", maintainStartTime); +} + +std::string ModifyDBInstanceMaintainTimeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyDBInstanceMaintainTimeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyDBInstanceMaintainTimeRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void ModifyDBInstanceMaintainTimeRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setCoreParameter("DBInstanceId", dBInstanceId); +} + +long ModifyDBInstanceMaintainTimeRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyDBInstanceMaintainTimeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyDBInstanceMaintainTimeRequest::getMaintainEndTime()const +{ + return maintainEndTime_; +} + +void ModifyDBInstanceMaintainTimeRequest::setMaintainEndTime(const std::string& maintainEndTime) +{ + maintainEndTime_ = maintainEndTime; + setCoreParameter("MaintainEndTime", maintainEndTime); +} + +std::string ModifyDBInstanceMaintainTimeRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyDBInstanceMaintainTimeRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dds/src/model/ModifyDBInstanceMaintainTimeResult.cc b/dds/src/model/ModifyDBInstanceMaintainTimeResult.cc new file mode 100644 index 000000000..204e4895f --- /dev/null +++ b/dds/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::Dds; +using namespace AlibabaCloud::Dds::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/dds/src/model/ModifyDBInstanceMonitorRequest.cc b/dds/src/model/ModifyDBInstanceMonitorRequest.cc new file mode 100644 index 000000000..c66447dbc --- /dev/null +++ b/dds/src/model/ModifyDBInstanceMonitorRequest.cc @@ -0,0 +1,126 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dds::Model::ModifyDBInstanceMonitorRequest; + +ModifyDBInstanceMonitorRequest::ModifyDBInstanceMonitorRequest() : + RpcServiceRequest("dds", "2015-12-01", "ModifyDBInstanceMonitor") +{} + +ModifyDBInstanceMonitorRequest::~ModifyDBInstanceMonitorRequest() +{} + +long ModifyDBInstanceMonitorRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyDBInstanceMonitorRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyDBInstanceMonitorRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ModifyDBInstanceMonitorRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string ModifyDBInstanceMonitorRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyDBInstanceMonitorRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyDBInstanceMonitorRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyDBInstanceMonitorRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ModifyDBInstanceMonitorRequest::getGranularity()const +{ + return granularity_; +} + +void ModifyDBInstanceMonitorRequest::setGranularity(const std::string& granularity) +{ + granularity_ = granularity; + setCoreParameter("Granularity", granularity); +} + +std::string ModifyDBInstanceMonitorRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyDBInstanceMonitorRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyDBInstanceMonitorRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void ModifyDBInstanceMonitorRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setCoreParameter("DBInstanceId", dBInstanceId); +} + +long ModifyDBInstanceMonitorRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyDBInstanceMonitorRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyDBInstanceMonitorRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyDBInstanceMonitorRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dds/src/model/ModifyDBInstanceMonitorResult.cc b/dds/src/model/ModifyDBInstanceMonitorResult.cc new file mode 100644 index 000000000..bfe38cbcb --- /dev/null +++ b/dds/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::Dds; +using namespace AlibabaCloud::Dds::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/dds/src/model/ModifyDBInstanceNetExpireTimeRequest.cc b/dds/src/model/ModifyDBInstanceNetExpireTimeRequest.cc new file mode 100644 index 000000000..bde5ea191 --- /dev/null +++ b/dds/src/model/ModifyDBInstanceNetExpireTimeRequest.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 + +using AlibabaCloud::Dds::Model::ModifyDBInstanceNetExpireTimeRequest; + +ModifyDBInstanceNetExpireTimeRequest::ModifyDBInstanceNetExpireTimeRequest() : + RpcServiceRequest("dds", "2015-12-01", "ModifyDBInstanceNetExpireTime") +{} + +ModifyDBInstanceNetExpireTimeRequest::~ModifyDBInstanceNetExpireTimeRequest() +{} + +long ModifyDBInstanceNetExpireTimeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyDBInstanceNetExpireTimeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyDBInstanceNetExpireTimeRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ModifyDBInstanceNetExpireTimeRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string ModifyDBInstanceNetExpireTimeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyDBInstanceNetExpireTimeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyDBInstanceNetExpireTimeRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyDBInstanceNetExpireTimeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ModifyDBInstanceNetExpireTimeRequest::getConnectionString()const +{ + return connectionString_; +} + +void ModifyDBInstanceNetExpireTimeRequest::setConnectionString(const std::string& connectionString) +{ + connectionString_ = connectionString; + setCoreParameter("ConnectionString", connectionString); +} + +std::string ModifyDBInstanceNetExpireTimeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyDBInstanceNetExpireTimeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyDBInstanceNetExpireTimeRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void ModifyDBInstanceNetExpireTimeRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setCoreParameter("DBInstanceId", dBInstanceId); +} + +long ModifyDBInstanceNetExpireTimeRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyDBInstanceNetExpireTimeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +int ModifyDBInstanceNetExpireTimeRequest::getClassicExpendExpiredDays()const +{ + return classicExpendExpiredDays_; +} + +void ModifyDBInstanceNetExpireTimeRequest::setClassicExpendExpiredDays(int classicExpendExpiredDays) +{ + classicExpendExpiredDays_ = classicExpendExpiredDays; + setCoreParameter("ClassicExpendExpiredDays", std::to_string(classicExpendExpiredDays)); +} + +std::string ModifyDBInstanceNetExpireTimeRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyDBInstanceNetExpireTimeRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dds/src/model/ModifyDBInstanceNetExpireTimeResult.cc b/dds/src/model/ModifyDBInstanceNetExpireTimeResult.cc new file mode 100644 index 000000000..d8e70218a --- /dev/null +++ b/dds/src/model/ModifyDBInstanceNetExpireTimeResult.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::Dds; +using namespace AlibabaCloud::Dds::Model; + +ModifyDBInstanceNetExpireTimeResult::ModifyDBInstanceNetExpireTimeResult() : + ServiceResult() +{} + +ModifyDBInstanceNetExpireTimeResult::ModifyDBInstanceNetExpireTimeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDBInstanceNetExpireTimeResult::~ModifyDBInstanceNetExpireTimeResult() +{} + +void ModifyDBInstanceNetExpireTimeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/dds/src/model/ModifyDBInstanceNetworkTypeRequest.cc b/dds/src/model/ModifyDBInstanceNetworkTypeRequest.cc new file mode 100644 index 000000000..44dfe0abf --- /dev/null +++ b/dds/src/model/ModifyDBInstanceNetworkTypeRequest.cc @@ -0,0 +1,170 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dds::Model::ModifyDBInstanceNetworkTypeRequest; + +ModifyDBInstanceNetworkTypeRequest::ModifyDBInstanceNetworkTypeRequest() : + RpcServiceRequest("dds", "2015-12-01", "ModifyDBInstanceNetworkType") +{} + +ModifyDBInstanceNetworkTypeRequest::~ModifyDBInstanceNetworkTypeRequest() +{} + +long ModifyDBInstanceNetworkTypeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyDBInstanceNetworkTypeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyDBInstanceNetworkTypeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyDBInstanceNetworkTypeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyDBInstanceNetworkTypeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyDBInstanceNetworkTypeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyDBInstanceNetworkTypeRequest::getNetworkType()const +{ + return networkType_; +} + +void ModifyDBInstanceNetworkTypeRequest::setNetworkType(const std::string& networkType) +{ + networkType_ = networkType; + setCoreParameter("NetworkType", networkType); +} + +long ModifyDBInstanceNetworkTypeRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyDBInstanceNetworkTypeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyDBInstanceNetworkTypeRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyDBInstanceNetworkTypeRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string ModifyDBInstanceNetworkTypeRequest::getVSwitchId()const +{ + return vSwitchId_; +} + +void ModifyDBInstanceNetworkTypeRequest::setVSwitchId(const std::string& vSwitchId) +{ + vSwitchId_ = vSwitchId; + setCoreParameter("VSwitchId", vSwitchId); +} + +std::string ModifyDBInstanceNetworkTypeRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ModifyDBInstanceNetworkTypeRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string ModifyDBInstanceNetworkTypeRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyDBInstanceNetworkTypeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ModifyDBInstanceNetworkTypeRequest::getRetainClassic()const +{ + return retainClassic_; +} + +void ModifyDBInstanceNetworkTypeRequest::setRetainClassic(const std::string& retainClassic) +{ + retainClassic_ = retainClassic; + setCoreParameter("RetainClassic", retainClassic); +} + +int ModifyDBInstanceNetworkTypeRequest::getClassicExpiredDays()const +{ + return classicExpiredDays_; +} + +void ModifyDBInstanceNetworkTypeRequest::setClassicExpiredDays(int classicExpiredDays) +{ + classicExpiredDays_ = classicExpiredDays; + setCoreParameter("ClassicExpiredDays", std::to_string(classicExpiredDays)); +} + +std::string ModifyDBInstanceNetworkTypeRequest::getVpcId()const +{ + return vpcId_; +} + +void ModifyDBInstanceNetworkTypeRequest::setVpcId(const std::string& vpcId) +{ + vpcId_ = vpcId; + setCoreParameter("VpcId", vpcId); +} + +std::string ModifyDBInstanceNetworkTypeRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void ModifyDBInstanceNetworkTypeRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setCoreParameter("DBInstanceId", dBInstanceId); +} + diff --git a/dds/src/model/ModifyDBInstanceNetworkTypeResult.cc b/dds/src/model/ModifyDBInstanceNetworkTypeResult.cc new file mode 100644 index 000000000..e498a1d0a --- /dev/null +++ b/dds/src/model/ModifyDBInstanceNetworkTypeResult.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::Dds; +using namespace AlibabaCloud::Dds::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()); + +} + diff --git a/dds/src/model/ModifyDBInstanceSSLRequest.cc b/dds/src/model/ModifyDBInstanceSSLRequest.cc new file mode 100644 index 000000000..ca8e8f335 --- /dev/null +++ b/dds/src/model/ModifyDBInstanceSSLRequest.cc @@ -0,0 +1,126 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dds::Model::ModifyDBInstanceSSLRequest; + +ModifyDBInstanceSSLRequest::ModifyDBInstanceSSLRequest() : + RpcServiceRequest("dds", "2015-12-01", "ModifyDBInstanceSSL") +{} + +ModifyDBInstanceSSLRequest::~ModifyDBInstanceSSLRequest() +{} + +long ModifyDBInstanceSSLRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyDBInstanceSSLRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyDBInstanceSSLRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ModifyDBInstanceSSLRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string ModifyDBInstanceSSLRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyDBInstanceSSLRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyDBInstanceSSLRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyDBInstanceSSLRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ModifyDBInstanceSSLRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyDBInstanceSSLRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyDBInstanceSSLRequest::getSSLAction()const +{ + return sSLAction_; +} + +void ModifyDBInstanceSSLRequest::setSSLAction(const std::string& sSLAction) +{ + sSLAction_ = sSLAction; + setCoreParameter("SSLAction", sSLAction); +} + +std::string ModifyDBInstanceSSLRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void ModifyDBInstanceSSLRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setCoreParameter("DBInstanceId", dBInstanceId); +} + +long ModifyDBInstanceSSLRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyDBInstanceSSLRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyDBInstanceSSLRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyDBInstanceSSLRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dds/src/model/ModifyDBInstanceSSLResult.cc b/dds/src/model/ModifyDBInstanceSSLResult.cc new file mode 100644 index 000000000..1d9647767 --- /dev/null +++ b/dds/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::Dds; +using namespace AlibabaCloud::Dds::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/dds/src/model/ModifyDBInstanceSpecRequest.cc b/dds/src/model/ModifyDBInstanceSpecRequest.cc new file mode 100644 index 000000000..2e55e3d01 --- /dev/null +++ b/dds/src/model/ModifyDBInstanceSpecRequest.cc @@ -0,0 +1,214 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dds::Model::ModifyDBInstanceSpecRequest; + +ModifyDBInstanceSpecRequest::ModifyDBInstanceSpecRequest() : + RpcServiceRequest("dds", "2015-12-01", "ModifyDBInstanceSpec") +{} + +ModifyDBInstanceSpecRequest::~ModifyDBInstanceSpecRequest() +{} + +long ModifyDBInstanceSpecRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyDBInstanceSpecRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyDBInstanceSpecRequest::getDBInstanceStorage()const +{ + return dBInstanceStorage_; +} + +void ModifyDBInstanceSpecRequest::setDBInstanceStorage(const std::string& dBInstanceStorage) +{ + dBInstanceStorage_ = dBInstanceStorage; + setCoreParameter("DBInstanceStorage", dBInstanceStorage); +} + +bool ModifyDBInstanceSpecRequest::getAutoPay()const +{ + return autoPay_; +} + +void ModifyDBInstanceSpecRequest::setAutoPay(bool autoPay) +{ + autoPay_ = autoPay; + setCoreParameter("AutoPay", autoPay ? "true" : "false"); +} + +std::string ModifyDBInstanceSpecRequest::getFromApp()const +{ + return fromApp_; +} + +void ModifyDBInstanceSpecRequest::setFromApp(const std::string& fromApp) +{ + fromApp_ = fromApp; + setCoreParameter("FromApp", fromApp); +} + +std::string ModifyDBInstanceSpecRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyDBInstanceSpecRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyDBInstanceSpecRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyDBInstanceSpecRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyDBInstanceSpecRequest::getCouponNo()const +{ + return couponNo_; +} + +void ModifyDBInstanceSpecRequest::setCouponNo(const std::string& couponNo) +{ + couponNo_ = couponNo; + setCoreParameter("CouponNo", couponNo); +} + +long ModifyDBInstanceSpecRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyDBInstanceSpecRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyDBInstanceSpecRequest::getReplicationFactor()const +{ + return replicationFactor_; +} + +void ModifyDBInstanceSpecRequest::setReplicationFactor(const std::string& replicationFactor) +{ + replicationFactor_ = replicationFactor; + setCoreParameter("ReplicationFactor", replicationFactor); +} + +std::string ModifyDBInstanceSpecRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyDBInstanceSpecRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string ModifyDBInstanceSpecRequest::getDBInstanceClass()const +{ + return dBInstanceClass_; +} + +void ModifyDBInstanceSpecRequest::setDBInstanceClass(const std::string& dBInstanceClass) +{ + dBInstanceClass_ = dBInstanceClass; + setCoreParameter("DBInstanceClass", dBInstanceClass); +} + +std::string ModifyDBInstanceSpecRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ModifyDBInstanceSpecRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string ModifyDBInstanceSpecRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyDBInstanceSpecRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ModifyDBInstanceSpecRequest::getEffectiveTime()const +{ + return effectiveTime_; +} + +void ModifyDBInstanceSpecRequest::setEffectiveTime(const std::string& effectiveTime) +{ + effectiveTime_ = effectiveTime; + setCoreParameter("EffectiveTime", effectiveTime); +} + +std::string ModifyDBInstanceSpecRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void ModifyDBInstanceSpecRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setCoreParameter("DBInstanceId", dBInstanceId); +} + +std::string ModifyDBInstanceSpecRequest::getBusinessInfo()const +{ + return businessInfo_; +} + +void ModifyDBInstanceSpecRequest::setBusinessInfo(const std::string& businessInfo) +{ + businessInfo_ = businessInfo; + setCoreParameter("BusinessInfo", businessInfo); +} + +std::string ModifyDBInstanceSpecRequest::getOrderType()const +{ + return orderType_; +} + +void ModifyDBInstanceSpecRequest::setOrderType(const std::string& orderType) +{ + orderType_ = orderType; + setCoreParameter("OrderType", orderType); +} + diff --git a/dds/src/model/ModifyDBInstanceSpecResult.cc b/dds/src/model/ModifyDBInstanceSpecResult.cc new file mode 100644 index 000000000..2a14ba351 --- /dev/null +++ b/dds/src/model/ModifyDBInstanceSpecResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Dds; +using namespace AlibabaCloud::Dds::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()); + if(!value["OrderId"].isNull()) + orderId_ = value["OrderId"].asString(); + +} + +std::string ModifyDBInstanceSpecResult::getOrderId()const +{ + return orderId_; +} + diff --git a/dds/src/model/ModifyGuardDomainModeRequest.cc b/dds/src/model/ModifyGuardDomainModeRequest.cc new file mode 100644 index 000000000..9983a9685 --- /dev/null +++ b/dds/src/model/ModifyGuardDomainModeRequest.cc @@ -0,0 +1,126 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dds::Model::ModifyGuardDomainModeRequest; + +ModifyGuardDomainModeRequest::ModifyGuardDomainModeRequest() : + RpcServiceRequest("dds", "2015-12-01", "ModifyGuardDomainMode") +{} + +ModifyGuardDomainModeRequest::~ModifyGuardDomainModeRequest() +{} + +std::string ModifyGuardDomainModeRequest::getDomainMode()const +{ + return domainMode_; +} + +void ModifyGuardDomainModeRequest::setDomainMode(const std::string& domainMode) +{ + domainMode_ = domainMode; + setCoreParameter("DomainMode", domainMode); +} + +long ModifyGuardDomainModeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyGuardDomainModeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyGuardDomainModeRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ModifyGuardDomainModeRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string ModifyGuardDomainModeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyGuardDomainModeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyGuardDomainModeRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyGuardDomainModeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ModifyGuardDomainModeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyGuardDomainModeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyGuardDomainModeRequest::getReplicaId()const +{ + return replicaId_; +} + +void ModifyGuardDomainModeRequest::setReplicaId(const std::string& replicaId) +{ + replicaId_ = replicaId; + setCoreParameter("ReplicaId", replicaId); +} + +long ModifyGuardDomainModeRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyGuardDomainModeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyGuardDomainModeRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyGuardDomainModeRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dds/src/model/ModifyGuardDomainModeResult.cc b/dds/src/model/ModifyGuardDomainModeResult.cc new file mode 100644 index 000000000..c66a03c2f --- /dev/null +++ b/dds/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::Dds; +using namespace AlibabaCloud::Dds::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/dds/src/model/ModifyInstanceAutoRenewalAttributeRequest.cc b/dds/src/model/ModifyInstanceAutoRenewalAttributeRequest.cc new file mode 100644 index 000000000..6bee05b4b --- /dev/null +++ b/dds/src/model/ModifyInstanceAutoRenewalAttributeRequest.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 + +using AlibabaCloud::Dds::Model::ModifyInstanceAutoRenewalAttributeRequest; + +ModifyInstanceAutoRenewalAttributeRequest::ModifyInstanceAutoRenewalAttributeRequest() : + RpcServiceRequest("dds", "2015-12-01", "ModifyInstanceAutoRenewalAttribute") +{} + +ModifyInstanceAutoRenewalAttributeRequest::~ModifyInstanceAutoRenewalAttributeRequest() +{} + +std::string ModifyInstanceAutoRenewalAttributeRequest::getDuration()const +{ + return duration_; +} + +void ModifyInstanceAutoRenewalAttributeRequest::setDuration(const std::string& duration) +{ + duration_ = duration; + setCoreParameter("Duration", duration); +} + +long ModifyInstanceAutoRenewalAttributeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyInstanceAutoRenewalAttributeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyInstanceAutoRenewalAttributeRequest::getAutoRenew()const +{ + return autoRenew_; +} + +void ModifyInstanceAutoRenewalAttributeRequest::setAutoRenew(const std::string& autoRenew) +{ + autoRenew_ = autoRenew; + setCoreParameter("AutoRenew", autoRenew); +} + +std::string ModifyInstanceAutoRenewalAttributeRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ModifyInstanceAutoRenewalAttributeRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string ModifyInstanceAutoRenewalAttributeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyInstanceAutoRenewalAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyInstanceAutoRenewalAttributeRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyInstanceAutoRenewalAttributeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ModifyInstanceAutoRenewalAttributeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyInstanceAutoRenewalAttributeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyInstanceAutoRenewalAttributeRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void ModifyInstanceAutoRenewalAttributeRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setCoreParameter("DBInstanceId", dBInstanceId); +} + +long ModifyInstanceAutoRenewalAttributeRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyInstanceAutoRenewalAttributeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyInstanceAutoRenewalAttributeRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyInstanceAutoRenewalAttributeRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dds/src/model/ModifyInstanceAutoRenewalAttributeResult.cc b/dds/src/model/ModifyInstanceAutoRenewalAttributeResult.cc new file mode 100644 index 000000000..6734c75d3 --- /dev/null +++ b/dds/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::Dds; +using namespace AlibabaCloud::Dds::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/dds/src/model/ModifyNodeSpecRequest.cc b/dds/src/model/ModifyNodeSpecRequest.cc new file mode 100644 index 000000000..f0ded95d8 --- /dev/null +++ b/dds/src/model/ModifyNodeSpecRequest.cc @@ -0,0 +1,192 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dds::Model::ModifyNodeSpecRequest; + +ModifyNodeSpecRequest::ModifyNodeSpecRequest() : + RpcServiceRequest("dds", "2015-12-01", "ModifyNodeSpec") +{} + +ModifyNodeSpecRequest::~ModifyNodeSpecRequest() +{} + +long ModifyNodeSpecRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyNodeSpecRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +bool ModifyNodeSpecRequest::getAutoPay()const +{ + return autoPay_; +} + +void ModifyNodeSpecRequest::setAutoPay(bool autoPay) +{ + autoPay_ = autoPay; + setCoreParameter("AutoPay", autoPay ? "true" : "false"); +} + +std::string ModifyNodeSpecRequest::getFromApp()const +{ + return fromApp_; +} + +void ModifyNodeSpecRequest::setFromApp(const std::string& fromApp) +{ + fromApp_ = fromApp; + setCoreParameter("FromApp", fromApp); +} + +std::string ModifyNodeSpecRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyNodeSpecRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyNodeSpecRequest::getClientToken()const +{ + return clientToken_; +} + +void ModifyNodeSpecRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setCoreParameter("ClientToken", clientToken); +} + +int ModifyNodeSpecRequest::getNodeStorage()const +{ + return nodeStorage_; +} + +void ModifyNodeSpecRequest::setNodeStorage(int nodeStorage) +{ + nodeStorage_ = nodeStorage; + setCoreParameter("NodeStorage", std::to_string(nodeStorage)); +} + +std::string ModifyNodeSpecRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyNodeSpecRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +long ModifyNodeSpecRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyNodeSpecRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyNodeSpecRequest::getNodeClass()const +{ + return nodeClass_; +} + +void ModifyNodeSpecRequest::setNodeClass(const std::string& nodeClass) +{ + nodeClass_ = nodeClass; + setCoreParameter("NodeClass", nodeClass); +} + +std::string ModifyNodeSpecRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyNodeSpecRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string ModifyNodeSpecRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ModifyNodeSpecRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string ModifyNodeSpecRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyNodeSpecRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ModifyNodeSpecRequest::getEffectiveTime()const +{ + return effectiveTime_; +} + +void ModifyNodeSpecRequest::setEffectiveTime(const std::string& effectiveTime) +{ + effectiveTime_ = effectiveTime; + setCoreParameter("EffectiveTime", effectiveTime); +} + +std::string ModifyNodeSpecRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void ModifyNodeSpecRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setCoreParameter("DBInstanceId", dBInstanceId); +} + +std::string ModifyNodeSpecRequest::getNodeId()const +{ + return nodeId_; +} + +void ModifyNodeSpecRequest::setNodeId(const std::string& nodeId) +{ + nodeId_ = nodeId; + setCoreParameter("NodeId", nodeId); +} + diff --git a/dds/src/model/ModifyNodeSpecResult.cc b/dds/src/model/ModifyNodeSpecResult.cc new file mode 100644 index 000000000..e02034193 --- /dev/null +++ b/dds/src/model/ModifyNodeSpecResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Dds; +using namespace AlibabaCloud::Dds::Model; + +ModifyNodeSpecResult::ModifyNodeSpecResult() : + ServiceResult() +{} + +ModifyNodeSpecResult::ModifyNodeSpecResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyNodeSpecResult::~ModifyNodeSpecResult() +{} + +void ModifyNodeSpecResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["OrderId"].isNull()) + orderId_ = value["OrderId"].asString(); + +} + +std::string ModifyNodeSpecResult::getOrderId()const +{ + return orderId_; +} + diff --git a/dds/src/model/ModifyParametersRequest.cc b/dds/src/model/ModifyParametersRequest.cc new file mode 100644 index 000000000..4765cc58c --- /dev/null +++ b/dds/src/model/ModifyParametersRequest.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 + +using AlibabaCloud::Dds::Model::ModifyParametersRequest; + +ModifyParametersRequest::ModifyParametersRequest() : + RpcServiceRequest("dds", "2015-12-01", "ModifyParameters") +{} + +ModifyParametersRequest::~ModifyParametersRequest() +{} + +long ModifyParametersRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyParametersRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyParametersRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ModifyParametersRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string ModifyParametersRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyParametersRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyParametersRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyParametersRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ModifyParametersRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyParametersRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyParametersRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void ModifyParametersRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setCoreParameter("DBInstanceId", dBInstanceId); +} + +long ModifyParametersRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyParametersRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyParametersRequest::getNodeId()const +{ + return nodeId_; +} + +void ModifyParametersRequest::setNodeId(const std::string& nodeId) +{ + nodeId_ = nodeId; + setCoreParameter("NodeId", nodeId); +} + +std::string ModifyParametersRequest::getParameters()const +{ + return parameters_; +} + +void ModifyParametersRequest::setParameters(const std::string& parameters) +{ + parameters_ = parameters; + setCoreParameter("Parameters", parameters); +} + +std::string ModifyParametersRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyParametersRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dds/src/model/ModifyParametersResult.cc b/dds/src/model/ModifyParametersResult.cc new file mode 100644 index 000000000..1876b9a28 --- /dev/null +++ b/dds/src/model/ModifyParametersResult.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::Dds; +using namespace AlibabaCloud::Dds::Model; + +ModifyParametersResult::ModifyParametersResult() : + ServiceResult() +{} + +ModifyParametersResult::ModifyParametersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyParametersResult::~ModifyParametersResult() +{} + +void ModifyParametersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/dds/src/model/ModifyReplicaDescriptionRequest.cc b/dds/src/model/ModifyReplicaDescriptionRequest.cc new file mode 100644 index 000000000..a37c40d13 --- /dev/null +++ b/dds/src/model/ModifyReplicaDescriptionRequest.cc @@ -0,0 +1,126 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dds::Model::ModifyReplicaDescriptionRequest; + +ModifyReplicaDescriptionRequest::ModifyReplicaDescriptionRequest() : + RpcServiceRequest("dds", "2015-12-01", "ModifyReplicaDescription") +{} + +ModifyReplicaDescriptionRequest::~ModifyReplicaDescriptionRequest() +{} + +std::string ModifyReplicaDescriptionRequest::getReplicaDescription()const +{ + return replicaDescription_; +} + +void ModifyReplicaDescriptionRequest::setReplicaDescription(const std::string& replicaDescription) +{ + replicaDescription_ = replicaDescription; + setCoreParameter("ReplicaDescription", replicaDescription); +} + +long ModifyReplicaDescriptionRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyReplicaDescriptionRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyReplicaDescriptionRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ModifyReplicaDescriptionRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string ModifyReplicaDescriptionRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyReplicaDescriptionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyReplicaDescriptionRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyReplicaDescriptionRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ModifyReplicaDescriptionRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyReplicaDescriptionRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyReplicaDescriptionRequest::getReplicaId()const +{ + return replicaId_; +} + +void ModifyReplicaDescriptionRequest::setReplicaId(const std::string& replicaId) +{ + replicaId_ = replicaId; + setCoreParameter("ReplicaId", replicaId); +} + +long ModifyReplicaDescriptionRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyReplicaDescriptionRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyReplicaDescriptionRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyReplicaDescriptionRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dds/src/model/ModifyReplicaDescriptionResult.cc b/dds/src/model/ModifyReplicaDescriptionResult.cc new file mode 100644 index 000000000..b0648f2a5 --- /dev/null +++ b/dds/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::Dds; +using namespace AlibabaCloud::Dds::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/dds/src/model/ModifyReplicaModeRequest.cc b/dds/src/model/ModifyReplicaModeRequest.cc new file mode 100644 index 000000000..bf3eac834 --- /dev/null +++ b/dds/src/model/ModifyReplicaModeRequest.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 + +using AlibabaCloud::Dds::Model::ModifyReplicaModeRequest; + +ModifyReplicaModeRequest::ModifyReplicaModeRequest() : + RpcServiceRequest("dds", "2015-12-01", "ModifyReplicaMode") +{} + +ModifyReplicaModeRequest::~ModifyReplicaModeRequest() +{} + +std::string ModifyReplicaModeRequest::getDomainMode()const +{ + return domainMode_; +} + +void ModifyReplicaModeRequest::setDomainMode(const std::string& domainMode) +{ + domainMode_ = domainMode; + setCoreParameter("DomainMode", domainMode); +} + +long ModifyReplicaModeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyReplicaModeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyReplicaModeRequest::getPrimaryInstanceId()const +{ + return primaryInstanceId_; +} + +void ModifyReplicaModeRequest::setPrimaryInstanceId(const std::string& primaryInstanceId) +{ + primaryInstanceId_ = primaryInstanceId; + setCoreParameter("PrimaryInstanceId", primaryInstanceId); +} + +std::string ModifyReplicaModeRequest::getReplicaMode()const +{ + return replicaMode_; +} + +void ModifyReplicaModeRequest::setReplicaMode(const std::string& replicaMode) +{ + replicaMode_ = replicaMode; + setCoreParameter("ReplicaMode", replicaMode); +} + +std::string ModifyReplicaModeRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ModifyReplicaModeRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string ModifyReplicaModeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyReplicaModeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyReplicaModeRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyReplicaModeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ModifyReplicaModeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyReplicaModeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyReplicaModeRequest::getReplicaId()const +{ + return replicaId_; +} + +void ModifyReplicaModeRequest::setReplicaId(const std::string& replicaId) +{ + replicaId_ = replicaId; + setCoreParameter("ReplicaId", replicaId); +} + +long ModifyReplicaModeRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyReplicaModeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyReplicaModeRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyReplicaModeRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dds/src/model/ModifyReplicaModeResult.cc b/dds/src/model/ModifyReplicaModeResult.cc new file mode 100644 index 000000000..8e9f84e04 --- /dev/null +++ b/dds/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::Dds; +using namespace AlibabaCloud::Dds::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/dds/src/model/ModifyReplicaRecoveryModeRequest.cc b/dds/src/model/ModifyReplicaRecoveryModeRequest.cc new file mode 100644 index 000000000..2db4b0839 --- /dev/null +++ b/dds/src/model/ModifyReplicaRecoveryModeRequest.cc @@ -0,0 +1,126 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dds::Model::ModifyReplicaRecoveryModeRequest; + +ModifyReplicaRecoveryModeRequest::ModifyReplicaRecoveryModeRequest() : + RpcServiceRequest("dds", "2015-12-01", "ModifyReplicaRecoveryMode") +{} + +ModifyReplicaRecoveryModeRequest::~ModifyReplicaRecoveryModeRequest() +{} + +long ModifyReplicaRecoveryModeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyReplicaRecoveryModeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyReplicaRecoveryModeRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ModifyReplicaRecoveryModeRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string ModifyReplicaRecoveryModeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyReplicaRecoveryModeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyReplicaRecoveryModeRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyReplicaRecoveryModeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ModifyReplicaRecoveryModeRequest::getRecoveryMode()const +{ + return recoveryMode_; +} + +void ModifyReplicaRecoveryModeRequest::setRecoveryMode(const std::string& recoveryMode) +{ + recoveryMode_ = recoveryMode; + setCoreParameter("RecoveryMode", recoveryMode); +} + +std::string ModifyReplicaRecoveryModeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyReplicaRecoveryModeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyReplicaRecoveryModeRequest::getReplicaId()const +{ + return replicaId_; +} + +void ModifyReplicaRecoveryModeRequest::setReplicaId(const std::string& replicaId) +{ + replicaId_ = replicaId; + setCoreParameter("ReplicaId", replicaId); +} + +long ModifyReplicaRecoveryModeRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyReplicaRecoveryModeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyReplicaRecoveryModeRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyReplicaRecoveryModeRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dds/src/model/ModifyReplicaRecoveryModeResult.cc b/dds/src/model/ModifyReplicaRecoveryModeResult.cc new file mode 100644 index 000000000..7fe5f3551 --- /dev/null +++ b/dds/src/model/ModifyReplicaRecoveryModeResult.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::Dds; +using namespace AlibabaCloud::Dds::Model; + +ModifyReplicaRecoveryModeResult::ModifyReplicaRecoveryModeResult() : + ServiceResult() +{} + +ModifyReplicaRecoveryModeResult::ModifyReplicaRecoveryModeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyReplicaRecoveryModeResult::~ModifyReplicaRecoveryModeResult() +{} + +void ModifyReplicaRecoveryModeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/dds/src/model/ModifyReplicaRelationRequest.cc b/dds/src/model/ModifyReplicaRelationRequest.cc new file mode 100644 index 000000000..09b82d8a7 --- /dev/null +++ b/dds/src/model/ModifyReplicaRelationRequest.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dds::Model::ModifyReplicaRelationRequest; + +ModifyReplicaRelationRequest::ModifyReplicaRelationRequest() : + RpcServiceRequest("dds", "2015-12-01", "ModifyReplicaRelation") +{} + +ModifyReplicaRelationRequest::~ModifyReplicaRelationRequest() +{} + +long ModifyReplicaRelationRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyReplicaRelationRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyReplicaRelationRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ModifyReplicaRelationRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string ModifyReplicaRelationRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyReplicaRelationRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyReplicaRelationRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyReplicaRelationRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ModifyReplicaRelationRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyReplicaRelationRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyReplicaRelationRequest::getReplicaId()const +{ + return replicaId_; +} + +void ModifyReplicaRelationRequest::setReplicaId(const std::string& replicaId) +{ + replicaId_ = replicaId; + setCoreParameter("ReplicaId", replicaId); +} + +long ModifyReplicaRelationRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyReplicaRelationRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyReplicaRelationRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyReplicaRelationRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dds/src/model/ModifyReplicaRelationResult.cc b/dds/src/model/ModifyReplicaRelationResult.cc new file mode 100644 index 000000000..30cf068d2 --- /dev/null +++ b/dds/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::Dds; +using namespace AlibabaCloud::Dds::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/dds/src/model/ModifyReplicaVerificationModeRequest.cc b/dds/src/model/ModifyReplicaVerificationModeRequest.cc new file mode 100644 index 000000000..472f90f22 --- /dev/null +++ b/dds/src/model/ModifyReplicaVerificationModeRequest.cc @@ -0,0 +1,126 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dds::Model::ModifyReplicaVerificationModeRequest; + +ModifyReplicaVerificationModeRequest::ModifyReplicaVerificationModeRequest() : + RpcServiceRequest("dds", "2015-12-01", "ModifyReplicaVerificationMode") +{} + +ModifyReplicaVerificationModeRequest::~ModifyReplicaVerificationModeRequest() +{} + +long ModifyReplicaVerificationModeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyReplicaVerificationModeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyReplicaVerificationModeRequest::getVerificationMode()const +{ + return verificationMode_; +} + +void ModifyReplicaVerificationModeRequest::setVerificationMode(const std::string& verificationMode) +{ + verificationMode_ = verificationMode; + setCoreParameter("VerificationMode", verificationMode); +} + +std::string ModifyReplicaVerificationModeRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ModifyReplicaVerificationModeRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string ModifyReplicaVerificationModeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyReplicaVerificationModeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyReplicaVerificationModeRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyReplicaVerificationModeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ModifyReplicaVerificationModeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyReplicaVerificationModeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyReplicaVerificationModeRequest::getReplicaId()const +{ + return replicaId_; +} + +void ModifyReplicaVerificationModeRequest::setReplicaId(const std::string& replicaId) +{ + replicaId_ = replicaId; + setCoreParameter("ReplicaId", replicaId); +} + +long ModifyReplicaVerificationModeRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyReplicaVerificationModeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyReplicaVerificationModeRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyReplicaVerificationModeRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dds/src/model/ModifyReplicaVerificationModeResult.cc b/dds/src/model/ModifyReplicaVerificationModeResult.cc new file mode 100644 index 000000000..0bedfdf19 --- /dev/null +++ b/dds/src/model/ModifyReplicaVerificationModeResult.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::Dds; +using namespace AlibabaCloud::Dds::Model; + +ModifyReplicaVerificationModeResult::ModifyReplicaVerificationModeResult() : + ServiceResult() +{} + +ModifyReplicaVerificationModeResult::ModifyReplicaVerificationModeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyReplicaVerificationModeResult::~ModifyReplicaVerificationModeResult() +{} + +void ModifyReplicaVerificationModeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/dds/src/model/ModifySecurityIpsRequest.cc b/dds/src/model/ModifySecurityIpsRequest.cc new file mode 100644 index 000000000..2c8b602ab --- /dev/null +++ b/dds/src/model/ModifySecurityIpsRequest.cc @@ -0,0 +1,159 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dds::Model::ModifySecurityIpsRequest; + +ModifySecurityIpsRequest::ModifySecurityIpsRequest() : + RpcServiceRequest("dds", "2015-12-01", "ModifySecurityIps") +{} + +ModifySecurityIpsRequest::~ModifySecurityIpsRequest() +{} + +long ModifySecurityIpsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifySecurityIpsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifySecurityIpsRequest::getModifyMode()const +{ + return modifyMode_; +} + +void ModifySecurityIpsRequest::setModifyMode(const std::string& modifyMode) +{ + modifyMode_ = modifyMode; + setCoreParameter("ModifyMode", modifyMode); +} + +std::string ModifySecurityIpsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifySecurityIpsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifySecurityIpsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifySecurityIpsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string ModifySecurityIpsRequest::getSecurityIps()const +{ + return securityIps_; +} + +void ModifySecurityIpsRequest::setSecurityIps(const std::string& securityIps) +{ + securityIps_ = securityIps; + setCoreParameter("SecurityIps", securityIps); +} + +long ModifySecurityIpsRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifySecurityIpsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifySecurityIpsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifySecurityIpsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string ModifySecurityIpsRequest::getSecurityIpGroupName()const +{ + return securityIpGroupName_; +} + +void ModifySecurityIpsRequest::setSecurityIpGroupName(const std::string& securityIpGroupName) +{ + securityIpGroupName_ = securityIpGroupName; + setCoreParameter("SecurityIpGroupName", securityIpGroupName); +} + +std::string ModifySecurityIpsRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ModifySecurityIpsRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string ModifySecurityIpsRequest::getRegionId()const +{ + return regionId_; +} + +void ModifySecurityIpsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ModifySecurityIpsRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void ModifySecurityIpsRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setCoreParameter("DBInstanceId", dBInstanceId); +} + +std::string ModifySecurityIpsRequest::getSecurityIpGroupAttribute()const +{ + return securityIpGroupAttribute_; +} + +void ModifySecurityIpsRequest::setSecurityIpGroupAttribute(const std::string& securityIpGroupAttribute) +{ + securityIpGroupAttribute_ = securityIpGroupAttribute; + setCoreParameter("SecurityIpGroupAttribute", securityIpGroupAttribute); +} + diff --git a/dds/src/model/ModifySecurityIpsResult.cc b/dds/src/model/ModifySecurityIpsResult.cc new file mode 100644 index 000000000..102c91b23 --- /dev/null +++ b/dds/src/model/ModifySecurityIpsResult.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::Dds; +using namespace AlibabaCloud::Dds::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()); + +} + diff --git a/dds/src/model/ReleasePublicNetworkAddressRequest.cc b/dds/src/model/ReleasePublicNetworkAddressRequest.cc new file mode 100644 index 000000000..8fd30cb82 --- /dev/null +++ b/dds/src/model/ReleasePublicNetworkAddressRequest.cc @@ -0,0 +1,126 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dds::Model::ReleasePublicNetworkAddressRequest; + +ReleasePublicNetworkAddressRequest::ReleasePublicNetworkAddressRequest() : + RpcServiceRequest("dds", "2015-12-01", "ReleasePublicNetworkAddress") +{} + +ReleasePublicNetworkAddressRequest::~ReleasePublicNetworkAddressRequest() +{} + +long ReleasePublicNetworkAddressRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ReleasePublicNetworkAddressRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ReleasePublicNetworkAddressRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ReleasePublicNetworkAddressRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string ReleasePublicNetworkAddressRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ReleasePublicNetworkAddressRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ReleasePublicNetworkAddressRequest::getRegionId()const +{ + return regionId_; +} + +void ReleasePublicNetworkAddressRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ReleasePublicNetworkAddressRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ReleasePublicNetworkAddressRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string ReleasePublicNetworkAddressRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void ReleasePublicNetworkAddressRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setCoreParameter("DBInstanceId", dBInstanceId); +} + +long ReleasePublicNetworkAddressRequest::getOwnerId()const +{ + return ownerId_; +} + +void ReleasePublicNetworkAddressRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ReleasePublicNetworkAddressRequest::getNodeId()const +{ + return nodeId_; +} + +void ReleasePublicNetworkAddressRequest::setNodeId(const std::string& nodeId) +{ + nodeId_ = nodeId; + setCoreParameter("NodeId", nodeId); +} + +std::string ReleasePublicNetworkAddressRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ReleasePublicNetworkAddressRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dds/src/model/ReleasePublicNetworkAddressResult.cc b/dds/src/model/ReleasePublicNetworkAddressResult.cc new file mode 100644 index 000000000..f328898e1 --- /dev/null +++ b/dds/src/model/ReleasePublicNetworkAddressResult.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::Dds; +using namespace AlibabaCloud::Dds::Model; + +ReleasePublicNetworkAddressResult::ReleasePublicNetworkAddressResult() : + ServiceResult() +{} + +ReleasePublicNetworkAddressResult::ReleasePublicNetworkAddressResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ReleasePublicNetworkAddressResult::~ReleasePublicNetworkAddressResult() +{} + +void ReleasePublicNetworkAddressResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/dds/src/model/ReleaseReplicaRequest.cc b/dds/src/model/ReleaseReplicaRequest.cc new file mode 100644 index 000000000..a30e6c795 --- /dev/null +++ b/dds/src/model/ReleaseReplicaRequest.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dds::Model::ReleaseReplicaRequest; + +ReleaseReplicaRequest::ReleaseReplicaRequest() : + RpcServiceRequest("dds", "2015-12-01", "ReleaseReplica") +{} + +ReleaseReplicaRequest::~ReleaseReplicaRequest() +{} + +long ReleaseReplicaRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ReleaseReplicaRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ReleaseReplicaRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ReleaseReplicaRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string ReleaseReplicaRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ReleaseReplicaRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ReleaseReplicaRequest::getRegionId()const +{ + return regionId_; +} + +void ReleaseReplicaRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ReleaseReplicaRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ReleaseReplicaRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string ReleaseReplicaRequest::getReplicaId()const +{ + return replicaId_; +} + +void ReleaseReplicaRequest::setReplicaId(const std::string& replicaId) +{ + replicaId_ = replicaId; + setCoreParameter("ReplicaId", replicaId); +} + +long ReleaseReplicaRequest::getOwnerId()const +{ + return ownerId_; +} + +void ReleaseReplicaRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ReleaseReplicaRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ReleaseReplicaRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dds/src/model/ReleaseReplicaResult.cc b/dds/src/model/ReleaseReplicaResult.cc new file mode 100644 index 000000000..bf08b280c --- /dev/null +++ b/dds/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::Dds; +using namespace AlibabaCloud::Dds::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/dds/src/model/RenewDBInstanceRequest.cc b/dds/src/model/RenewDBInstanceRequest.cc new file mode 100644 index 000000000..2e4524233 --- /dev/null +++ b/dds/src/model/RenewDBInstanceRequest.cc @@ -0,0 +1,170 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dds::Model::RenewDBInstanceRequest; + +RenewDBInstanceRequest::RenewDBInstanceRequest() : + RpcServiceRequest("dds", "2015-12-01", "RenewDBInstance") +{} + +RenewDBInstanceRequest::~RenewDBInstanceRequest() +{} + +long RenewDBInstanceRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void RenewDBInstanceRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +int RenewDBInstanceRequest::getPeriod()const +{ + return period_; +} + +void RenewDBInstanceRequest::setPeriod(int period) +{ + period_ = period; + setCoreParameter("Period", std::to_string(period)); +} + +bool RenewDBInstanceRequest::getAutoPay()const +{ + return autoPay_; +} + +void RenewDBInstanceRequest::setAutoPay(bool autoPay) +{ + autoPay_ = autoPay; + setCoreParameter("AutoPay", autoPay ? "true" : "false"); +} + +std::string RenewDBInstanceRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void RenewDBInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string RenewDBInstanceRequest::getClientToken()const +{ + return clientToken_; +} + +void RenewDBInstanceRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setCoreParameter("ClientToken", clientToken); +} + +std::string RenewDBInstanceRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void RenewDBInstanceRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string RenewDBInstanceRequest::getCouponNo()const +{ + return couponNo_; +} + +void RenewDBInstanceRequest::setCouponNo(const std::string& couponNo) +{ + couponNo_ = couponNo; + setCoreParameter("CouponNo", couponNo); +} + +long RenewDBInstanceRequest::getOwnerId()const +{ + return ownerId_; +} + +void RenewDBInstanceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string RenewDBInstanceRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void RenewDBInstanceRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string RenewDBInstanceRequest::getSecurityToken()const +{ + return securityToken_; +} + +void RenewDBInstanceRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string RenewDBInstanceRequest::getRegionId()const +{ + return regionId_; +} + +void RenewDBInstanceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string RenewDBInstanceRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void RenewDBInstanceRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setCoreParameter("DBInstanceId", dBInstanceId); +} + +std::string RenewDBInstanceRequest::getBusinessInfo()const +{ + return businessInfo_; +} + +void RenewDBInstanceRequest::setBusinessInfo(const std::string& businessInfo) +{ + businessInfo_ = businessInfo; + setCoreParameter("BusinessInfo", businessInfo); +} + diff --git a/dds/src/model/RenewDBInstanceResult.cc b/dds/src/model/RenewDBInstanceResult.cc new file mode 100644 index 000000000..8dcc91563 --- /dev/null +++ b/dds/src/model/RenewDBInstanceResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Dds; +using namespace AlibabaCloud::Dds::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()); + if(!value["OrderId"].isNull()) + orderId_ = value["OrderId"].asString(); + +} + +std::string RenewDBInstanceResult::getOrderId()const +{ + return orderId_; +} + diff --git a/dds/src/model/ResetAccountPasswordRequest.cc b/dds/src/model/ResetAccountPasswordRequest.cc new file mode 100644 index 000000000..53b052d96 --- /dev/null +++ b/dds/src/model/ResetAccountPasswordRequest.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 + +using AlibabaCloud::Dds::Model::ResetAccountPasswordRequest; + +ResetAccountPasswordRequest::ResetAccountPasswordRequest() : + RpcServiceRequest("dds", "2015-12-01", "ResetAccountPassword") +{} + +ResetAccountPasswordRequest::~ResetAccountPasswordRequest() +{} + +long ResetAccountPasswordRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ResetAccountPasswordRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ResetAccountPasswordRequest::getAccountPassword()const +{ + return accountPassword_; +} + +void ResetAccountPasswordRequest::setAccountPassword(const std::string& accountPassword) +{ + accountPassword_ = accountPassword; + setCoreParameter("AccountPassword", accountPassword); +} + +std::string ResetAccountPasswordRequest::getAccountName()const +{ + return accountName_; +} + +void ResetAccountPasswordRequest::setAccountName(const std::string& accountName) +{ + accountName_ = accountName; + setCoreParameter("AccountName", accountName); +} + +std::string ResetAccountPasswordRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ResetAccountPasswordRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string ResetAccountPasswordRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ResetAccountPasswordRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ResetAccountPasswordRequest::getRegionId()const +{ + return regionId_; +} + +void ResetAccountPasswordRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ResetAccountPasswordRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ResetAccountPasswordRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string ResetAccountPasswordRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void ResetAccountPasswordRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setCoreParameter("DBInstanceId", dBInstanceId); +} + +long ResetAccountPasswordRequest::getOwnerId()const +{ + return ownerId_; +} + +void ResetAccountPasswordRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ResetAccountPasswordRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ResetAccountPasswordRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dds/src/model/ResetAccountPasswordResult.cc b/dds/src/model/ResetAccountPasswordResult.cc new file mode 100644 index 000000000..6e18661f9 --- /dev/null +++ b/dds/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::Dds; +using namespace AlibabaCloud::Dds::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/dds/src/model/RestartDBInstanceRequest.cc b/dds/src/model/RestartDBInstanceRequest.cc new file mode 100644 index 000000000..1ffcc153d --- /dev/null +++ b/dds/src/model/RestartDBInstanceRequest.cc @@ -0,0 +1,126 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dds::Model::RestartDBInstanceRequest; + +RestartDBInstanceRequest::RestartDBInstanceRequest() : + RpcServiceRequest("dds", "2015-12-01", "RestartDBInstance") +{} + +RestartDBInstanceRequest::~RestartDBInstanceRequest() +{} + +long RestartDBInstanceRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void RestartDBInstanceRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string RestartDBInstanceRequest::getSecurityToken()const +{ + return securityToken_; +} + +void RestartDBInstanceRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string RestartDBInstanceRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void RestartDBInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string RestartDBInstanceRequest::getRegionId()const +{ + return regionId_; +} + +void RestartDBInstanceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string RestartDBInstanceRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void RestartDBInstanceRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string RestartDBInstanceRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void RestartDBInstanceRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setCoreParameter("DBInstanceId", dBInstanceId); +} + +long RestartDBInstanceRequest::getOwnerId()const +{ + return ownerId_; +} + +void RestartDBInstanceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string RestartDBInstanceRequest::getNodeId()const +{ + return nodeId_; +} + +void RestartDBInstanceRequest::setNodeId(const std::string& nodeId) +{ + nodeId_ = nodeId; + setCoreParameter("NodeId", nodeId); +} + +std::string RestartDBInstanceRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void RestartDBInstanceRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dds/src/model/RestartDBInstanceResult.cc b/dds/src/model/RestartDBInstanceResult.cc new file mode 100644 index 000000000..40a3eaafd --- /dev/null +++ b/dds/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::Dds; +using namespace AlibabaCloud::Dds::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/dds/src/model/RestoreDBInstanceRequest.cc b/dds/src/model/RestoreDBInstanceRequest.cc new file mode 100644 index 000000000..47ccc64a0 --- /dev/null +++ b/dds/src/model/RestoreDBInstanceRequest.cc @@ -0,0 +1,126 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dds::Model::RestoreDBInstanceRequest; + +RestoreDBInstanceRequest::RestoreDBInstanceRequest() : + RpcServiceRequest("dds", "2015-12-01", "RestoreDBInstance") +{} + +RestoreDBInstanceRequest::~RestoreDBInstanceRequest() +{} + +long RestoreDBInstanceRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void RestoreDBInstanceRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string RestoreDBInstanceRequest::getSecurityToken()const +{ + return securityToken_; +} + +void RestoreDBInstanceRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string RestoreDBInstanceRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void RestoreDBInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string RestoreDBInstanceRequest::getRegionId()const +{ + return regionId_; +} + +void RestoreDBInstanceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string RestoreDBInstanceRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void RestoreDBInstanceRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +int RestoreDBInstanceRequest::getBackupId()const +{ + return backupId_; +} + +void RestoreDBInstanceRequest::setBackupId(int backupId) +{ + backupId_ = backupId; + setCoreParameter("BackupId", std::to_string(backupId)); +} + +std::string RestoreDBInstanceRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void RestoreDBInstanceRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setCoreParameter("DBInstanceId", dBInstanceId); +} + +long RestoreDBInstanceRequest::getOwnerId()const +{ + return ownerId_; +} + +void RestoreDBInstanceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string RestoreDBInstanceRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void RestoreDBInstanceRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dds/src/model/RestoreDBInstanceResult.cc b/dds/src/model/RestoreDBInstanceResult.cc new file mode 100644 index 000000000..6b7ac0e22 --- /dev/null +++ b/dds/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::Dds; +using namespace AlibabaCloud::Dds::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/dds/src/model/SampleRequest.cc b/dds/src/model/SampleRequest.cc new file mode 100644 index 000000000..af5447c50 --- /dev/null +++ b/dds/src/model/SampleRequest.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dds::Model::SampleRequest; + +SampleRequest::SampleRequest() : + RpcServiceRequest("dds", "2015-12-01", "Sample") +{} + +SampleRequest::~SampleRequest() +{} + +long SampleRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void SampleRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string SampleRequest::getSecurityToken()const +{ + return securityToken_; +} + +void SampleRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string SampleRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void SampleRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string SampleRequest::getRegionId()const +{ + return regionId_; +} + +void SampleRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string SampleRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void SampleRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string SampleRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void SampleRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setCoreParameter("DBInstanceId", dBInstanceId); +} + +long SampleRequest::getOwnerId()const +{ + return ownerId_; +} + +void SampleRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string SampleRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void SampleRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dds/src/model/SampleResult.cc b/dds/src/model/SampleResult.cc new file mode 100644 index 000000000..f43a23353 --- /dev/null +++ b/dds/src/model/SampleResult.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::Dds; +using namespace AlibabaCloud::Dds::Model; + +SampleResult::SampleResult() : + ServiceResult() +{} + +SampleResult::SampleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SampleResult::~SampleResult() +{} + +void SampleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allSecurityIpGroups = value["SecurityIpGroups"]["SecurityIpGroup"]; + for (auto value : allSecurityIpGroups) + { + SecurityIpGroup securityIpGroupsObject; + if(!value["SecurityIpGroupName"].isNull()) + securityIpGroupsObject.securityIpGroupName = value["SecurityIpGroupName"].asString(); + if(!value["SecurityIpGroupAttribute"].isNull()) + securityIpGroupsObject.securityIpGroupAttribute = value["SecurityIpGroupAttribute"].asString(); + if(!value["SecurityIpList"].isNull()) + securityIpGroupsObject.securityIpList = value["SecurityIpList"].asString(); + securityIpGroups_.push_back(securityIpGroupsObject); + } + if(!value["SecurityIps"].isNull()) + securityIps_ = value["SecurityIps"].asString(); + +} + +std::string SampleResult::getSecurityIps()const +{ + return securityIps_; +} + +std::vector SampleResult::getSecurityIpGroups()const +{ + return securityIpGroups_; +} + diff --git a/dds/src/model/SwitchDBInstanceHARequest.cc b/dds/src/model/SwitchDBInstanceHARequest.cc new file mode 100644 index 000000000..c00399cfc --- /dev/null +++ b/dds/src/model/SwitchDBInstanceHARequest.cc @@ -0,0 +1,159 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dds::Model::SwitchDBInstanceHARequest; + +SwitchDBInstanceHARequest::SwitchDBInstanceHARequest() : + RpcServiceRequest("dds", "2015-12-01", "SwitchDBInstanceHA") +{} + +SwitchDBInstanceHARequest::~SwitchDBInstanceHARequest() +{} + +long SwitchDBInstanceHARequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void SwitchDBInstanceHARequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string SwitchDBInstanceHARequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void SwitchDBInstanceHARequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string SwitchDBInstanceHARequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void SwitchDBInstanceHARequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +long SwitchDBInstanceHARequest::getOwnerId()const +{ + return ownerId_; +} + +void SwitchDBInstanceHARequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string SwitchDBInstanceHARequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void SwitchDBInstanceHARequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +int SwitchDBInstanceHARequest::getTargetInstanceId()const +{ + return targetInstanceId_; +} + +void SwitchDBInstanceHARequest::setTargetInstanceId(int targetInstanceId) +{ + targetInstanceId_ = targetInstanceId; + setCoreParameter("TargetInstanceId", std::to_string(targetInstanceId)); +} + +std::string SwitchDBInstanceHARequest::getSecurityToken()const +{ + return securityToken_; +} + +void SwitchDBInstanceHARequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string SwitchDBInstanceHARequest::getRegionId()const +{ + return regionId_; +} + +void SwitchDBInstanceHARequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +int SwitchDBInstanceHARequest::getSwitchType()const +{ + return switchType_; +} + +void SwitchDBInstanceHARequest::setSwitchType(int switchType) +{ + switchType_ = switchType; + setCoreParameter("SwitchType", std::to_string(switchType)); +} + +std::string SwitchDBInstanceHARequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void SwitchDBInstanceHARequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setCoreParameter("DBInstanceId", dBInstanceId); +} + +int SwitchDBInstanceHARequest::getSourceInstanceId()const +{ + return sourceInstanceId_; +} + +void SwitchDBInstanceHARequest::setSourceInstanceId(int sourceInstanceId) +{ + sourceInstanceId_ = sourceInstanceId; + setCoreParameter("SourceInstanceId", std::to_string(sourceInstanceId)); +} + +std::string SwitchDBInstanceHARequest::getNodeId()const +{ + return nodeId_; +} + +void SwitchDBInstanceHARequest::setNodeId(const std::string& nodeId) +{ + nodeId_ = nodeId; + setCoreParameter("NodeId", nodeId); +} + diff --git a/dds/src/model/SwitchDBInstanceHAResult.cc b/dds/src/model/SwitchDBInstanceHAResult.cc new file mode 100644 index 000000000..f8124c954 --- /dev/null +++ b/dds/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::Dds; +using namespace AlibabaCloud::Dds::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/dds/src/model/SwithcDBInstanceHARequest.cc b/dds/src/model/SwithcDBInstanceHARequest.cc new file mode 100644 index 000000000..ada39c23f --- /dev/null +++ b/dds/src/model/SwithcDBInstanceHARequest.cc @@ -0,0 +1,159 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dds::Model::SwithcDBInstanceHARequest; + +SwithcDBInstanceHARequest::SwithcDBInstanceHARequest() : + RpcServiceRequest("dds", "2015-12-01", "SwithcDBInstanceHA") +{} + +SwithcDBInstanceHARequest::~SwithcDBInstanceHARequest() +{} + +long SwithcDBInstanceHARequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void SwithcDBInstanceHARequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string SwithcDBInstanceHARequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void SwithcDBInstanceHARequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string SwithcDBInstanceHARequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void SwithcDBInstanceHARequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +long SwithcDBInstanceHARequest::getOwnerId()const +{ + return ownerId_; +} + +void SwithcDBInstanceHARequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string SwithcDBInstanceHARequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void SwithcDBInstanceHARequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +int SwithcDBInstanceHARequest::getTargetInstanceId()const +{ + return targetInstanceId_; +} + +void SwithcDBInstanceHARequest::setTargetInstanceId(int targetInstanceId) +{ + targetInstanceId_ = targetInstanceId; + setCoreParameter("TargetInstanceId", std::to_string(targetInstanceId)); +} + +std::string SwithcDBInstanceHARequest::getSecurityToken()const +{ + return securityToken_; +} + +void SwithcDBInstanceHARequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string SwithcDBInstanceHARequest::getRegionId()const +{ + return regionId_; +} + +void SwithcDBInstanceHARequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +int SwithcDBInstanceHARequest::getSwitchType()const +{ + return switchType_; +} + +void SwithcDBInstanceHARequest::setSwitchType(int switchType) +{ + switchType_ = switchType; + setCoreParameter("SwitchType", std::to_string(switchType)); +} + +std::string SwithcDBInstanceHARequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void SwithcDBInstanceHARequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setCoreParameter("DBInstanceId", dBInstanceId); +} + +int SwithcDBInstanceHARequest::getSourceInstanceId()const +{ + return sourceInstanceId_; +} + +void SwithcDBInstanceHARequest::setSourceInstanceId(int sourceInstanceId) +{ + sourceInstanceId_ = sourceInstanceId; + setCoreParameter("SourceInstanceId", std::to_string(sourceInstanceId)); +} + +std::string SwithcDBInstanceHARequest::getNodeId()const +{ + return nodeId_; +} + +void SwithcDBInstanceHARequest::setNodeId(const std::string& nodeId) +{ + nodeId_ = nodeId; + setCoreParameter("NodeId", nodeId); +} + diff --git a/dds/src/model/SwithcDBInstanceHAResult.cc b/dds/src/model/SwithcDBInstanceHAResult.cc new file mode 100644 index 000000000..00c016f93 --- /dev/null +++ b/dds/src/model/SwithcDBInstanceHAResult.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::Dds; +using namespace AlibabaCloud::Dds::Model; + +SwithcDBInstanceHAResult::SwithcDBInstanceHAResult() : + ServiceResult() +{} + +SwithcDBInstanceHAResult::SwithcDBInstanceHAResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SwithcDBInstanceHAResult::~SwithcDBInstanceHAResult() +{} + +void SwithcDBInstanceHAResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/dds/src/model/TagResourcesRequest.cc b/dds/src/model/TagResourcesRequest.cc new file mode 100644 index 000000000..bb0384ddc --- /dev/null +++ b/dds/src/model/TagResourcesRequest.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 + +using AlibabaCloud::Dds::Model::TagResourcesRequest; + +TagResourcesRequest::TagResourcesRequest() : + RpcServiceRequest("dds", "2015-12-01", "TagResources") +{} + +TagResourcesRequest::~TagResourcesRequest() +{} + +long TagResourcesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void TagResourcesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::vector TagResourcesRequest::getResourceId()const +{ + return resourceId_; +} + +void TagResourcesRequest::setResourceId(const std::vector& resourceId) +{ + resourceId_ = resourceId; + for(int i = 0; i!= resourceId.size(); i++) + setCoreParameter("ResourceId."+ std::to_string(i), resourceId.at(i)); +} + +std::string TagResourcesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void TagResourcesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string TagResourcesRequest::getRegionId()const +{ + return regionId_; +} + +void TagResourcesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string TagResourcesRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void TagResourcesRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::vector TagResourcesRequest::getTag()const +{ + return tag_; +} + +void TagResourcesRequest::setTag(const std::vector& tag) +{ + tag_ = tag; + int i = 0; + for(int i = 0; i!= tag.size(); i++) { + auto obj = tag.at(i); + std::string str ="Tag."+ std::to_string(i); + setCoreParameter(str + ".Value", obj.value); + setCoreParameter(str + ".Key", obj.key); + } +} + +long TagResourcesRequest::getOwnerId()const +{ + return ownerId_; +} + +void TagResourcesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string TagResourcesRequest::getResourceType()const +{ + return resourceType_; +} + +void TagResourcesRequest::setResourceType(const std::string& resourceType) +{ + resourceType_ = resourceType; + setCoreParameter("ResourceType", resourceType); +} + +std::string TagResourcesRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void TagResourcesRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dds/src/model/TagResourcesResult.cc b/dds/src/model/TagResourcesResult.cc new file mode 100644 index 000000000..05a362a4d --- /dev/null +++ b/dds/src/model/TagResourcesResult.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::Dds; +using namespace AlibabaCloud::Dds::Model; + +TagResourcesResult::TagResourcesResult() : + ServiceResult() +{} + +TagResourcesResult::TagResourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +TagResourcesResult::~TagResourcesResult() +{} + +void TagResourcesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/dds/src/model/TransformToPrePaidRequest.cc b/dds/src/model/TransformToPrePaidRequest.cc new file mode 100644 index 000000000..9cd6a8cc0 --- /dev/null +++ b/dds/src/model/TransformToPrePaidRequest.cc @@ -0,0 +1,181 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dds::Model::TransformToPrePaidRequest; + +TransformToPrePaidRequest::TransformToPrePaidRequest() : + RpcServiceRequest("dds", "2015-12-01", "TransformToPrePaid") +{} + +TransformToPrePaidRequest::~TransformToPrePaidRequest() +{} + +long TransformToPrePaidRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void TransformToPrePaidRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long TransformToPrePaidRequest::getPeriod()const +{ + return period_; +} + +void TransformToPrePaidRequest::setPeriod(long period) +{ + period_ = period; + setCoreParameter("Period", std::to_string(period)); +} + +bool TransformToPrePaidRequest::getAutoPay()const +{ + return autoPay_; +} + +void TransformToPrePaidRequest::setAutoPay(bool autoPay) +{ + autoPay_ = autoPay; + setCoreParameter("AutoPay", autoPay ? "true" : "false"); +} + +std::string TransformToPrePaidRequest::getFromApp()const +{ + return fromApp_; +} + +void TransformToPrePaidRequest::setFromApp(const std::string& fromApp) +{ + fromApp_ = fromApp; + setCoreParameter("FromApp", fromApp); +} + +std::string TransformToPrePaidRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void TransformToPrePaidRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string TransformToPrePaidRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void TransformToPrePaidRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string TransformToPrePaidRequest::getCouponNo()const +{ + return couponNo_; +} + +void TransformToPrePaidRequest::setCouponNo(const std::string& couponNo) +{ + couponNo_ = couponNo; + setCoreParameter("CouponNo", couponNo); +} + +long TransformToPrePaidRequest::getOwnerId()const +{ + return ownerId_; +} + +void TransformToPrePaidRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string TransformToPrePaidRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void TransformToPrePaidRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string TransformToPrePaidRequest::getInstanceId()const +{ + return instanceId_; +} + +void TransformToPrePaidRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string TransformToPrePaidRequest::getAutoRenew()const +{ + return autoRenew_; +} + +void TransformToPrePaidRequest::setAutoRenew(const std::string& autoRenew) +{ + autoRenew_ = autoRenew; + setCoreParameter("AutoRenew", autoRenew); +} + +std::string TransformToPrePaidRequest::getSecurityToken()const +{ + return securityToken_; +} + +void TransformToPrePaidRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string TransformToPrePaidRequest::getRegionId()const +{ + return regionId_; +} + +void TransformToPrePaidRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string TransformToPrePaidRequest::getBusinessInfo()const +{ + return businessInfo_; +} + +void TransformToPrePaidRequest::setBusinessInfo(const std::string& businessInfo) +{ + businessInfo_ = businessInfo; + setCoreParameter("BusinessInfo", businessInfo); +} + diff --git a/dds/src/model/TransformToPrePaidResult.cc b/dds/src/model/TransformToPrePaidResult.cc new file mode 100644 index 000000000..11cf1d4b0 --- /dev/null +++ b/dds/src/model/TransformToPrePaidResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Dds; +using namespace AlibabaCloud::Dds::Model; + +TransformToPrePaidResult::TransformToPrePaidResult() : + ServiceResult() +{} + +TransformToPrePaidResult::TransformToPrePaidResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +TransformToPrePaidResult::~TransformToPrePaidResult() +{} + +void TransformToPrePaidResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["OrderId"].isNull()) + orderId_ = value["OrderId"].asString(); + if(!value["EndTime"].isNull()) + endTime_ = value["EndTime"].asString(); + +} + +std::string TransformToPrePaidResult::getEndTime()const +{ + return endTime_; +} + +std::string TransformToPrePaidResult::getOrderId()const +{ + return orderId_; +} + diff --git a/dds/src/model/UntagResourcesRequest.cc b/dds/src/model/UntagResourcesRequest.cc new file mode 100644 index 000000000..9e9ecaa98 --- /dev/null +++ b/dds/src/model/UntagResourcesRequest.cc @@ -0,0 +1,139 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dds::Model::UntagResourcesRequest; + +UntagResourcesRequest::UntagResourcesRequest() : + RpcServiceRequest("dds", "2015-12-01", "UntagResources") +{} + +UntagResourcesRequest::~UntagResourcesRequest() +{} + +bool UntagResourcesRequest::getAll()const +{ + return all_; +} + +void UntagResourcesRequest::setAll(bool all) +{ + all_ = all; + setCoreParameter("All", all ? "true" : "false"); +} + +long UntagResourcesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void UntagResourcesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::vector UntagResourcesRequest::getResourceId()const +{ + return resourceId_; +} + +void UntagResourcesRequest::setResourceId(const std::vector& resourceId) +{ + resourceId_ = resourceId; + for(int i = 0; i!= resourceId.size(); i++) + setCoreParameter("ResourceId."+ std::to_string(i), resourceId.at(i)); +} + +std::string UntagResourcesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void UntagResourcesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string UntagResourcesRequest::getRegionId()const +{ + return regionId_; +} + +void UntagResourcesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string UntagResourcesRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void UntagResourcesRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +long UntagResourcesRequest::getOwnerId()const +{ + return ownerId_; +} + +void UntagResourcesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::vector UntagResourcesRequest::getTagKey()const +{ + return tagKey_; +} + +void UntagResourcesRequest::setTagKey(const std::vector& tagKey) +{ + tagKey_ = tagKey; + for(int i = 0; i!= tagKey.size(); i++) + setCoreParameter("TagKey."+ std::to_string(i), tagKey.at(i)); +} + +std::string UntagResourcesRequest::getResourceType()const +{ + return resourceType_; +} + +void UntagResourcesRequest::setResourceType(const std::string& resourceType) +{ + resourceType_ = resourceType; + setCoreParameter("ResourceType", resourceType); +} + +std::string UntagResourcesRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void UntagResourcesRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dds/src/model/UntagResourcesResult.cc b/dds/src/model/UntagResourcesResult.cc new file mode 100644 index 000000000..9c200cae8 --- /dev/null +++ b/dds/src/model/UntagResourcesResult.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::Dds; +using namespace AlibabaCloud::Dds::Model; + +UntagResourcesResult::UntagResourcesResult() : + ServiceResult() +{} + +UntagResourcesResult::UntagResourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UntagResourcesResult::~UntagResourcesResult() +{} + +void UntagResourcesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/dds/src/model/UpgradeDBInstanceEngineVersionRequest.cc b/dds/src/model/UpgradeDBInstanceEngineVersionRequest.cc new file mode 100644 index 000000000..602d6ad2a --- /dev/null +++ b/dds/src/model/UpgradeDBInstanceEngineVersionRequest.cc @@ -0,0 +1,126 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dds::Model::UpgradeDBInstanceEngineVersionRequest; + +UpgradeDBInstanceEngineVersionRequest::UpgradeDBInstanceEngineVersionRequest() : + RpcServiceRequest("dds", "2015-12-01", "UpgradeDBInstanceEngineVersion") +{} + +UpgradeDBInstanceEngineVersionRequest::~UpgradeDBInstanceEngineVersionRequest() +{} + +long UpgradeDBInstanceEngineVersionRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void UpgradeDBInstanceEngineVersionRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string UpgradeDBInstanceEngineVersionRequest::getSecurityToken()const +{ + return securityToken_; +} + +void UpgradeDBInstanceEngineVersionRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string UpgradeDBInstanceEngineVersionRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void UpgradeDBInstanceEngineVersionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string UpgradeDBInstanceEngineVersionRequest::getRegionId()const +{ + return regionId_; +} + +void UpgradeDBInstanceEngineVersionRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string UpgradeDBInstanceEngineVersionRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void UpgradeDBInstanceEngineVersionRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string UpgradeDBInstanceEngineVersionRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void UpgradeDBInstanceEngineVersionRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setCoreParameter("DBInstanceId", dBInstanceId); +} + +std::string UpgradeDBInstanceEngineVersionRequest::getEngineVersion()const +{ + return engineVersion_; +} + +void UpgradeDBInstanceEngineVersionRequest::setEngineVersion(const std::string& engineVersion) +{ + engineVersion_ = engineVersion; + setCoreParameter("EngineVersion", engineVersion); +} + +long UpgradeDBInstanceEngineVersionRequest::getOwnerId()const +{ + return ownerId_; +} + +void UpgradeDBInstanceEngineVersionRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string UpgradeDBInstanceEngineVersionRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void UpgradeDBInstanceEngineVersionRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dds/src/model/UpgradeDBInstanceEngineVersionResult.cc b/dds/src/model/UpgradeDBInstanceEngineVersionResult.cc new file mode 100644 index 000000000..abcb1a98c --- /dev/null +++ b/dds/src/model/UpgradeDBInstanceEngineVersionResult.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::Dds; +using namespace AlibabaCloud::Dds::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()); + +} + diff --git a/dds/src/model/UpgradeDBInstanceKernelVersionRequest.cc b/dds/src/model/UpgradeDBInstanceKernelVersionRequest.cc new file mode 100644 index 000000000..8d2e56e4c --- /dev/null +++ b/dds/src/model/UpgradeDBInstanceKernelVersionRequest.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dds::Model::UpgradeDBInstanceKernelVersionRequest; + +UpgradeDBInstanceKernelVersionRequest::UpgradeDBInstanceKernelVersionRequest() : + RpcServiceRequest("dds", "2015-12-01", "UpgradeDBInstanceKernelVersion") +{} + +UpgradeDBInstanceKernelVersionRequest::~UpgradeDBInstanceKernelVersionRequest() +{} + +long UpgradeDBInstanceKernelVersionRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void UpgradeDBInstanceKernelVersionRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string UpgradeDBInstanceKernelVersionRequest::getSecurityToken()const +{ + return securityToken_; +} + +void UpgradeDBInstanceKernelVersionRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setCoreParameter("SecurityToken", securityToken); +} + +std::string UpgradeDBInstanceKernelVersionRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void UpgradeDBInstanceKernelVersionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string UpgradeDBInstanceKernelVersionRequest::getRegionId()const +{ + return regionId_; +} + +void UpgradeDBInstanceKernelVersionRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string UpgradeDBInstanceKernelVersionRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void UpgradeDBInstanceKernelVersionRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setCoreParameter("OwnerAccount", ownerAccount); +} + +std::string UpgradeDBInstanceKernelVersionRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void UpgradeDBInstanceKernelVersionRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setCoreParameter("DBInstanceId", dBInstanceId); +} + +long UpgradeDBInstanceKernelVersionRequest::getOwnerId()const +{ + return ownerId_; +} + +void UpgradeDBInstanceKernelVersionRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string UpgradeDBInstanceKernelVersionRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void UpgradeDBInstanceKernelVersionRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + diff --git a/dds/src/model/UpgradeDBInstanceKernelVersionResult.cc b/dds/src/model/UpgradeDBInstanceKernelVersionResult.cc new file mode 100644 index 000000000..d0d09543e --- /dev/null +++ b/dds/src/model/UpgradeDBInstanceKernelVersionResult.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::Dds; +using namespace AlibabaCloud::Dds::Model; + +UpgradeDBInstanceKernelVersionResult::UpgradeDBInstanceKernelVersionResult() : + ServiceResult() +{} + +UpgradeDBInstanceKernelVersionResult::UpgradeDBInstanceKernelVersionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpgradeDBInstanceKernelVersionResult::~UpgradeDBInstanceKernelVersionResult() +{} + +void UpgradeDBInstanceKernelVersionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} +