Update Open API.

This commit is contained in:
sdk-team
2021-01-29 02:35:09 +00:00
parent b3ae2c61f0
commit e84530679a
76 changed files with 3 additions and 6378 deletions

View File

@@ -411,42 +411,6 @@ RdsClient::CheckInstanceExistOutcomeCallable RdsClient::checkInstanceExistCallab
return task->get_future();
}
RdsClient::ClearDedicatedHostOutcome RdsClient::clearDedicatedHost(const ClearDedicatedHostRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ClearDedicatedHostOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ClearDedicatedHostOutcome(ClearDedicatedHostResult(outcome.result()));
else
return ClearDedicatedHostOutcome(outcome.error());
}
void RdsClient::clearDedicatedHostAsync(const ClearDedicatedHostRequest& request, const ClearDedicatedHostAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, clearDedicatedHost(request), context);
};
asyncExecute(new Runnable(fn));
}
RdsClient::ClearDedicatedHostOutcomeCallable RdsClient::clearDedicatedHostCallable(const ClearDedicatedHostRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ClearDedicatedHostOutcome()>>(
[this, request]()
{
return this->clearDedicatedHost(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
RdsClient::CloneDBInstanceOutcome RdsClient::cloneDBInstance(const CloneDBInstanceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -807,42 +771,6 @@ RdsClient::CreateDdrInstanceOutcomeCallable RdsClient::createDdrInstanceCallable
return task->get_future();
}
RdsClient::CreateDedicatedHostOutcome RdsClient::createDedicatedHost(const CreateDedicatedHostRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateDedicatedHostOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateDedicatedHostOutcome(CreateDedicatedHostResult(outcome.result()));
else
return CreateDedicatedHostOutcome(outcome.error());
}
void RdsClient::createDedicatedHostAsync(const CreateDedicatedHostRequest& request, const CreateDedicatedHostAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createDedicatedHost(request), context);
};
asyncExecute(new Runnable(fn));
}
RdsClient::CreateDedicatedHostOutcomeCallable RdsClient::createDedicatedHostCallable(const CreateDedicatedHostRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateDedicatedHostOutcome()>>(
[this, request]()
{
return this->createDedicatedHost(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
RdsClient::CreateDiagnosticReportOutcome RdsClient::createDiagnosticReport(const CreateDiagnosticReportRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -879,42 +807,6 @@ RdsClient::CreateDiagnosticReportOutcomeCallable RdsClient::createDiagnosticRepo
return task->get_future();
}
RdsClient::CreateHostAccountOutcome RdsClient::createHostAccount(const CreateHostAccountRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateHostAccountOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateHostAccountOutcome(CreateHostAccountResult(outcome.result()));
else
return CreateHostAccountOutcome(outcome.error());
}
void RdsClient::createHostAccountAsync(const CreateHostAccountRequest& request, const CreateHostAccountAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createHostAccount(request), context);
};
asyncExecute(new Runnable(fn));
}
RdsClient::CreateHostAccountOutcomeCallable RdsClient::createHostAccountCallable(const CreateHostAccountRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateHostAccountOutcome()>>(
[this, request]()
{
return this->createHostAccount(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
RdsClient::CreateMigrateTaskOutcome RdsClient::createMigrateTask(const CreateMigrateTaskRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -2895,42 +2787,6 @@ RdsClient::DescribeDatabasesOutcomeCallable RdsClient::describeDatabasesCallable
return task->get_future();
}
RdsClient::DescribeDedicatedHostAttributeOutcome RdsClient::describeDedicatedHostAttribute(const DescribeDedicatedHostAttributeRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeDedicatedHostAttributeOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeDedicatedHostAttributeOutcome(DescribeDedicatedHostAttributeResult(outcome.result()));
else
return DescribeDedicatedHostAttributeOutcome(outcome.error());
}
void RdsClient::describeDedicatedHostAttributeAsync(const DescribeDedicatedHostAttributeRequest& request, const DescribeDedicatedHostAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeDedicatedHostAttribute(request), context);
};
asyncExecute(new Runnable(fn));
}
RdsClient::DescribeDedicatedHostAttributeOutcomeCallable RdsClient::describeDedicatedHostAttributeCallable(const DescribeDedicatedHostAttributeRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeDedicatedHostAttributeOutcome()>>(
[this, request]()
{
return this->describeDedicatedHostAttribute(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
RdsClient::DescribeDedicatedHostGroupsOutcome RdsClient::describeDedicatedHostGroups(const DescribeDedicatedHostGroupsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -2967,42 +2823,6 @@ RdsClient::DescribeDedicatedHostGroupsOutcomeCallable RdsClient::describeDedicat
return task->get_future();
}
RdsClient::DescribeDedicatedHostImageCategoriesOutcome RdsClient::describeDedicatedHostImageCategories(const DescribeDedicatedHostImageCategoriesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeDedicatedHostImageCategoriesOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeDedicatedHostImageCategoriesOutcome(DescribeDedicatedHostImageCategoriesResult(outcome.result()));
else
return DescribeDedicatedHostImageCategoriesOutcome(outcome.error());
}
void RdsClient::describeDedicatedHostImageCategoriesAsync(const DescribeDedicatedHostImageCategoriesRequest& request, const DescribeDedicatedHostImageCategoriesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeDedicatedHostImageCategories(request), context);
};
asyncExecute(new Runnable(fn));
}
RdsClient::DescribeDedicatedHostImageCategoriesOutcomeCallable RdsClient::describeDedicatedHostImageCategoriesCallable(const DescribeDedicatedHostImageCategoriesRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeDedicatedHostImageCategoriesOutcome()>>(
[this, request]()
{
return this->describeDedicatedHostImageCategories(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
RdsClient::DescribeDedicatedHostsOutcome RdsClient::describeDedicatedHosts(const DescribeDedicatedHostsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -3219,42 +3039,6 @@ RdsClient::DescribeHASwitchConfigOutcomeCallable RdsClient::describeHASwitchConf
return task->get_future();
}
RdsClient::DescribeHostAccountsOutcome RdsClient::describeHostAccounts(const DescribeHostAccountsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeHostAccountsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeHostAccountsOutcome(DescribeHostAccountsResult(outcome.result()));
else
return DescribeHostAccountsOutcome(outcome.error());
}
void RdsClient::describeHostAccountsAsync(const DescribeHostAccountsRequest& request, const DescribeHostAccountsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeHostAccounts(request), context);
};
asyncExecute(new Runnable(fn));
}
RdsClient::DescribeHostAccountsOutcomeCallable RdsClient::describeHostAccountsCallable(const DescribeHostAccountsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeHostAccountsOutcome()>>(
[this, request]()
{
return this->describeHostAccounts(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
RdsClient::DescribeInstanceAutoRenewalAttributeOutcome RdsClient::describeInstanceAutoRenewalAttribute(const DescribeInstanceAutoRenewalAttributeRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -3579,42 +3363,6 @@ RdsClient::DescribeModifyParameterLogOutcomeCallable RdsClient::describeModifyPa
return task->get_future();
}
RdsClient::DescribeNextEventForSignOutcome RdsClient::describeNextEventForSign(const DescribeNextEventForSignRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeNextEventForSignOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeNextEventForSignOutcome(DescribeNextEventForSignResult(outcome.result()));
else
return DescribeNextEventForSignOutcome(outcome.error());
}
void RdsClient::describeNextEventForSignAsync(const DescribeNextEventForSignRequest& request, const DescribeNextEventForSignAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeNextEventForSign(request), context);
};
asyncExecute(new Runnable(fn));
}
RdsClient::DescribeNextEventForSignOutcomeCallable RdsClient::describeNextEventForSignCallable(const DescribeNextEventForSignRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeNextEventForSignOutcome()>>(
[this, request]()
{
return this->describeNextEventForSign(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
RdsClient::DescribeOssDownloadsOutcome RdsClient::describeOssDownloads(const DescribeOssDownloadsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -4335,42 +4083,6 @@ RdsClient::DescribeSecurityGroupConfigurationOutcomeCallable RdsClient::describe
return task->get_future();
}
RdsClient::DescribeSignedEventActionsOutcome RdsClient::describeSignedEventActions(const DescribeSignedEventActionsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeSignedEventActionsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeSignedEventActionsOutcome(DescribeSignedEventActionsResult(outcome.result()));
else
return DescribeSignedEventActionsOutcome(outcome.error());
}
void RdsClient::describeSignedEventActionsAsync(const DescribeSignedEventActionsRequest& request, const DescribeSignedEventActionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeSignedEventActions(request), context);
};
asyncExecute(new Runnable(fn));
}
RdsClient::DescribeSignedEventActionsOutcomeCallable RdsClient::describeSignedEventActionsCallable(const DescribeSignedEventActionsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeSignedEventActionsOutcome()>>(
[this, request]()
{
return this->describeSignedEventActions(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
RdsClient::DescribeSlowLogRecordsOutcome RdsClient::describeSlowLogRecords(const DescribeSlowLogRecordsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -4551,42 +4263,6 @@ RdsClient::DestroyDBInstanceOutcomeCallable RdsClient::destroyDBInstanceCallable
return task->get_future();
}
RdsClient::GetDBInstanceTopologyOutcome RdsClient::getDBInstanceTopology(const GetDBInstanceTopologyRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetDBInstanceTopologyOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetDBInstanceTopologyOutcome(GetDBInstanceTopologyResult(outcome.result()));
else
return GetDBInstanceTopologyOutcome(outcome.error());
}
void RdsClient::getDBInstanceTopologyAsync(const GetDBInstanceTopologyRequest& request, const GetDBInstanceTopologyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getDBInstanceTopology(request), context);
};
asyncExecute(new Runnable(fn));
}
RdsClient::GetDBInstanceTopologyOutcomeCallable RdsClient::getDBInstanceTopologyCallable(const GetDBInstanceTopologyRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetDBInstanceTopologyOutcome()>>(
[this, request]()
{
return this->getDBInstanceTopology(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
RdsClient::GetDbProxyInstanceSslOutcome RdsClient::getDbProxyInstanceSsl(const GetDbProxyInstanceSslRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -5019,42 +4695,6 @@ RdsClient::ModifyActionEventPolicyOutcomeCallable RdsClient::modifyActionEventPo
return task->get_future();
}
RdsClient::ModifyActionEventVerifyPolicyOutcome RdsClient::modifyActionEventVerifyPolicy(const ModifyActionEventVerifyPolicyRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ModifyActionEventVerifyPolicyOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ModifyActionEventVerifyPolicyOutcome(ModifyActionEventVerifyPolicyResult(outcome.result()));
else
return ModifyActionEventVerifyPolicyOutcome(outcome.error());
}
void RdsClient::modifyActionEventVerifyPolicyAsync(const ModifyActionEventVerifyPolicyRequest& request, const ModifyActionEventVerifyPolicyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, modifyActionEventVerifyPolicy(request), context);
};
asyncExecute(new Runnable(fn));
}
RdsClient::ModifyActionEventVerifyPolicyOutcomeCallable RdsClient::modifyActionEventVerifyPolicyCallable(const ModifyActionEventVerifyPolicyRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ModifyActionEventVerifyPolicyOutcome()>>(
[this, request]()
{
return this->modifyActionEventVerifyPolicy(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
RdsClient::ModifyBackupPolicyOutcome RdsClient::modifyBackupPolicy(const ModifyBackupPolicyRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -5919,114 +5559,6 @@ RdsClient::ModifyDbProxyInstanceSslOutcomeCallable RdsClient::modifyDbProxyInsta
return task->get_future();
}
RdsClient::ModifyDedicatedHostAccountOutcome RdsClient::modifyDedicatedHostAccount(const ModifyDedicatedHostAccountRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ModifyDedicatedHostAccountOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ModifyDedicatedHostAccountOutcome(ModifyDedicatedHostAccountResult(outcome.result()));
else
return ModifyDedicatedHostAccountOutcome(outcome.error());
}
void RdsClient::modifyDedicatedHostAccountAsync(const ModifyDedicatedHostAccountRequest& request, const ModifyDedicatedHostAccountAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, modifyDedicatedHostAccount(request), context);
};
asyncExecute(new Runnable(fn));
}
RdsClient::ModifyDedicatedHostAccountOutcomeCallable RdsClient::modifyDedicatedHostAccountCallable(const ModifyDedicatedHostAccountRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ModifyDedicatedHostAccountOutcome()>>(
[this, request]()
{
return this->modifyDedicatedHostAccount(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
RdsClient::ModifyDedicatedHostAttributeOutcome RdsClient::modifyDedicatedHostAttribute(const ModifyDedicatedHostAttributeRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ModifyDedicatedHostAttributeOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ModifyDedicatedHostAttributeOutcome(ModifyDedicatedHostAttributeResult(outcome.result()));
else
return ModifyDedicatedHostAttributeOutcome(outcome.error());
}
void RdsClient::modifyDedicatedHostAttributeAsync(const ModifyDedicatedHostAttributeRequest& request, const ModifyDedicatedHostAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, modifyDedicatedHostAttribute(request), context);
};
asyncExecute(new Runnable(fn));
}
RdsClient::ModifyDedicatedHostAttributeOutcomeCallable RdsClient::modifyDedicatedHostAttributeCallable(const ModifyDedicatedHostAttributeRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ModifyDedicatedHostAttributeOutcome()>>(
[this, request]()
{
return this->modifyDedicatedHostAttribute(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
RdsClient::ModifyDedicatedHostGroupAttributeOutcome RdsClient::modifyDedicatedHostGroupAttribute(const ModifyDedicatedHostGroupAttributeRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ModifyDedicatedHostGroupAttributeOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ModifyDedicatedHostGroupAttributeOutcome(ModifyDedicatedHostGroupAttributeResult(outcome.result()));
else
return ModifyDedicatedHostGroupAttributeOutcome(outcome.error());
}
void RdsClient::modifyDedicatedHostGroupAttributeAsync(const ModifyDedicatedHostGroupAttributeRequest& request, const ModifyDedicatedHostGroupAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, modifyDedicatedHostGroupAttribute(request), context);
};
asyncExecute(new Runnable(fn));
}
RdsClient::ModifyDedicatedHostGroupAttributeOutcomeCallable RdsClient::modifyDedicatedHostGroupAttributeCallable(const ModifyDedicatedHostGroupAttributeRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ModifyDedicatedHostGroupAttributeOutcome()>>(
[this, request]()
{
return this->modifyDedicatedHostGroupAttribute(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
RdsClient::ModifyHASwitchConfigOutcome RdsClient::modifyHASwitchConfig(const ModifyHASwitchConfigRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -6135,42 +5667,6 @@ RdsClient::ModifyInstanceCrossBackupPolicyOutcomeCallable RdsClient::modifyInsta
return task->get_future();
}
RdsClient::ModifyLicenseInfoOutcome RdsClient::modifyLicenseInfo(const ModifyLicenseInfoRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ModifyLicenseInfoOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ModifyLicenseInfoOutcome(ModifyLicenseInfoResult(outcome.result()));
else
return ModifyLicenseInfoOutcome(outcome.error());
}
void RdsClient::modifyLicenseInfoAsync(const ModifyLicenseInfoRequest& request, const ModifyLicenseInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, modifyLicenseInfo(request), context);
};
asyncExecute(new Runnable(fn));
}
RdsClient::ModifyLicenseInfoOutcomeCallable RdsClient::modifyLicenseInfoCallable(const ModifyLicenseInfoRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ModifyLicenseInfoOutcome()>>(
[this, request]()
{
return this->modifyLicenseInfo(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
RdsClient::ModifyParameterOutcome RdsClient::modifyParameter(const ModifyParameterRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -6783,42 +6279,6 @@ RdsClient::RenewInstanceOutcomeCallable RdsClient::renewInstanceCallable(const R
return task->get_future();
}
RdsClient::ReplaceDedicatedHostOutcome RdsClient::replaceDedicatedHost(const ReplaceDedicatedHostRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ReplaceDedicatedHostOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ReplaceDedicatedHostOutcome(ReplaceDedicatedHostResult(outcome.result()));
else
return ReplaceDedicatedHostOutcome(outcome.error());
}
void RdsClient::replaceDedicatedHostAsync(const ReplaceDedicatedHostRequest& request, const ReplaceDedicatedHostAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, replaceDedicatedHost(request), context);
};
asyncExecute(new Runnable(fn));
}
RdsClient::ReplaceDedicatedHostOutcomeCallable RdsClient::replaceDedicatedHostCallable(const ReplaceDedicatedHostRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ReplaceDedicatedHostOutcome()>>(
[this, request]()
{
return this->replaceDedicatedHost(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
RdsClient::ResetAccountOutcome RdsClient::resetAccount(const ResetAccountRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -6927,42 +6387,6 @@ RdsClient::ResetAccountPasswordOutcomeCallable RdsClient::resetAccountPasswordCa
return task->get_future();
}
RdsClient::ResetHostAccountPasswordOutcome RdsClient::resetHostAccountPassword(const ResetHostAccountPasswordRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ResetHostAccountPasswordOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ResetHostAccountPasswordOutcome(ResetHostAccountPasswordResult(outcome.result()));
else
return ResetHostAccountPasswordOutcome(outcome.error());
}
void RdsClient::resetHostAccountPasswordAsync(const ResetHostAccountPasswordRequest& request, const ResetHostAccountPasswordAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, resetHostAccountPassword(request), context);
};
asyncExecute(new Runnable(fn));
}
RdsClient::ResetHostAccountPasswordOutcomeCallable RdsClient::resetHostAccountPasswordCallable(const ResetHostAccountPasswordRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ResetHostAccountPasswordOutcome()>>(
[this, request]()
{
return this->resetHostAccountPassword(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
RdsClient::RestartDBInstanceOutcome RdsClient::restartDBInstance(const RestartDBInstanceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -6999,42 +6423,6 @@ RdsClient::RestartDBInstanceOutcomeCallable RdsClient::restartDBInstanceCallable
return task->get_future();
}
RdsClient::RestartDedicatedHostOutcome RdsClient::restartDedicatedHost(const RestartDedicatedHostRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return RestartDedicatedHostOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return RestartDedicatedHostOutcome(RestartDedicatedHostResult(outcome.result()));
else
return RestartDedicatedHostOutcome(outcome.error());
}
void RdsClient::restartDedicatedHostAsync(const RestartDedicatedHostRequest& request, const RestartDedicatedHostAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, restartDedicatedHost(request), context);
};
asyncExecute(new Runnable(fn));
}
RdsClient::RestartDedicatedHostOutcomeCallable RdsClient::restartDedicatedHostCallable(const RestartDedicatedHostRequest &request) const
{
auto task = std::make_shared<std::packaged_task<RestartDedicatedHostOutcome()>>(
[this, request]()
{
return this->restartDedicatedHost(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
RdsClient::RestoreDdrTableOutcome RdsClient::restoreDdrTable(const RestoreDdrTableRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -7179,42 +6567,6 @@ RdsClient::RevokeOperatorPermissionOutcomeCallable RdsClient::revokeOperatorPerm
return task->get_future();
}
RdsClient::SignEventActionOutcome RdsClient::signEventAction(const SignEventActionRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return SignEventActionOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return SignEventActionOutcome(SignEventActionResult(outcome.result()));
else
return SignEventActionOutcome(outcome.error());
}
void RdsClient::signEventActionAsync(const SignEventActionRequest& request, const SignEventActionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, signEventAction(request), context);
};
asyncExecute(new Runnable(fn));
}
RdsClient::SignEventActionOutcomeCallable RdsClient::signEventActionCallable(const SignEventActionRequest &request) const
{
auto task = std::make_shared<std::packaged_task<SignEventActionOutcome()>>(
[this, request]()
{
return this->signEventAction(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
RdsClient::StartDBInstanceOutcome RdsClient::startDBInstance(const StartDBInstanceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -1,106 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/rds/model/ClearDedicatedHostRequest.h>
using AlibabaCloud::Rds::Model::ClearDedicatedHostRequest;
ClearDedicatedHostRequest::ClearDedicatedHostRequest() :
RpcServiceRequest("rds", "2014-08-15", "ClearDedicatedHost")
{
setMethod(HttpRequest::Method::Post);
}
ClearDedicatedHostRequest::~ClearDedicatedHostRequest()
{}
long ClearDedicatedHostRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void ClearDedicatedHostRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string ClearDedicatedHostRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void ClearDedicatedHostRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string ClearDedicatedHostRequest::getDedicatedHostId()const
{
return dedicatedHostId_;
}
void ClearDedicatedHostRequest::setDedicatedHostId(const std::string& dedicatedHostId)
{
dedicatedHostId_ = dedicatedHostId;
setParameter("DedicatedHostId", dedicatedHostId);
}
long ClearDedicatedHostRequest::getOwnerId()const
{
return ownerId_;
}
void ClearDedicatedHostRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string ClearDedicatedHostRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void ClearDedicatedHostRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string ClearDedicatedHostRequest::getRegionId()const
{
return regionId_;
}
void ClearDedicatedHostRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string ClearDedicatedHostRequest::getFailoverMode()const
{
return failoverMode_;
}
void ClearDedicatedHostRequest::setFailoverMode(const std::string& failoverMode)
{
failoverMode_ = failoverMode;
setParameter("FailoverMode", failoverMode);
}

View File

@@ -1,58 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/rds/model/ClearDedicatedHostResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Rds;
using namespace AlibabaCloud::Rds::Model;
ClearDedicatedHostResult::ClearDedicatedHostResult() :
ServiceResult()
{}
ClearDedicatedHostResult::ClearDedicatedHostResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ClearDedicatedHostResult::~ClearDedicatedHostResult()
{}
void ClearDedicatedHostResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["TaskId"].isNull())
taskId_ = value["TaskId"].asString();
if(!value["DedicatedHostId"].isNull())
dedicatedHostId_ = value["DedicatedHostId"].asString();
}
std::string ClearDedicatedHostResult::getDedicatedHostId()const
{
return dedicatedHostId_;
}
std::string ClearDedicatedHostResult::getTaskId()const
{
return taskId_;
}

View File

@@ -1,194 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/rds/model/CreateDedicatedHostRequest.h>
using AlibabaCloud::Rds::Model::CreateDedicatedHostRequest;
CreateDedicatedHostRequest::CreateDedicatedHostRequest() :
RpcServiceRequest("rds", "2014-08-15", "CreateDedicatedHost")
{
setMethod(HttpRequest::Method::Post);
}
CreateDedicatedHostRequest::~CreateDedicatedHostRequest()
{}
long CreateDedicatedHostRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateDedicatedHostRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateDedicatedHostRequest::getClientToken()const
{
return clientToken_;
}
void CreateDedicatedHostRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string CreateDedicatedHostRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void CreateDedicatedHostRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string CreateDedicatedHostRequest::getHostName()const
{
return hostName_;
}
void CreateDedicatedHostRequest::setHostName(const std::string& hostName)
{
hostName_ = hostName;
setParameter("HostName", hostName);
}
std::string CreateDedicatedHostRequest::getRegionId()const
{
return regionId_;
}
void CreateDedicatedHostRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string CreateDedicatedHostRequest::getDedicatedHostGroupId()const
{
return dedicatedHostGroupId_;
}
void CreateDedicatedHostRequest::setDedicatedHostGroupId(const std::string& dedicatedHostGroupId)
{
dedicatedHostGroupId_ = dedicatedHostGroupId;
setParameter("DedicatedHostGroupId", dedicatedHostGroupId);
}
std::string CreateDedicatedHostRequest::getPeriod()const
{
return period_;
}
void CreateDedicatedHostRequest::setPeriod(const std::string& period)
{
period_ = period;
setParameter("Period", period);
}
std::string CreateDedicatedHostRequest::getHostClass()const
{
return hostClass_;
}
void CreateDedicatedHostRequest::setHostClass(const std::string& hostClass)
{
hostClass_ = hostClass;
setParameter("HostClass", hostClass);
}
std::string CreateDedicatedHostRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CreateDedicatedHostRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long CreateDedicatedHostRequest::getOwnerId()const
{
return ownerId_;
}
void CreateDedicatedHostRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string CreateDedicatedHostRequest::getUsedTime()const
{
return usedTime_;
}
void CreateDedicatedHostRequest::setUsedTime(const std::string& usedTime)
{
usedTime_ = usedTime;
setParameter("UsedTime", usedTime);
}
std::string CreateDedicatedHostRequest::getVSwitchId()const
{
return vSwitchId_;
}
void CreateDedicatedHostRequest::setVSwitchId(const std::string& vSwitchId)
{
vSwitchId_ = vSwitchId;
setParameter("VSwitchId", vSwitchId);
}
std::string CreateDedicatedHostRequest::getAutoRenew()const
{
return autoRenew_;
}
void CreateDedicatedHostRequest::setAutoRenew(const std::string& autoRenew)
{
autoRenew_ = autoRenew;
setParameter("AutoRenew", autoRenew);
}
std::string CreateDedicatedHostRequest::getZoneId()const
{
return zoneId_;
}
void CreateDedicatedHostRequest::setZoneId(const std::string& zoneId)
{
zoneId_ = zoneId;
setParameter("ZoneId", zoneId);
}
std::string CreateDedicatedHostRequest::getPayType()const
{
return payType_;
}
void CreateDedicatedHostRequest::setPayType(const std::string& payType)
{
payType_ = payType;
setParameter("PayType", payType);
}

View File

@@ -1,64 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/rds/model/CreateDedicatedHostResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Rds;
using namespace AlibabaCloud::Rds::Model;
CreateDedicatedHostResult::CreateDedicatedHostResult() :
ServiceResult()
{}
CreateDedicatedHostResult::CreateDedicatedHostResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateDedicatedHostResult::~CreateDedicatedHostResult()
{}
void CreateDedicatedHostResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDedicateHostListNode = value["DedicateHostList"]["DedicateHostListItem"];
for (auto valueDedicateHostListDedicateHostListItem : allDedicateHostListNode)
{
DedicateHostListItem dedicateHostListObject;
if(!valueDedicateHostListDedicateHostListItem["DedicatedHostId"].isNull())
dedicateHostListObject.dedicatedHostId = valueDedicateHostListDedicateHostListItem["DedicatedHostId"].asString();
dedicateHostList_.push_back(dedicateHostListObject);
}
if(!value["OrderId"].isNull())
orderId_ = std::stol(value["OrderId"].asString());
}
std::vector<CreateDedicatedHostResult::DedicateHostListItem> CreateDedicatedHostResult::getDedicateHostList()const
{
return dedicateHostList_;
}
long CreateDedicatedHostResult::getOrderId()const
{
return orderId_;
}

View File

@@ -1,139 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/rds/model/CreateHostAccountRequest.h>
using AlibabaCloud::Rds::Model::CreateHostAccountRequest;
CreateHostAccountRequest::CreateHostAccountRequest() :
RpcServiceRequest("rds", "2014-08-15", "CreateHostAccount")
{
setMethod(HttpRequest::Method::Post);
}
CreateHostAccountRequest::~CreateHostAccountRequest()
{}
long CreateHostAccountRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateHostAccountRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateHostAccountRequest::getClientToken()const
{
return clientToken_;
}
void CreateHostAccountRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string CreateHostAccountRequest::getAccountType()const
{
return accountType_;
}
void CreateHostAccountRequest::setAccountType(const std::string& accountType)
{
accountType_ = accountType;
setParameter("AccountType", accountType);
}
std::string CreateHostAccountRequest::getAccountDescription()const
{
return accountDescription_;
}
void CreateHostAccountRequest::setAccountDescription(const std::string& accountDescription)
{
accountDescription_ = accountDescription;
setParameter("AccountDescription", accountDescription);
}
std::string CreateHostAccountRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void CreateHostAccountRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string CreateHostAccountRequest::getAccountName()const
{
return accountName_;
}
void CreateHostAccountRequest::setAccountName(const std::string& accountName)
{
accountName_ = accountName;
setParameter("AccountName", accountName);
}
std::string CreateHostAccountRequest::getDBInstanceId()const
{
return dBInstanceId_;
}
void CreateHostAccountRequest::setDBInstanceId(const std::string& dBInstanceId)
{
dBInstanceId_ = dBInstanceId;
setParameter("DBInstanceId", dBInstanceId);
}
std::string CreateHostAccountRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CreateHostAccountRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long CreateHostAccountRequest::getOwnerId()const
{
return ownerId_;
}
void CreateHostAccountRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string CreateHostAccountRequest::getAccountPassword()const
{
return accountPassword_;
}
void CreateHostAccountRequest::setAccountPassword(const std::string& accountPassword)
{
accountPassword_ = accountPassword;
setParameter("AccountPassword", accountPassword);
}

View File

@@ -1,44 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/rds/model/CreateHostAccountResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Rds;
using namespace AlibabaCloud::Rds::Model;
CreateHostAccountResult::CreateHostAccountResult() :
ServiceResult()
{}
CreateHostAccountResult::CreateHostAccountResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateHostAccountResult::~CreateHostAccountResult()
{}
void CreateHostAccountResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -1,106 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/rds/model/DescribeDedicatedHostAttributeRequest.h>
using AlibabaCloud::Rds::Model::DescribeDedicatedHostAttributeRequest;
DescribeDedicatedHostAttributeRequest::DescribeDedicatedHostAttributeRequest() :
RpcServiceRequest("rds", "2014-08-15", "DescribeDedicatedHostAttribute")
{
setMethod(HttpRequest::Method::Post);
}
DescribeDedicatedHostAttributeRequest::~DescribeDedicatedHostAttributeRequest()
{}
long DescribeDedicatedHostAttributeRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DescribeDedicatedHostAttributeRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DescribeDedicatedHostAttributeRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DescribeDedicatedHostAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DescribeDedicatedHostAttributeRequest::getDedicatedHostId()const
{
return dedicatedHostId_;
}
void DescribeDedicatedHostAttributeRequest::setDedicatedHostId(const std::string& dedicatedHostId)
{
dedicatedHostId_ = dedicatedHostId;
setParameter("DedicatedHostId", dedicatedHostId);
}
long DescribeDedicatedHostAttributeRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeDedicatedHostAttributeRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeDedicatedHostAttributeRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeDedicatedHostAttributeRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string DescribeDedicatedHostAttributeRequest::getRegionId()const
{
return regionId_;
}
void DescribeDedicatedHostAttributeRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DescribeDedicatedHostAttributeRequest::getDedicatedHostGroupId()const
{
return dedicatedHostGroupId_;
}
void DescribeDedicatedHostAttributeRequest::setDedicatedHostGroupId(const std::string& dedicatedHostGroupId)
{
dedicatedHostGroupId_ = dedicatedHostGroupId;
setParameter("DedicatedHostGroupId", dedicatedHostGroupId);
}

View File

@@ -1,268 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/rds/model/DescribeDedicatedHostAttributeResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Rds;
using namespace AlibabaCloud::Rds::Model;
DescribeDedicatedHostAttributeResult::DescribeDedicatedHostAttributeResult() :
ServiceResult()
{}
DescribeDedicatedHostAttributeResult::DescribeDedicatedHostAttributeResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDedicatedHostAttributeResult::~DescribeDedicatedHostAttributeResult()
{}
void DescribeDedicatedHostAttributeResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["DedicatedHostGroupId"].isNull())
dedicatedHostGroupId_ = value["DedicatedHostGroupId"].asString();
if(!value["DedicatedHostId"].isNull())
dedicatedHostId_ = value["DedicatedHostId"].asString();
if(!value["RegionId"].isNull())
regionId_ = value["RegionId"].asString();
if(!value["ZoneId"].isNull())
zoneId_ = value["ZoneId"].asString();
if(!value["VPCId"].isNull())
vPCId_ = value["VPCId"].asString();
if(!value["VSwitchId"].isNull())
vSwitchId_ = value["VSwitchId"].asString();
if(!value["IPAddress"].isNull())
iPAddress_ = value["IPAddress"].asString();
if(!value["HostName"].isNull())
hostName_ = value["HostName"].asString();
if(!value["HostStatus"].isNull())
hostStatus_ = value["HostStatus"].asString();
if(!value["HostClass"].isNull())
hostClass_ = value["HostClass"].asString();
if(!value["HostCPU"].isNull())
hostCPU_ = std::stoi(value["HostCPU"].asString());
if(!value["HostMem"].isNull())
hostMem_ = std::stoi(value["HostMem"].asString());
if(!value["HostStorage"].isNull())
hostStorage_ = std::stoi(value["HostStorage"].asString());
if(!value["CPUAllocationRatio"].isNull())
cPUAllocationRatio_ = value["CPUAllocationRatio"].asString();
if(!value["MemAllocationRatio"].isNull())
memAllocationRatio_ = value["MemAllocationRatio"].asString();
if(!value["DiskAllocationRatio"].isNull())
diskAllocationRatio_ = value["DiskAllocationRatio"].asString();
if(!value["InstanceNumber"].isNull())
instanceNumber_ = std::stoi(value["InstanceNumber"].asString());
if(!value["InstanceNumberMaster"].isNull())
instanceNumberMaster_ = std::stoi(value["InstanceNumberMaster"].asString());
if(!value["InstanceNumberSlave"].isNull())
instanceNumberSlave_ = std::stoi(value["InstanceNumberSlave"].asString());
if(!value["InstanceNumberROMaster"].isNull())
instanceNumberROMaster_ = std::stoi(value["InstanceNumberROMaster"].asString());
if(!value["InstanceNumberROSlave"].isNull())
instanceNumberROSlave_ = std::stoi(value["InstanceNumberROSlave"].asString());
if(!value["CreatedTime"].isNull())
createdTime_ = value["CreatedTime"].asString();
if(!value["ExpiredTime"].isNull())
expiredTime_ = value["ExpiredTime"].asString();
if(!value["AutoRenew"].isNull())
autoRenew_ = value["AutoRenew"].asString();
if(!value["AllocationStatus"].isNull())
allocationStatus_ = value["AllocationStatus"].asString();
if(!value["CpuUsed"].isNull())
cpuUsed_ = value["CpuUsed"].asString();
if(!value["MemoryUsed"].isNull())
memoryUsed_ = value["MemoryUsed"].asString();
if(!value["StorageUsed"].isNull())
storageUsed_ = value["StorageUsed"].asString();
if(!value["HostType"].isNull())
hostType_ = value["HostType"].asString();
if(!value["AccountName"].isNull())
accountName_ = value["AccountName"].asString();
if(!value["OpenPermission"].isNull())
openPermission_ = value["OpenPermission"].asString();
if(!value["ImageCategory"].isNull())
imageCategory_ = value["ImageCategory"].asString();
}
std::string DescribeDedicatedHostAttributeResult::getCPUAllocationRatio()const
{
return cPUAllocationRatio_;
}
std::string DescribeDedicatedHostAttributeResult::getDiskAllocationRatio()const
{
return diskAllocationRatio_;
}
std::string DescribeDedicatedHostAttributeResult::getDedicatedHostId()const
{
return dedicatedHostId_;
}
int DescribeDedicatedHostAttributeResult::getInstanceNumber()const
{
return instanceNumber_;
}
std::string DescribeDedicatedHostAttributeResult::getCreatedTime()const
{
return createdTime_;
}
std::string DescribeDedicatedHostAttributeResult::getDedicatedHostGroupId()const
{
return dedicatedHostGroupId_;
}
std::string DescribeDedicatedHostAttributeResult::getAutoRenew()const
{
return autoRenew_;
}
std::string DescribeDedicatedHostAttributeResult::getImageCategory()const
{
return imageCategory_;
}
int DescribeDedicatedHostAttributeResult::getHostStorage()const
{
return hostStorage_;
}
int DescribeDedicatedHostAttributeResult::getInstanceNumberSlave()const
{
return instanceNumberSlave_;
}
std::string DescribeDedicatedHostAttributeResult::getOpenPermission()const
{
return openPermission_;
}
std::string DescribeDedicatedHostAttributeResult::getHostType()const
{
return hostType_;
}
std::string DescribeDedicatedHostAttributeResult::getExpiredTime()const
{
return expiredTime_;
}
int DescribeDedicatedHostAttributeResult::getHostMem()const
{
return hostMem_;
}
std::string DescribeDedicatedHostAttributeResult::getHostStatus()const
{
return hostStatus_;
}
std::string DescribeDedicatedHostAttributeResult::getMemoryUsed()const
{
return memoryUsed_;
}
std::string DescribeDedicatedHostAttributeResult::getCpuUsed()const
{
return cpuUsed_;
}
std::string DescribeDedicatedHostAttributeResult::getHostName()const
{
return hostName_;
}
int DescribeDedicatedHostAttributeResult::getInstanceNumberROSlave()const
{
return instanceNumberROSlave_;
}
std::string DescribeDedicatedHostAttributeResult::getAllocationStatus()const
{
return allocationStatus_;
}
std::string DescribeDedicatedHostAttributeResult::getZoneId()const
{
return zoneId_;
}
std::string DescribeDedicatedHostAttributeResult::getMemAllocationRatio()const
{
return memAllocationRatio_;
}
std::string DescribeDedicatedHostAttributeResult::getVPCId()const
{
return vPCId_;
}
int DescribeDedicatedHostAttributeResult::getInstanceNumberROMaster()const
{
return instanceNumberROMaster_;
}
std::string DescribeDedicatedHostAttributeResult::getVSwitchId()const
{
return vSwitchId_;
}
int DescribeDedicatedHostAttributeResult::getInstanceNumberMaster()const
{
return instanceNumberMaster_;
}
std::string DescribeDedicatedHostAttributeResult::getStorageUsed()const
{
return storageUsed_;
}
std::string DescribeDedicatedHostAttributeResult::getHostClass()const
{
return hostClass_;
}
int DescribeDedicatedHostAttributeResult::getHostCPU()const
{
return hostCPU_;
}
std::string DescribeDedicatedHostAttributeResult::getRegionId()const
{
return regionId_;
}
std::string DescribeDedicatedHostAttributeResult::getIPAddress()const
{
return iPAddress_;
}
std::string DescribeDedicatedHostAttributeResult::getAccountName()const
{
return accountName_;
}

View File

@@ -1,95 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/rds/model/DescribeDedicatedHostImageCategoriesRequest.h>
using AlibabaCloud::Rds::Model::DescribeDedicatedHostImageCategoriesRequest;
DescribeDedicatedHostImageCategoriesRequest::DescribeDedicatedHostImageCategoriesRequest() :
RpcServiceRequest("rds", "2014-08-15", "DescribeDedicatedHostImageCategories")
{
setMethod(HttpRequest::Method::Post);
}
DescribeDedicatedHostImageCategoriesRequest::~DescribeDedicatedHostImageCategoriesRequest()
{}
long DescribeDedicatedHostImageCategoriesRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DescribeDedicatedHostImageCategoriesRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DescribeDedicatedHostImageCategoriesRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DescribeDedicatedHostImageCategoriesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long DescribeDedicatedHostImageCategoriesRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeDedicatedHostImageCategoriesRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeDedicatedHostImageCategoriesRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeDedicatedHostImageCategoriesRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string DescribeDedicatedHostImageCategoriesRequest::getRegionId()const
{
return regionId_;
}
void DescribeDedicatedHostImageCategoriesRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DescribeDedicatedHostImageCategoriesRequest::getHostGroup()const
{
return hostGroup_;
}
void DescribeDedicatedHostImageCategoriesRequest::setHostGroup(const std::string& hostGroup)
{
hostGroup_ = hostGroup;
setParameter("HostGroup", hostGroup);
}

View File

@@ -1,59 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/rds/model/DescribeDedicatedHostImageCategoriesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Rds;
using namespace AlibabaCloud::Rds::Model;
DescribeDedicatedHostImageCategoriesResult::DescribeDedicatedHostImageCategoriesResult() :
ServiceResult()
{}
DescribeDedicatedHostImageCategoriesResult::DescribeDedicatedHostImageCategoriesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDedicatedHostImageCategoriesResult::~DescribeDedicatedHostImageCategoriesResult()
{}
void DescribeDedicatedHostImageCategoriesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allImagesNode = value["Images"]["ImagesItem"];
for (auto valueImagesImagesItem : allImagesNode)
{
ImagesItem imagesObject;
if(!valueImagesImagesItem["ImageName"].isNull())
imagesObject.imageName = valueImagesImagesItem["ImageName"].asString();
if(!valueImagesImagesItem["ImageCode"].isNull())
imagesObject.imageCode = valueImagesImagesItem["ImageCode"].asString();
images_.push_back(imagesObject);
}
}
std::vector<DescribeDedicatedHostImageCategoriesResult::ImagesItem> DescribeDedicatedHostImageCategoriesResult::getImages()const
{
return images_;
}

View File

@@ -1,95 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/rds/model/DescribeHostAccountsRequest.h>
using AlibabaCloud::Rds::Model::DescribeHostAccountsRequest;
DescribeHostAccountsRequest::DescribeHostAccountsRequest() :
RpcServiceRequest("rds", "2014-08-15", "DescribeHostAccounts")
{
setMethod(HttpRequest::Method::Post);
}
DescribeHostAccountsRequest::~DescribeHostAccountsRequest()
{}
long DescribeHostAccountsRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DescribeHostAccountsRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DescribeHostAccountsRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DescribeHostAccountsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DescribeHostAccountsRequest::getClientToken()const
{
return clientToken_;
}
void DescribeHostAccountsRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
long DescribeHostAccountsRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeHostAccountsRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeHostAccountsRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeHostAccountsRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string DescribeHostAccountsRequest::getDBInstanceId()const
{
return dBInstanceId_;
}
void DescribeHostAccountsRequest::setDBInstanceId(const std::string& dBInstanceId)
{
dBInstanceId_ = dBInstanceId;
setParameter("DBInstanceId", dBInstanceId);
}

View File

@@ -1,65 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/rds/model/DescribeHostAccountsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Rds;
using namespace AlibabaCloud::Rds::Model;
DescribeHostAccountsResult::DescribeHostAccountsResult() :
ServiceResult()
{}
DescribeHostAccountsResult::DescribeHostAccountsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeHostAccountsResult::~DescribeHostAccountsResult()
{}
void DescribeHostAccountsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allAccountsNode = value["Accounts"]["AccountsItem"];
for (auto valueAccountsAccountsItem : allAccountsNode)
{
AccountsItem accountsObject;
if(!valueAccountsAccountsItem["AccountName"].isNull())
accountsObject.accountName = valueAccountsAccountsItem["AccountName"].asString();
if(!valueAccountsAccountsItem["AccountType"].isNull())
accountsObject.accountType = valueAccountsAccountsItem["AccountType"].asString();
if(!valueAccountsAccountsItem["AccountDescription"].isNull())
accountsObject.accountDescription = valueAccountsAccountsItem["AccountDescription"].asString();
if(!valueAccountsAccountsItem["AccountStatus"].isNull())
accountsObject.accountStatus = valueAccountsAccountsItem["AccountStatus"].asString();
if(!valueAccountsAccountsItem["DBInstanceId"].isNull())
accountsObject.dBInstanceId = valueAccountsAccountsItem["DBInstanceId"].asString();
accounts_.push_back(accountsObject);
}
}
std::vector<DescribeHostAccountsResult::AccountsItem> DescribeHostAccountsResult::getAccounts()const
{
return accounts_;
}

View File

@@ -1,84 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/rds/model/DescribeNextEventForSignRequest.h>
using AlibabaCloud::Rds::Model::DescribeNextEventForSignRequest;
DescribeNextEventForSignRequest::DescribeNextEventForSignRequest() :
RpcServiceRequest("rds", "2014-08-15", "DescribeNextEventForSign")
{
setMethod(HttpRequest::Method::Post);
}
DescribeNextEventForSignRequest::~DescribeNextEventForSignRequest()
{}
long DescribeNextEventForSignRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DescribeNextEventForSignRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DescribeNextEventForSignRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DescribeNextEventForSignRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long DescribeNextEventForSignRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeNextEventForSignRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeNextEventForSignRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeNextEventForSignRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string DescribeNextEventForSignRequest::getRegionId()const
{
return regionId_;
}
void DescribeNextEventForSignRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}

View File

@@ -1,59 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/rds/model/DescribeNextEventForSignResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Rds;
using namespace AlibabaCloud::Rds::Model;
DescribeNextEventForSignResult::DescribeNextEventForSignResult() :
ServiceResult()
{}
DescribeNextEventForSignResult::DescribeNextEventForSignResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeNextEventForSignResult::~DescribeNextEventForSignResult()
{}
void DescribeNextEventForSignResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allEventItemsNode = value["EventItems"]["EventItemsItem"];
for (auto valueEventItemsEventItemsItem : allEventItemsNode)
{
EventItemsItem eventItemsObject;
if(!valueEventItemsEventItemsItem["EventId"].isNull())
eventItemsObject.eventId = std::stoi(valueEventItemsEventItemsItem["EventId"].asString());
if(!valueEventItemsEventItemsItem["EventContent"].isNull())
eventItemsObject.eventContent = valueEventItemsEventItemsItem["EventContent"].asString();
eventItems_.push_back(eventItemsObject);
}
}
std::vector<DescribeNextEventForSignResult::EventItemsItem> DescribeNextEventForSignResult::getEventItems()const
{
return eventItems_;
}

View File

@@ -1,106 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/rds/model/DescribeSignedEventActionsRequest.h>
using AlibabaCloud::Rds::Model::DescribeSignedEventActionsRequest;
DescribeSignedEventActionsRequest::DescribeSignedEventActionsRequest() :
RpcServiceRequest("rds", "2014-08-15", "DescribeSignedEventActions")
{
setMethod(HttpRequest::Method::Post);
}
DescribeSignedEventActionsRequest::~DescribeSignedEventActionsRequest()
{}
long DescribeSignedEventActionsRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DescribeSignedEventActionsRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
int DescribeSignedEventActionsRequest::getBeginEventId()const
{
return beginEventId_;
}
void DescribeSignedEventActionsRequest::setBeginEventId(int beginEventId)
{
beginEventId_ = beginEventId;
setParameter("BeginEventId", std::to_string(beginEventId));
}
std::string DescribeSignedEventActionsRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DescribeSignedEventActionsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long DescribeSignedEventActionsRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeSignedEventActionsRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeSignedEventActionsRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeSignedEventActionsRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string DescribeSignedEventActionsRequest::getRegionId()const
{
return regionId_;
}
void DescribeSignedEventActionsRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
int DescribeSignedEventActionsRequest::getPageSize()const
{
return pageSize_;
}
void DescribeSignedEventActionsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}

View File

@@ -1,91 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/rds/model/DescribeSignedEventActionsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Rds;
using namespace AlibabaCloud::Rds::Model;
DescribeSignedEventActionsResult::DescribeSignedEventActionsResult() :
ServiceResult()
{}
DescribeSignedEventActionsResult::DescribeSignedEventActionsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeSignedEventActionsResult::~DescribeSignedEventActionsResult()
{}
void DescribeSignedEventActionsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allEventItemsNode = value["EventItems"]["EventItemsItem"];
for (auto valueEventItemsEventItemsItem : allEventItemsNode)
{
EventItemsItem eventItemsObject;
if(!valueEventItemsEventItemsItem["EventId"].isNull())
eventItemsObject.eventId = std::stoi(valueEventItemsEventItemsItem["EventId"].asString());
if(!valueEventItemsEventItemsItem["EventContent"].isNull())
eventItemsObject.eventContent = valueEventItemsEventItemsItem["EventContent"].asString();
if(!valueEventItemsEventItemsItem["EventSig"].isNull())
eventItemsObject.eventSig = valueEventItemsEventItemsItem["EventSig"].asString();
if(!valueEventItemsEventItemsItem["EventRcpt"].isNull())
eventItemsObject.eventRcpt = valueEventItemsEventItemsItem["EventRcpt"].asString();
eventItems_.push_back(eventItemsObject);
}
if(!value["NextPageEventId"].isNull())
nextPageEventId_ = std::stoi(value["NextPageEventId"].asString());
if(!value["PageRecordCount"].isNull())
pageRecordCount_ = std::stoi(value["PageRecordCount"].asString());
if(!value["FromBegin"].isNull())
fromBegin_ = value["FromBegin"].asString() == "true";
if(!value["ToEnd"].isNull())
toEnd_ = value["ToEnd"].asString() == "true";
}
std::vector<DescribeSignedEventActionsResult::EventItemsItem> DescribeSignedEventActionsResult::getEventItems()const
{
return eventItems_;
}
int DescribeSignedEventActionsResult::getPageRecordCount()const
{
return pageRecordCount_;
}
bool DescribeSignedEventActionsResult::getToEnd()const
{
return toEnd_;
}
bool DescribeSignedEventActionsResult::getFromBegin()const
{
return fromBegin_;
}
int DescribeSignedEventActionsResult::getNextPageEventId()const
{
return nextPageEventId_;
}

View File

@@ -1,51 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/rds/model/GetDBInstanceTopologyRequest.h>
using AlibabaCloud::Rds::Model::GetDBInstanceTopologyRequest;
GetDBInstanceTopologyRequest::GetDBInstanceTopologyRequest() :
RpcServiceRequest("rds", "2014-08-15", "GetDBInstanceTopology")
{
setMethod(HttpRequest::Method::Post);
}
GetDBInstanceTopologyRequest::~GetDBInstanceTopologyRequest()
{}
std::string GetDBInstanceTopologyRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void GetDBInstanceTopologyRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string GetDBInstanceTopologyRequest::getDBInstanceId()const
{
return dBInstanceId_;
}
void GetDBInstanceTopologyRequest::setDBInstanceId(const std::string& dBInstanceId)
{
dBInstanceId_ = dBInstanceId;
setParameter("DBInstanceId", dBInstanceId);
}

View File

@@ -1,92 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/rds/model/GetDBInstanceTopologyResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Rds;
using namespace AlibabaCloud::Rds::Model;
GetDBInstanceTopologyResult::GetDBInstanceTopologyResult() :
ServiceResult()
{}
GetDBInstanceTopologyResult::GetDBInstanceTopologyResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetDBInstanceTopologyResult::~GetDBInstanceTopologyResult()
{}
void GetDBInstanceTopologyResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["DBInstanceName"].isNull())
data_.dBInstanceName = dataNode["DBInstanceName"].asString();
auto allConnectionsNode = dataNode["Connections"]["Connection"];
for (auto dataNodeConnectionsConnection : allConnectionsNode)
{
Data::Connection connectionObject;
if(!dataNodeConnectionsConnection["ConnectionString"].isNull())
connectionObject.connectionString = dataNodeConnectionsConnection["ConnectionString"].asString();
if(!dataNodeConnectionsConnection["NetType"].isNull())
connectionObject.netType = dataNodeConnectionsConnection["NetType"].asString();
if(!dataNodeConnectionsConnection["ZoneId"].isNull())
connectionObject.zoneId = dataNodeConnectionsConnection["ZoneId"].asString();
data_.connections.push_back(connectionObject);
}
auto allNodesNode = dataNode["Nodes"]["Node"];
for (auto dataNodeNodesNode : allNodesNode)
{
Data::Node nodeObject;
if(!dataNodeNodesNode["DedicatedHostGroupId"].isNull())
nodeObject.dedicatedHostGroupId = dataNodeNodesNode["DedicatedHostGroupId"].asString();
if(!dataNodeNodesNode["DedicatedHostId"].isNull())
nodeObject.dedicatedHostId = dataNodeNodesNode["DedicatedHostId"].asString();
if(!dataNodeNodesNode["Role"].isNull())
nodeObject.role = dataNodeNodesNode["Role"].asString();
if(!dataNodeNodesNode["ZoneId"].isNull())
nodeObject.zoneId = dataNodeNodesNode["ZoneId"].asString();
data_.nodes.push_back(nodeObject);
}
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string GetDBInstanceTopologyResult::getMessage()const
{
return message_;
}
GetDBInstanceTopologyResult::Data GetDBInstanceTopologyResult::getData()const
{
return data_;
}
std::string GetDBInstanceTopologyResult::getCode()const
{
return code_;
}

View File

@@ -1,95 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/rds/model/ModifyActionEventVerifyPolicyRequest.h>
using AlibabaCloud::Rds::Model::ModifyActionEventVerifyPolicyRequest;
ModifyActionEventVerifyPolicyRequest::ModifyActionEventVerifyPolicyRequest() :
RpcServiceRequest("rds", "2014-08-15", "ModifyActionEventVerifyPolicy")
{
setMethod(HttpRequest::Method::Post);
}
ModifyActionEventVerifyPolicyRequest::~ModifyActionEventVerifyPolicyRequest()
{}
long ModifyActionEventVerifyPolicyRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void ModifyActionEventVerifyPolicyRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string ModifyActionEventVerifyPolicyRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void ModifyActionEventVerifyPolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long ModifyActionEventVerifyPolicyRequest::getOwnerId()const
{
return ownerId_;
}
void ModifyActionEventVerifyPolicyRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string ModifyActionEventVerifyPolicyRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void ModifyActionEventVerifyPolicyRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string ModifyActionEventVerifyPolicyRequest::getRegionId()const
{
return regionId_;
}
void ModifyActionEventVerifyPolicyRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string ModifyActionEventVerifyPolicyRequest::getUserPublicKey()const
{
return userPublicKey_;
}
void ModifyActionEventVerifyPolicyRequest::setUserPublicKey(const std::string& userPublicKey)
{
userPublicKey_ = userPublicKey;
setParameter("UserPublicKey", userPublicKey);
}

View File

@@ -1,58 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/rds/model/ModifyActionEventVerifyPolicyResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Rds;
using namespace AlibabaCloud::Rds::Model;
ModifyActionEventVerifyPolicyResult::ModifyActionEventVerifyPolicyResult() :
ServiceResult()
{}
ModifyActionEventVerifyPolicyResult::ModifyActionEventVerifyPolicyResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ModifyActionEventVerifyPolicyResult::~ModifyActionEventVerifyPolicyResult()
{}
void ModifyActionEventVerifyPolicyResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["RegionId"].isNull())
regionId_ = value["RegionId"].asString();
if(!value["ServerPublicKey"].isNull())
serverPublicKey_ = value["ServerPublicKey"].asString();
}
std::string ModifyActionEventVerifyPolicyResult::getRegionId()const
{
return regionId_;
}
std::string ModifyActionEventVerifyPolicyResult::getServerPublicKey()const
{
return serverPublicKey_;
}

View File

@@ -1,117 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/rds/model/ModifyDedicatedHostAccountRequest.h>
using AlibabaCloud::Rds::Model::ModifyDedicatedHostAccountRequest;
ModifyDedicatedHostAccountRequest::ModifyDedicatedHostAccountRequest() :
RpcServiceRequest("rds", "2014-08-15", "ModifyDedicatedHostAccount")
{
setMethod(HttpRequest::Method::Post);
}
ModifyDedicatedHostAccountRequest::~ModifyDedicatedHostAccountRequest()
{}
long ModifyDedicatedHostAccountRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void ModifyDedicatedHostAccountRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string ModifyDedicatedHostAccountRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void ModifyDedicatedHostAccountRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string ModifyDedicatedHostAccountRequest::getAccountName()const
{
return accountName_;
}
void ModifyDedicatedHostAccountRequest::setAccountName(const std::string& accountName)
{
accountName_ = accountName;
setParameter("AccountName", accountName);
}
std::string ModifyDedicatedHostAccountRequest::getRegionId()const
{
return regionId_;
}
void ModifyDedicatedHostAccountRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string ModifyDedicatedHostAccountRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void ModifyDedicatedHostAccountRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string ModifyDedicatedHostAccountRequest::getDedicatedHostId()const
{
return dedicatedHostId_;
}
void ModifyDedicatedHostAccountRequest::setDedicatedHostId(const std::string& dedicatedHostId)
{
dedicatedHostId_ = dedicatedHostId;
setParameter("DedicatedHostId", dedicatedHostId);
}
long ModifyDedicatedHostAccountRequest::getOwnerId()const
{
return ownerId_;
}
void ModifyDedicatedHostAccountRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string ModifyDedicatedHostAccountRequest::getAccountPassword()const
{
return accountPassword_;
}
void ModifyDedicatedHostAccountRequest::setAccountPassword(const std::string& accountPassword)
{
accountPassword_ = accountPassword;
setParameter("AccountPassword", accountPassword);
}

View File

@@ -1,44 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/rds/model/ModifyDedicatedHostAccountResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Rds;
using namespace AlibabaCloud::Rds::Model;
ModifyDedicatedHostAccountResult::ModifyDedicatedHostAccountResult() :
ServiceResult()
{}
ModifyDedicatedHostAccountResult::ModifyDedicatedHostAccountResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ModifyDedicatedHostAccountResult::~ModifyDedicatedHostAccountResult()
{}
void ModifyDedicatedHostAccountResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -1,117 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/rds/model/ModifyDedicatedHostAttributeRequest.h>
using AlibabaCloud::Rds::Model::ModifyDedicatedHostAttributeRequest;
ModifyDedicatedHostAttributeRequest::ModifyDedicatedHostAttributeRequest() :
RpcServiceRequest("rds", "2014-08-15", "ModifyDedicatedHostAttribute")
{
setMethod(HttpRequest::Method::Post);
}
ModifyDedicatedHostAttributeRequest::~ModifyDedicatedHostAttributeRequest()
{}
long ModifyDedicatedHostAttributeRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void ModifyDedicatedHostAttributeRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string ModifyDedicatedHostAttributeRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void ModifyDedicatedHostAttributeRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string ModifyDedicatedHostAttributeRequest::getHostName()const
{
return hostName_;
}
void ModifyDedicatedHostAttributeRequest::setHostName(const std::string& hostName)
{
hostName_ = hostName;
setParameter("HostName", hostName);
}
std::string ModifyDedicatedHostAttributeRequest::getRegionId()const
{
return regionId_;
}
void ModifyDedicatedHostAttributeRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string ModifyDedicatedHostAttributeRequest::getAllocationStatus()const
{
return allocationStatus_;
}
void ModifyDedicatedHostAttributeRequest::setAllocationStatus(const std::string& allocationStatus)
{
allocationStatus_ = allocationStatus;
setParameter("AllocationStatus", allocationStatus);
}
std::string ModifyDedicatedHostAttributeRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void ModifyDedicatedHostAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string ModifyDedicatedHostAttributeRequest::getDedicatedHostId()const
{
return dedicatedHostId_;
}
void ModifyDedicatedHostAttributeRequest::setDedicatedHostId(const std::string& dedicatedHostId)
{
dedicatedHostId_ = dedicatedHostId;
setParameter("DedicatedHostId", dedicatedHostId);
}
long ModifyDedicatedHostAttributeRequest::getOwnerId()const
{
return ownerId_;
}
void ModifyDedicatedHostAttributeRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -1,44 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/rds/model/ModifyDedicatedHostAttributeResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Rds;
using namespace AlibabaCloud::Rds::Model;
ModifyDedicatedHostAttributeResult::ModifyDedicatedHostAttributeResult() :
ServiceResult()
{}
ModifyDedicatedHostAttributeResult::ModifyDedicatedHostAttributeResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ModifyDedicatedHostAttributeResult::~ModifyDedicatedHostAttributeResult()
{}
void ModifyDedicatedHostAttributeResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -1,161 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/rds/model/ModifyDedicatedHostGroupAttributeRequest.h>
using AlibabaCloud::Rds::Model::ModifyDedicatedHostGroupAttributeRequest;
ModifyDedicatedHostGroupAttributeRequest::ModifyDedicatedHostGroupAttributeRequest() :
RpcServiceRequest("rds", "2014-08-15", "ModifyDedicatedHostGroupAttribute")
{
setMethod(HttpRequest::Method::Post);
}
ModifyDedicatedHostGroupAttributeRequest::~ModifyDedicatedHostGroupAttributeRequest()
{}
long ModifyDedicatedHostGroupAttributeRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void ModifyDedicatedHostGroupAttributeRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
int ModifyDedicatedHostGroupAttributeRequest::getCpuAllocationRatio()const
{
return cpuAllocationRatio_;
}
void ModifyDedicatedHostGroupAttributeRequest::setCpuAllocationRatio(int cpuAllocationRatio)
{
cpuAllocationRatio_ = cpuAllocationRatio;
setParameter("CpuAllocationRatio", std::to_string(cpuAllocationRatio));
}
std::string ModifyDedicatedHostGroupAttributeRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void ModifyDedicatedHostGroupAttributeRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string ModifyDedicatedHostGroupAttributeRequest::getRegionId()const
{
return regionId_;
}
void ModifyDedicatedHostGroupAttributeRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string ModifyDedicatedHostGroupAttributeRequest::getDedicatedHostGroupId()const
{
return dedicatedHostGroupId_;
}
void ModifyDedicatedHostGroupAttributeRequest::setDedicatedHostGroupId(const std::string& dedicatedHostGroupId)
{
dedicatedHostGroupId_ = dedicatedHostGroupId;
setParameter("DedicatedHostGroupId", dedicatedHostGroupId);
}
std::string ModifyDedicatedHostGroupAttributeRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void ModifyDedicatedHostGroupAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
int ModifyDedicatedHostGroupAttributeRequest::getDiskAllocationRatio()const
{
return diskAllocationRatio_;
}
void ModifyDedicatedHostGroupAttributeRequest::setDiskAllocationRatio(int diskAllocationRatio)
{
diskAllocationRatio_ = diskAllocationRatio;
setParameter("DiskAllocationRatio", std::to_string(diskAllocationRatio));
}
int ModifyDedicatedHostGroupAttributeRequest::getMemAllocationRatio()const
{
return memAllocationRatio_;
}
void ModifyDedicatedHostGroupAttributeRequest::setMemAllocationRatio(int memAllocationRatio)
{
memAllocationRatio_ = memAllocationRatio;
setParameter("MemAllocationRatio", std::to_string(memAllocationRatio));
}
long ModifyDedicatedHostGroupAttributeRequest::getOwnerId()const
{
return ownerId_;
}
void ModifyDedicatedHostGroupAttributeRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string ModifyDedicatedHostGroupAttributeRequest::getHostReplacePolicy()const
{
return hostReplacePolicy_;
}
void ModifyDedicatedHostGroupAttributeRequest::setHostReplacePolicy(const std::string& hostReplacePolicy)
{
hostReplacePolicy_ = hostReplacePolicy;
setParameter("HostReplacePolicy", hostReplacePolicy);
}
std::string ModifyDedicatedHostGroupAttributeRequest::getDedicatedHostGroupDesc()const
{
return dedicatedHostGroupDesc_;
}
void ModifyDedicatedHostGroupAttributeRequest::setDedicatedHostGroupDesc(const std::string& dedicatedHostGroupDesc)
{
dedicatedHostGroupDesc_ = dedicatedHostGroupDesc;
setParameter("DedicatedHostGroupDesc", dedicatedHostGroupDesc);
}
std::string ModifyDedicatedHostGroupAttributeRequest::getAllocationPolicy()const
{
return allocationPolicy_;
}
void ModifyDedicatedHostGroupAttributeRequest::setAllocationPolicy(const std::string& allocationPolicy)
{
allocationPolicy_ = allocationPolicy;
setParameter("AllocationPolicy", allocationPolicy);
}

View File

@@ -1,44 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/rds/model/ModifyDedicatedHostGroupAttributeResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Rds;
using namespace AlibabaCloud::Rds::Model;
ModifyDedicatedHostGroupAttributeResult::ModifyDedicatedHostGroupAttributeResult() :
ServiceResult()
{}
ModifyDedicatedHostGroupAttributeResult::ModifyDedicatedHostGroupAttributeResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ModifyDedicatedHostGroupAttributeResult::~ModifyDedicatedHostGroupAttributeResult()
{}
void ModifyDedicatedHostGroupAttributeResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -1,106 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/rds/model/ModifyLicenseInfoRequest.h>
using AlibabaCloud::Rds::Model::ModifyLicenseInfoRequest;
ModifyLicenseInfoRequest::ModifyLicenseInfoRequest() :
RpcServiceRequest("rds", "2014-08-15", "ModifyLicenseInfo")
{
setMethod(HttpRequest::Method::Post);
}
ModifyLicenseInfoRequest::~ModifyLicenseInfoRequest()
{}
long ModifyLicenseInfoRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void ModifyLicenseInfoRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string ModifyLicenseInfoRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void ModifyLicenseInfoRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string ModifyLicenseInfoRequest::getClientToken()const
{
return clientToken_;
}
void ModifyLicenseInfoRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
long ModifyLicenseInfoRequest::getOwnerId()const
{
return ownerId_;
}
void ModifyLicenseInfoRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string ModifyLicenseInfoRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void ModifyLicenseInfoRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string ModifyLicenseInfoRequest::getLicense()const
{
return license_;
}
void ModifyLicenseInfoRequest::setLicense(const std::string& license)
{
license_ = license;
setParameter("License", license);
}
std::string ModifyLicenseInfoRequest::getDBInstanceId()const
{
return dBInstanceId_;
}
void ModifyLicenseInfoRequest::setDBInstanceId(const std::string& dBInstanceId)
{
dBInstanceId_ = dBInstanceId;
setParameter("DBInstanceId", dBInstanceId);
}

View File

@@ -1,44 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/rds/model/ModifyLicenseInfoResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Rds;
using namespace AlibabaCloud::Rds::Model;
ModifyLicenseInfoResult::ModifyLicenseInfoResult() :
ServiceResult()
{}
ModifyLicenseInfoResult::ModifyLicenseInfoResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ModifyLicenseInfoResult::~ModifyLicenseInfoResult()
{}
void ModifyLicenseInfoResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -1,106 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/rds/model/ReplaceDedicatedHostRequest.h>
using AlibabaCloud::Rds::Model::ReplaceDedicatedHostRequest;
ReplaceDedicatedHostRequest::ReplaceDedicatedHostRequest() :
RpcServiceRequest("rds", "2014-08-15", "ReplaceDedicatedHost")
{
setMethod(HttpRequest::Method::Post);
}
ReplaceDedicatedHostRequest::~ReplaceDedicatedHostRequest()
{}
long ReplaceDedicatedHostRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void ReplaceDedicatedHostRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string ReplaceDedicatedHostRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void ReplaceDedicatedHostRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string ReplaceDedicatedHostRequest::getDedicatedHostId()const
{
return dedicatedHostId_;
}
void ReplaceDedicatedHostRequest::setDedicatedHostId(const std::string& dedicatedHostId)
{
dedicatedHostId_ = dedicatedHostId;
setParameter("DedicatedHostId", dedicatedHostId);
}
long ReplaceDedicatedHostRequest::getOwnerId()const
{
return ownerId_;
}
void ReplaceDedicatedHostRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string ReplaceDedicatedHostRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void ReplaceDedicatedHostRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string ReplaceDedicatedHostRequest::getRegionId()const
{
return regionId_;
}
void ReplaceDedicatedHostRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string ReplaceDedicatedHostRequest::getFailoverMode()const
{
return failoverMode_;
}
void ReplaceDedicatedHostRequest::setFailoverMode(const std::string& failoverMode)
{
failoverMode_ = failoverMode;
setParameter("FailoverMode", failoverMode);
}

View File

@@ -1,58 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/rds/model/ReplaceDedicatedHostResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Rds;
using namespace AlibabaCloud::Rds::Model;
ReplaceDedicatedHostResult::ReplaceDedicatedHostResult() :
ServiceResult()
{}
ReplaceDedicatedHostResult::ReplaceDedicatedHostResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ReplaceDedicatedHostResult::~ReplaceDedicatedHostResult()
{}
void ReplaceDedicatedHostResult::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());
if(!value["DedicatedHostId"].isNull())
dedicatedHostId_ = value["DedicatedHostId"].asString();
}
std::string ReplaceDedicatedHostResult::getDedicatedHostId()const
{
return dedicatedHostId_;
}
int ReplaceDedicatedHostResult::getTaskId()const
{
return taskId_;
}

View File

@@ -1,117 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/rds/model/ResetHostAccountPasswordRequest.h>
using AlibabaCloud::Rds::Model::ResetHostAccountPasswordRequest;
ResetHostAccountPasswordRequest::ResetHostAccountPasswordRequest() :
RpcServiceRequest("rds", "2014-08-15", "ResetHostAccountPassword")
{
setMethod(HttpRequest::Method::Post);
}
ResetHostAccountPasswordRequest::~ResetHostAccountPasswordRequest()
{}
long ResetHostAccountPasswordRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void ResetHostAccountPasswordRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string ResetHostAccountPasswordRequest::getClientToken()const
{
return clientToken_;
}
void ResetHostAccountPasswordRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string ResetHostAccountPasswordRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void ResetHostAccountPasswordRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string ResetHostAccountPasswordRequest::getAccountName()const
{
return accountName_;
}
void ResetHostAccountPasswordRequest::setAccountName(const std::string& accountName)
{
accountName_ = accountName;
setParameter("AccountName", accountName);
}
std::string ResetHostAccountPasswordRequest::getDBInstanceId()const
{
return dBInstanceId_;
}
void ResetHostAccountPasswordRequest::setDBInstanceId(const std::string& dBInstanceId)
{
dBInstanceId_ = dBInstanceId;
setParameter("DBInstanceId", dBInstanceId);
}
std::string ResetHostAccountPasswordRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void ResetHostAccountPasswordRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long ResetHostAccountPasswordRequest::getOwnerId()const
{
return ownerId_;
}
void ResetHostAccountPasswordRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string ResetHostAccountPasswordRequest::getAccountPassword()const
{
return accountPassword_;
}
void ResetHostAccountPasswordRequest::setAccountPassword(const std::string& accountPassword)
{
accountPassword_ = accountPassword;
setParameter("AccountPassword", accountPassword);
}

View File

@@ -1,44 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/rds/model/ResetHostAccountPasswordResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Rds;
using namespace AlibabaCloud::Rds::Model;
ResetHostAccountPasswordResult::ResetHostAccountPasswordResult() :
ServiceResult()
{}
ResetHostAccountPasswordResult::ResetHostAccountPasswordResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ResetHostAccountPasswordResult::~ResetHostAccountPasswordResult()
{}
void ResetHostAccountPasswordResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -1,106 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/rds/model/RestartDedicatedHostRequest.h>
using AlibabaCloud::Rds::Model::RestartDedicatedHostRequest;
RestartDedicatedHostRequest::RestartDedicatedHostRequest() :
RpcServiceRequest("rds", "2014-08-15", "RestartDedicatedHost")
{
setMethod(HttpRequest::Method::Post);
}
RestartDedicatedHostRequest::~RestartDedicatedHostRequest()
{}
long RestartDedicatedHostRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void RestartDedicatedHostRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string RestartDedicatedHostRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void RestartDedicatedHostRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string RestartDedicatedHostRequest::getDedicatedHostId()const
{
return dedicatedHostId_;
}
void RestartDedicatedHostRequest::setDedicatedHostId(const std::string& dedicatedHostId)
{
dedicatedHostId_ = dedicatedHostId;
setParameter("DedicatedHostId", dedicatedHostId);
}
long RestartDedicatedHostRequest::getOwnerId()const
{
return ownerId_;
}
void RestartDedicatedHostRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string RestartDedicatedHostRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void RestartDedicatedHostRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string RestartDedicatedHostRequest::getRegionId()const
{
return regionId_;
}
void RestartDedicatedHostRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string RestartDedicatedHostRequest::getFailoverMode()const
{
return failoverMode_;
}
void RestartDedicatedHostRequest::setFailoverMode(const std::string& failoverMode)
{
failoverMode_ = failoverMode;
setParameter("FailoverMode", failoverMode);
}

View File

@@ -1,58 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/rds/model/RestartDedicatedHostResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Rds;
using namespace AlibabaCloud::Rds::Model;
RestartDedicatedHostResult::RestartDedicatedHostResult() :
ServiceResult()
{}
RestartDedicatedHostResult::RestartDedicatedHostResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
RestartDedicatedHostResult::~RestartDedicatedHostResult()
{}
void RestartDedicatedHostResult::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());
if(!value["DedicatedHostId"].isNull())
dedicatedHostId_ = value["DedicatedHostId"].asString();
}
std::string RestartDedicatedHostResult::getDedicatedHostId()const
{
return dedicatedHostId_;
}
int RestartDedicatedHostResult::getTaskId()const
{
return taskId_;
}

View File

@@ -1,106 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/rds/model/SignEventActionRequest.h>
using AlibabaCloud::Rds::Model::SignEventActionRequest;
SignEventActionRequest::SignEventActionRequest() :
RpcServiceRequest("rds", "2014-08-15", "SignEventAction")
{
setMethod(HttpRequest::Method::Post);
}
SignEventActionRequest::~SignEventActionRequest()
{}
int SignEventActionRequest::getEventId()const
{
return eventId_;
}
void SignEventActionRequest::setEventId(int eventId)
{
eventId_ = eventId;
setParameter("EventId", std::to_string(eventId));
}
long SignEventActionRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void SignEventActionRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string SignEventActionRequest::getEventSig()const
{
return eventSig_;
}
void SignEventActionRequest::setEventSig(const std::string& eventSig)
{
eventSig_ = eventSig;
setParameter("EventSig", eventSig);
}
std::string SignEventActionRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void SignEventActionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long SignEventActionRequest::getOwnerId()const
{
return ownerId_;
}
void SignEventActionRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string SignEventActionRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void SignEventActionRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string SignEventActionRequest::getRegionId()const
{
return regionId_;
}
void SignEventActionRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}

View File

@@ -1,58 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/rds/model/SignEventActionResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Rds;
using namespace AlibabaCloud::Rds::Model;
SignEventActionResult::SignEventActionResult() :
ServiceResult()
{}
SignEventActionResult::SignEventActionResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SignEventActionResult::~SignEventActionResult()
{}
void SignEventActionResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["EventId"].isNull())
eventId_ = value["EventId"].asString();
if(!value["EventRcpt"].isNull())
eventRcpt_ = value["EventRcpt"].asString();
}
std::string SignEventActionResult::getEventId()const
{
return eventId_;
}
std::string SignEventActionResult::getEventRcpt()const
{
return eventRcpt_;
}