Add ListTagResources OpenApi.
This commit is contained in:
@@ -483,6 +483,42 @@ RdsClient::CheckResourceOutcomeCallable RdsClient::checkResourceCallable(const C
|
||||
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();
|
||||
@@ -843,6 +879,78 @@ 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::CreateDedicatedHostGroupOutcome RdsClient::createDedicatedHostGroup(const CreateDedicatedHostGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateDedicatedHostGroupOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateDedicatedHostGroupOutcome(CreateDedicatedHostGroupResult(outcome.result()));
|
||||
else
|
||||
return CreateDedicatedHostGroupOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RdsClient::createDedicatedHostGroupAsync(const CreateDedicatedHostGroupRequest& request, const CreateDedicatedHostGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createDedicatedHostGroup(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RdsClient::CreateDedicatedHostGroupOutcomeCallable RdsClient::createDedicatedHostGroupCallable(const CreateDedicatedHostGroupRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateDedicatedHostGroupOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createDedicatedHostGroup(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::CreateDiagnosticReportOutcome RdsClient::createDiagnosticReport(const CreateDiagnosticReportRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1239,6 +1347,78 @@ RdsClient::DeleteDatabaseOutcomeCallable RdsClient::deleteDatabaseCallable(const
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::DeleteDedicatedHostOutcome RdsClient::deleteDedicatedHost(const DeleteDedicatedHostRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteDedicatedHostOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteDedicatedHostOutcome(DeleteDedicatedHostResult(outcome.result()));
|
||||
else
|
||||
return DeleteDedicatedHostOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RdsClient::deleteDedicatedHostAsync(const DeleteDedicatedHostRequest& request, const DeleteDedicatedHostAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteDedicatedHost(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RdsClient::DeleteDedicatedHostOutcomeCallable RdsClient::deleteDedicatedHostCallable(const DeleteDedicatedHostRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteDedicatedHostOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteDedicatedHost(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::DeleteDedicatedHostGroupOutcome RdsClient::deleteDedicatedHostGroup(const DeleteDedicatedHostGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteDedicatedHostGroupOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteDedicatedHostGroupOutcome(DeleteDedicatedHostGroupResult(outcome.result()));
|
||||
else
|
||||
return DeleteDedicatedHostGroupOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RdsClient::deleteDedicatedHostGroupAsync(const DeleteDedicatedHostGroupRequest& request, const DeleteDedicatedHostGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteDedicatedHostGroup(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RdsClient::DeleteDedicatedHostGroupOutcomeCallable RdsClient::deleteDedicatedHostGroupCallable(const DeleteDedicatedHostGroupRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteDedicatedHostGroupOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteDedicatedHostGroup(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::DeleteParameterGroupOutcome RdsClient::deleteParameterGroup(const DeleteParameterGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2463,6 +2643,114 @@ RdsClient::DescribeDBInstancesByPerformanceOutcomeCallable RdsClient::describeDB
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::DescribeDBProxyOutcome RdsClient::describeDBProxy(const DescribeDBProxyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeDBProxyOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeDBProxyOutcome(DescribeDBProxyResult(outcome.result()));
|
||||
else
|
||||
return DescribeDBProxyOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RdsClient::describeDBProxyAsync(const DescribeDBProxyRequest& request, const DescribeDBProxyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeDBProxy(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RdsClient::DescribeDBProxyOutcomeCallable RdsClient::describeDBProxyCallable(const DescribeDBProxyRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeDBProxyOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeDBProxy(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::DescribeDBProxyEndpointOutcome RdsClient::describeDBProxyEndpoint(const DescribeDBProxyEndpointRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeDBProxyEndpointOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeDBProxyEndpointOutcome(DescribeDBProxyEndpointResult(outcome.result()));
|
||||
else
|
||||
return DescribeDBProxyEndpointOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RdsClient::describeDBProxyEndpointAsync(const DescribeDBProxyEndpointRequest& request, const DescribeDBProxyEndpointAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeDBProxyEndpoint(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RdsClient::DescribeDBProxyEndpointOutcomeCallable RdsClient::describeDBProxyEndpointCallable(const DescribeDBProxyEndpointRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeDBProxyEndpointOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeDBProxyEndpoint(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::DescribeDBProxyPerformanceOutcome RdsClient::describeDBProxyPerformance(const DescribeDBProxyPerformanceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeDBProxyPerformanceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeDBProxyPerformanceOutcome(DescribeDBProxyPerformanceResult(outcome.result()));
|
||||
else
|
||||
return DescribeDBProxyPerformanceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RdsClient::describeDBProxyPerformanceAsync(const DescribeDBProxyPerformanceRequest& request, const DescribeDBProxyPerformanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeDBProxyPerformance(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RdsClient::DescribeDBProxyPerformanceOutcomeCallable RdsClient::describeDBProxyPerformanceCallable(const DescribeDBProxyPerformanceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeDBProxyPerformanceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeDBProxyPerformance(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::DescribeDTCSecurityIpHostsForSQLServerOutcome RdsClient::describeDTCSecurityIpHostsForSQLServer(const DescribeDTCSecurityIpHostsForSQLServerRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2535,6 +2823,114 @@ 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();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeDedicatedHostGroupsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeDedicatedHostGroupsOutcome(DescribeDedicatedHostGroupsResult(outcome.result()));
|
||||
else
|
||||
return DescribeDedicatedHostGroupsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RdsClient::describeDedicatedHostGroupsAsync(const DescribeDedicatedHostGroupsRequest& request, const DescribeDedicatedHostGroupsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeDedicatedHostGroups(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RdsClient::DescribeDedicatedHostGroupsOutcomeCallable RdsClient::describeDedicatedHostGroupsCallable(const DescribeDedicatedHostGroupsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeDedicatedHostGroupsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeDedicatedHostGroups(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::DescribeDedicatedHostsOutcome RdsClient::describeDedicatedHosts(const DescribeDedicatedHostsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeDedicatedHostsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeDedicatedHostsOutcome(DescribeDedicatedHostsResult(outcome.result()));
|
||||
else
|
||||
return DescribeDedicatedHostsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RdsClient::describeDedicatedHostsAsync(const DescribeDedicatedHostsRequest& request, const DescribeDedicatedHostsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeDedicatedHosts(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RdsClient::DescribeDedicatedHostsOutcomeCallable RdsClient::describeDedicatedHostsCallable(const DescribeDedicatedHostsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeDedicatedHostsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeDedicatedHosts(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::DescribeDiagnosticReportListOutcome RdsClient::describeDiagnosticReportList(const DescribeDiagnosticReportListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -4011,6 +4407,78 @@ RdsClient::ImportDatabaseBetweenInstancesOutcomeCallable RdsClient::importDataba
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::ListTagResourcesOutcome RdsClient::listTagResources(const ListTagResourcesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListTagResourcesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListTagResourcesOutcome(ListTagResourcesResult(outcome.result()));
|
||||
else
|
||||
return ListTagResourcesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RdsClient::listTagResourcesAsync(const ListTagResourcesRequest& request, const ListTagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listTagResources(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RdsClient::ListTagResourcesOutcomeCallable RdsClient::listTagResourcesCallable(const ListTagResourcesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListTagResourcesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listTagResources(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::MigrateDBInstanceOutcome RdsClient::migrateDBInstance(const MigrateDBInstanceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return MigrateDBInstanceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return MigrateDBInstanceOutcome(MigrateDBInstanceResult(outcome.result()));
|
||||
else
|
||||
return MigrateDBInstanceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RdsClient::migrateDBInstanceAsync(const MigrateDBInstanceRequest& request, const MigrateDBInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, migrateDBInstance(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RdsClient::MigrateDBInstanceOutcomeCallable RdsClient::migrateDBInstanceCallable(const MigrateDBInstanceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<MigrateDBInstanceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->migrateDBInstance(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::MigrateSecurityIPModeOutcome RdsClient::migrateSecurityIPMode(const MigrateSecurityIPModeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -4803,6 +5271,114 @@ RdsClient::ModifyDBInstanceTDEOutcomeCallable RdsClient::modifyDBInstanceTDECall
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::ModifyDBProxyOutcome RdsClient::modifyDBProxy(const ModifyDBProxyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyDBProxyOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyDBProxyOutcome(ModifyDBProxyResult(outcome.result()));
|
||||
else
|
||||
return ModifyDBProxyOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RdsClient::modifyDBProxyAsync(const ModifyDBProxyRequest& request, const ModifyDBProxyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyDBProxy(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RdsClient::ModifyDBProxyOutcomeCallable RdsClient::modifyDBProxyCallable(const ModifyDBProxyRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyDBProxyOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyDBProxy(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::ModifyDBProxyEndpointOutcome RdsClient::modifyDBProxyEndpoint(const ModifyDBProxyEndpointRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyDBProxyEndpointOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyDBProxyEndpointOutcome(ModifyDBProxyEndpointResult(outcome.result()));
|
||||
else
|
||||
return ModifyDBProxyEndpointOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RdsClient::modifyDBProxyEndpointAsync(const ModifyDBProxyEndpointRequest& request, const ModifyDBProxyEndpointAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyDBProxyEndpoint(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RdsClient::ModifyDBProxyEndpointOutcomeCallable RdsClient::modifyDBProxyEndpointCallable(const ModifyDBProxyEndpointRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyDBProxyEndpointOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyDBProxyEndpoint(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::ModifyDBProxyInstanceOutcome RdsClient::modifyDBProxyInstance(const ModifyDBProxyInstanceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyDBProxyInstanceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyDBProxyInstanceOutcome(ModifyDBProxyInstanceResult(outcome.result()));
|
||||
else
|
||||
return ModifyDBProxyInstanceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RdsClient::modifyDBProxyInstanceAsync(const ModifyDBProxyInstanceRequest& request, const ModifyDBProxyInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyDBProxyInstance(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RdsClient::ModifyDBProxyInstanceOutcomeCallable RdsClient::modifyDBProxyInstanceCallable(const ModifyDBProxyInstanceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyDBProxyInstanceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyDBProxyInstance(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::ModifyDTCSecurityIpHostsForSQLServerOutcome RdsClient::modifyDTCSecurityIpHostsForSQLServer(const ModifyDTCSecurityIpHostsForSQLServerRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -4839,6 +5415,78 @@ RdsClient::ModifyDTCSecurityIpHostsForSQLServerOutcomeCallable RdsClient::modify
|
||||
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();
|
||||
@@ -5631,6 +6279,42 @@ RdsClient::PurgeDBInstanceLogOutcomeCallable RdsClient::purgeDBInstanceLogCallab
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::RebuildDBInstanceOutcome RdsClient::rebuildDBInstance(const RebuildDBInstanceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return RebuildDBInstanceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return RebuildDBInstanceOutcome(RebuildDBInstanceResult(outcome.result()));
|
||||
else
|
||||
return RebuildDBInstanceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RdsClient::rebuildDBInstanceAsync(const RebuildDBInstanceRequest& request, const RebuildDBInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, rebuildDBInstance(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RdsClient::RebuildDBInstanceOutcomeCallable RdsClient::rebuildDBInstanceCallable(const RebuildDBInstanceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<RebuildDBInstanceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->rebuildDBInstance(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::RecoveryDBInstanceOutcome RdsClient::recoveryDBInstance(const RecoveryDBInstanceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -5811,6 +6495,42 @@ 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::RequestServiceOfCloudDBExpertOutcome RdsClient::requestServiceOfCloudDBExpert(const RequestServiceOfCloudDBExpertRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -5991,6 +6711,42 @@ 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::RestoreDBInstanceOutcome RdsClient::restoreDBInstance(const RestoreDBInstanceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -6243,6 +6999,78 @@ RdsClient::SwitchDBInstanceVpcOutcomeCallable RdsClient::switchDBInstanceVpcCall
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::TagResourcesOutcome RdsClient::tagResources(const TagResourcesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return TagResourcesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return TagResourcesOutcome(TagResourcesResult(outcome.result()));
|
||||
else
|
||||
return TagResourcesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RdsClient::tagResourcesAsync(const TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, tagResources(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RdsClient::TagResourcesOutcomeCallable RdsClient::tagResourcesCallable(const TagResourcesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<TagResourcesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->tagResources(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::UntagResourcesOutcome RdsClient::untagResources(const UntagResourcesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UntagResourcesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UntagResourcesOutcome(UntagResourcesResult(outcome.result()));
|
||||
else
|
||||
return UntagResourcesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RdsClient::untagResourcesAsync(const UntagResourcesRequest& request, const UntagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, untagResources(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RdsClient::UntagResourcesOutcomeCallable RdsClient::untagResourcesCallable(const UntagResourcesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UntagResourcesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->untagResources(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::UpgradeDBInstanceEngineVersionOutcome RdsClient::upgradeDBInstanceEngineVersion(const UpgradeDBInstanceEngineVersionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
104
rds/src/model/ClearDedicatedHostRequest.cc
Normal file
104
rds/src/model/ClearDedicatedHostRequest.cc
Normal file
@@ -0,0 +1,104 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/ClearDedicatedHostRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::ClearDedicatedHostRequest;
|
||||
|
||||
ClearDedicatedHostRequest::ClearDedicatedHostRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "ClearDedicatedHost")
|
||||
{}
|
||||
|
||||
ClearDedicatedHostRequest::~ClearDedicatedHostRequest()
|
||||
{}
|
||||
|
||||
long ClearDedicatedHostRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ClearDedicatedHostRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ClearDedicatedHostRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void ClearDedicatedHostRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string ClearDedicatedHostRequest::getDedicatedHostId()const
|
||||
{
|
||||
return dedicatedHostId_;
|
||||
}
|
||||
|
||||
void ClearDedicatedHostRequest::setDedicatedHostId(const std::string& dedicatedHostId)
|
||||
{
|
||||
dedicatedHostId_ = dedicatedHostId;
|
||||
setCoreParameter("DedicatedHostId", dedicatedHostId);
|
||||
}
|
||||
|
||||
long ClearDedicatedHostRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ClearDedicatedHostRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string ClearDedicatedHostRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ClearDedicatedHostRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string ClearDedicatedHostRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ClearDedicatedHostRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ClearDedicatedHostRequest::getFailoverMode()const
|
||||
{
|
||||
return failoverMode_;
|
||||
}
|
||||
|
||||
void ClearDedicatedHostRequest::setFailoverMode(const std::string& failoverMode)
|
||||
{
|
||||
failoverMode_ = failoverMode;
|
||||
setCoreParameter("FailoverMode", failoverMode);
|
||||
}
|
||||
|
||||
58
rds/src/model/ClearDedicatedHostResult.cc
Normal file
58
rds/src/model/ClearDedicatedHostResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <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_;
|
||||
}
|
||||
|
||||
@@ -25,102 +25,102 @@ CloneParameterGroupRequest::CloneParameterGroupRequest() :
|
||||
CloneParameterGroupRequest::~CloneParameterGroupRequest()
|
||||
{}
|
||||
|
||||
long CloneParameterGroupRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CloneParameterGroupRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CloneParameterGroupRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CloneParameterGroupRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CloneParameterGroupRequest::getParameterGroupId()const
|
||||
{
|
||||
return parameterGroupId_;
|
||||
}
|
||||
|
||||
void CloneParameterGroupRequest::setParameterGroupId(const std::string& parameterGroupId)
|
||||
{
|
||||
parameterGroupId_ = parameterGroupId;
|
||||
setCoreParameter("ParameterGroupId", parameterGroupId);
|
||||
}
|
||||
|
||||
std::string CloneParameterGroupRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CloneParameterGroupRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CloneParameterGroupRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void CloneParameterGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long CloneParameterGroupRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CloneParameterGroupRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CloneParameterGroupRequest::getTargetRegionId()const
|
||||
{
|
||||
return targetRegionId_;
|
||||
}
|
||||
|
||||
void CloneParameterGroupRequest::setTargetRegionId(const std::string& targetRegionId)
|
||||
{
|
||||
targetRegionId_ = targetRegionId;
|
||||
setCoreParameter("TargetRegionId", targetRegionId);
|
||||
}
|
||||
|
||||
std::string CloneParameterGroupRequest::getParameterGroupName()const
|
||||
{
|
||||
return parameterGroupName_;
|
||||
}
|
||||
|
||||
void CloneParameterGroupRequest::setParameterGroupName(const std::string& parameterGroupName)
|
||||
{
|
||||
parameterGroupName_ = parameterGroupName;
|
||||
setCoreParameter("ParameterGroupName", parameterGroupName);
|
||||
}
|
||||
|
||||
std::string CloneParameterGroupRequest::getParameterGroupDesc()const
|
||||
{
|
||||
return parameterGroupDesc_;
|
||||
}
|
||||
|
||||
void CloneParameterGroupRequest::setParameterGroupDesc(const std::string& parameterGroupDesc)
|
||||
{
|
||||
parameterGroupDesc_ = parameterGroupDesc;
|
||||
setCoreParameter("ParameterGroupDesc", parameterGroupDesc);
|
||||
}
|
||||
|
||||
long CloneParameterGroupRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CloneParameterGroupRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CloneParameterGroupRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CloneParameterGroupRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CloneParameterGroupRequest::getParameterGroupId()const
|
||||
{
|
||||
return parameterGroupId_;
|
||||
}
|
||||
|
||||
void CloneParameterGroupRequest::setParameterGroupId(const std::string& parameterGroupId)
|
||||
{
|
||||
parameterGroupId_ = parameterGroupId;
|
||||
setCoreParameter("ParameterGroupId", parameterGroupId);
|
||||
}
|
||||
|
||||
std::string CloneParameterGroupRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CloneParameterGroupRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CloneParameterGroupRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void CloneParameterGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long CloneParameterGroupRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CloneParameterGroupRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CloneParameterGroupRequest::getTargetRegionId()const
|
||||
{
|
||||
return targetRegionId_;
|
||||
}
|
||||
|
||||
void CloneParameterGroupRequest::setTargetRegionId(const std::string& targetRegionId)
|
||||
{
|
||||
targetRegionId_ = targetRegionId;
|
||||
setCoreParameter("TargetRegionId", targetRegionId);
|
||||
}
|
||||
|
||||
std::string CloneParameterGroupRequest::getParameterGroupName()const
|
||||
{
|
||||
return parameterGroupName_;
|
||||
}
|
||||
|
||||
void CloneParameterGroupRequest::setParameterGroupName(const std::string& parameterGroupName)
|
||||
{
|
||||
parameterGroupName_ = parameterGroupName;
|
||||
setCoreParameter("ParameterGroupName", parameterGroupName);
|
||||
}
|
||||
|
||||
std::string CloneParameterGroupRequest::getParameterGroupDesc()const
|
||||
{
|
||||
return parameterGroupDesc_;
|
||||
}
|
||||
|
||||
void CloneParameterGroupRequest::setParameterGroupDesc(const std::string& parameterGroupDesc)
|
||||
{
|
||||
parameterGroupDesc_ = parameterGroupDesc;
|
||||
setCoreParameter("ParameterGroupDesc", parameterGroupDesc);
|
||||
}
|
||||
|
||||
|
||||
@@ -80,6 +80,17 @@ void CreateDBInstanceRequest::setResourceGroupId(const std::string& resourceGrou
|
||||
setCoreParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceRequest::getTargetDedicatedHostIdForMaster()const
|
||||
{
|
||||
return targetDedicatedHostIdForMaster_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setTargetDedicatedHostIdForMaster(const std::string& targetDedicatedHostIdForMaster)
|
||||
{
|
||||
targetDedicatedHostIdForMaster_ = targetDedicatedHostIdForMaster;
|
||||
setCoreParameter("TargetDedicatedHostIdForMaster", targetDedicatedHostIdForMaster);
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceRequest::getDBInstanceDescription()const
|
||||
{
|
||||
return dBInstanceDescription_;
|
||||
@@ -179,6 +190,17 @@ void CreateDBInstanceRequest::setPrivateIpAddress(const std::string& privateIpAd
|
||||
setCoreParameter("PrivateIpAddress", privateIpAddress);
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceRequest::getTargetDedicatedHostIdForLog()const
|
||||
{
|
||||
return targetDedicatedHostIdForLog_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setTargetDedicatedHostIdForLog(const std::string& targetDedicatedHostIdForLog)
|
||||
{
|
||||
targetDedicatedHostIdForLog_ = targetDedicatedHostIdForLog;
|
||||
setCoreParameter("TargetDedicatedHostIdForLog", targetDedicatedHostIdForLog);
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceRequest::getAutoRenew()const
|
||||
{
|
||||
return autoRenew_;
|
||||
@@ -256,6 +278,17 @@ void CreateDBInstanceRequest::setClientToken(const std::string& clientToken)
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceRequest::getTargetDedicatedHostIdForSlave()const
|
||||
{
|
||||
return targetDedicatedHostIdForSlave_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setTargetDedicatedHostIdForSlave(const std::string& targetDedicatedHostIdForSlave)
|
||||
{
|
||||
targetDedicatedHostIdForSlave_ = targetDedicatedHostIdForSlave;
|
||||
setCoreParameter("TargetDedicatedHostIdForSlave", targetDedicatedHostIdForSlave);
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceRequest::getZoneIdSlave1()const
|
||||
{
|
||||
return zoneIdSlave1_;
|
||||
@@ -322,6 +355,17 @@ void CreateDBInstanceRequest::setDBInstanceStorageType(const std::string& dBInst
|
||||
setCoreParameter("DBInstanceStorageType", dBInstanceStorageType);
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceRequest::getDedicatedHostGroupId()const
|
||||
{
|
||||
return dedicatedHostGroupId_;
|
||||
}
|
||||
|
||||
void CreateDBInstanceRequest::setDedicatedHostGroupId(const std::string& dedicatedHostGroupId)
|
||||
{
|
||||
dedicatedHostGroupId_ = dedicatedHostGroupId;
|
||||
setCoreParameter("DedicatedHostGroupId", dedicatedHostGroupId);
|
||||
}
|
||||
|
||||
std::string CreateDBInstanceRequest::getDBInstanceNetType()const
|
||||
{
|
||||
return dBInstanceNetType_;
|
||||
|
||||
170
rds/src/model/CreateDedicatedHostGroupRequest.cc
Normal file
170
rds/src/model/CreateDedicatedHostGroupRequest.cc
Normal file
@@ -0,0 +1,170 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/CreateDedicatedHostGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::CreateDedicatedHostGroupRequest;
|
||||
|
||||
CreateDedicatedHostGroupRequest::CreateDedicatedHostGroupRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "CreateDedicatedHostGroup")
|
||||
{}
|
||||
|
||||
CreateDedicatedHostGroupRequest::~CreateDedicatedHostGroupRequest()
|
||||
{}
|
||||
|
||||
long CreateDedicatedHostGroupRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateDedicatedHostGroupRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
int CreateDedicatedHostGroupRequest::getCpuAllocationRatio()const
|
||||
{
|
||||
return cpuAllocationRatio_;
|
||||
}
|
||||
|
||||
void CreateDedicatedHostGroupRequest::setCpuAllocationRatio(int cpuAllocationRatio)
|
||||
{
|
||||
cpuAllocationRatio_ = cpuAllocationRatio;
|
||||
setCoreParameter("CpuAllocationRatio", std::to_string(cpuAllocationRatio));
|
||||
}
|
||||
|
||||
std::string CreateDedicatedHostGroupRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateDedicatedHostGroupRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string CreateDedicatedHostGroupRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateDedicatedHostGroupRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateDedicatedHostGroupRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateDedicatedHostGroupRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateDedicatedHostGroupRequest::getEngine()const
|
||||
{
|
||||
return engine_;
|
||||
}
|
||||
|
||||
void CreateDedicatedHostGroupRequest::setEngine(const std::string& engine)
|
||||
{
|
||||
engine_ = engine;
|
||||
setCoreParameter("Engine", engine);
|
||||
}
|
||||
|
||||
std::string CreateDedicatedHostGroupRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void CreateDedicatedHostGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
int CreateDedicatedHostGroupRequest::getDiskAllocationRatio()const
|
||||
{
|
||||
return diskAllocationRatio_;
|
||||
}
|
||||
|
||||
void CreateDedicatedHostGroupRequest::setDiskAllocationRatio(int diskAllocationRatio)
|
||||
{
|
||||
diskAllocationRatio_ = diskAllocationRatio;
|
||||
setCoreParameter("DiskAllocationRatio", std::to_string(diskAllocationRatio));
|
||||
}
|
||||
|
||||
int CreateDedicatedHostGroupRequest::getMemAllocationRatio()const
|
||||
{
|
||||
return memAllocationRatio_;
|
||||
}
|
||||
|
||||
void CreateDedicatedHostGroupRequest::setMemAllocationRatio(int memAllocationRatio)
|
||||
{
|
||||
memAllocationRatio_ = memAllocationRatio;
|
||||
setCoreParameter("MemAllocationRatio", std::to_string(memAllocationRatio));
|
||||
}
|
||||
|
||||
long CreateDedicatedHostGroupRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateDedicatedHostGroupRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateDedicatedHostGroupRequest::getHostReplacePolicy()const
|
||||
{
|
||||
return hostReplacePolicy_;
|
||||
}
|
||||
|
||||
void CreateDedicatedHostGroupRequest::setHostReplacePolicy(const std::string& hostReplacePolicy)
|
||||
{
|
||||
hostReplacePolicy_ = hostReplacePolicy;
|
||||
setCoreParameter("HostReplacePolicy", hostReplacePolicy);
|
||||
}
|
||||
|
||||
std::string CreateDedicatedHostGroupRequest::getAllocationPolicy()const
|
||||
{
|
||||
return allocationPolicy_;
|
||||
}
|
||||
|
||||
void CreateDedicatedHostGroupRequest::setAllocationPolicy(const std::string& allocationPolicy)
|
||||
{
|
||||
allocationPolicy_ = allocationPolicy;
|
||||
setCoreParameter("AllocationPolicy", allocationPolicy);
|
||||
}
|
||||
|
||||
std::string CreateDedicatedHostGroupRequest::getVPCId()const
|
||||
{
|
||||
return vPCId_;
|
||||
}
|
||||
|
||||
void CreateDedicatedHostGroupRequest::setVPCId(const std::string& vPCId)
|
||||
{
|
||||
vPCId_ = vPCId;
|
||||
setCoreParameter("VPCId", vPCId);
|
||||
}
|
||||
|
||||
51
rds/src/model/CreateDedicatedHostGroupResult.cc
Normal file
51
rds/src/model/CreateDedicatedHostGroupResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/CreateDedicatedHostGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
CreateDedicatedHostGroupResult::CreateDedicatedHostGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateDedicatedHostGroupResult::CreateDedicatedHostGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateDedicatedHostGroupResult::~CreateDedicatedHostGroupResult()
|
||||
{}
|
||||
|
||||
void CreateDedicatedHostGroupResult::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();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateDedicatedHostGroupResult::getDedicatedHostGroupId()const
|
||||
{
|
||||
return dedicatedHostGroupId_;
|
||||
}
|
||||
|
||||
203
rds/src/model/CreateDedicatedHostRequest.cc
Normal file
203
rds/src/model/CreateDedicatedHostRequest.cc
Normal file
@@ -0,0 +1,203 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/CreateDedicatedHostRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::CreateDedicatedHostRequest;
|
||||
|
||||
CreateDedicatedHostRequest::CreateDedicatedHostRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "CreateDedicatedHost")
|
||||
{}
|
||||
|
||||
CreateDedicatedHostRequest::~CreateDedicatedHostRequest()
|
||||
{}
|
||||
|
||||
long CreateDedicatedHostRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateDedicatedHostRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateDedicatedHostRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateDedicatedHostRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string CreateDedicatedHostRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateDedicatedHostRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateDedicatedHostRequest::getHostName()const
|
||||
{
|
||||
return hostName_;
|
||||
}
|
||||
|
||||
void CreateDedicatedHostRequest::setHostName(const std::string& hostName)
|
||||
{
|
||||
hostName_ = hostName;
|
||||
setCoreParameter("HostName", hostName);
|
||||
}
|
||||
|
||||
int CreateDedicatedHostRequest::getHostCount()const
|
||||
{
|
||||
return hostCount_;
|
||||
}
|
||||
|
||||
void CreateDedicatedHostRequest::setHostCount(int hostCount)
|
||||
{
|
||||
hostCount_ = hostCount;
|
||||
setCoreParameter("HostCount", std::to_string(hostCount));
|
||||
}
|
||||
|
||||
std::string CreateDedicatedHostRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateDedicatedHostRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateDedicatedHostRequest::getDedicatedHostGroupId()const
|
||||
{
|
||||
return dedicatedHostGroupId_;
|
||||
}
|
||||
|
||||
void CreateDedicatedHostRequest::setDedicatedHostGroupId(const std::string& dedicatedHostGroupId)
|
||||
{
|
||||
dedicatedHostGroupId_ = dedicatedHostGroupId;
|
||||
setCoreParameter("DedicatedHostGroupId", dedicatedHostGroupId);
|
||||
}
|
||||
|
||||
std::string CreateDedicatedHostRequest::getPeriod()const
|
||||
{
|
||||
return period_;
|
||||
}
|
||||
|
||||
void CreateDedicatedHostRequest::setPeriod(const std::string& period)
|
||||
{
|
||||
period_ = period;
|
||||
setCoreParameter("Period", period);
|
||||
}
|
||||
|
||||
std::string CreateDedicatedHostRequest::getHostClass()const
|
||||
{
|
||||
return hostClass_;
|
||||
}
|
||||
|
||||
void CreateDedicatedHostRequest::setHostClass(const std::string& hostClass)
|
||||
{
|
||||
hostClass_ = hostClass;
|
||||
setCoreParameter("HostClass", hostClass);
|
||||
}
|
||||
|
||||
std::string CreateDedicatedHostRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void CreateDedicatedHostRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long CreateDedicatedHostRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateDedicatedHostRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateDedicatedHostRequest::getUsedTime()const
|
||||
{
|
||||
return usedTime_;
|
||||
}
|
||||
|
||||
void CreateDedicatedHostRequest::setUsedTime(const std::string& usedTime)
|
||||
{
|
||||
usedTime_ = usedTime;
|
||||
setCoreParameter("UsedTime", usedTime);
|
||||
}
|
||||
|
||||
std::string CreateDedicatedHostRequest::getVSwitchId()const
|
||||
{
|
||||
return vSwitchId_;
|
||||
}
|
||||
|
||||
void CreateDedicatedHostRequest::setVSwitchId(const std::string& vSwitchId)
|
||||
{
|
||||
vSwitchId_ = vSwitchId;
|
||||
setCoreParameter("VSwitchId", vSwitchId);
|
||||
}
|
||||
|
||||
std::string CreateDedicatedHostRequest::getAutoRenew()const
|
||||
{
|
||||
return autoRenew_;
|
||||
}
|
||||
|
||||
void CreateDedicatedHostRequest::setAutoRenew(const std::string& autoRenew)
|
||||
{
|
||||
autoRenew_ = autoRenew;
|
||||
setCoreParameter("AutoRenew", autoRenew);
|
||||
}
|
||||
|
||||
std::string CreateDedicatedHostRequest::getZoneId()const
|
||||
{
|
||||
return zoneId_;
|
||||
}
|
||||
|
||||
void CreateDedicatedHostRequest::setZoneId(const std::string& zoneId)
|
||||
{
|
||||
zoneId_ = zoneId;
|
||||
setCoreParameter("ZoneId", zoneId);
|
||||
}
|
||||
|
||||
std::string CreateDedicatedHostRequest::getPayType()const
|
||||
{
|
||||
return payType_;
|
||||
}
|
||||
|
||||
void CreateDedicatedHostRequest::setPayType(const std::string& payType)
|
||||
{
|
||||
payType_ = payType;
|
||||
setCoreParameter("PayType", payType);
|
||||
}
|
||||
|
||||
64
rds/src/model/CreateDedicatedHostResult.cc
Normal file
64
rds/src/model/CreateDedicatedHostResult.cc
Normal file
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <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_;
|
||||
}
|
||||
|
||||
@@ -25,113 +25,113 @@ CreateParameterGroupRequest::CreateParameterGroupRequest() :
|
||||
CreateParameterGroupRequest::~CreateParameterGroupRequest()
|
||||
{}
|
||||
|
||||
long CreateParameterGroupRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateParameterGroupRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateParameterGroupRequest::getEngineVersion()const
|
||||
{
|
||||
return engineVersion_;
|
||||
}
|
||||
|
||||
void CreateParameterGroupRequest::setEngineVersion(const std::string& engineVersion)
|
||||
{
|
||||
engineVersion_ = engineVersion;
|
||||
setCoreParameter("EngineVersion", engineVersion);
|
||||
}
|
||||
|
||||
std::string CreateParameterGroupRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateParameterGroupRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateParameterGroupRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateParameterGroupRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateParameterGroupRequest::getEngine()const
|
||||
{
|
||||
return engine_;
|
||||
}
|
||||
|
||||
void CreateParameterGroupRequest::setEngine(const std::string& engine)
|
||||
{
|
||||
engine_ = engine;
|
||||
setCoreParameter("Engine", engine);
|
||||
}
|
||||
|
||||
std::string CreateParameterGroupRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void CreateParameterGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long CreateParameterGroupRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateParameterGroupRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateParameterGroupRequest::getParameterGroupName()const
|
||||
{
|
||||
return parameterGroupName_;
|
||||
}
|
||||
|
||||
void CreateParameterGroupRequest::setParameterGroupName(const std::string& parameterGroupName)
|
||||
{
|
||||
parameterGroupName_ = parameterGroupName;
|
||||
setCoreParameter("ParameterGroupName", parameterGroupName);
|
||||
}
|
||||
|
||||
std::string CreateParameterGroupRequest::getParameters()const
|
||||
{
|
||||
return parameters_;
|
||||
}
|
||||
|
||||
void CreateParameterGroupRequest::setParameters(const std::string& parameters)
|
||||
{
|
||||
parameters_ = parameters;
|
||||
setCoreParameter("Parameters", parameters);
|
||||
}
|
||||
|
||||
std::string CreateParameterGroupRequest::getParameterGroupDesc()const
|
||||
{
|
||||
return parameterGroupDesc_;
|
||||
}
|
||||
|
||||
void CreateParameterGroupRequest::setParameterGroupDesc(const std::string& parameterGroupDesc)
|
||||
{
|
||||
parameterGroupDesc_ = parameterGroupDesc;
|
||||
setCoreParameter("ParameterGroupDesc", parameterGroupDesc);
|
||||
}
|
||||
|
||||
long CreateParameterGroupRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateParameterGroupRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateParameterGroupRequest::getEngineVersion()const
|
||||
{
|
||||
return engineVersion_;
|
||||
}
|
||||
|
||||
void CreateParameterGroupRequest::setEngineVersion(const std::string& engineVersion)
|
||||
{
|
||||
engineVersion_ = engineVersion;
|
||||
setCoreParameter("EngineVersion", engineVersion);
|
||||
}
|
||||
|
||||
std::string CreateParameterGroupRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateParameterGroupRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateParameterGroupRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateParameterGroupRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateParameterGroupRequest::getEngine()const
|
||||
{
|
||||
return engine_;
|
||||
}
|
||||
|
||||
void CreateParameterGroupRequest::setEngine(const std::string& engine)
|
||||
{
|
||||
engine_ = engine;
|
||||
setCoreParameter("Engine", engine);
|
||||
}
|
||||
|
||||
std::string CreateParameterGroupRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void CreateParameterGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long CreateParameterGroupRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateParameterGroupRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateParameterGroupRequest::getParameterGroupName()const
|
||||
{
|
||||
return parameterGroupName_;
|
||||
}
|
||||
|
||||
void CreateParameterGroupRequest::setParameterGroupName(const std::string& parameterGroupName)
|
||||
{
|
||||
parameterGroupName_ = parameterGroupName;
|
||||
setCoreParameter("ParameterGroupName", parameterGroupName);
|
||||
}
|
||||
|
||||
std::string CreateParameterGroupRequest::getParameters()const
|
||||
{
|
||||
return parameters_;
|
||||
}
|
||||
|
||||
void CreateParameterGroupRequest::setParameters(const std::string& parameters)
|
||||
{
|
||||
parameters_ = parameters;
|
||||
setCoreParameter("Parameters", parameters);
|
||||
}
|
||||
|
||||
std::string CreateParameterGroupRequest::getParameterGroupDesc()const
|
||||
{
|
||||
return parameterGroupDesc_;
|
||||
}
|
||||
|
||||
void CreateParameterGroupRequest::setParameterGroupDesc(const std::string& parameterGroupDesc)
|
||||
{
|
||||
parameterGroupDesc_ = parameterGroupDesc;
|
||||
setCoreParameter("ParameterGroupDesc", parameterGroupDesc);
|
||||
}
|
||||
|
||||
|
||||
93
rds/src/model/DeleteDedicatedHostGroupRequest.cc
Normal file
93
rds/src/model/DeleteDedicatedHostGroupRequest.cc
Normal file
@@ -0,0 +1,93 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/DeleteDedicatedHostGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DeleteDedicatedHostGroupRequest;
|
||||
|
||||
DeleteDedicatedHostGroupRequest::DeleteDedicatedHostGroupRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "DeleteDedicatedHostGroup")
|
||||
{}
|
||||
|
||||
DeleteDedicatedHostGroupRequest::~DeleteDedicatedHostGroupRequest()
|
||||
{}
|
||||
|
||||
long DeleteDedicatedHostGroupRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DeleteDedicatedHostGroupRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DeleteDedicatedHostGroupRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DeleteDedicatedHostGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long DeleteDedicatedHostGroupRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DeleteDedicatedHostGroupRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DeleteDedicatedHostGroupRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteDedicatedHostGroupRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DeleteDedicatedHostGroupRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteDedicatedHostGroupRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DeleteDedicatedHostGroupRequest::getDedicatedHostGroupId()const
|
||||
{
|
||||
return dedicatedHostGroupId_;
|
||||
}
|
||||
|
||||
void DeleteDedicatedHostGroupRequest::setDedicatedHostGroupId(const std::string& dedicatedHostGroupId)
|
||||
{
|
||||
dedicatedHostGroupId_ = dedicatedHostGroupId;
|
||||
setCoreParameter("DedicatedHostGroupId", dedicatedHostGroupId);
|
||||
}
|
||||
|
||||
44
rds/src/model/DeleteDedicatedHostGroupResult.cc
Normal file
44
rds/src/model/DeleteDedicatedHostGroupResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/DeleteDedicatedHostGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
DeleteDedicatedHostGroupResult::DeleteDedicatedHostGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteDedicatedHostGroupResult::DeleteDedicatedHostGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteDedicatedHostGroupResult::~DeleteDedicatedHostGroupResult()
|
||||
{}
|
||||
|
||||
void DeleteDedicatedHostGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
93
rds/src/model/DeleteDedicatedHostRequest.cc
Normal file
93
rds/src/model/DeleteDedicatedHostRequest.cc
Normal file
@@ -0,0 +1,93 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/DeleteDedicatedHostRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DeleteDedicatedHostRequest;
|
||||
|
||||
DeleteDedicatedHostRequest::DeleteDedicatedHostRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "DeleteDedicatedHost")
|
||||
{}
|
||||
|
||||
DeleteDedicatedHostRequest::~DeleteDedicatedHostRequest()
|
||||
{}
|
||||
|
||||
long DeleteDedicatedHostRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DeleteDedicatedHostRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DeleteDedicatedHostRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DeleteDedicatedHostRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DeleteDedicatedHostRequest::getDedicatedHostId()const
|
||||
{
|
||||
return dedicatedHostId_;
|
||||
}
|
||||
|
||||
void DeleteDedicatedHostRequest::setDedicatedHostId(const std::string& dedicatedHostId)
|
||||
{
|
||||
dedicatedHostId_ = dedicatedHostId;
|
||||
setCoreParameter("DedicatedHostId", dedicatedHostId);
|
||||
}
|
||||
|
||||
long DeleteDedicatedHostRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DeleteDedicatedHostRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DeleteDedicatedHostRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteDedicatedHostRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DeleteDedicatedHostRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteDedicatedHostRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
44
rds/src/model/DeleteDedicatedHostResult.cc
Normal file
44
rds/src/model/DeleteDedicatedHostResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/DeleteDedicatedHostResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
DeleteDedicatedHostResult::DeleteDedicatedHostResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteDedicatedHostResult::DeleteDedicatedHostResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteDedicatedHostResult::~DeleteDedicatedHostResult()
|
||||
{}
|
||||
|
||||
void DeleteDedicatedHostResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -25,69 +25,69 @@ DeleteParameterGroupRequest::DeleteParameterGroupRequest() :
|
||||
DeleteParameterGroupRequest::~DeleteParameterGroupRequest()
|
||||
{}
|
||||
|
||||
long DeleteParameterGroupRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DeleteParameterGroupRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DeleteParameterGroupRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DeleteParameterGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long DeleteParameterGroupRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DeleteParameterGroupRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DeleteParameterGroupRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteParameterGroupRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DeleteParameterGroupRequest::getParameterGroupId()const
|
||||
{
|
||||
return parameterGroupId_;
|
||||
}
|
||||
|
||||
void DeleteParameterGroupRequest::setParameterGroupId(const std::string& parameterGroupId)
|
||||
{
|
||||
parameterGroupId_ = parameterGroupId;
|
||||
setCoreParameter("ParameterGroupId", parameterGroupId);
|
||||
}
|
||||
|
||||
std::string DeleteParameterGroupRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteParameterGroupRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
long DeleteParameterGroupRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DeleteParameterGroupRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DeleteParameterGroupRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DeleteParameterGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long DeleteParameterGroupRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DeleteParameterGroupRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DeleteParameterGroupRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteParameterGroupRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DeleteParameterGroupRequest::getParameterGroupId()const
|
||||
{
|
||||
return parameterGroupId_;
|
||||
}
|
||||
|
||||
void DeleteParameterGroupRequest::setParameterGroupId(const std::string& parameterGroupId)
|
||||
{
|
||||
parameterGroupId_ = parameterGroupId;
|
||||
setCoreParameter("ParameterGroupId", parameterGroupId);
|
||||
}
|
||||
|
||||
std::string DeleteParameterGroupRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteParameterGroupRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
|
||||
@@ -83,6 +83,8 @@ void DescribeBackupsResult::parse(const std::string &payload)
|
||||
itemsObject.metaStatus = valueItemsBackup["MetaStatus"].asString();
|
||||
if(!valueItemsBackup["SlaveStatus"].isNull())
|
||||
itemsObject.slaveStatus = valueItemsBackup["SlaveStatus"].asString();
|
||||
if(!valueItemsBackup["ConsistentTime"].isNull())
|
||||
itemsObject.consistentTime = std::stol(valueItemsBackup["ConsistentTime"].asString());
|
||||
items_.push_back(itemsObject);
|
||||
}
|
||||
if(!value["TotalRecordCount"].isNull())
|
||||
|
||||
@@ -91,6 +91,28 @@ void DescribeCrossRegionBackupDBInstanceRequest::setDBInstanceId(const std::stri
|
||||
setCoreParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
int DescribeCrossRegionBackupDBInstanceRequest::getNotEnabled()const
|
||||
{
|
||||
return notEnabled_;
|
||||
}
|
||||
|
||||
void DescribeCrossRegionBackupDBInstanceRequest::setNotEnabled(int notEnabled)
|
||||
{
|
||||
notEnabled_ = notEnabled;
|
||||
setCoreParameter("NotEnabled", std::to_string(notEnabled));
|
||||
}
|
||||
|
||||
std::string DescribeCrossRegionBackupDBInstanceRequest::getProduct()const
|
||||
{
|
||||
return product_;
|
||||
}
|
||||
|
||||
void DescribeCrossRegionBackupDBInstanceRequest::setProduct(const std::string& product)
|
||||
{
|
||||
product_ = product;
|
||||
setCoreParameter("Product", product);
|
||||
}
|
||||
|
||||
std::string DescribeCrossRegionBackupDBInstanceRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
|
||||
@@ -179,6 +179,10 @@ void DescribeDBInstanceAttributeResult::parse(const std::string &payload)
|
||||
itemsObject.masterZone = valueItemsDBInstanceAttribute["MasterZone"].asString();
|
||||
if(!valueItemsDBInstanceAttribute["AutoUpgradeMinorVersion"].isNull())
|
||||
itemsObject.autoUpgradeMinorVersion = valueItemsDBInstanceAttribute["AutoUpgradeMinorVersion"].asString();
|
||||
if(!valueItemsDBInstanceAttribute["ProxyType"].isNull())
|
||||
itemsObject.proxyType = std::stoi(valueItemsDBInstanceAttribute["ProxyType"].asString());
|
||||
if(!valueItemsDBInstanceAttribute["ConsoleVersion"].isNull())
|
||||
itemsObject.consoleVersion = valueItemsDBInstanceAttribute["ConsoleVersion"].asString();
|
||||
auto allSlaveZonesNode = allItemsNode["SlaveZones"]["SlaveZone"];
|
||||
for (auto allItemsNodeSlaveZonesSlaveZone : allSlaveZonesNode)
|
||||
{
|
||||
|
||||
@@ -333,6 +333,17 @@ void DescribeDBInstancesRequest::setDBInstanceId(const std::string& dBInstanceId
|
||||
setCoreParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
std::string DescribeDBInstancesRequest::getDedicatedHostGroupId()const
|
||||
{
|
||||
return dedicatedHostGroupId_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancesRequest::setDedicatedHostGroupId(const std::string& dedicatedHostGroupId)
|
||||
{
|
||||
dedicatedHostGroupId_ = dedicatedHostGroupId;
|
||||
setCoreParameter("DedicatedHostGroupId", dedicatedHostGroupId);
|
||||
}
|
||||
|
||||
std::string DescribeDBInstancesRequest::getTag3value()const
|
||||
{
|
||||
return tag3value_;
|
||||
|
||||
@@ -105,6 +105,20 @@ void DescribeDBInstancesResult::parse(const std::string &payload)
|
||||
itemsObject.resourceGroupId = valueItemsDBInstance["ResourceGroupId"].asString();
|
||||
if(!valueItemsDBInstance["AutoUpgradeMinorVersion"].isNull())
|
||||
itemsObject.autoUpgradeMinorVersion = valueItemsDBInstance["AutoUpgradeMinorVersion"].asString();
|
||||
if(!valueItemsDBInstance["DedicatedHostGroupId"].isNull())
|
||||
itemsObject.dedicatedHostGroupId = valueItemsDBInstance["DedicatedHostGroupId"].asString();
|
||||
if(!valueItemsDBInstance["DedicatedHostIdForMaster"].isNull())
|
||||
itemsObject.dedicatedHostIdForMaster = valueItemsDBInstance["DedicatedHostIdForMaster"].asString();
|
||||
if(!valueItemsDBInstance["DedicatedHostIdForSlave"].isNull())
|
||||
itemsObject.dedicatedHostIdForSlave = valueItemsDBInstance["DedicatedHostIdForSlave"].asString();
|
||||
if(!valueItemsDBInstance["DedicatedHostIdForLog"].isNull())
|
||||
itemsObject.dedicatedHostIdForLog = valueItemsDBInstance["DedicatedHostIdForLog"].asString();
|
||||
if(!valueItemsDBInstance["DedicatedHostNameForMaster"].isNull())
|
||||
itemsObject.dedicatedHostNameForMaster = valueItemsDBInstance["DedicatedHostNameForMaster"].asString();
|
||||
if(!valueItemsDBInstance["DedicatedHostNameForSlave"].isNull())
|
||||
itemsObject.dedicatedHostNameForSlave = valueItemsDBInstance["DedicatedHostNameForSlave"].asString();
|
||||
if(!valueItemsDBInstance["DedicatedHostNameForLog"].isNull())
|
||||
itemsObject.dedicatedHostNameForLog = valueItemsDBInstance["DedicatedHostNameForLog"].asString();
|
||||
auto allReadOnlyDBInstanceIdsNode = allItemsNode["ReadOnlyDBInstanceIds"]["ReadOnlyDBInstanceId"];
|
||||
for (auto allItemsNodeReadOnlyDBInstanceIdsReadOnlyDBInstanceId : allReadOnlyDBInstanceIdsNode)
|
||||
{
|
||||
|
||||
115
rds/src/model/DescribeDBProxyEndpointRequest.cc
Normal file
115
rds/src/model/DescribeDBProxyEndpointRequest.cc
Normal file
@@ -0,0 +1,115 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/DescribeDBProxyEndpointRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DescribeDBProxyEndpointRequest;
|
||||
|
||||
DescribeDBProxyEndpointRequest::DescribeDBProxyEndpointRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "DescribeDBProxyEndpoint")
|
||||
{}
|
||||
|
||||
DescribeDBProxyEndpointRequest::~DescribeDBProxyEndpointRequest()
|
||||
{}
|
||||
|
||||
long DescribeDBProxyEndpointRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeDBProxyEndpointRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeDBProxyEndpointRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeDBProxyEndpointRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeDBProxyEndpointRequest::getDBProxyConnectString()const
|
||||
{
|
||||
return dBProxyConnectString_;
|
||||
}
|
||||
|
||||
void DescribeDBProxyEndpointRequest::setDBProxyConnectString(const std::string& dBProxyConnectString)
|
||||
{
|
||||
dBProxyConnectString_ = dBProxyConnectString;
|
||||
setCoreParameter("DBProxyConnectString", dBProxyConnectString);
|
||||
}
|
||||
|
||||
std::string DescribeDBProxyEndpointRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeDBProxyEndpointRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeDBProxyEndpointRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeDBProxyEndpointRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setCoreParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
std::string DescribeDBProxyEndpointRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeDBProxyEndpointRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long DescribeDBProxyEndpointRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeDBProxyEndpointRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeDBProxyEndpointRequest::getDBProxyEndpointId()const
|
||||
{
|
||||
return dBProxyEndpointId_;
|
||||
}
|
||||
|
||||
void DescribeDBProxyEndpointRequest::setDBProxyEndpointId(const std::string& dBProxyEndpointId)
|
||||
{
|
||||
dBProxyEndpointId_ = dBProxyEndpointId;
|
||||
setCoreParameter("DBProxyEndpointId", dBProxyEndpointId);
|
||||
}
|
||||
|
||||
100
rds/src/model/DescribeDBProxyEndpointResult.cc
Normal file
100
rds/src/model/DescribeDBProxyEndpointResult.cc
Normal file
@@ -0,0 +1,100 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/DescribeDBProxyEndpointResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
DescribeDBProxyEndpointResult::DescribeDBProxyEndpointResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDBProxyEndpointResult::DescribeDBProxyEndpointResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDBProxyEndpointResult::~DescribeDBProxyEndpointResult()
|
||||
{}
|
||||
|
||||
void DescribeDBProxyEndpointResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["DBProxyEndpointId"].isNull())
|
||||
dBProxyEndpointId_ = value["DBProxyEndpointId"].asString();
|
||||
if(!value["DBProxyConnectString"].isNull())
|
||||
dBProxyConnectString_ = value["DBProxyConnectString"].asString();
|
||||
if(!value["DBProxyConnectStringPort"].isNull())
|
||||
dBProxyConnectStringPort_ = value["DBProxyConnectStringPort"].asString();
|
||||
if(!value["DBProxyConnectStringNetType"].isNull())
|
||||
dBProxyConnectStringNetType_ = value["DBProxyConnectStringNetType"].asString();
|
||||
if(!value["DBProxyFeatures"].isNull())
|
||||
dBProxyFeatures_ = value["DBProxyFeatures"].asString();
|
||||
if(!value["ReadOnlyInstanceMaxDelayTime"].isNull())
|
||||
readOnlyInstanceMaxDelayTime_ = value["ReadOnlyInstanceMaxDelayTime"].asString();
|
||||
if(!value["ReadOnlyInstanceDistributionType"].isNull())
|
||||
readOnlyInstanceDistributionType_ = value["ReadOnlyInstanceDistributionType"].asString();
|
||||
if(!value["ReadOnlyInstanceWeight"].isNull())
|
||||
readOnlyInstanceWeight_ = value["ReadOnlyInstanceWeight"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeDBProxyEndpointResult::getReadOnlyInstanceDistributionType()const
|
||||
{
|
||||
return readOnlyInstanceDistributionType_;
|
||||
}
|
||||
|
||||
std::string DescribeDBProxyEndpointResult::getDBProxyConnectString()const
|
||||
{
|
||||
return dBProxyConnectString_;
|
||||
}
|
||||
|
||||
std::string DescribeDBProxyEndpointResult::getDBProxyEndpointId()const
|
||||
{
|
||||
return dBProxyEndpointId_;
|
||||
}
|
||||
|
||||
std::string DescribeDBProxyEndpointResult::getDBProxyFeatures()const
|
||||
{
|
||||
return dBProxyFeatures_;
|
||||
}
|
||||
|
||||
std::string DescribeDBProxyEndpointResult::getReadOnlyInstanceWeight()const
|
||||
{
|
||||
return readOnlyInstanceWeight_;
|
||||
}
|
||||
|
||||
std::string DescribeDBProxyEndpointResult::getReadOnlyInstanceMaxDelayTime()const
|
||||
{
|
||||
return readOnlyInstanceMaxDelayTime_;
|
||||
}
|
||||
|
||||
std::string DescribeDBProxyEndpointResult::getDBProxyConnectStringNetType()const
|
||||
{
|
||||
return dBProxyConnectStringNetType_;
|
||||
}
|
||||
|
||||
std::string DescribeDBProxyEndpointResult::getDBProxyConnectStringPort()const
|
||||
{
|
||||
return dBProxyConnectStringPort_;
|
||||
}
|
||||
|
||||
137
rds/src/model/DescribeDBProxyPerformanceRequest.cc
Normal file
137
rds/src/model/DescribeDBProxyPerformanceRequest.cc
Normal file
@@ -0,0 +1,137 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/DescribeDBProxyPerformanceRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DescribeDBProxyPerformanceRequest;
|
||||
|
||||
DescribeDBProxyPerformanceRequest::DescribeDBProxyPerformanceRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "DescribeDBProxyPerformance")
|
||||
{}
|
||||
|
||||
DescribeDBProxyPerformanceRequest::~DescribeDBProxyPerformanceRequest()
|
||||
{}
|
||||
|
||||
long DescribeDBProxyPerformanceRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeDBProxyPerformanceRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeDBProxyPerformanceRequest::getMetricsName()const
|
||||
{
|
||||
return metricsName_;
|
||||
}
|
||||
|
||||
void DescribeDBProxyPerformanceRequest::setMetricsName(const std::string& metricsName)
|
||||
{
|
||||
metricsName_ = metricsName;
|
||||
setCoreParameter("MetricsName", metricsName);
|
||||
}
|
||||
|
||||
std::string DescribeDBProxyPerformanceRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeDBProxyPerformanceRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setCoreParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::string DescribeDBProxyPerformanceRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeDBProxyPerformanceRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeDBProxyPerformanceRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeDBProxyPerformanceRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeDBProxyPerformanceRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeDBProxyPerformanceRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setCoreParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
std::string DescribeDBProxyPerformanceRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeDBProxyPerformanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeDBProxyPerformanceRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeDBProxyPerformanceRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setCoreParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
long DescribeDBProxyPerformanceRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeDBProxyPerformanceRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeDBProxyPerformanceRequest::getDBProxyInstanceType()const
|
||||
{
|
||||
return dBProxyInstanceType_;
|
||||
}
|
||||
|
||||
void DescribeDBProxyPerformanceRequest::setDBProxyInstanceType(const std::string& dBProxyInstanceType)
|
||||
{
|
||||
dBProxyInstanceType_ = dBProxyInstanceType;
|
||||
setCoreParameter("DBProxyInstanceType", dBProxyInstanceType);
|
||||
}
|
||||
|
||||
90
rds/src/model/DescribeDBProxyPerformanceResult.cc
Normal file
90
rds/src/model/DescribeDBProxyPerformanceResult.cc
Normal file
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/DescribeDBProxyPerformanceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
DescribeDBProxyPerformanceResult::DescribeDBProxyPerformanceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDBProxyPerformanceResult::DescribeDBProxyPerformanceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDBProxyPerformanceResult::~DescribeDBProxyPerformanceResult()
|
||||
{}
|
||||
|
||||
void DescribeDBProxyPerformanceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allPerformanceKeysNode = value["PerformanceKeys"]["PerformanceKey"];
|
||||
for (auto valuePerformanceKeysPerformanceKey : allPerformanceKeysNode)
|
||||
{
|
||||
PerformanceKey performanceKeysObject;
|
||||
if(!valuePerformanceKeysPerformanceKey["Key"].isNull())
|
||||
performanceKeysObject.key = valuePerformanceKeysPerformanceKey["Key"].asString();
|
||||
if(!valuePerformanceKeysPerformanceKey["ValueFormat"].isNull())
|
||||
performanceKeysObject.valueFormat = valuePerformanceKeysPerformanceKey["ValueFormat"].asString();
|
||||
auto allValuesNode = allPerformanceKeysNode["Values"]["PerformanceValue"];
|
||||
for (auto allPerformanceKeysNodeValuesPerformanceValue : allValuesNode)
|
||||
{
|
||||
PerformanceKey::PerformanceValue valuesObject;
|
||||
if(!allPerformanceKeysNodeValuesPerformanceValue["Value"].isNull())
|
||||
valuesObject.value = allPerformanceKeysNodeValuesPerformanceValue["Value"].asString();
|
||||
if(!allPerformanceKeysNodeValuesPerformanceValue["Date"].isNull())
|
||||
valuesObject.date = allPerformanceKeysNodeValuesPerformanceValue["Date"].asString();
|
||||
performanceKeysObject.values.push_back(valuesObject);
|
||||
}
|
||||
performanceKeys_.push_back(performanceKeysObject);
|
||||
}
|
||||
if(!value["DBInstanceId"].isNull())
|
||||
dBInstanceId_ = value["DBInstanceId"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeDBProxyPerformanceResult::PerformanceKey> DescribeDBProxyPerformanceResult::getPerformanceKeys()const
|
||||
{
|
||||
return performanceKeys_;
|
||||
}
|
||||
|
||||
std::string DescribeDBProxyPerformanceResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::string DescribeDBProxyPerformanceResult::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
std::string DescribeDBProxyPerformanceResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
93
rds/src/model/DescribeDBProxyRequest.cc
Normal file
93
rds/src/model/DescribeDBProxyRequest.cc
Normal file
@@ -0,0 +1,93 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/DescribeDBProxyRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DescribeDBProxyRequest;
|
||||
|
||||
DescribeDBProxyRequest::DescribeDBProxyRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "DescribeDBProxy")
|
||||
{}
|
||||
|
||||
DescribeDBProxyRequest::~DescribeDBProxyRequest()
|
||||
{}
|
||||
|
||||
long DescribeDBProxyRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeDBProxyRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeDBProxyRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeDBProxyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long DescribeDBProxyRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeDBProxyRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeDBProxyRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeDBProxyRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeDBProxyRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeDBProxyRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeDBProxyRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeDBProxyRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setCoreParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
93
rds/src/model/DescribeDBProxyResult.cc
Normal file
93
rds/src/model/DescribeDBProxyResult.cc
Normal file
@@ -0,0 +1,93 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/DescribeDBProxyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
DescribeDBProxyResult::DescribeDBProxyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDBProxyResult::DescribeDBProxyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDBProxyResult::~DescribeDBProxyResult()
|
||||
{}
|
||||
|
||||
void DescribeDBProxyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDBProxyConnectStringItemsNode = value["DBProxyConnectStringItems"]["DBProxyConnectStringItemsItem"];
|
||||
for (auto valueDBProxyConnectStringItemsDBProxyConnectStringItemsItem : allDBProxyConnectStringItemsNode)
|
||||
{
|
||||
DBProxyConnectStringItemsItem dBProxyConnectStringItemsObject;
|
||||
if(!valueDBProxyConnectStringItemsDBProxyConnectStringItemsItem["DBProxyEndpointId"].isNull())
|
||||
dBProxyConnectStringItemsObject.dBProxyEndpointId = valueDBProxyConnectStringItemsDBProxyConnectStringItemsItem["DBProxyEndpointId"].asString();
|
||||
if(!valueDBProxyConnectStringItemsDBProxyConnectStringItemsItem["DBProxyConnectString"].isNull())
|
||||
dBProxyConnectStringItemsObject.dBProxyConnectString = valueDBProxyConnectStringItemsDBProxyConnectStringItemsItem["DBProxyConnectString"].asString();
|
||||
if(!valueDBProxyConnectStringItemsDBProxyConnectStringItemsItem["DBProxyConnectStringPort"].isNull())
|
||||
dBProxyConnectStringItemsObject.dBProxyConnectStringPort = valueDBProxyConnectStringItemsDBProxyConnectStringItemsItem["DBProxyConnectStringPort"].asString();
|
||||
if(!valueDBProxyConnectStringItemsDBProxyConnectStringItemsItem["DBProxyConnectStringNetType"].isNull())
|
||||
dBProxyConnectStringItemsObject.dBProxyConnectStringNetType = valueDBProxyConnectStringItemsDBProxyConnectStringItemsItem["DBProxyConnectStringNetType"].asString();
|
||||
if(!valueDBProxyConnectStringItemsDBProxyConnectStringItemsItem["DBProxyVpcInstanceId"].isNull())
|
||||
dBProxyConnectStringItemsObject.dBProxyVpcInstanceId = valueDBProxyConnectStringItemsDBProxyConnectStringItemsItem["DBProxyVpcInstanceId"].asString();
|
||||
dBProxyConnectStringItems_.push_back(dBProxyConnectStringItemsObject);
|
||||
}
|
||||
if(!value["DBProxyServiceStatus"].isNull())
|
||||
dBProxyServiceStatus_ = value["DBProxyServiceStatus"].asString();
|
||||
if(!value["DBProxyInstanceType"].isNull())
|
||||
dBProxyInstanceType_ = value["DBProxyInstanceType"].asString();
|
||||
if(!value["DBProxyInstanceNum"].isNull())
|
||||
dBProxyInstanceNum_ = std::stoi(value["DBProxyInstanceNum"].asString());
|
||||
if(!value["DBProxyInstanceStatus"].isNull())
|
||||
dBProxyInstanceStatus_ = value["DBProxyInstanceStatus"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeDBProxyResult::getDBProxyServiceStatus()const
|
||||
{
|
||||
return dBProxyServiceStatus_;
|
||||
}
|
||||
|
||||
int DescribeDBProxyResult::getDBProxyInstanceNum()const
|
||||
{
|
||||
return dBProxyInstanceNum_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDBProxyResult::DBProxyConnectStringItemsItem> DescribeDBProxyResult::getDBProxyConnectStringItems()const
|
||||
{
|
||||
return dBProxyConnectStringItems_;
|
||||
}
|
||||
|
||||
std::string DescribeDBProxyResult::getDBProxyInstanceStatus()const
|
||||
{
|
||||
return dBProxyInstanceStatus_;
|
||||
}
|
||||
|
||||
std::string DescribeDBProxyResult::getDBProxyInstanceType()const
|
||||
{
|
||||
return dBProxyInstanceType_;
|
||||
}
|
||||
|
||||
104
rds/src/model/DescribeDedicatedHostAttributeRequest.cc
Normal file
104
rds/src/model/DescribeDedicatedHostAttributeRequest.cc
Normal file
@@ -0,0 +1,104 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/DescribeDedicatedHostAttributeRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DescribeDedicatedHostAttributeRequest;
|
||||
|
||||
DescribeDedicatedHostAttributeRequest::DescribeDedicatedHostAttributeRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "DescribeDedicatedHostAttribute")
|
||||
{}
|
||||
|
||||
DescribeDedicatedHostAttributeRequest::~DescribeDedicatedHostAttributeRequest()
|
||||
{}
|
||||
|
||||
long DescribeDedicatedHostAttributeRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeDedicatedHostAttributeRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeDedicatedHostAttributeRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeDedicatedHostAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeDedicatedHostAttributeRequest::getDedicatedHostId()const
|
||||
{
|
||||
return dedicatedHostId_;
|
||||
}
|
||||
|
||||
void DescribeDedicatedHostAttributeRequest::setDedicatedHostId(const std::string& dedicatedHostId)
|
||||
{
|
||||
dedicatedHostId_ = dedicatedHostId;
|
||||
setCoreParameter("DedicatedHostId", dedicatedHostId);
|
||||
}
|
||||
|
||||
long DescribeDedicatedHostAttributeRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeDedicatedHostAttributeRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeDedicatedHostAttributeRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeDedicatedHostAttributeRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeDedicatedHostAttributeRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeDedicatedHostAttributeRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeDedicatedHostAttributeRequest::getDedicatedHostGroupId()const
|
||||
{
|
||||
return dedicatedHostGroupId_;
|
||||
}
|
||||
|
||||
void DescribeDedicatedHostAttributeRequest::setDedicatedHostGroupId(const std::string& dedicatedHostGroupId)
|
||||
{
|
||||
dedicatedHostGroupId_ = dedicatedHostGroupId;
|
||||
setCoreParameter("DedicatedHostGroupId", dedicatedHostGroupId);
|
||||
}
|
||||
|
||||
240
rds/src/model/DescribeDedicatedHostAttributeResult.cc
Normal file
240
rds/src/model/DescribeDedicatedHostAttributeResult.cc
Normal file
@@ -0,0 +1,240 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES 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();
|
||||
|
||||
}
|
||||
|
||||
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_;
|
||||
}
|
||||
|
||||
int DescribeDedicatedHostAttributeResult::getHostStorage()const
|
||||
{
|
||||
return hostStorage_;
|
||||
}
|
||||
|
||||
int DescribeDedicatedHostAttributeResult::getInstanceNumberSlave()const
|
||||
{
|
||||
return instanceNumberSlave_;
|
||||
}
|
||||
|
||||
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_;
|
||||
}
|
||||
|
||||
93
rds/src/model/DescribeDedicatedHostGroupsRequest.cc
Normal file
93
rds/src/model/DescribeDedicatedHostGroupsRequest.cc
Normal file
@@ -0,0 +1,93 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/DescribeDedicatedHostGroupsRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DescribeDedicatedHostGroupsRequest;
|
||||
|
||||
DescribeDedicatedHostGroupsRequest::DescribeDedicatedHostGroupsRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "DescribeDedicatedHostGroups")
|
||||
{}
|
||||
|
||||
DescribeDedicatedHostGroupsRequest::~DescribeDedicatedHostGroupsRequest()
|
||||
{}
|
||||
|
||||
long DescribeDedicatedHostGroupsRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeDedicatedHostGroupsRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeDedicatedHostGroupsRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeDedicatedHostGroupsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long DescribeDedicatedHostGroupsRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeDedicatedHostGroupsRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeDedicatedHostGroupsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeDedicatedHostGroupsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeDedicatedHostGroupsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeDedicatedHostGroupsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeDedicatedHostGroupsRequest::getDedicatedHostGroupId()const
|
||||
{
|
||||
return dedicatedHostGroupId_;
|
||||
}
|
||||
|
||||
void DescribeDedicatedHostGroupsRequest::setDedicatedHostGroupId(const std::string& dedicatedHostGroupId)
|
||||
{
|
||||
dedicatedHostGroupId_ = dedicatedHostGroupId;
|
||||
setCoreParameter("DedicatedHostGroupId", dedicatedHostGroupId);
|
||||
}
|
||||
|
||||
79
rds/src/model/DescribeDedicatedHostGroupsResult.cc
Normal file
79
rds/src/model/DescribeDedicatedHostGroupsResult.cc
Normal file
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/DescribeDedicatedHostGroupsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
DescribeDedicatedHostGroupsResult::DescribeDedicatedHostGroupsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDedicatedHostGroupsResult::DescribeDedicatedHostGroupsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDedicatedHostGroupsResult::~DescribeDedicatedHostGroupsResult()
|
||||
{}
|
||||
|
||||
void DescribeDedicatedHostGroupsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDedicatedHostGroupsNode = value["DedicatedHostGroups"]["DedicatedHostGroupsItem"];
|
||||
for (auto valueDedicatedHostGroupsDedicatedHostGroupsItem : allDedicatedHostGroupsNode)
|
||||
{
|
||||
DedicatedHostGroupsItem dedicatedHostGroupsObject;
|
||||
if(!valueDedicatedHostGroupsDedicatedHostGroupsItem["DedicatedHostGroupId"].isNull())
|
||||
dedicatedHostGroupsObject.dedicatedHostGroupId = valueDedicatedHostGroupsDedicatedHostGroupsItem["DedicatedHostGroupId"].asString();
|
||||
if(!valueDedicatedHostGroupsDedicatedHostGroupsItem["DedicatedHostGroupDesc"].isNull())
|
||||
dedicatedHostGroupsObject.dedicatedHostGroupDesc = valueDedicatedHostGroupsDedicatedHostGroupsItem["DedicatedHostGroupDesc"].asString();
|
||||
if(!valueDedicatedHostGroupsDedicatedHostGroupsItem["CpuAllocationRatio"].isNull())
|
||||
dedicatedHostGroupsObject.cpuAllocationRatio = std::stoi(valueDedicatedHostGroupsDedicatedHostGroupsItem["CpuAllocationRatio"].asString());
|
||||
if(!valueDedicatedHostGroupsDedicatedHostGroupsItem["MemAllocationRatio"].isNull())
|
||||
dedicatedHostGroupsObject.memAllocationRatio = std::stoi(valueDedicatedHostGroupsDedicatedHostGroupsItem["MemAllocationRatio"].asString());
|
||||
if(!valueDedicatedHostGroupsDedicatedHostGroupsItem["DiskAllocationRatio"].isNull())
|
||||
dedicatedHostGroupsObject.diskAllocationRatio = std::stoi(valueDedicatedHostGroupsDedicatedHostGroupsItem["DiskAllocationRatio"].asString());
|
||||
if(!valueDedicatedHostGroupsDedicatedHostGroupsItem["AllocationPolicy"].isNull())
|
||||
dedicatedHostGroupsObject.allocationPolicy = valueDedicatedHostGroupsDedicatedHostGroupsItem["AllocationPolicy"].asString();
|
||||
if(!valueDedicatedHostGroupsDedicatedHostGroupsItem["HostReplacePolicy"].isNull())
|
||||
dedicatedHostGroupsObject.hostReplacePolicy = valueDedicatedHostGroupsDedicatedHostGroupsItem["HostReplacePolicy"].asString();
|
||||
if(!valueDedicatedHostGroupsDedicatedHostGroupsItem["CreateTime"].isNull())
|
||||
dedicatedHostGroupsObject.createTime = valueDedicatedHostGroupsDedicatedHostGroupsItem["CreateTime"].asString();
|
||||
if(!valueDedicatedHostGroupsDedicatedHostGroupsItem["VPCId"].isNull())
|
||||
dedicatedHostGroupsObject.vPCId = valueDedicatedHostGroupsDedicatedHostGroupsItem["VPCId"].asString();
|
||||
if(!valueDedicatedHostGroupsDedicatedHostGroupsItem["HostNumber"].isNull())
|
||||
dedicatedHostGroupsObject.hostNumber = std::stoi(valueDedicatedHostGroupsDedicatedHostGroupsItem["HostNumber"].asString());
|
||||
if(!valueDedicatedHostGroupsDedicatedHostGroupsItem["InstanceNumber"].isNull())
|
||||
dedicatedHostGroupsObject.instanceNumber = std::stoi(valueDedicatedHostGroupsDedicatedHostGroupsItem["InstanceNumber"].asString());
|
||||
if(!valueDedicatedHostGroupsDedicatedHostGroupsItem["Engine"].isNull())
|
||||
dedicatedHostGroupsObject.engine = valueDedicatedHostGroupsDedicatedHostGroupsItem["Engine"].asString();
|
||||
dedicatedHostGroups_.push_back(dedicatedHostGroupsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeDedicatedHostGroupsResult::DedicatedHostGroupsItem> DescribeDedicatedHostGroupsResult::getDedicatedHostGroups()const
|
||||
{
|
||||
return dedicatedHostGroups_;
|
||||
}
|
||||
|
||||
104
rds/src/model/DescribeDedicatedHostsRequest.cc
Normal file
104
rds/src/model/DescribeDedicatedHostsRequest.cc
Normal file
@@ -0,0 +1,104 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/DescribeDedicatedHostsRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DescribeDedicatedHostsRequest;
|
||||
|
||||
DescribeDedicatedHostsRequest::DescribeDedicatedHostsRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "DescribeDedicatedHosts")
|
||||
{}
|
||||
|
||||
DescribeDedicatedHostsRequest::~DescribeDedicatedHostsRequest()
|
||||
{}
|
||||
|
||||
long DescribeDedicatedHostsRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeDedicatedHostsRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeDedicatedHostsRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeDedicatedHostsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long DescribeDedicatedHostsRequest::getOrderId()const
|
||||
{
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
void DescribeDedicatedHostsRequest::setOrderId(long orderId)
|
||||
{
|
||||
orderId_ = orderId;
|
||||
setCoreParameter("OrderId", std::to_string(orderId));
|
||||
}
|
||||
|
||||
long DescribeDedicatedHostsRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeDedicatedHostsRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeDedicatedHostsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeDedicatedHostsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeDedicatedHostsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeDedicatedHostsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeDedicatedHostsRequest::getDedicatedHostGroupId()const
|
||||
{
|
||||
return dedicatedHostGroupId_;
|
||||
}
|
||||
|
||||
void DescribeDedicatedHostsRequest::setDedicatedHostGroupId(const std::string& dedicatedHostGroupId)
|
||||
{
|
||||
dedicatedHostGroupId_ = dedicatedHostGroupId;
|
||||
setCoreParameter("DedicatedHostGroupId", dedicatedHostGroupId);
|
||||
}
|
||||
|
||||
90
rds/src/model/DescribeDedicatedHostsResult.cc
Normal file
90
rds/src/model/DescribeDedicatedHostsResult.cc
Normal file
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/DescribeDedicatedHostsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
DescribeDedicatedHostsResult::DescribeDedicatedHostsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDedicatedHostsResult::DescribeDedicatedHostsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDedicatedHostsResult::~DescribeDedicatedHostsResult()
|
||||
{}
|
||||
|
||||
void DescribeDedicatedHostsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDedicatedHostsNode = value["DedicatedHosts"]["DedicatedHostsItem"];
|
||||
for (auto valueDedicatedHostsDedicatedHostsItem : allDedicatedHostsNode)
|
||||
{
|
||||
DedicatedHostsItem dedicatedHostsObject;
|
||||
if(!valueDedicatedHostsDedicatedHostsItem["HostName"].isNull())
|
||||
dedicatedHostsObject.hostName = valueDedicatedHostsDedicatedHostsItem["HostName"].asString();
|
||||
if(!valueDedicatedHostsDedicatedHostsItem["HostStatus"].isNull())
|
||||
dedicatedHostsObject.hostStatus = valueDedicatedHostsDedicatedHostsItem["HostStatus"].asString();
|
||||
if(!valueDedicatedHostsDedicatedHostsItem["InstanceNumber"].isNull())
|
||||
dedicatedHostsObject.instanceNumber = valueDedicatedHostsDedicatedHostsItem["InstanceNumber"].asString();
|
||||
if(!valueDedicatedHostsDedicatedHostsItem["CPUAllocationRatio"].isNull())
|
||||
dedicatedHostsObject.cPUAllocationRatio = valueDedicatedHostsDedicatedHostsItem["CPUAllocationRatio"].asString();
|
||||
if(!valueDedicatedHostsDedicatedHostsItem["MemAllocationRatio"].isNull())
|
||||
dedicatedHostsObject.memAllocationRatio = valueDedicatedHostsDedicatedHostsItem["MemAllocationRatio"].asString();
|
||||
if(!valueDedicatedHostsDedicatedHostsItem["DiskAllocationRatio"].isNull())
|
||||
dedicatedHostsObject.diskAllocationRatio = valueDedicatedHostsDedicatedHostsItem["DiskAllocationRatio"].asString();
|
||||
if(!valueDedicatedHostsDedicatedHostsItem["VPCId"].isNull())
|
||||
dedicatedHostsObject.vPCId = valueDedicatedHostsDedicatedHostsItem["VPCId"].asString();
|
||||
if(!valueDedicatedHostsDedicatedHostsItem["VSwitchId"].isNull())
|
||||
dedicatedHostsObject.vSwitchId = valueDedicatedHostsDedicatedHostsItem["VSwitchId"].asString();
|
||||
if(!valueDedicatedHostsDedicatedHostsItem["ZoneId"].isNull())
|
||||
dedicatedHostsObject.zoneId = valueDedicatedHostsDedicatedHostsItem["ZoneId"].asString();
|
||||
if(!valueDedicatedHostsDedicatedHostsItem["IPAddress"].isNull())
|
||||
dedicatedHostsObject.iPAddress = valueDedicatedHostsDedicatedHostsItem["IPAddress"].asString();
|
||||
if(!valueDedicatedHostsDedicatedHostsItem["HostClass"].isNull())
|
||||
dedicatedHostsObject.hostClass = valueDedicatedHostsDedicatedHostsItem["HostClass"].asString();
|
||||
if(!valueDedicatedHostsDedicatedHostsItem["CreatedTime"].isNull())
|
||||
dedicatedHostsObject.createdTime = valueDedicatedHostsDedicatedHostsItem["CreatedTime"].asString();
|
||||
if(!valueDedicatedHostsDedicatedHostsItem["DedicatedHostId"].isNull())
|
||||
dedicatedHostsObject.dedicatedHostId = valueDedicatedHostsDedicatedHostsItem["DedicatedHostId"].asString();
|
||||
if(!valueDedicatedHostsDedicatedHostsItem["AllocationStatus"].isNull())
|
||||
dedicatedHostsObject.allocationStatus = valueDedicatedHostsDedicatedHostsItem["AllocationStatus"].asString();
|
||||
dedicatedHosts_.push_back(dedicatedHostsObject);
|
||||
}
|
||||
if(!value["DedicatedHostGroupId"].isNull())
|
||||
dedicatedHostGroupId_ = value["DedicatedHostGroupId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeDedicatedHostsResult::DedicatedHostsItem> DescribeDedicatedHostsResult::getDedicatedHosts()const
|
||||
{
|
||||
return dedicatedHosts_;
|
||||
}
|
||||
|
||||
std::string DescribeDedicatedHostsResult::getDedicatedHostGroupId()const
|
||||
{
|
||||
return dedicatedHostGroupId_;
|
||||
}
|
||||
|
||||
@@ -25,69 +25,69 @@ DescribeParameterGroupRequest::DescribeParameterGroupRequest() :
|
||||
DescribeParameterGroupRequest::~DescribeParameterGroupRequest()
|
||||
{}
|
||||
|
||||
long DescribeParameterGroupRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeParameterGroupRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeParameterGroupRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeParameterGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long DescribeParameterGroupRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeParameterGroupRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeParameterGroupRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeParameterGroupRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeParameterGroupRequest::getParameterGroupId()const
|
||||
{
|
||||
return parameterGroupId_;
|
||||
}
|
||||
|
||||
void DescribeParameterGroupRequest::setParameterGroupId(const std::string& parameterGroupId)
|
||||
{
|
||||
parameterGroupId_ = parameterGroupId;
|
||||
setCoreParameter("ParameterGroupId", parameterGroupId);
|
||||
}
|
||||
|
||||
std::string DescribeParameterGroupRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeParameterGroupRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
long DescribeParameterGroupRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeParameterGroupRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeParameterGroupRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeParameterGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long DescribeParameterGroupRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeParameterGroupRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeParameterGroupRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeParameterGroupRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeParameterGroupRequest::getParameterGroupId()const
|
||||
{
|
||||
return parameterGroupId_;
|
||||
}
|
||||
|
||||
void DescribeParameterGroupRequest::setParameterGroupId(const std::string& parameterGroupId)
|
||||
{
|
||||
parameterGroupId_ = parameterGroupId;
|
||||
setCoreParameter("ParameterGroupId", parameterGroupId);
|
||||
}
|
||||
|
||||
std::string DescribeParameterGroupRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeParameterGroupRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
|
||||
@@ -25,58 +25,58 @@ DescribeParameterGroupsRequest::DescribeParameterGroupsRequest() :
|
||||
DescribeParameterGroupsRequest::~DescribeParameterGroupsRequest()
|
||||
{}
|
||||
|
||||
long DescribeParameterGroupsRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeParameterGroupsRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeParameterGroupsRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeParameterGroupsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long DescribeParameterGroupsRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeParameterGroupsRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeParameterGroupsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeParameterGroupsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeParameterGroupsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeParameterGroupsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
long DescribeParameterGroupsRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeParameterGroupsRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeParameterGroupsRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeParameterGroupsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long DescribeParameterGroupsRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeParameterGroupsRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeParameterGroupsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeParameterGroupsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeParameterGroupsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeParameterGroupsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
|
||||
@@ -80,6 +80,28 @@ void DescribeParameterTemplatesRequest::setEngine(const std::string& engine)
|
||||
setCoreParameter("Engine", engine);
|
||||
}
|
||||
|
||||
std::string DescribeParameterTemplatesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeParameterTemplatesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeParameterTemplatesRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeParameterTemplatesRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setCoreParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
std::string DescribeParameterTemplatesRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
|
||||
@@ -157,15 +157,15 @@ void DescribePriceRequest::setOwnerId(long ownerId)
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribePriceRequest::getUsedTime()const
|
||||
int DescribePriceRequest::getUsedTime()const
|
||||
{
|
||||
return usedTime_;
|
||||
}
|
||||
|
||||
void DescribePriceRequest::setUsedTime(const std::string& usedTime)
|
||||
void DescribePriceRequest::setUsedTime(int usedTime)
|
||||
{
|
||||
usedTime_ = usedTime;
|
||||
setCoreParameter("UsedTime", usedTime);
|
||||
setCoreParameter("UsedTime", std::to_string(usedTime));
|
||||
}
|
||||
|
||||
std::string DescribePriceRequest::getDBInstanceClass()const
|
||||
|
||||
@@ -146,15 +146,15 @@ void DescribeRenewalPriceRequest::setOwnerId(long ownerId)
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeRenewalPriceRequest::getUsedTime()const
|
||||
int DescribeRenewalPriceRequest::getUsedTime()const
|
||||
{
|
||||
return usedTime_;
|
||||
}
|
||||
|
||||
void DescribeRenewalPriceRequest::setUsedTime(const std::string& usedTime)
|
||||
void DescribeRenewalPriceRequest::setUsedTime(int usedTime)
|
||||
{
|
||||
usedTime_ = usedTime;
|
||||
setCoreParameter("UsedTime", usedTime);
|
||||
setCoreParameter("UsedTime", std::to_string(usedTime));
|
||||
}
|
||||
|
||||
std::string DescribeRenewalPriceRequest::getDBInstanceClass()const
|
||||
|
||||
133
rds/src/model/ListTagResourcesRequest.cc
Normal file
133
rds/src/model/ListTagResourcesRequest.cc
Normal file
@@ -0,0 +1,133 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/ListTagResourcesRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::ListTagResourcesRequest;
|
||||
|
||||
ListTagResourcesRequest::ListTagResourcesRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "ListTagResources")
|
||||
{}
|
||||
|
||||
ListTagResourcesRequest::~ListTagResourcesRequest()
|
||||
{}
|
||||
|
||||
long ListTagResourcesRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::vector<std::string> ListTagResourcesRequest::getResourceId()const
|
||||
{
|
||||
return resourceId_;
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setResourceId(const std::vector<std::string>& resourceId)
|
||||
{
|
||||
resourceId_ = resourceId;
|
||||
for(int i = 0; i!= resourceId.size(); i++)
|
||||
setCoreParameter("ResourceId."+ std::to_string(i), resourceId.at(i));
|
||||
}
|
||||
|
||||
std::string ListTagResourcesRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long ListTagResourcesRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string ListTagResourcesRequest::getResourceType()const
|
||||
{
|
||||
return resourceType_;
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setResourceType(const std::string& resourceType)
|
||||
{
|
||||
resourceType_ = resourceType;
|
||||
setCoreParameter("ResourceType", resourceType);
|
||||
}
|
||||
|
||||
std::string ListTagResourcesRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string ListTagResourcesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ListTagResourcesRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setCoreParameter("NextToken", nextToken);
|
||||
}
|
||||
|
||||
std::vector<ListTagResourcesRequest::Tag> ListTagResourcesRequest::getTag()const
|
||||
{
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setTag(const std::vector<Tag>& tag)
|
||||
{
|
||||
tag_ = tag;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= tag.size(); i++) {
|
||||
auto obj = tag.at(i);
|
||||
std::string str ="Tag."+ std::to_string(i);
|
||||
setCoreParameter(str + ".Value", obj.value);
|
||||
setCoreParameter(str + ".Key", obj.key);
|
||||
}
|
||||
}
|
||||
|
||||
70
rds/src/model/ListTagResourcesResult.cc
Normal file
70
rds/src/model/ListTagResourcesResult.cc
Normal file
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/ListTagResourcesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
ListTagResourcesResult::ListTagResourcesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListTagResourcesResult::ListTagResourcesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListTagResourcesResult::~ListTagResourcesResult()
|
||||
{}
|
||||
|
||||
void ListTagResourcesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allTagResourcesNode = value["TagResources"]["TagResource"];
|
||||
for (auto valueTagResourcesTagResource : allTagResourcesNode)
|
||||
{
|
||||
TagResource tagResourcesObject;
|
||||
if(!valueTagResourcesTagResource["TagKey"].isNull())
|
||||
tagResourcesObject.tagKey = valueTagResourcesTagResource["TagKey"].asString();
|
||||
if(!valueTagResourcesTagResource["TagValue"].isNull())
|
||||
tagResourcesObject.tagValue = valueTagResourcesTagResource["TagValue"].asString();
|
||||
if(!valueTagResourcesTagResource["ResourceType"].isNull())
|
||||
tagResourcesObject.resourceType = valueTagResourcesTagResource["ResourceType"].asString();
|
||||
if(!valueTagResourcesTagResource["ResourceId"].isNull())
|
||||
tagResourcesObject.resourceId = valueTagResourcesTagResource["ResourceId"].asString();
|
||||
tagResources_.push_back(tagResourcesObject);
|
||||
}
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListTagResourcesResult::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
std::vector<ListTagResourcesResult::TagResource> ListTagResourcesResult::getTagResources()const
|
||||
{
|
||||
return tagResources_;
|
||||
}
|
||||
|
||||
225
rds/src/model/MigrateDBInstanceRequest.cc
Normal file
225
rds/src/model/MigrateDBInstanceRequest.cc
Normal file
@@ -0,0 +1,225 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/MigrateDBInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::MigrateDBInstanceRequest;
|
||||
|
||||
MigrateDBInstanceRequest::MigrateDBInstanceRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "MigrateDBInstance")
|
||||
{}
|
||||
|
||||
MigrateDBInstanceRequest::~MigrateDBInstanceRequest()
|
||||
{}
|
||||
|
||||
long MigrateDBInstanceRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void MigrateDBInstanceRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string MigrateDBInstanceRequest::getSpecifiedTime()const
|
||||
{
|
||||
return specifiedTime_;
|
||||
}
|
||||
|
||||
void MigrateDBInstanceRequest::setSpecifiedTime(const std::string& specifiedTime)
|
||||
{
|
||||
specifiedTime_ = specifiedTime;
|
||||
setCoreParameter("SpecifiedTime", specifiedTime);
|
||||
}
|
||||
|
||||
std::string MigrateDBInstanceRequest::getTargetDedicatedHostIdForSlave()const
|
||||
{
|
||||
return targetDedicatedHostIdForSlave_;
|
||||
}
|
||||
|
||||
void MigrateDBInstanceRequest::setTargetDedicatedHostIdForSlave(const std::string& targetDedicatedHostIdForSlave)
|
||||
{
|
||||
targetDedicatedHostIdForSlave_ = targetDedicatedHostIdForSlave;
|
||||
setCoreParameter("TargetDedicatedHostIdForSlave", targetDedicatedHostIdForSlave);
|
||||
}
|
||||
|
||||
std::string MigrateDBInstanceRequest::getEngineVersion()const
|
||||
{
|
||||
return engineVersion_;
|
||||
}
|
||||
|
||||
void MigrateDBInstanceRequest::setEngineVersion(const std::string& engineVersion)
|
||||
{
|
||||
engineVersion_ = engineVersion;
|
||||
setCoreParameter("EngineVersion", engineVersion);
|
||||
}
|
||||
|
||||
int MigrateDBInstanceRequest::getStorage()const
|
||||
{
|
||||
return storage_;
|
||||
}
|
||||
|
||||
void MigrateDBInstanceRequest::setStorage(int storage)
|
||||
{
|
||||
storage_ = storage;
|
||||
setCoreParameter("Storage", std::to_string(storage));
|
||||
}
|
||||
|
||||
std::string MigrateDBInstanceRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void MigrateDBInstanceRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string MigrateDBInstanceRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void MigrateDBInstanceRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string MigrateDBInstanceRequest::getEffectiveTime()const
|
||||
{
|
||||
return effectiveTime_;
|
||||
}
|
||||
|
||||
void MigrateDBInstanceRequest::setEffectiveTime(const std::string& effectiveTime)
|
||||
{
|
||||
effectiveTime_ = effectiveTime;
|
||||
setCoreParameter("EffectiveTime", effectiveTime);
|
||||
}
|
||||
|
||||
int MigrateDBInstanceRequest::getDBInstanceTransType()const
|
||||
{
|
||||
return dBInstanceTransType_;
|
||||
}
|
||||
|
||||
void MigrateDBInstanceRequest::setDBInstanceTransType(int dBInstanceTransType)
|
||||
{
|
||||
dBInstanceTransType_ = dBInstanceTransType;
|
||||
setCoreParameter("DBInstanceTransType", std::to_string(dBInstanceTransType));
|
||||
}
|
||||
|
||||
std::string MigrateDBInstanceRequest::getTargetDedicatedHostIdForMaster()const
|
||||
{
|
||||
return targetDedicatedHostIdForMaster_;
|
||||
}
|
||||
|
||||
void MigrateDBInstanceRequest::setTargetDedicatedHostIdForMaster(const std::string& targetDedicatedHostIdForMaster)
|
||||
{
|
||||
targetDedicatedHostIdForMaster_ = targetDedicatedHostIdForMaster;
|
||||
setCoreParameter("TargetDedicatedHostIdForMaster", targetDedicatedHostIdForMaster);
|
||||
}
|
||||
|
||||
std::string MigrateDBInstanceRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void MigrateDBInstanceRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setCoreParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
std::string MigrateDBInstanceRequest::getDedicatedHostGroupId()const
|
||||
{
|
||||
return dedicatedHostGroupId_;
|
||||
}
|
||||
|
||||
void MigrateDBInstanceRequest::setDedicatedHostGroupId(const std::string& dedicatedHostGroupId)
|
||||
{
|
||||
dedicatedHostGroupId_ = dedicatedHostGroupId;
|
||||
setCoreParameter("DedicatedHostGroupId", dedicatedHostGroupId);
|
||||
}
|
||||
|
||||
std::string MigrateDBInstanceRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void MigrateDBInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long MigrateDBInstanceRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void MigrateDBInstanceRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string MigrateDBInstanceRequest::getTargetDBInstanceClass()const
|
||||
{
|
||||
return targetDBInstanceClass_;
|
||||
}
|
||||
|
||||
void MigrateDBInstanceRequest::setTargetDBInstanceClass(const std::string& targetDBInstanceClass)
|
||||
{
|
||||
targetDBInstanceClass_ = targetDBInstanceClass;
|
||||
setCoreParameter("TargetDBInstanceClass", targetDBInstanceClass);
|
||||
}
|
||||
|
||||
std::string MigrateDBInstanceRequest::getVSwitchId()const
|
||||
{
|
||||
return vSwitchId_;
|
||||
}
|
||||
|
||||
void MigrateDBInstanceRequest::setVSwitchId(const std::string& vSwitchId)
|
||||
{
|
||||
vSwitchId_ = vSwitchId;
|
||||
setCoreParameter("VSwitchId", vSwitchId);
|
||||
}
|
||||
|
||||
std::string MigrateDBInstanceRequest::getTargetDedicatedHostIdForLog()const
|
||||
{
|
||||
return targetDedicatedHostIdForLog_;
|
||||
}
|
||||
|
||||
void MigrateDBInstanceRequest::setTargetDedicatedHostIdForLog(const std::string& targetDedicatedHostIdForLog)
|
||||
{
|
||||
targetDedicatedHostIdForLog_ = targetDedicatedHostIdForLog;
|
||||
setCoreParameter("TargetDedicatedHostIdForLog", targetDedicatedHostIdForLog);
|
||||
}
|
||||
|
||||
std::string MigrateDBInstanceRequest::getZoneId()const
|
||||
{
|
||||
return zoneId_;
|
||||
}
|
||||
|
||||
void MigrateDBInstanceRequest::setZoneId(const std::string& zoneId)
|
||||
{
|
||||
zoneId_ = zoneId;
|
||||
setCoreParameter("ZoneId", zoneId);
|
||||
}
|
||||
|
||||
58
rds/src/model/MigrateDBInstanceResult.cc
Normal file
58
rds/src/model/MigrateDBInstanceResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/MigrateDBInstanceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
MigrateDBInstanceResult::MigrateDBInstanceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
MigrateDBInstanceResult::MigrateDBInstanceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
MigrateDBInstanceResult::~MigrateDBInstanceResult()
|
||||
{}
|
||||
|
||||
void MigrateDBInstanceResult::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["MigrationId"].isNull())
|
||||
migrationId_ = std::stoi(value["MigrationId"].asString());
|
||||
|
||||
}
|
||||
|
||||
int MigrateDBInstanceResult::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
int MigrateDBInstanceResult::getMigrationId()const
|
||||
{
|
||||
return migrationId_;
|
||||
}
|
||||
|
||||
@@ -58,6 +58,17 @@ void ModifyBackupPolicyRequest::setLogBackupFrequency(const std::string& logBack
|
||||
setCoreParameter("LogBackupFrequency", logBackupFrequency);
|
||||
}
|
||||
|
||||
std::string ModifyBackupPolicyRequest::getArchiveBackupKeepCount()const
|
||||
{
|
||||
return archiveBackupKeepCount_;
|
||||
}
|
||||
|
||||
void ModifyBackupPolicyRequest::setArchiveBackupKeepCount(const std::string& archiveBackupKeepCount)
|
||||
{
|
||||
archiveBackupKeepCount_ = archiveBackupKeepCount;
|
||||
setCoreParameter("ArchiveBackupKeepCount", archiveBackupKeepCount);
|
||||
}
|
||||
|
||||
std::string ModifyBackupPolicyRequest::getBackupLog()const
|
||||
{
|
||||
return backupLog_;
|
||||
@@ -201,6 +212,17 @@ void ModifyBackupPolicyRequest::setOwnerId(long ownerId)
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string ModifyBackupPolicyRequest::getArchiveBackupKeepPolicy()const
|
||||
{
|
||||
return archiveBackupKeepPolicy_;
|
||||
}
|
||||
|
||||
void ModifyBackupPolicyRequest::setArchiveBackupKeepPolicy(const std::string& archiveBackupKeepPolicy)
|
||||
{
|
||||
archiveBackupKeepPolicy_ = archiveBackupKeepPolicy;
|
||||
setCoreParameter("ArchiveBackupKeepPolicy", archiveBackupKeepPolicy);
|
||||
}
|
||||
|
||||
std::string ModifyBackupPolicyRequest::getDuplication()const
|
||||
{
|
||||
return duplication_;
|
||||
@@ -245,6 +267,17 @@ void ModifyBackupPolicyRequest::setDuplicationLocation(const std::string& duplic
|
||||
setCoreParameter("DuplicationLocation", duplicationLocation);
|
||||
}
|
||||
|
||||
std::string ModifyBackupPolicyRequest::getArchiveBackupRetentionPeriod()const
|
||||
{
|
||||
return archiveBackupRetentionPeriod_;
|
||||
}
|
||||
|
||||
void ModifyBackupPolicyRequest::setArchiveBackupRetentionPeriod(const std::string& archiveBackupRetentionPeriod)
|
||||
{
|
||||
archiveBackupRetentionPeriod_ = archiveBackupRetentionPeriod;
|
||||
setCoreParameter("ArchiveBackupRetentionPeriod", archiveBackupRetentionPeriod);
|
||||
}
|
||||
|
||||
std::string ModifyBackupPolicyRequest::getLogBackupRetentionPeriod()const
|
||||
{
|
||||
return logBackupRetentionPeriod_;
|
||||
|
||||
148
rds/src/model/ModifyDBProxyEndpointRequest.cc
Normal file
148
rds/src/model/ModifyDBProxyEndpointRequest.cc
Normal file
@@ -0,0 +1,148 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/ModifyDBProxyEndpointRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::ModifyDBProxyEndpointRequest;
|
||||
|
||||
ModifyDBProxyEndpointRequest::ModifyDBProxyEndpointRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "ModifyDBProxyEndpoint")
|
||||
{}
|
||||
|
||||
ModifyDBProxyEndpointRequest::~ModifyDBProxyEndpointRequest()
|
||||
{}
|
||||
|
||||
long ModifyDBProxyEndpointRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ModifyDBProxyEndpointRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ModifyDBProxyEndpointRequest::getConfigDBProxyFeatures()const
|
||||
{
|
||||
return configDBProxyFeatures_;
|
||||
}
|
||||
|
||||
void ModifyDBProxyEndpointRequest::setConfigDBProxyFeatures(const std::string& configDBProxyFeatures)
|
||||
{
|
||||
configDBProxyFeatures_ = configDBProxyFeatures;
|
||||
setCoreParameter("ConfigDBProxyFeatures", configDBProxyFeatures);
|
||||
}
|
||||
|
||||
std::string ModifyDBProxyEndpointRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ModifyDBProxyEndpointRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string ModifyDBProxyEndpointRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ModifyDBProxyEndpointRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ModifyDBProxyEndpointRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void ModifyDBProxyEndpointRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setCoreParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
std::string ModifyDBProxyEndpointRequest::getReadOnlyInstanceWeight()const
|
||||
{
|
||||
return readOnlyInstanceWeight_;
|
||||
}
|
||||
|
||||
void ModifyDBProxyEndpointRequest::setReadOnlyInstanceWeight(const std::string& readOnlyInstanceWeight)
|
||||
{
|
||||
readOnlyInstanceWeight_ = readOnlyInstanceWeight;
|
||||
setCoreParameter("ReadOnlyInstanceWeight", readOnlyInstanceWeight);
|
||||
}
|
||||
|
||||
std::string ModifyDBProxyEndpointRequest::getReadOnlyInstanceMaxDelayTime()const
|
||||
{
|
||||
return readOnlyInstanceMaxDelayTime_;
|
||||
}
|
||||
|
||||
void ModifyDBProxyEndpointRequest::setReadOnlyInstanceMaxDelayTime(const std::string& readOnlyInstanceMaxDelayTime)
|
||||
{
|
||||
readOnlyInstanceMaxDelayTime_ = readOnlyInstanceMaxDelayTime;
|
||||
setCoreParameter("ReadOnlyInstanceMaxDelayTime", readOnlyInstanceMaxDelayTime);
|
||||
}
|
||||
|
||||
std::string ModifyDBProxyEndpointRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void ModifyDBProxyEndpointRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long ModifyDBProxyEndpointRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ModifyDBProxyEndpointRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string ModifyDBProxyEndpointRequest::getDBProxyEndpointId()const
|
||||
{
|
||||
return dBProxyEndpointId_;
|
||||
}
|
||||
|
||||
void ModifyDBProxyEndpointRequest::setDBProxyEndpointId(const std::string& dBProxyEndpointId)
|
||||
{
|
||||
dBProxyEndpointId_ = dBProxyEndpointId;
|
||||
setCoreParameter("DBProxyEndpointId", dBProxyEndpointId);
|
||||
}
|
||||
|
||||
std::string ModifyDBProxyEndpointRequest::getReadOnlyInstanceDistributionType()const
|
||||
{
|
||||
return readOnlyInstanceDistributionType_;
|
||||
}
|
||||
|
||||
void ModifyDBProxyEndpointRequest::setReadOnlyInstanceDistributionType(const std::string& readOnlyInstanceDistributionType)
|
||||
{
|
||||
readOnlyInstanceDistributionType_ = readOnlyInstanceDistributionType;
|
||||
setCoreParameter("ReadOnlyInstanceDistributionType", readOnlyInstanceDistributionType);
|
||||
}
|
||||
|
||||
44
rds/src/model/ModifyDBProxyEndpointResult.cc
Normal file
44
rds/src/model/ModifyDBProxyEndpointResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/ModifyDBProxyEndpointResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
ModifyDBProxyEndpointResult::ModifyDBProxyEndpointResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyDBProxyEndpointResult::ModifyDBProxyEndpointResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyDBProxyEndpointResult::~ModifyDBProxyEndpointResult()
|
||||
{}
|
||||
|
||||
void ModifyDBProxyEndpointResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
137
rds/src/model/ModifyDBProxyInstanceRequest.cc
Normal file
137
rds/src/model/ModifyDBProxyInstanceRequest.cc
Normal file
@@ -0,0 +1,137 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/ModifyDBProxyInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::ModifyDBProxyInstanceRequest;
|
||||
|
||||
ModifyDBProxyInstanceRequest::ModifyDBProxyInstanceRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "ModifyDBProxyInstance")
|
||||
{}
|
||||
|
||||
ModifyDBProxyInstanceRequest::~ModifyDBProxyInstanceRequest()
|
||||
{}
|
||||
|
||||
long ModifyDBProxyInstanceRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ModifyDBProxyInstanceRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ModifyDBProxyInstanceRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ModifyDBProxyInstanceRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string ModifyDBProxyInstanceRequest::getEffectiveTime()const
|
||||
{
|
||||
return effectiveTime_;
|
||||
}
|
||||
|
||||
void ModifyDBProxyInstanceRequest::setEffectiveTime(const std::string& effectiveTime)
|
||||
{
|
||||
effectiveTime_ = effectiveTime;
|
||||
setCoreParameter("EffectiveTime", effectiveTime);
|
||||
}
|
||||
|
||||
std::string ModifyDBProxyInstanceRequest::getEffectiveSpecificTime()const
|
||||
{
|
||||
return effectiveSpecificTime_;
|
||||
}
|
||||
|
||||
void ModifyDBProxyInstanceRequest::setEffectiveSpecificTime(const std::string& effectiveSpecificTime)
|
||||
{
|
||||
effectiveSpecificTime_ = effectiveSpecificTime;
|
||||
setCoreParameter("EffectiveSpecificTime", effectiveSpecificTime);
|
||||
}
|
||||
|
||||
std::string ModifyDBProxyInstanceRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ModifyDBProxyInstanceRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ModifyDBProxyInstanceRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void ModifyDBProxyInstanceRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setCoreParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
std::string ModifyDBProxyInstanceRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void ModifyDBProxyInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long ModifyDBProxyInstanceRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ModifyDBProxyInstanceRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string ModifyDBProxyInstanceRequest::getDBProxyInstanceNum()const
|
||||
{
|
||||
return dBProxyInstanceNum_;
|
||||
}
|
||||
|
||||
void ModifyDBProxyInstanceRequest::setDBProxyInstanceNum(const std::string& dBProxyInstanceNum)
|
||||
{
|
||||
dBProxyInstanceNum_ = dBProxyInstanceNum;
|
||||
setCoreParameter("DBProxyInstanceNum", dBProxyInstanceNum);
|
||||
}
|
||||
|
||||
std::string ModifyDBProxyInstanceRequest::getDBProxyInstanceType()const
|
||||
{
|
||||
return dBProxyInstanceType_;
|
||||
}
|
||||
|
||||
void ModifyDBProxyInstanceRequest::setDBProxyInstanceType(const std::string& dBProxyInstanceType)
|
||||
{
|
||||
dBProxyInstanceType_ = dBProxyInstanceType;
|
||||
setCoreParameter("DBProxyInstanceType", dBProxyInstanceType);
|
||||
}
|
||||
|
||||
44
rds/src/model/ModifyDBProxyInstanceResult.cc
Normal file
44
rds/src/model/ModifyDBProxyInstanceResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/ModifyDBProxyInstanceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
ModifyDBProxyInstanceResult::ModifyDBProxyInstanceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyDBProxyInstanceResult::ModifyDBProxyInstanceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyDBProxyInstanceResult::~ModifyDBProxyInstanceResult()
|
||||
{}
|
||||
|
||||
void ModifyDBProxyInstanceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
148
rds/src/model/ModifyDBProxyRequest.cc
Normal file
148
rds/src/model/ModifyDBProxyRequest.cc
Normal file
@@ -0,0 +1,148 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/ModifyDBProxyRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::ModifyDBProxyRequest;
|
||||
|
||||
ModifyDBProxyRequest::ModifyDBProxyRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "ModifyDBProxy")
|
||||
{}
|
||||
|
||||
ModifyDBProxyRequest::~ModifyDBProxyRequest()
|
||||
{}
|
||||
|
||||
long ModifyDBProxyRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ModifyDBProxyRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ModifyDBProxyRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ModifyDBProxyRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string ModifyDBProxyRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ModifyDBProxyRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ModifyDBProxyRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void ModifyDBProxyRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setCoreParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
std::string ModifyDBProxyRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void ModifyDBProxyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long ModifyDBProxyRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ModifyDBProxyRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string ModifyDBProxyRequest::getDBProxyInstanceNum()const
|
||||
{
|
||||
return dBProxyInstanceNum_;
|
||||
}
|
||||
|
||||
void ModifyDBProxyRequest::setDBProxyInstanceNum(const std::string& dBProxyInstanceNum)
|
||||
{
|
||||
dBProxyInstanceNum_ = dBProxyInstanceNum;
|
||||
setCoreParameter("DBProxyInstanceNum", dBProxyInstanceNum);
|
||||
}
|
||||
|
||||
std::string ModifyDBProxyRequest::getConfigDBProxyService()const
|
||||
{
|
||||
return configDBProxyService_;
|
||||
}
|
||||
|
||||
void ModifyDBProxyRequest::setConfigDBProxyService(const std::string& configDBProxyService)
|
||||
{
|
||||
configDBProxyService_ = configDBProxyService;
|
||||
setCoreParameter("ConfigDBProxyService", configDBProxyService);
|
||||
}
|
||||
|
||||
std::string ModifyDBProxyRequest::getVSwitchId()const
|
||||
{
|
||||
return vSwitchId_;
|
||||
}
|
||||
|
||||
void ModifyDBProxyRequest::setVSwitchId(const std::string& vSwitchId)
|
||||
{
|
||||
vSwitchId_ = vSwitchId;
|
||||
setCoreParameter("VSwitchId", vSwitchId);
|
||||
}
|
||||
|
||||
std::string ModifyDBProxyRequest::getVPCId()const
|
||||
{
|
||||
return vPCId_;
|
||||
}
|
||||
|
||||
void ModifyDBProxyRequest::setVPCId(const std::string& vPCId)
|
||||
{
|
||||
vPCId_ = vPCId;
|
||||
setCoreParameter("VPCId", vPCId);
|
||||
}
|
||||
|
||||
std::string ModifyDBProxyRequest::getInstanceNetworkType()const
|
||||
{
|
||||
return instanceNetworkType_;
|
||||
}
|
||||
|
||||
void ModifyDBProxyRequest::setInstanceNetworkType(const std::string& instanceNetworkType)
|
||||
{
|
||||
instanceNetworkType_ = instanceNetworkType;
|
||||
setCoreParameter("InstanceNetworkType", instanceNetworkType);
|
||||
}
|
||||
|
||||
44
rds/src/model/ModifyDBProxyResult.cc
Normal file
44
rds/src/model/ModifyDBProxyResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/ModifyDBProxyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
ModifyDBProxyResult::ModifyDBProxyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyDBProxyResult::ModifyDBProxyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyDBProxyResult::~ModifyDBProxyResult()
|
||||
{}
|
||||
|
||||
void ModifyDBProxyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
115
rds/src/model/ModifyDedicatedHostAttributeRequest.cc
Normal file
115
rds/src/model/ModifyDedicatedHostAttributeRequest.cc
Normal file
@@ -0,0 +1,115 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/ModifyDedicatedHostAttributeRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::ModifyDedicatedHostAttributeRequest;
|
||||
|
||||
ModifyDedicatedHostAttributeRequest::ModifyDedicatedHostAttributeRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "ModifyDedicatedHostAttribute")
|
||||
{}
|
||||
|
||||
ModifyDedicatedHostAttributeRequest::~ModifyDedicatedHostAttributeRequest()
|
||||
{}
|
||||
|
||||
long ModifyDedicatedHostAttributeRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ModifyDedicatedHostAttributeRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ModifyDedicatedHostAttributeRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ModifyDedicatedHostAttributeRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string ModifyDedicatedHostAttributeRequest::getHostName()const
|
||||
{
|
||||
return hostName_;
|
||||
}
|
||||
|
||||
void ModifyDedicatedHostAttributeRequest::setHostName(const std::string& hostName)
|
||||
{
|
||||
hostName_ = hostName;
|
||||
setCoreParameter("HostName", hostName);
|
||||
}
|
||||
|
||||
std::string ModifyDedicatedHostAttributeRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ModifyDedicatedHostAttributeRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ModifyDedicatedHostAttributeRequest::getAllocationStatus()const
|
||||
{
|
||||
return allocationStatus_;
|
||||
}
|
||||
|
||||
void ModifyDedicatedHostAttributeRequest::setAllocationStatus(const std::string& allocationStatus)
|
||||
{
|
||||
allocationStatus_ = allocationStatus;
|
||||
setCoreParameter("AllocationStatus", allocationStatus);
|
||||
}
|
||||
|
||||
std::string ModifyDedicatedHostAttributeRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void ModifyDedicatedHostAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string ModifyDedicatedHostAttributeRequest::getDedicatedHostId()const
|
||||
{
|
||||
return dedicatedHostId_;
|
||||
}
|
||||
|
||||
void ModifyDedicatedHostAttributeRequest::setDedicatedHostId(const std::string& dedicatedHostId)
|
||||
{
|
||||
dedicatedHostId_ = dedicatedHostId;
|
||||
setCoreParameter("DedicatedHostId", dedicatedHostId);
|
||||
}
|
||||
|
||||
long ModifyDedicatedHostAttributeRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ModifyDedicatedHostAttributeRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
44
rds/src/model/ModifyDedicatedHostAttributeResult.cc
Normal file
44
rds/src/model/ModifyDedicatedHostAttributeResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <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());
|
||||
|
||||
}
|
||||
|
||||
159
rds/src/model/ModifyDedicatedHostGroupAttributeRequest.cc
Normal file
159
rds/src/model/ModifyDedicatedHostGroupAttributeRequest.cc
Normal file
@@ -0,0 +1,159 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/ModifyDedicatedHostGroupAttributeRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::ModifyDedicatedHostGroupAttributeRequest;
|
||||
|
||||
ModifyDedicatedHostGroupAttributeRequest::ModifyDedicatedHostGroupAttributeRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "ModifyDedicatedHostGroupAttribute")
|
||||
{}
|
||||
|
||||
ModifyDedicatedHostGroupAttributeRequest::~ModifyDedicatedHostGroupAttributeRequest()
|
||||
{}
|
||||
|
||||
long ModifyDedicatedHostGroupAttributeRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ModifyDedicatedHostGroupAttributeRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
int ModifyDedicatedHostGroupAttributeRequest::getCpuAllocationRatio()const
|
||||
{
|
||||
return cpuAllocationRatio_;
|
||||
}
|
||||
|
||||
void ModifyDedicatedHostGroupAttributeRequest::setCpuAllocationRatio(int cpuAllocationRatio)
|
||||
{
|
||||
cpuAllocationRatio_ = cpuAllocationRatio;
|
||||
setCoreParameter("CpuAllocationRatio", std::to_string(cpuAllocationRatio));
|
||||
}
|
||||
|
||||
std::string ModifyDedicatedHostGroupAttributeRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ModifyDedicatedHostGroupAttributeRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string ModifyDedicatedHostGroupAttributeRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ModifyDedicatedHostGroupAttributeRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ModifyDedicatedHostGroupAttributeRequest::getDedicatedHostGroupId()const
|
||||
{
|
||||
return dedicatedHostGroupId_;
|
||||
}
|
||||
|
||||
void ModifyDedicatedHostGroupAttributeRequest::setDedicatedHostGroupId(const std::string& dedicatedHostGroupId)
|
||||
{
|
||||
dedicatedHostGroupId_ = dedicatedHostGroupId;
|
||||
setCoreParameter("DedicatedHostGroupId", dedicatedHostGroupId);
|
||||
}
|
||||
|
||||
std::string ModifyDedicatedHostGroupAttributeRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void ModifyDedicatedHostGroupAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
int ModifyDedicatedHostGroupAttributeRequest::getDiskAllocationRatio()const
|
||||
{
|
||||
return diskAllocationRatio_;
|
||||
}
|
||||
|
||||
void ModifyDedicatedHostGroupAttributeRequest::setDiskAllocationRatio(int diskAllocationRatio)
|
||||
{
|
||||
diskAllocationRatio_ = diskAllocationRatio;
|
||||
setCoreParameter("DiskAllocationRatio", std::to_string(diskAllocationRatio));
|
||||
}
|
||||
|
||||
int ModifyDedicatedHostGroupAttributeRequest::getMemAllocationRatio()const
|
||||
{
|
||||
return memAllocationRatio_;
|
||||
}
|
||||
|
||||
void ModifyDedicatedHostGroupAttributeRequest::setMemAllocationRatio(int memAllocationRatio)
|
||||
{
|
||||
memAllocationRatio_ = memAllocationRatio;
|
||||
setCoreParameter("MemAllocationRatio", std::to_string(memAllocationRatio));
|
||||
}
|
||||
|
||||
long ModifyDedicatedHostGroupAttributeRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ModifyDedicatedHostGroupAttributeRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string ModifyDedicatedHostGroupAttributeRequest::getHostReplacePolicy()const
|
||||
{
|
||||
return hostReplacePolicy_;
|
||||
}
|
||||
|
||||
void ModifyDedicatedHostGroupAttributeRequest::setHostReplacePolicy(const std::string& hostReplacePolicy)
|
||||
{
|
||||
hostReplacePolicy_ = hostReplacePolicy;
|
||||
setCoreParameter("HostReplacePolicy", hostReplacePolicy);
|
||||
}
|
||||
|
||||
std::string ModifyDedicatedHostGroupAttributeRequest::getDedicatedHostGroupDesc()const
|
||||
{
|
||||
return dedicatedHostGroupDesc_;
|
||||
}
|
||||
|
||||
void ModifyDedicatedHostGroupAttributeRequest::setDedicatedHostGroupDesc(const std::string& dedicatedHostGroupDesc)
|
||||
{
|
||||
dedicatedHostGroupDesc_ = dedicatedHostGroupDesc;
|
||||
setCoreParameter("DedicatedHostGroupDesc", dedicatedHostGroupDesc);
|
||||
}
|
||||
|
||||
std::string ModifyDedicatedHostGroupAttributeRequest::getAllocationPolicy()const
|
||||
{
|
||||
return allocationPolicy_;
|
||||
}
|
||||
|
||||
void ModifyDedicatedHostGroupAttributeRequest::setAllocationPolicy(const std::string& allocationPolicy)
|
||||
{
|
||||
allocationPolicy_ = allocationPolicy;
|
||||
setCoreParameter("AllocationPolicy", allocationPolicy);
|
||||
}
|
||||
|
||||
44
rds/src/model/ModifyDedicatedHostGroupAttributeResult.cc
Normal file
44
rds/src/model/ModifyDedicatedHostGroupAttributeResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <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());
|
||||
|
||||
}
|
||||
|
||||
@@ -25,102 +25,102 @@ ModifyParameterGroupRequest::ModifyParameterGroupRequest() :
|
||||
ModifyParameterGroupRequest::~ModifyParameterGroupRequest()
|
||||
{}
|
||||
|
||||
long ModifyParameterGroupRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ModifyParameterGroupRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ModifyParameterGroupRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ModifyParameterGroupRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string ModifyParameterGroupRequest::getParameterGroupId()const
|
||||
{
|
||||
return parameterGroupId_;
|
||||
}
|
||||
|
||||
void ModifyParameterGroupRequest::setParameterGroupId(const std::string& parameterGroupId)
|
||||
{
|
||||
parameterGroupId_ = parameterGroupId;
|
||||
setCoreParameter("ParameterGroupId", parameterGroupId);
|
||||
}
|
||||
|
||||
std::string ModifyParameterGroupRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ModifyParameterGroupRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ModifyParameterGroupRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void ModifyParameterGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long ModifyParameterGroupRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ModifyParameterGroupRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string ModifyParameterGroupRequest::getParameterGroupName()const
|
||||
{
|
||||
return parameterGroupName_;
|
||||
}
|
||||
|
||||
void ModifyParameterGroupRequest::setParameterGroupName(const std::string& parameterGroupName)
|
||||
{
|
||||
parameterGroupName_ = parameterGroupName;
|
||||
setCoreParameter("ParameterGroupName", parameterGroupName);
|
||||
}
|
||||
|
||||
std::string ModifyParameterGroupRequest::getParameters()const
|
||||
{
|
||||
return parameters_;
|
||||
}
|
||||
|
||||
void ModifyParameterGroupRequest::setParameters(const std::string& parameters)
|
||||
{
|
||||
parameters_ = parameters;
|
||||
setCoreParameter("Parameters", parameters);
|
||||
}
|
||||
|
||||
std::string ModifyParameterGroupRequest::getParameterGroupDesc()const
|
||||
{
|
||||
return parameterGroupDesc_;
|
||||
}
|
||||
|
||||
void ModifyParameterGroupRequest::setParameterGroupDesc(const std::string& parameterGroupDesc)
|
||||
{
|
||||
parameterGroupDesc_ = parameterGroupDesc;
|
||||
setCoreParameter("ParameterGroupDesc", parameterGroupDesc);
|
||||
}
|
||||
|
||||
long ModifyParameterGroupRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ModifyParameterGroupRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ModifyParameterGroupRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ModifyParameterGroupRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string ModifyParameterGroupRequest::getParameterGroupId()const
|
||||
{
|
||||
return parameterGroupId_;
|
||||
}
|
||||
|
||||
void ModifyParameterGroupRequest::setParameterGroupId(const std::string& parameterGroupId)
|
||||
{
|
||||
parameterGroupId_ = parameterGroupId;
|
||||
setCoreParameter("ParameterGroupId", parameterGroupId);
|
||||
}
|
||||
|
||||
std::string ModifyParameterGroupRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ModifyParameterGroupRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ModifyParameterGroupRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void ModifyParameterGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long ModifyParameterGroupRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ModifyParameterGroupRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string ModifyParameterGroupRequest::getParameterGroupName()const
|
||||
{
|
||||
return parameterGroupName_;
|
||||
}
|
||||
|
||||
void ModifyParameterGroupRequest::setParameterGroupName(const std::string& parameterGroupName)
|
||||
{
|
||||
parameterGroupName_ = parameterGroupName;
|
||||
setCoreParameter("ParameterGroupName", parameterGroupName);
|
||||
}
|
||||
|
||||
std::string ModifyParameterGroupRequest::getParameters()const
|
||||
{
|
||||
return parameters_;
|
||||
}
|
||||
|
||||
void ModifyParameterGroupRequest::setParameters(const std::string& parameters)
|
||||
{
|
||||
parameters_ = parameters;
|
||||
setCoreParameter("Parameters", parameters);
|
||||
}
|
||||
|
||||
std::string ModifyParameterGroupRequest::getParameterGroupDesc()const
|
||||
{
|
||||
return parameterGroupDesc_;
|
||||
}
|
||||
|
||||
void ModifyParameterGroupRequest::setParameterGroupDesc(const std::string& parameterGroupDesc)
|
||||
{
|
||||
parameterGroupDesc_ = parameterGroupDesc;
|
||||
setCoreParameter("ParameterGroupDesc", parameterGroupDesc);
|
||||
}
|
||||
|
||||
|
||||
115
rds/src/model/RebuildDBInstanceRequest.cc
Normal file
115
rds/src/model/RebuildDBInstanceRequest.cc
Normal file
@@ -0,0 +1,115 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/RebuildDBInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::RebuildDBInstanceRequest;
|
||||
|
||||
RebuildDBInstanceRequest::RebuildDBInstanceRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "RebuildDBInstance")
|
||||
{}
|
||||
|
||||
RebuildDBInstanceRequest::~RebuildDBInstanceRequest()
|
||||
{}
|
||||
|
||||
long RebuildDBInstanceRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void RebuildDBInstanceRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string RebuildDBInstanceRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void RebuildDBInstanceRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string RebuildDBInstanceRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void RebuildDBInstanceRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string RebuildDBInstanceRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void RebuildDBInstanceRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setCoreParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
std::string RebuildDBInstanceRequest::getDedicatedHostGroupId()const
|
||||
{
|
||||
return dedicatedHostGroupId_;
|
||||
}
|
||||
|
||||
void RebuildDBInstanceRequest::setDedicatedHostGroupId(const std::string& dedicatedHostGroupId)
|
||||
{
|
||||
dedicatedHostGroupId_ = dedicatedHostGroupId;
|
||||
setCoreParameter("DedicatedHostGroupId", dedicatedHostGroupId);
|
||||
}
|
||||
|
||||
std::string RebuildDBInstanceRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void RebuildDBInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string RebuildDBInstanceRequest::getDedicatedHostId()const
|
||||
{
|
||||
return dedicatedHostId_;
|
||||
}
|
||||
|
||||
void RebuildDBInstanceRequest::setDedicatedHostId(const std::string& dedicatedHostId)
|
||||
{
|
||||
dedicatedHostId_ = dedicatedHostId;
|
||||
setCoreParameter("DedicatedHostId", dedicatedHostId);
|
||||
}
|
||||
|
||||
long RebuildDBInstanceRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void RebuildDBInstanceRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
58
rds/src/model/RebuildDBInstanceResult.cc
Normal file
58
rds/src/model/RebuildDBInstanceResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/RebuildDBInstanceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
RebuildDBInstanceResult::RebuildDBInstanceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
RebuildDBInstanceResult::RebuildDBInstanceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
RebuildDBInstanceResult::~RebuildDBInstanceResult()
|
||||
{}
|
||||
|
||||
void RebuildDBInstanceResult::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["MigrationId"].isNull())
|
||||
migrationId_ = std::stoi(value["MigrationId"].asString());
|
||||
|
||||
}
|
||||
|
||||
int RebuildDBInstanceResult::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
int RebuildDBInstanceResult::getMigrationId()const
|
||||
{
|
||||
return migrationId_;
|
||||
}
|
||||
|
||||
104
rds/src/model/ReplaceDedicatedHostRequest.cc
Normal file
104
rds/src/model/ReplaceDedicatedHostRequest.cc
Normal file
@@ -0,0 +1,104 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/ReplaceDedicatedHostRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::ReplaceDedicatedHostRequest;
|
||||
|
||||
ReplaceDedicatedHostRequest::ReplaceDedicatedHostRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "ReplaceDedicatedHost")
|
||||
{}
|
||||
|
||||
ReplaceDedicatedHostRequest::~ReplaceDedicatedHostRequest()
|
||||
{}
|
||||
|
||||
long ReplaceDedicatedHostRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ReplaceDedicatedHostRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ReplaceDedicatedHostRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void ReplaceDedicatedHostRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string ReplaceDedicatedHostRequest::getDedicatedHostId()const
|
||||
{
|
||||
return dedicatedHostId_;
|
||||
}
|
||||
|
||||
void ReplaceDedicatedHostRequest::setDedicatedHostId(const std::string& dedicatedHostId)
|
||||
{
|
||||
dedicatedHostId_ = dedicatedHostId;
|
||||
setCoreParameter("DedicatedHostId", dedicatedHostId);
|
||||
}
|
||||
|
||||
long ReplaceDedicatedHostRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ReplaceDedicatedHostRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string ReplaceDedicatedHostRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ReplaceDedicatedHostRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string ReplaceDedicatedHostRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ReplaceDedicatedHostRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ReplaceDedicatedHostRequest::getFailoverMode()const
|
||||
{
|
||||
return failoverMode_;
|
||||
}
|
||||
|
||||
void ReplaceDedicatedHostRequest::setFailoverMode(const std::string& failoverMode)
|
||||
{
|
||||
failoverMode_ = failoverMode;
|
||||
setCoreParameter("FailoverMode", failoverMode);
|
||||
}
|
||||
|
||||
58
rds/src/model/ReplaceDedicatedHostResult.cc
Normal file
58
rds/src/model/ReplaceDedicatedHostResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <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_;
|
||||
}
|
||||
|
||||
104
rds/src/model/RestartDedicatedHostRequest.cc
Normal file
104
rds/src/model/RestartDedicatedHostRequest.cc
Normal file
@@ -0,0 +1,104 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/RestartDedicatedHostRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::RestartDedicatedHostRequest;
|
||||
|
||||
RestartDedicatedHostRequest::RestartDedicatedHostRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "RestartDedicatedHost")
|
||||
{}
|
||||
|
||||
RestartDedicatedHostRequest::~RestartDedicatedHostRequest()
|
||||
{}
|
||||
|
||||
long RestartDedicatedHostRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void RestartDedicatedHostRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string RestartDedicatedHostRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void RestartDedicatedHostRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string RestartDedicatedHostRequest::getDedicatedHostId()const
|
||||
{
|
||||
return dedicatedHostId_;
|
||||
}
|
||||
|
||||
void RestartDedicatedHostRequest::setDedicatedHostId(const std::string& dedicatedHostId)
|
||||
{
|
||||
dedicatedHostId_ = dedicatedHostId;
|
||||
setCoreParameter("DedicatedHostId", dedicatedHostId);
|
||||
}
|
||||
|
||||
long RestartDedicatedHostRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void RestartDedicatedHostRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string RestartDedicatedHostRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void RestartDedicatedHostRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string RestartDedicatedHostRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void RestartDedicatedHostRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string RestartDedicatedHostRequest::getFailoverMode()const
|
||||
{
|
||||
return failoverMode_;
|
||||
}
|
||||
|
||||
void RestartDedicatedHostRequest::setFailoverMode(const std::string& failoverMode)
|
||||
{
|
||||
failoverMode_ = failoverMode;
|
||||
setCoreParameter("FailoverMode", failoverMode);
|
||||
}
|
||||
|
||||
58
rds/src/model/RestartDedicatedHostResult.cc
Normal file
58
rds/src/model/RestartDedicatedHostResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <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_;
|
||||
}
|
||||
|
||||
122
rds/src/model/TagResourcesRequest.cc
Normal file
122
rds/src/model/TagResourcesRequest.cc
Normal file
@@ -0,0 +1,122 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/TagResourcesRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::TagResourcesRequest;
|
||||
|
||||
TagResourcesRequest::TagResourcesRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "TagResources")
|
||||
{}
|
||||
|
||||
TagResourcesRequest::~TagResourcesRequest()
|
||||
{}
|
||||
|
||||
long TagResourcesRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void TagResourcesRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::vector<std::string> TagResourcesRequest::getResourceId()const
|
||||
{
|
||||
return resourceId_;
|
||||
}
|
||||
|
||||
void TagResourcesRequest::setResourceId(const std::vector<std::string>& resourceId)
|
||||
{
|
||||
resourceId_ = resourceId;
|
||||
for(int i = 0; i!= resourceId.size(); i++)
|
||||
setCoreParameter("ResourceId."+ std::to_string(i), resourceId.at(i));
|
||||
}
|
||||
|
||||
std::string TagResourcesRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void TagResourcesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long TagResourcesRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void TagResourcesRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string TagResourcesRequest::getResourceType()const
|
||||
{
|
||||
return resourceType_;
|
||||
}
|
||||
|
||||
void TagResourcesRequest::setResourceType(const std::string& resourceType)
|
||||
{
|
||||
resourceType_ = resourceType;
|
||||
setCoreParameter("ResourceType", resourceType);
|
||||
}
|
||||
|
||||
std::string TagResourcesRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void TagResourcesRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string TagResourcesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void TagResourcesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::vector<TagResourcesRequest::Tag> TagResourcesRequest::getTag()const
|
||||
{
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void TagResourcesRequest::setTag(const std::vector<Tag>& tag)
|
||||
{
|
||||
tag_ = tag;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= tag.size(); i++) {
|
||||
auto obj = tag.at(i);
|
||||
std::string str ="Tag."+ std::to_string(i);
|
||||
setCoreParameter(str + ".Value", obj.value);
|
||||
setCoreParameter(str + ".Key", obj.key);
|
||||
}
|
||||
}
|
||||
|
||||
44
rds/src/model/TagResourcesResult.cc
Normal file
44
rds/src/model/TagResourcesResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/TagResourcesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
TagResourcesResult::TagResourcesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
TagResourcesResult::TagResourcesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
TagResourcesResult::~TagResourcesResult()
|
||||
{}
|
||||
|
||||
void TagResourcesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
128
rds/src/model/UntagResourcesRequest.cc
Normal file
128
rds/src/model/UntagResourcesRequest.cc
Normal file
@@ -0,0 +1,128 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/UntagResourcesRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::UntagResourcesRequest;
|
||||
|
||||
UntagResourcesRequest::UntagResourcesRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "UntagResources")
|
||||
{}
|
||||
|
||||
UntagResourcesRequest::~UntagResourcesRequest()
|
||||
{}
|
||||
|
||||
bool UntagResourcesRequest::getAll()const
|
||||
{
|
||||
return all_;
|
||||
}
|
||||
|
||||
void UntagResourcesRequest::setAll(bool all)
|
||||
{
|
||||
all_ = all;
|
||||
setCoreParameter("All", all ? "true" : "false");
|
||||
}
|
||||
|
||||
long UntagResourcesRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void UntagResourcesRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::vector<std::string> UntagResourcesRequest::getResourceId()const
|
||||
{
|
||||
return resourceId_;
|
||||
}
|
||||
|
||||
void UntagResourcesRequest::setResourceId(const std::vector<std::string>& resourceId)
|
||||
{
|
||||
resourceId_ = resourceId;
|
||||
for(int i = 0; i!= resourceId.size(); i++)
|
||||
setCoreParameter("ResourceId."+ std::to_string(i), resourceId.at(i));
|
||||
}
|
||||
|
||||
std::string UntagResourcesRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void UntagResourcesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long UntagResourcesRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void UntagResourcesRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string UntagResourcesRequest::getResourceType()const
|
||||
{
|
||||
return resourceType_;
|
||||
}
|
||||
|
||||
void UntagResourcesRequest::setResourceType(const std::string& resourceType)
|
||||
{
|
||||
resourceType_ = resourceType;
|
||||
setCoreParameter("ResourceType", resourceType);
|
||||
}
|
||||
|
||||
std::string UntagResourcesRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void UntagResourcesRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string UntagResourcesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void UntagResourcesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::vector<std::string> UntagResourcesRequest::getTagKey()const
|
||||
{
|
||||
return tagKey_;
|
||||
}
|
||||
|
||||
void UntagResourcesRequest::setTagKey(const std::vector<std::string>& tagKey)
|
||||
{
|
||||
tagKey_ = tagKey;
|
||||
for(int i = 0; i!= tagKey.size(); i++)
|
||||
setCoreParameter("TagKey."+ std::to_string(i), tagKey.at(i));
|
||||
}
|
||||
|
||||
44
rds/src/model/UntagResourcesResult.cc
Normal file
44
rds/src/model/UntagResourcesResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/UntagResourcesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
UntagResourcesResult::UntagResourcesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UntagResourcesResult::UntagResourcesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UntagResourcesResult::~UntagResourcesResult()
|
||||
{}
|
||||
|
||||
void UntagResourcesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user