Add new apis.

This commit is contained in:
sdk-team
2023-03-02 02:16:10 +00:00
parent f8a61d85e7
commit 8f0d7fd7bf
181 changed files with 12536 additions and 1 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/swas-open/model/AllocatePublicConnectionRequest.h>
using AlibabaCloud::SWAS_OPEN::Model::AllocatePublicConnectionRequest;
AllocatePublicConnectionRequest::AllocatePublicConnectionRequest()
: RpcServiceRequest("swas-open", "2020-06-01", "AllocatePublicConnection") {
setMethod(HttpRequest::Method::Post);
}
AllocatePublicConnectionRequest::~AllocatePublicConnectionRequest() {}
std::string AllocatePublicConnectionRequest::getClientToken() const {
return clientToken_;
}
void AllocatePublicConnectionRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
std::string AllocatePublicConnectionRequest::getDatabaseInstanceId() const {
return databaseInstanceId_;
}
void AllocatePublicConnectionRequest::setDatabaseInstanceId(const std::string &databaseInstanceId) {
databaseInstanceId_ = databaseInstanceId;
setParameter(std::string("DatabaseInstanceId"), databaseInstanceId);
}
std::string AllocatePublicConnectionRequest::getRegionId() const {
return regionId_;
}
void AllocatePublicConnectionRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}

View 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/swas-open/model/AllocatePublicConnectionResult.h>
#include <json/json.h>
using namespace AlibabaCloud::SWAS_OPEN;
using namespace AlibabaCloud::SWAS_OPEN::Model;
AllocatePublicConnectionResult::AllocatePublicConnectionResult() :
ServiceResult()
{}
AllocatePublicConnectionResult::AllocatePublicConnectionResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AllocatePublicConnectionResult::~AllocatePublicConnectionResult()
{}
void AllocatePublicConnectionResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["PublicConnection"].isNull())
publicConnection_ = value["PublicConnection"].asString();
}
std::string AllocatePublicConnectionResult::getPublicConnection()const
{
return publicConnection_;
}

View 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/swas-open/model/CreateCustomImageRequest.h>
using AlibabaCloud::SWAS_OPEN::Model::CreateCustomImageRequest;
CreateCustomImageRequest::CreateCustomImageRequest()
: RpcServiceRequest("swas-open", "2020-06-01", "CreateCustomImage") {
setMethod(HttpRequest::Method::Post);
}
CreateCustomImageRequest::~CreateCustomImageRequest() {}
std::string CreateCustomImageRequest::getSystemSnapshotId() const {
return systemSnapshotId_;
}
void CreateCustomImageRequest::setSystemSnapshotId(const std::string &systemSnapshotId) {
systemSnapshotId_ = systemSnapshotId;
setParameter(std::string("SystemSnapshotId"), systemSnapshotId);
}
std::string CreateCustomImageRequest::getDataSnapshotId() const {
return dataSnapshotId_;
}
void CreateCustomImageRequest::setDataSnapshotId(const std::string &dataSnapshotId) {
dataSnapshotId_ = dataSnapshotId;
setParameter(std::string("DataSnapshotId"), dataSnapshotId);
}
std::string CreateCustomImageRequest::getClientToken() const {
return clientToken_;
}
void CreateCustomImageRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
std::string CreateCustomImageRequest::getDescription() const {
return description_;
}
void CreateCustomImageRequest::setDescription(const std::string &description) {
description_ = description;
setParameter(std::string("Description"), description);
}
std::string CreateCustomImageRequest::getInstanceId() const {
return instanceId_;
}
void CreateCustomImageRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
std::string CreateCustomImageRequest::getRegionId() const {
return regionId_;
}
void CreateCustomImageRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
std::string CreateCustomImageRequest::getImageName() const {
return imageName_;
}
void CreateCustomImageRequest::setImageName(const std::string &imageName) {
imageName_ = imageName;
setParameter(std::string("ImageName"), imageName);
}

View 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/swas-open/model/CreateCustomImageResult.h>
#include <json/json.h>
using namespace AlibabaCloud::SWAS_OPEN;
using namespace AlibabaCloud::SWAS_OPEN::Model;
CreateCustomImageResult::CreateCustomImageResult() :
ServiceResult()
{}
CreateCustomImageResult::CreateCustomImageResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateCustomImageResult::~CreateCustomImageResult()
{}
void CreateCustomImageResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["ImageId"].isNull())
imageId_ = value["ImageId"].asString();
}
std::string CreateCustomImageResult::getImageId()const
{
return imageId_;
}

View File

@@ -0,0 +1,81 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/swas-open/model/CreateFirewallRuleRequest.h>
using AlibabaCloud::SWAS_OPEN::Model::CreateFirewallRuleRequest;
CreateFirewallRuleRequest::CreateFirewallRuleRequest()
: RpcServiceRequest("swas-open", "2020-06-01", "CreateFirewallRule") {
setMethod(HttpRequest::Method::Post);
}
CreateFirewallRuleRequest::~CreateFirewallRuleRequest() {}
std::string CreateFirewallRuleRequest::getClientToken() const {
return clientToken_;
}
void CreateFirewallRuleRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
std::string CreateFirewallRuleRequest::getRemark() const {
return remark_;
}
void CreateFirewallRuleRequest::setRemark(const std::string &remark) {
remark_ = remark;
setParameter(std::string("Remark"), remark);
}
std::string CreateFirewallRuleRequest::getInstanceId() const {
return instanceId_;
}
void CreateFirewallRuleRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
std::string CreateFirewallRuleRequest::getRuleProtocol() const {
return ruleProtocol_;
}
void CreateFirewallRuleRequest::setRuleProtocol(const std::string &ruleProtocol) {
ruleProtocol_ = ruleProtocol;
setParameter(std::string("RuleProtocol"), ruleProtocol);
}
std::string CreateFirewallRuleRequest::getRegionId() const {
return regionId_;
}
void CreateFirewallRuleRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
std::string CreateFirewallRuleRequest::getPort() const {
return port_;
}
void CreateFirewallRuleRequest::setPort(const std::string &port) {
port_ = port;
setParameter(std::string("Port"), port);
}

View 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/swas-open/model/CreateFirewallRuleResult.h>
#include <json/json.h>
using namespace AlibabaCloud::SWAS_OPEN;
using namespace AlibabaCloud::SWAS_OPEN::Model;
CreateFirewallRuleResult::CreateFirewallRuleResult() :
ServiceResult()
{}
CreateFirewallRuleResult::CreateFirewallRuleResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateFirewallRuleResult::~CreateFirewallRuleResult()
{}
void CreateFirewallRuleResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["FirewallId"].isNull())
firewallId_ = value["FirewallId"].asString();
}
std::string CreateFirewallRuleResult::getFirewallId()const
{
return firewallId_;
}

View File

@@ -0,0 +1,117 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/swas-open/model/CreateInstancesRequest.h>
using AlibabaCloud::SWAS_OPEN::Model::CreateInstancesRequest;
CreateInstancesRequest::CreateInstancesRequest()
: RpcServiceRequest("swas-open", "2020-06-01", "CreateInstances") {
setMethod(HttpRequest::Method::Post);
}
CreateInstancesRequest::~CreateInstancesRequest() {}
std::string CreateInstancesRequest::getImageId() const {
return imageId_;
}
void CreateInstancesRequest::setImageId(const std::string &imageId) {
imageId_ = imageId;
setParameter(std::string("ImageId"), imageId);
}
std::string CreateInstancesRequest::getClientToken() const {
return clientToken_;
}
void CreateInstancesRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
std::string CreateInstancesRequest::getRegionId() const {
return regionId_;
}
void CreateInstancesRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
int CreateInstancesRequest::getAutoRenewPeriod() const {
return autoRenewPeriod_;
}
void CreateInstancesRequest::setAutoRenewPeriod(int autoRenewPeriod) {
autoRenewPeriod_ = autoRenewPeriod;
setParameter(std::string("AutoRenewPeriod"), std::to_string(autoRenewPeriod));
}
int CreateInstancesRequest::getPeriod() const {
return period_;
}
void CreateInstancesRequest::setPeriod(int period) {
period_ = period;
setParameter(std::string("Period"), std::to_string(period));
}
int CreateInstancesRequest::getAmount() const {
return amount_;
}
void CreateInstancesRequest::setAmount(int amount) {
amount_ = amount;
setParameter(std::string("Amount"), std::to_string(amount));
}
bool CreateInstancesRequest::getAutoRenew() const {
return autoRenew_;
}
void CreateInstancesRequest::setAutoRenew(bool autoRenew) {
autoRenew_ = autoRenew;
setParameter(std::string("AutoRenew"), autoRenew ? "true" : "false");
}
long CreateInstancesRequest::getDataDiskSize() const {
return dataDiskSize_;
}
void CreateInstancesRequest::setDataDiskSize(long dataDiskSize) {
dataDiskSize_ = dataDiskSize;
setParameter(std::string("DataDiskSize"), std::to_string(dataDiskSize));
}
std::string CreateInstancesRequest::getPlanId() const {
return planId_;
}
void CreateInstancesRequest::setPlanId(const std::string &planId) {
planId_ = planId;
setParameter(std::string("PlanId"), planId);
}
std::string CreateInstancesRequest::getChargeType() const {
return chargeType_;
}
void CreateInstancesRequest::setChargeType(const std::string &chargeType) {
chargeType_ = chargeType;
setParameter(std::string("ChargeType"), chargeType);
}

View File

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

View File

@@ -0,0 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/swas-open/model/CreateSnapshotRequest.h>
using AlibabaCloud::SWAS_OPEN::Model::CreateSnapshotRequest;
CreateSnapshotRequest::CreateSnapshotRequest()
: RpcServiceRequest("swas-open", "2020-06-01", "CreateSnapshot") {
setMethod(HttpRequest::Method::Post);
}
CreateSnapshotRequest::~CreateSnapshotRequest() {}
std::string CreateSnapshotRequest::getClientToken() const {
return clientToken_;
}
void CreateSnapshotRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
std::string CreateSnapshotRequest::getSnapshotName() const {
return snapshotName_;
}
void CreateSnapshotRequest::setSnapshotName(const std::string &snapshotName) {
snapshotName_ = snapshotName;
setParameter(std::string("SnapshotName"), snapshotName);
}
std::string CreateSnapshotRequest::getRegionId() const {
return regionId_;
}
void CreateSnapshotRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
std::string CreateSnapshotRequest::getDiskId() const {
return diskId_;
}
void CreateSnapshotRequest::setDiskId(const std::string &diskId) {
diskId_ = diskId;
setParameter(std::string("DiskId"), diskId);
}

View 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/swas-open/model/CreateSnapshotResult.h>
#include <json/json.h>
using namespace AlibabaCloud::SWAS_OPEN;
using namespace AlibabaCloud::SWAS_OPEN::Model;
CreateSnapshotResult::CreateSnapshotResult() :
ServiceResult()
{}
CreateSnapshotResult::CreateSnapshotResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateSnapshotResult::~CreateSnapshotResult()
{}
void CreateSnapshotResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["SnapshotId"].isNull())
snapshotId_ = value["SnapshotId"].asString();
}
std::string CreateSnapshotResult::getSnapshotId()const
{
return snapshotId_;
}

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/swas-open/model/DeleteCustomImageRequest.h>
using AlibabaCloud::SWAS_OPEN::Model::DeleteCustomImageRequest;
DeleteCustomImageRequest::DeleteCustomImageRequest()
: RpcServiceRequest("swas-open", "2020-06-01", "DeleteCustomImage") {
setMethod(HttpRequest::Method::Post);
}
DeleteCustomImageRequest::~DeleteCustomImageRequest() {}
std::string DeleteCustomImageRequest::getImageId() const {
return imageId_;
}
void DeleteCustomImageRequest::setImageId(const std::string &imageId) {
imageId_ = imageId;
setParameter(std::string("ImageId"), imageId);
}
std::string DeleteCustomImageRequest::getClientToken() const {
return clientToken_;
}
void DeleteCustomImageRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
std::string DeleteCustomImageRequest::getRegionId() const {
return regionId_;
}
void DeleteCustomImageRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}

View 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/swas-open/model/DeleteCustomImageResult.h>
#include <json/json.h>
using namespace AlibabaCloud::SWAS_OPEN;
using namespace AlibabaCloud::SWAS_OPEN::Model;
DeleteCustomImageResult::DeleteCustomImageResult() :
ServiceResult()
{}
DeleteCustomImageResult::DeleteCustomImageResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteCustomImageResult::~DeleteCustomImageResult()
{}
void DeleteCustomImageResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/swas-open/model/DeleteFirewallRuleRequest.h>
using AlibabaCloud::SWAS_OPEN::Model::DeleteFirewallRuleRequest;
DeleteFirewallRuleRequest::DeleteFirewallRuleRequest()
: RpcServiceRequest("swas-open", "2020-06-01", "DeleteFirewallRule") {
setMethod(HttpRequest::Method::Post);
}
DeleteFirewallRuleRequest::~DeleteFirewallRuleRequest() {}
std::string DeleteFirewallRuleRequest::getClientToken() const {
return clientToken_;
}
void DeleteFirewallRuleRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
std::string DeleteFirewallRuleRequest::getInstanceId() const {
return instanceId_;
}
void DeleteFirewallRuleRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
std::string DeleteFirewallRuleRequest::getRegionId() const {
return regionId_;
}
void DeleteFirewallRuleRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
std::string DeleteFirewallRuleRequest::getRuleId() const {
return ruleId_;
}
void DeleteFirewallRuleRequest::setRuleId(const std::string &ruleId) {
ruleId_ = ruleId;
setParameter(std::string("RuleId"), ruleId);
}

View 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/swas-open/model/DeleteFirewallRuleResult.h>
#include <json/json.h>
using namespace AlibabaCloud::SWAS_OPEN;
using namespace AlibabaCloud::SWAS_OPEN::Model;
DeleteFirewallRuleResult::DeleteFirewallRuleResult() :
ServiceResult()
{}
DeleteFirewallRuleResult::DeleteFirewallRuleResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteFirewallRuleResult::~DeleteFirewallRuleResult()
{}
void DeleteFirewallRuleResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/swas-open/model/DeleteSnapshotRequest.h>
using AlibabaCloud::SWAS_OPEN::Model::DeleteSnapshotRequest;
DeleteSnapshotRequest::DeleteSnapshotRequest()
: RpcServiceRequest("swas-open", "2020-06-01", "DeleteSnapshot") {
setMethod(HttpRequest::Method::Post);
}
DeleteSnapshotRequest::~DeleteSnapshotRequest() {}
std::string DeleteSnapshotRequest::getSnapshotId() const {
return snapshotId_;
}
void DeleteSnapshotRequest::setSnapshotId(const std::string &snapshotId) {
snapshotId_ = snapshotId;
setParameter(std::string("SnapshotId"), snapshotId);
}
std::string DeleteSnapshotRequest::getClientToken() const {
return clientToken_;
}
void DeleteSnapshotRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
std::string DeleteSnapshotRequest::getRegionId() const {
return regionId_;
}
void DeleteSnapshotRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}

View 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/swas-open/model/DeleteSnapshotResult.h>
#include <json/json.h>
using namespace AlibabaCloud::SWAS_OPEN;
using namespace AlibabaCloud::SWAS_OPEN::Model;
DeleteSnapshotResult::DeleteSnapshotResult() :
ServiceResult()
{}
DeleteSnapshotResult::DeleteSnapshotResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteSnapshotResult::~DeleteSnapshotResult()
{}
void DeleteSnapshotResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,65 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/swas-open/model/DescribeCloudAssistantStatusRequest.h>
using AlibabaCloud::SWAS_OPEN::Model::DescribeCloudAssistantStatusRequest;
DescribeCloudAssistantStatusRequest::DescribeCloudAssistantStatusRequest()
: RpcServiceRequest("swas-open", "2020-06-01", "DescribeCloudAssistantStatus") {
setMethod(HttpRequest::Method::Post);
}
DescribeCloudAssistantStatusRequest::~DescribeCloudAssistantStatusRequest() {}
int DescribeCloudAssistantStatusRequest::getPageNumber() const {
return pageNumber_;
}
void DescribeCloudAssistantStatusRequest::setPageNumber(int pageNumber) {
pageNumber_ = pageNumber;
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
}
std::string DescribeCloudAssistantStatusRequest::getRegionId() const {
return regionId_;
}
void DescribeCloudAssistantStatusRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
std::vector<DescribeCloudAssistantStatusRequest::std::string> DescribeCloudAssistantStatusRequest::getInstanceIds() const {
return instanceIds_;
}
void DescribeCloudAssistantStatusRequest::setInstanceIds(const std::vector<DescribeCloudAssistantStatusRequest::std::string> &instanceIds) {
instanceIds_ = instanceIds;
for(int dep1 = 0; dep1 != instanceIds.size(); dep1++) {
setParameter(std::string("InstanceIds") + "." + std::to_string(dep1 + 1), instanceIds[dep1]);
}
}
int DescribeCloudAssistantStatusRequest::getPageSize() const {
return pageSize_;
}
void DescribeCloudAssistantStatusRequest::setPageSize(int pageSize) {
pageSize_ = pageSize;
setParameter(std::string("PageSize"), std::to_string(pageSize));
}

View File

@@ -0,0 +1,80 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/swas-open/model/DescribeCloudAssistantStatusResult.h>
#include <json/json.h>
using namespace AlibabaCloud::SWAS_OPEN;
using namespace AlibabaCloud::SWAS_OPEN::Model;
DescribeCloudAssistantStatusResult::DescribeCloudAssistantStatusResult() :
ServiceResult()
{}
DescribeCloudAssistantStatusResult::DescribeCloudAssistantStatusResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeCloudAssistantStatusResult::~DescribeCloudAssistantStatusResult()
{}
void DescribeCloudAssistantStatusResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allCloudAssistantStatusNode = value["CloudAssistantStatus"]["status"];
for (auto valueCloudAssistantStatusstatus : allCloudAssistantStatusNode)
{
Status cloudAssistantStatusObject;
if(!valueCloudAssistantStatusstatus["InstanceId"].isNull())
cloudAssistantStatusObject.instanceId = valueCloudAssistantStatusstatus["InstanceId"].asString();
if(!valueCloudAssistantStatusstatus["Status"].isNull())
cloudAssistantStatusObject.status = valueCloudAssistantStatusstatus["Status"].asString() == "true";
cloudAssistantStatus_.push_back(cloudAssistantStatusObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
}
int DescribeCloudAssistantStatusResult::getTotalCount()const
{
return totalCount_;
}
int DescribeCloudAssistantStatusResult::getPageSize()const
{
return pageSize_;
}
int DescribeCloudAssistantStatusResult::getPageNumber()const
{
return pageNumber_;
}
std::vector<DescribeCloudAssistantStatusResult::Status> DescribeCloudAssistantStatusResult::getCloudAssistantStatus()const
{
return cloudAssistantStatus_;
}

View File

@@ -0,0 +1,81 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/swas-open/model/DescribeDatabaseErrorLogsRequest.h>
using AlibabaCloud::SWAS_OPEN::Model::DescribeDatabaseErrorLogsRequest;
DescribeDatabaseErrorLogsRequest::DescribeDatabaseErrorLogsRequest()
: RpcServiceRequest("swas-open", "2020-06-01", "DescribeDatabaseErrorLogs") {
setMethod(HttpRequest::Method::Post);
}
DescribeDatabaseErrorLogsRequest::~DescribeDatabaseErrorLogsRequest() {}
std::string DescribeDatabaseErrorLogsRequest::getDatabaseInstanceId() const {
return databaseInstanceId_;
}
void DescribeDatabaseErrorLogsRequest::setDatabaseInstanceId(const std::string &databaseInstanceId) {
databaseInstanceId_ = databaseInstanceId;
setParameter(std::string("DatabaseInstanceId"), databaseInstanceId);
}
std::string DescribeDatabaseErrorLogsRequest::getEndTime() const {
return endTime_;
}
void DescribeDatabaseErrorLogsRequest::setEndTime(const std::string &endTime) {
endTime_ = endTime;
setParameter(std::string("EndTime"), endTime);
}
std::string DescribeDatabaseErrorLogsRequest::getStartTime() const {
return startTime_;
}
void DescribeDatabaseErrorLogsRequest::setStartTime(const std::string &startTime) {
startTime_ = startTime;
setParameter(std::string("StartTime"), startTime);
}
int DescribeDatabaseErrorLogsRequest::getPageNumber() const {
return pageNumber_;
}
void DescribeDatabaseErrorLogsRequest::setPageNumber(int pageNumber) {
pageNumber_ = pageNumber;
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
}
std::string DescribeDatabaseErrorLogsRequest::getRegionId() const {
return regionId_;
}
void DescribeDatabaseErrorLogsRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
int DescribeDatabaseErrorLogsRequest::getPageSize() const {
return pageSize_;
}
void DescribeDatabaseErrorLogsRequest::setPageSize(int pageSize) {
pageSize_ = pageSize;
setParameter(std::string("PageSize"), std::to_string(pageSize));
}

View File

@@ -0,0 +1,80 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/swas-open/model/DescribeDatabaseErrorLogsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::SWAS_OPEN;
using namespace AlibabaCloud::SWAS_OPEN::Model;
DescribeDatabaseErrorLogsResult::DescribeDatabaseErrorLogsResult() :
ServiceResult()
{}
DescribeDatabaseErrorLogsResult::DescribeDatabaseErrorLogsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDatabaseErrorLogsResult::~DescribeDatabaseErrorLogsResult()
{}
void DescribeDatabaseErrorLogsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allErrorLogsNode = value["ErrorLogs"]["ErrorLog"];
for (auto valueErrorLogsErrorLog : allErrorLogsNode)
{
ErrorLog errorLogsObject;
if(!valueErrorLogsErrorLog["ErrorInfo"].isNull())
errorLogsObject.errorInfo = valueErrorLogsErrorLog["ErrorInfo"].asString();
if(!valueErrorLogsErrorLog["CreateTime"].isNull())
errorLogsObject.createTime = valueErrorLogsErrorLog["CreateTime"].asString();
errorLogs_.push_back(errorLogsObject);
}
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
}
int DescribeDatabaseErrorLogsResult::getTotalCount()const
{
return totalCount_;
}
int DescribeDatabaseErrorLogsResult::getPageSize()const
{
return pageSize_;
}
std::vector<DescribeDatabaseErrorLogsResult::ErrorLog> DescribeDatabaseErrorLogsResult::getErrorLogs()const
{
return errorLogs_;
}
int DescribeDatabaseErrorLogsResult::getPageNumber()const
{
return pageNumber_;
}

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/swas-open/model/DescribeDatabaseInstanceMetricDataRequest.h>
using AlibabaCloud::SWAS_OPEN::Model::DescribeDatabaseInstanceMetricDataRequest;
DescribeDatabaseInstanceMetricDataRequest::DescribeDatabaseInstanceMetricDataRequest()
: RpcServiceRequest("swas-open", "2020-06-01", "DescribeDatabaseInstanceMetricData") {
setMethod(HttpRequest::Method::Post);
}
DescribeDatabaseInstanceMetricDataRequest::~DescribeDatabaseInstanceMetricDataRequest() {}
std::string DescribeDatabaseInstanceMetricDataRequest::getDatabaseInstanceId() const {
return databaseInstanceId_;
}
void DescribeDatabaseInstanceMetricDataRequest::setDatabaseInstanceId(const std::string &databaseInstanceId) {
databaseInstanceId_ = databaseInstanceId;
setParameter(std::string("DatabaseInstanceId"), databaseInstanceId);
}
std::string DescribeDatabaseInstanceMetricDataRequest::getEndTime() const {
return endTime_;
}
void DescribeDatabaseInstanceMetricDataRequest::setEndTime(const std::string &endTime) {
endTime_ = endTime;
setParameter(std::string("EndTime"), endTime);
}
std::string DescribeDatabaseInstanceMetricDataRequest::getStartTime() const {
return startTime_;
}
void DescribeDatabaseInstanceMetricDataRequest::setStartTime(const std::string &startTime) {
startTime_ = startTime;
setParameter(std::string("StartTime"), startTime);
}
std::string DescribeDatabaseInstanceMetricDataRequest::getRegionId() const {
return regionId_;
}
void DescribeDatabaseInstanceMetricDataRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
std::string DescribeDatabaseInstanceMetricDataRequest::getMetricName() const {
return metricName_;
}
void DescribeDatabaseInstanceMetricDataRequest::setMetricName(const std::string &metricName) {
metricName_ = metricName;
setParameter(std::string("MetricName"), metricName);
}

View File

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

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/swas-open/model/DescribeDatabaseInstanceParametersRequest.h>
using AlibabaCloud::SWAS_OPEN::Model::DescribeDatabaseInstanceParametersRequest;
DescribeDatabaseInstanceParametersRequest::DescribeDatabaseInstanceParametersRequest()
: RpcServiceRequest("swas-open", "2020-06-01", "DescribeDatabaseInstanceParameters") {
setMethod(HttpRequest::Method::Post);
}
DescribeDatabaseInstanceParametersRequest::~DescribeDatabaseInstanceParametersRequest() {}
std::string DescribeDatabaseInstanceParametersRequest::getDatabaseInstanceId() const {
return databaseInstanceId_;
}
void DescribeDatabaseInstanceParametersRequest::setDatabaseInstanceId(const std::string &databaseInstanceId) {
databaseInstanceId_ = databaseInstanceId;
setParameter(std::string("DatabaseInstanceId"), databaseInstanceId);
}
std::string DescribeDatabaseInstanceParametersRequest::getRegionId() const {
return regionId_;
}
void DescribeDatabaseInstanceParametersRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}

View 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/swas-open/model/DescribeDatabaseInstanceParametersResult.h>
#include <json/json.h>
using namespace AlibabaCloud::SWAS_OPEN;
using namespace AlibabaCloud::SWAS_OPEN::Model;
DescribeDatabaseInstanceParametersResult::DescribeDatabaseInstanceParametersResult() :
ServiceResult()
{}
DescribeDatabaseInstanceParametersResult::DescribeDatabaseInstanceParametersResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDatabaseInstanceParametersResult::~DescribeDatabaseInstanceParametersResult()
{}
void DescribeDatabaseInstanceParametersResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allConfigParametersNode = value["ConfigParameters"]["ConfigParameter"];
for (auto valueConfigParametersConfigParameter : allConfigParametersNode)
{
ConfigParameter configParametersObject;
if(!valueConfigParametersConfigParameter["ParameterDescription"].isNull())
configParametersObject.parameterDescription = valueConfigParametersConfigParameter["ParameterDescription"].asString();
if(!valueConfigParametersConfigParameter["ParameterName"].isNull())
configParametersObject.parameterName = valueConfigParametersConfigParameter["ParameterName"].asString();
if(!valueConfigParametersConfigParameter["ParameterValue"].isNull())
configParametersObject.parameterValue = valueConfigParametersConfigParameter["ParameterValue"].asString();
if(!valueConfigParametersConfigParameter["ForceModify"].isNull())
configParametersObject.forceModify = valueConfigParametersConfigParameter["ForceModify"].asString();
if(!valueConfigParametersConfigParameter["ForceRestart"].isNull())
configParametersObject.forceRestart = valueConfigParametersConfigParameter["ForceRestart"].asString();
if(!valueConfigParametersConfigParameter["CheckingCode"].isNull())
configParametersObject.checkingCode = valueConfigParametersConfigParameter["CheckingCode"].asString();
configParameters_.push_back(configParametersObject);
}
auto allRunningParametersNode = value["RunningParameters"]["RunningParameter"];
for (auto valueRunningParametersRunningParameter : allRunningParametersNode)
{
RunningParameter runningParametersObject;
if(!valueRunningParametersRunningParameter["ParameterDescription"].isNull())
runningParametersObject.parameterDescription = valueRunningParametersRunningParameter["ParameterDescription"].asString();
if(!valueRunningParametersRunningParameter["ParameterName"].isNull())
runningParametersObject.parameterName = valueRunningParametersRunningParameter["ParameterName"].asString();
if(!valueRunningParametersRunningParameter["ParameterValue"].isNull())
runningParametersObject.parameterValue = valueRunningParametersRunningParameter["ParameterValue"].asString();
if(!valueRunningParametersRunningParameter["ForceModify"].isNull())
runningParametersObject.forceModify = valueRunningParametersRunningParameter["ForceModify"].asString();
if(!valueRunningParametersRunningParameter["ForceRestart"].isNull())
runningParametersObject.forceRestart = valueRunningParametersRunningParameter["ForceRestart"].asString();
if(!valueRunningParametersRunningParameter["CheckingCode"].isNull())
runningParametersObject.checkingCode = valueRunningParametersRunningParameter["CheckingCode"].asString();
runningParameters_.push_back(runningParametersObject);
}
if(!value["Engine"].isNull())
engine_ = value["Engine"].asString();
if(!value["EngineVersion"].isNull())
engineVersion_ = value["EngineVersion"].asString();
}
std::vector<DescribeDatabaseInstanceParametersResult::RunningParameter> DescribeDatabaseInstanceParametersResult::getRunningParameters()const
{
return runningParameters_;
}
std::string DescribeDatabaseInstanceParametersResult::getEngineVersion()const
{
return engineVersion_;
}
std::vector<DescribeDatabaseInstanceParametersResult::ConfigParameter> DescribeDatabaseInstanceParametersResult::getConfigParameters()const
{
return configParameters_;
}
std::string DescribeDatabaseInstanceParametersResult::getEngine()const
{
return engine_;
}

View File

@@ -0,0 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/swas-open/model/DescribeDatabaseInstancesRequest.h>
using AlibabaCloud::SWAS_OPEN::Model::DescribeDatabaseInstancesRequest;
DescribeDatabaseInstancesRequest::DescribeDatabaseInstancesRequest()
: RpcServiceRequest("swas-open", "2020-06-01", "DescribeDatabaseInstances") {
setMethod(HttpRequest::Method::Post);
}
DescribeDatabaseInstancesRequest::~DescribeDatabaseInstancesRequest() {}
std::string DescribeDatabaseInstancesRequest::getDatabaseInstanceIds() const {
return databaseInstanceIds_;
}
void DescribeDatabaseInstancesRequest::setDatabaseInstanceIds(const std::string &databaseInstanceIds) {
databaseInstanceIds_ = databaseInstanceIds;
setParameter(std::string("DatabaseInstanceIds"), databaseInstanceIds);
}
int DescribeDatabaseInstancesRequest::getPageNumber() const {
return pageNumber_;
}
void DescribeDatabaseInstancesRequest::setPageNumber(int pageNumber) {
pageNumber_ = pageNumber;
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
}
std::string DescribeDatabaseInstancesRequest::getRegionId() const {
return regionId_;
}
void DescribeDatabaseInstancesRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
int DescribeDatabaseInstancesRequest::getPageSize() const {
return pageSize_;
}
void DescribeDatabaseInstancesRequest::setPageSize(int pageSize) {
pageSize_ = pageSize;
setParameter(std::string("PageSize"), std::to_string(pageSize));
}

View File

@@ -0,0 +1,108 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/swas-open/model/DescribeDatabaseInstancesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::SWAS_OPEN;
using namespace AlibabaCloud::SWAS_OPEN::Model;
DescribeDatabaseInstancesResult::DescribeDatabaseInstancesResult() :
ServiceResult()
{}
DescribeDatabaseInstancesResult::DescribeDatabaseInstancesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDatabaseInstancesResult::~DescribeDatabaseInstancesResult()
{}
void DescribeDatabaseInstancesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDatabaseInstancesNode = value["DatabaseInstances"]["DatabaseInstance"];
for (auto valueDatabaseInstancesDatabaseInstance : allDatabaseInstancesNode)
{
DatabaseInstance databaseInstancesObject;
if(!valueDatabaseInstancesDatabaseInstance["RegionId"].isNull())
databaseInstancesObject.regionId = valueDatabaseInstancesDatabaseInstance["RegionId"].asString();
if(!valueDatabaseInstancesDatabaseInstance["DatabaseInstanceId"].isNull())
databaseInstancesObject.databaseInstanceId = valueDatabaseInstancesDatabaseInstance["DatabaseInstanceId"].asString();
if(!valueDatabaseInstancesDatabaseInstance["DatabaseInstanceName"].isNull())
databaseInstancesObject.databaseInstanceName = valueDatabaseInstancesDatabaseInstance["DatabaseInstanceName"].asString();
if(!valueDatabaseInstancesDatabaseInstance["DatabaseInstanceEdition"].isNull())
databaseInstancesObject.databaseInstanceEdition = valueDatabaseInstancesDatabaseInstance["DatabaseInstanceEdition"].asString();
if(!valueDatabaseInstancesDatabaseInstance["DatabaseVersion"].isNull())
databaseInstancesObject.databaseVersion = valueDatabaseInstancesDatabaseInstance["DatabaseVersion"].asString();
if(!valueDatabaseInstancesDatabaseInstance["Cpu"].isNull())
databaseInstancesObject.cpu = valueDatabaseInstancesDatabaseInstance["Cpu"].asString();
if(!valueDatabaseInstancesDatabaseInstance["Memory"].isNull())
databaseInstancesObject.memory = valueDatabaseInstancesDatabaseInstance["Memory"].asString();
if(!valueDatabaseInstancesDatabaseInstance["Storage"].isNull())
databaseInstancesObject.storage = std::stoi(valueDatabaseInstancesDatabaseInstance["Storage"].asString());
if(!valueDatabaseInstancesDatabaseInstance["PrivateConnection"].isNull())
databaseInstancesObject.privateConnection = valueDatabaseInstancesDatabaseInstance["PrivateConnection"].asString();
if(!valueDatabaseInstancesDatabaseInstance["PublicConnection"].isNull())
databaseInstancesObject.publicConnection = valueDatabaseInstancesDatabaseInstance["PublicConnection"].asString();
if(!valueDatabaseInstancesDatabaseInstance["DatabaseInstanceStatus"].isNull())
databaseInstancesObject.databaseInstanceStatus = valueDatabaseInstancesDatabaseInstance["DatabaseInstanceStatus"].asString();
if(!valueDatabaseInstancesDatabaseInstance["BusinessStatus"].isNull())
databaseInstancesObject.businessStatus = valueDatabaseInstancesDatabaseInstance["BusinessStatus"].asString();
if(!valueDatabaseInstancesDatabaseInstance["CreationTime"].isNull())
databaseInstancesObject.creationTime = valueDatabaseInstancesDatabaseInstance["CreationTime"].asString();
if(!valueDatabaseInstancesDatabaseInstance["ExpiredTime"].isNull())
databaseInstancesObject.expiredTime = valueDatabaseInstancesDatabaseInstance["ExpiredTime"].asString();
if(!valueDatabaseInstancesDatabaseInstance["ChargeType"].isNull())
databaseInstancesObject.chargeType = valueDatabaseInstancesDatabaseInstance["ChargeType"].asString();
if(!valueDatabaseInstancesDatabaseInstance["SuperAccountName"].isNull())
databaseInstancesObject.superAccountName = valueDatabaseInstancesDatabaseInstance["SuperAccountName"].asString();
databaseInstances_.push_back(databaseInstancesObject);
}
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
}
int DescribeDatabaseInstancesResult::getTotalCount()const
{
return totalCount_;
}
int DescribeDatabaseInstancesResult::getPageSize()const
{
return pageSize_;
}
int DescribeDatabaseInstancesResult::getPageNumber()const
{
return pageNumber_;
}
std::vector<DescribeDatabaseInstancesResult::DatabaseInstance> DescribeDatabaseInstancesResult::getDatabaseInstances()const
{
return databaseInstances_;
}

View File

@@ -0,0 +1,81 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/swas-open/model/DescribeDatabaseSlowLogRecordsRequest.h>
using AlibabaCloud::SWAS_OPEN::Model::DescribeDatabaseSlowLogRecordsRequest;
DescribeDatabaseSlowLogRecordsRequest::DescribeDatabaseSlowLogRecordsRequest()
: RpcServiceRequest("swas-open", "2020-06-01", "DescribeDatabaseSlowLogRecords") {
setMethod(HttpRequest::Method::Post);
}
DescribeDatabaseSlowLogRecordsRequest::~DescribeDatabaseSlowLogRecordsRequest() {}
std::string DescribeDatabaseSlowLogRecordsRequest::getDatabaseInstanceId() const {
return databaseInstanceId_;
}
void DescribeDatabaseSlowLogRecordsRequest::setDatabaseInstanceId(const std::string &databaseInstanceId) {
databaseInstanceId_ = databaseInstanceId;
setParameter(std::string("DatabaseInstanceId"), databaseInstanceId);
}
std::string DescribeDatabaseSlowLogRecordsRequest::getEndTime() const {
return endTime_;
}
void DescribeDatabaseSlowLogRecordsRequest::setEndTime(const std::string &endTime) {
endTime_ = endTime;
setParameter(std::string("EndTime"), endTime);
}
std::string DescribeDatabaseSlowLogRecordsRequest::getStartTime() const {
return startTime_;
}
void DescribeDatabaseSlowLogRecordsRequest::setStartTime(const std::string &startTime) {
startTime_ = startTime;
setParameter(std::string("StartTime"), startTime);
}
int DescribeDatabaseSlowLogRecordsRequest::getPageNumber() const {
return pageNumber_;
}
void DescribeDatabaseSlowLogRecordsRequest::setPageNumber(int pageNumber) {
pageNumber_ = pageNumber;
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
}
std::string DescribeDatabaseSlowLogRecordsRequest::getRegionId() const {
return regionId_;
}
void DescribeDatabaseSlowLogRecordsRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
int DescribeDatabaseSlowLogRecordsRequest::getPageSize() const {
return pageSize_;
}
void DescribeDatabaseSlowLogRecordsRequest::setPageSize(int pageSize) {
pageSize_ = pageSize;
setParameter(std::string("PageSize"), std::to_string(pageSize));
}

View File

@@ -0,0 +1,108 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/swas-open/model/DescribeDatabaseSlowLogRecordsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::SWAS_OPEN;
using namespace AlibabaCloud::SWAS_OPEN::Model;
DescribeDatabaseSlowLogRecordsResult::DescribeDatabaseSlowLogRecordsResult() :
ServiceResult()
{}
DescribeDatabaseSlowLogRecordsResult::DescribeDatabaseSlowLogRecordsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDatabaseSlowLogRecordsResult::~DescribeDatabaseSlowLogRecordsResult()
{}
void DescribeDatabaseSlowLogRecordsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allSlowLogsNode = value["SlowLogs"]["SlowLog"];
for (auto valueSlowLogsSlowLog : allSlowLogsNode)
{
SlowLog slowLogsObject;
if(!valueSlowLogsSlowLog["HostAddress"].isNull())
slowLogsObject.hostAddress = valueSlowLogsSlowLog["HostAddress"].asString();
if(!valueSlowLogsSlowLog["QueryTimes"].isNull())
slowLogsObject.queryTimes = std::stol(valueSlowLogsSlowLog["QueryTimes"].asString());
if(!valueSlowLogsSlowLog["SQLText"].isNull())
slowLogsObject.sQLText = valueSlowLogsSlowLog["SQLText"].asString();
if(!valueSlowLogsSlowLog["QueryTimeMS"].isNull())
slowLogsObject.queryTimeMS = std::stol(valueSlowLogsSlowLog["QueryTimeMS"].asString());
if(!valueSlowLogsSlowLog["LockTimes"].isNull())
slowLogsObject.lockTimes = std::stol(valueSlowLogsSlowLog["LockTimes"].asString());
if(!valueSlowLogsSlowLog["ExecutionStartTime"].isNull())
slowLogsObject.executionStartTime = valueSlowLogsSlowLog["ExecutionStartTime"].asString();
if(!valueSlowLogsSlowLog["ReturnRowCounts"].isNull())
slowLogsObject.returnRowCounts = std::stol(valueSlowLogsSlowLog["ReturnRowCounts"].asString());
if(!valueSlowLogsSlowLog["ParseRowCounts"].isNull())
slowLogsObject.parseRowCounts = std::stol(valueSlowLogsSlowLog["ParseRowCounts"].asString());
if(!valueSlowLogsSlowLog["DBName"].isNull())
slowLogsObject.dBName = valueSlowLogsSlowLog["DBName"].asString();
slowLogs_.push_back(slowLogsObject);
}
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["PhysicalIORead"].isNull())
physicalIORead_ = std::stol(value["PhysicalIORead"].asString());
if(!value["Engine"].isNull())
engine_ = value["Engine"].asString();
}
int DescribeDatabaseSlowLogRecordsResult::getTotalCount()const
{
return totalCount_;
}
int DescribeDatabaseSlowLogRecordsResult::getPageSize()const
{
return pageSize_;
}
int DescribeDatabaseSlowLogRecordsResult::getPageNumber()const
{
return pageNumber_;
}
long DescribeDatabaseSlowLogRecordsResult::getPhysicalIORead()const
{
return physicalIORead_;
}
std::vector<DescribeDatabaseSlowLogRecordsResult::SlowLog> DescribeDatabaseSlowLogRecordsResult::getSlowLogs()const
{
return slowLogs_;
}
std::string DescribeDatabaseSlowLogRecordsResult::getEngine()const
{
return engine_;
}

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/swas-open/model/DescribeInvocationResultRequest.h>
using AlibabaCloud::SWAS_OPEN::Model::DescribeInvocationResultRequest;
DescribeInvocationResultRequest::DescribeInvocationResultRequest()
: RpcServiceRequest("swas-open", "2020-06-01", "DescribeInvocationResult") {
setMethod(HttpRequest::Method::Post);
}
DescribeInvocationResultRequest::~DescribeInvocationResultRequest() {}
std::string DescribeInvocationResultRequest::getInvokeId() const {
return invokeId_;
}
void DescribeInvocationResultRequest::setInvokeId(const std::string &invokeId) {
invokeId_ = invokeId;
setParameter(std::string("InvokeId"), invokeId);
}
std::string DescribeInvocationResultRequest::getInstanceId() const {
return instanceId_;
}
void DescribeInvocationResultRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
std::string DescribeInvocationResultRequest::getRegionId() const {
return regionId_;
}
void DescribeInvocationResultRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/swas-open/model/DescribeInvocationResultResult.h>
#include <json/json.h>
using namespace AlibabaCloud::SWAS_OPEN;
using namespace AlibabaCloud::SWAS_OPEN::Model;
DescribeInvocationResultResult::DescribeInvocationResultResult() :
ServiceResult()
{}
DescribeInvocationResultResult::DescribeInvocationResultResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeInvocationResultResult::~DescribeInvocationResultResult()
{}
void DescribeInvocationResultResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto invocationResultNode = value["InvocationResult"];
if(!invocationResultNode["StartTime"].isNull())
invocationResult_.startTime = invocationResultNode["StartTime"].asString();
if(!invocationResultNode["FinishedTime"].isNull())
invocationResult_.finishedTime = invocationResultNode["FinishedTime"].asString();
if(!invocationResultNode["InvocationStatus"].isNull())
invocationResult_.invocationStatus = invocationResultNode["InvocationStatus"].asString();
if(!invocationResultNode["ExitCode"].isNull())
invocationResult_.exitCode = std::stol(invocationResultNode["ExitCode"].asString());
if(!invocationResultNode["ErrorInfo"].isNull())
invocationResult_.errorInfo = invocationResultNode["ErrorInfo"].asString();
if(!invocationResultNode["ErrorCode"].isNull())
invocationResult_.errorCode = invocationResultNode["ErrorCode"].asString();
if(!invocationResultNode["InvokeId"].isNull())
invocationResult_.invokeId = invocationResultNode["InvokeId"].asString();
if(!invocationResultNode["InvokeRecordStatus"].isNull())
invocationResult_.invokeRecordStatus = invocationResultNode["InvokeRecordStatus"].asString();
if(!invocationResultNode["InvokeUser"].isNull())
invocationResult_.invokeUser = invocationResultNode["InvokeUser"].asString();
if(!invocationResultNode["Output"].isNull())
invocationResult_.output = invocationResultNode["Output"].asString();
if(!invocationResultNode["InstanceId"].isNull())
invocationResult_.instanceId = invocationResultNode["InstanceId"].asString();
}
DescribeInvocationResultResult::InvocationResult DescribeInvocationResultResult::getInvocationResult()const
{
return invocationResult_;
}

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/swas-open/model/DescribeInvocationsRequest.h>
using AlibabaCloud::SWAS_OPEN::Model::DescribeInvocationsRequest;
DescribeInvocationsRequest::DescribeInvocationsRequest()
: RpcServiceRequest("swas-open", "2020-06-01", "DescribeInvocations") {
setMethod(HttpRequest::Method::Post);
}
DescribeInvocationsRequest::~DescribeInvocationsRequest() {}
std::string DescribeInvocationsRequest::getInvokeStatus() const {
return invokeStatus_;
}
void DescribeInvocationsRequest::setInvokeStatus(const std::string &invokeStatus) {
invokeStatus_ = invokeStatus;
setParameter(std::string("InvokeStatus"), invokeStatus);
}
int DescribeInvocationsRequest::getPageNumber() const {
return pageNumber_;
}
void DescribeInvocationsRequest::setPageNumber(int pageNumber) {
pageNumber_ = pageNumber;
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
}
std::string DescribeInvocationsRequest::getInstanceId() const {
return instanceId_;
}
void DescribeInvocationsRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
std::string DescribeInvocationsRequest::getRegionId() const {
return regionId_;
}
void DescribeInvocationsRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
int DescribeInvocationsRequest::getPageSize() const {
return pageSize_;
}
void DescribeInvocationsRequest::setPageSize(int pageSize) {
pageSize_ = pageSize;
setParameter(std::string("PageSize"), std::to_string(pageSize));
}

View File

@@ -0,0 +1,92 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/swas-open/model/DescribeInvocationsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::SWAS_OPEN;
using namespace AlibabaCloud::SWAS_OPEN::Model;
DescribeInvocationsResult::DescribeInvocationsResult() :
ServiceResult()
{}
DescribeInvocationsResult::DescribeInvocationsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeInvocationsResult::~DescribeInvocationsResult()
{}
void DescribeInvocationsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allInvocationsNode = value["Invocations"]["Invocation"];
for (auto valueInvocationsInvocation : allInvocationsNode)
{
Invocation invocationsObject;
if(!valueInvocationsInvocation["CreationTime"].isNull())
invocationsObject.creationTime = valueInvocationsInvocation["CreationTime"].asString();
if(!valueInvocationsInvocation["InvocationStatus"].isNull())
invocationsObject.invocationStatus = valueInvocationsInvocation["InvocationStatus"].asString();
if(!valueInvocationsInvocation["CommandType"].isNull())
invocationsObject.commandType = valueInvocationsInvocation["CommandType"].asString();
if(!valueInvocationsInvocation["CommandContent"].isNull())
invocationsObject.commandContent = valueInvocationsInvocation["CommandContent"].asString();
if(!valueInvocationsInvocation["Parameters"].isNull())
invocationsObject.parameters = valueInvocationsInvocation["Parameters"].asString();
if(!valueInvocationsInvocation["InvokeStatus"].isNull())
invocationsObject.invokeStatus = valueInvocationsInvocation["InvokeStatus"].asString();
if(!valueInvocationsInvocation["InvokeId"].isNull())
invocationsObject.invokeId = valueInvocationsInvocation["InvokeId"].asString();
if(!valueInvocationsInvocation["CommandName"].isNull())
invocationsObject.commandName = valueInvocationsInvocation["CommandName"].asString();
invocations_.push_back(invocationsObject);
}
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
}
int DescribeInvocationsResult::getTotalCount()const
{
return totalCount_;
}
int DescribeInvocationsResult::getPageSize()const
{
return pageSize_;
}
std::vector<DescribeInvocationsResult::Invocation> DescribeInvocationsResult::getInvocations()const
{
return invocations_;
}
int DescribeInvocationsResult::getPageNumber()const
{
return pageNumber_;
}

View File

@@ -0,0 +1,56 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/swas-open/model/InstallCloudAssistantRequest.h>
using AlibabaCloud::SWAS_OPEN::Model::InstallCloudAssistantRequest;
InstallCloudAssistantRequest::InstallCloudAssistantRequest()
: RpcServiceRequest("swas-open", "2020-06-01", "InstallCloudAssistant") {
setMethod(HttpRequest::Method::Post);
}
InstallCloudAssistantRequest::~InstallCloudAssistantRequest() {}
std::string InstallCloudAssistantRequest::getSite() const {
return site_;
}
void InstallCloudAssistantRequest::setSite(const std::string &site) {
site_ = site;
setParameter(std::string("Site"), site);
}
std::string InstallCloudAssistantRequest::getRegionId() const {
return regionId_;
}
void InstallCloudAssistantRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
std::vector<InstallCloudAssistantRequest::std::string> InstallCloudAssistantRequest::getInstanceIds() const {
return instanceIds_;
}
void InstallCloudAssistantRequest::setInstanceIds(const std::vector<InstallCloudAssistantRequest::std::string> &instanceIds) {
instanceIds_ = instanceIds;
for(int dep1 = 0; dep1 != instanceIds.size(); dep1++) {
setParameter(std::string("InstanceIds") + "." + std::to_string(dep1 + 1), instanceIds[dep1]);
}
}

View 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/swas-open/model/InstallCloudAssistantResult.h>
#include <json/json.h>
using namespace AlibabaCloud::SWAS_OPEN;
using namespace AlibabaCloud::SWAS_OPEN::Model;
InstallCloudAssistantResult::InstallCloudAssistantResult() :
ServiceResult()
{}
InstallCloudAssistantResult::InstallCloudAssistantResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
InstallCloudAssistantResult::~InstallCloudAssistantResult()
{}
void InstallCloudAssistantResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/swas-open/model/ListDisksRequest.h>
using AlibabaCloud::SWAS_OPEN::Model::ListDisksRequest;
ListDisksRequest::ListDisksRequest()
: RpcServiceRequest("swas-open", "2020-06-01", "ListDisks") {
setMethod(HttpRequest::Method::Post);
}
ListDisksRequest::~ListDisksRequest() {}
int ListDisksRequest::getPageNumber() const {
return pageNumber_;
}
void ListDisksRequest::setPageNumber(int pageNumber) {
pageNumber_ = pageNumber;
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
}
std::string ListDisksRequest::getInstanceId() const {
return instanceId_;
}
void ListDisksRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
std::string ListDisksRequest::getRegionId() const {
return regionId_;
}
void ListDisksRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
int ListDisksRequest::getPageSize() const {
return pageSize_;
}
void ListDisksRequest::setPageSize(int pageSize) {
pageSize_ = pageSize;
setParameter(std::string("PageSize"), std::to_string(pageSize));
}
std::string ListDisksRequest::getDiskIds() const {
return diskIds_;
}
void ListDisksRequest::setDiskIds(const std::string &diskIds) {
diskIds_ = diskIds;
setParameter(std::string("DiskIds"), diskIds);
}

View File

@@ -0,0 +1,98 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/swas-open/model/ListDisksResult.h>
#include <json/json.h>
using namespace AlibabaCloud::SWAS_OPEN;
using namespace AlibabaCloud::SWAS_OPEN::Model;
ListDisksResult::ListDisksResult() :
ServiceResult()
{}
ListDisksResult::ListDisksResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListDisksResult::~ListDisksResult()
{}
void ListDisksResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDisksNode = value["Disks"]["Disk"];
for (auto valueDisksDisk : allDisksNode)
{
Disk disksObject;
if(!valueDisksDisk["CreationTime"].isNull())
disksObject.creationTime = valueDisksDisk["CreationTime"].asString();
if(!valueDisksDisk["Status"].isNull())
disksObject.status = valueDisksDisk["Status"].asString();
if(!valueDisksDisk["Device"].isNull())
disksObject.device = valueDisksDisk["Device"].asString();
if(!valueDisksDisk["Size"].isNull())
disksObject.size = std::stoi(valueDisksDisk["Size"].asString());
if(!valueDisksDisk["DiskName"].isNull())
disksObject.diskName = valueDisksDisk["DiskName"].asString();
if(!valueDisksDisk["DiskChargeType"].isNull())
disksObject.diskChargeType = valueDisksDisk["DiskChargeType"].asString();
if(!valueDisksDisk["DiskType"].isNull())
disksObject.diskType = valueDisksDisk["DiskType"].asString();
if(!valueDisksDisk["Category"].isNull())
disksObject.category = valueDisksDisk["Category"].asString();
if(!valueDisksDisk["DiskId"].isNull())
disksObject.diskId = valueDisksDisk["DiskId"].asString();
if(!valueDisksDisk["InstanceId"].isNull())
disksObject.instanceId = valueDisksDisk["InstanceId"].asString();
if(!valueDisksDisk["RegionId"].isNull())
disksObject.regionId = valueDisksDisk["RegionId"].asString();
disks_.push_back(disksObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
}
int ListDisksResult::getTotalCount()const
{
return totalCount_;
}
int ListDisksResult::getPageSize()const
{
return pageSize_;
}
int ListDisksResult::getPageNumber()const
{
return pageNumber_;
}
std::vector<ListDisksResult::Disk> ListDisksResult::getDisks()const
{
return disks_;
}

View File

@@ -0,0 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/swas-open/model/ListFirewallRulesRequest.h>
using AlibabaCloud::SWAS_OPEN::Model::ListFirewallRulesRequest;
ListFirewallRulesRequest::ListFirewallRulesRequest()
: RpcServiceRequest("swas-open", "2020-06-01", "ListFirewallRules") {
setMethod(HttpRequest::Method::Post);
}
ListFirewallRulesRequest::~ListFirewallRulesRequest() {}
int ListFirewallRulesRequest::getPageNumber() const {
return pageNumber_;
}
void ListFirewallRulesRequest::setPageNumber(int pageNumber) {
pageNumber_ = pageNumber;
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
}
std::string ListFirewallRulesRequest::getInstanceId() const {
return instanceId_;
}
void ListFirewallRulesRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
std::string ListFirewallRulesRequest::getRegionId() const {
return regionId_;
}
void ListFirewallRulesRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
int ListFirewallRulesRequest::getPageSize() const {
return pageSize_;
}
void ListFirewallRulesRequest::setPageSize(int pageSize) {
pageSize_ = pageSize;
setParameter(std::string("PageSize"), std::to_string(pageSize));
}

View File

@@ -0,0 +1,84 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/swas-open/model/ListFirewallRulesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::SWAS_OPEN;
using namespace AlibabaCloud::SWAS_OPEN::Model;
ListFirewallRulesResult::ListFirewallRulesResult() :
ServiceResult()
{}
ListFirewallRulesResult::ListFirewallRulesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListFirewallRulesResult::~ListFirewallRulesResult()
{}
void ListFirewallRulesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allFirewallRulesNode = value["FirewallRules"]["FirewallRule"];
for (auto valueFirewallRulesFirewallRule : allFirewallRulesNode)
{
FirewallRule firewallRulesObject;
if(!valueFirewallRulesFirewallRule["Remark"].isNull())
firewallRulesObject.remark = valueFirewallRulesFirewallRule["Remark"].asString();
if(!valueFirewallRulesFirewallRule["Port"].isNull())
firewallRulesObject.port = valueFirewallRulesFirewallRule["Port"].asString();
if(!valueFirewallRulesFirewallRule["RuleId"].isNull())
firewallRulesObject.ruleId = valueFirewallRulesFirewallRule["RuleId"].asString();
if(!valueFirewallRulesFirewallRule["RuleProtocol"].isNull())
firewallRulesObject.ruleProtocol = valueFirewallRulesFirewallRule["RuleProtocol"].asString();
firewallRules_.push_back(firewallRulesObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
}
int ListFirewallRulesResult::getTotalCount()const
{
return totalCount_;
}
int ListFirewallRulesResult::getPageSize()const
{
return pageSize_;
}
int ListFirewallRulesResult::getPageNumber()const
{
return pageNumber_;
}
std::vector<ListFirewallRulesResult::FirewallRule> ListFirewallRulesResult::getFirewallRules()const
{
return firewallRules_;
}

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/swas-open/model/ListImagesRequest.h>
using AlibabaCloud::SWAS_OPEN::Model::ListImagesRequest;
ListImagesRequest::ListImagesRequest()
: RpcServiceRequest("swas-open", "2020-06-01", "ListImages") {
setMethod(HttpRequest::Method::Post);
}
ListImagesRequest::~ListImagesRequest() {}
std::string ListImagesRequest::getImageType() const {
return imageType_;
}
void ListImagesRequest::setImageType(const std::string &imageType) {
imageType_ = imageType;
setParameter(std::string("ImageType"), imageType);
}
std::string ListImagesRequest::getRegionId() const {
return regionId_;
}
void ListImagesRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
std::string ListImagesRequest::getImageIds() const {
return imageIds_;
}
void ListImagesRequest::setImageIds(const std::string &imageIds) {
imageIds_ = imageIds;
setParameter(std::string("ImageIds"), imageIds);
}

View File

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

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/swas-open/model/ListInstancePlansModificationRequest.h>
using AlibabaCloud::SWAS_OPEN::Model::ListInstancePlansModificationRequest;
ListInstancePlansModificationRequest::ListInstancePlansModificationRequest()
: RpcServiceRequest("swas-open", "2020-06-01", "ListInstancePlansModification") {
setMethod(HttpRequest::Method::Post);
}
ListInstancePlansModificationRequest::~ListInstancePlansModificationRequest() {}
std::string ListInstancePlansModificationRequest::getInstanceId() const {
return instanceId_;
}
void ListInstancePlansModificationRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
std::string ListInstancePlansModificationRequest::getRegionId() const {
return regionId_;
}
void ListInstancePlansModificationRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}

View File

@@ -0,0 +1,75 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/swas-open/model/ListInstancePlansModificationResult.h>
#include <json/json.h>
using namespace AlibabaCloud::SWAS_OPEN;
using namespace AlibabaCloud::SWAS_OPEN::Model;
ListInstancePlansModificationResult::ListInstancePlansModificationResult() :
ServiceResult()
{}
ListInstancePlansModificationResult::ListInstancePlansModificationResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListInstancePlansModificationResult::~ListInstancePlansModificationResult()
{}
void ListInstancePlansModificationResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allPlansNode = value["Plans"]["Plan"];
for (auto valuePlansPlan : allPlansNode)
{
Plan plansObject;
if(!valuePlansPlan["Core"].isNull())
plansObject.core = std::stoi(valuePlansPlan["Core"].asString());
if(!valuePlansPlan["Bandwidth"].isNull())
plansObject.bandwidth = std::stoi(valuePlansPlan["Bandwidth"].asString());
if(!valuePlansPlan["DiskSize"].isNull())
plansObject.diskSize = std::stoi(valuePlansPlan["DiskSize"].asString());
if(!valuePlansPlan["Flow"].isNull())
plansObject.flow = std::stoi(valuePlansPlan["Flow"].asString());
if(!valuePlansPlan["Memory"].isNull())
plansObject.memory = std::stoi(valuePlansPlan["Memory"].asString());
if(!valuePlansPlan["PlanId"].isNull())
plansObject.planId = valuePlansPlan["PlanId"].asString();
if(!valuePlansPlan["DiskType"].isNull())
plansObject.diskType = valuePlansPlan["DiskType"].asString();
if(!valuePlansPlan["OriginPrice"].isNull())
plansObject.originPrice = valuePlansPlan["OriginPrice"].asString();
if(!valuePlansPlan["Currency"].isNull())
plansObject.currency = valuePlansPlan["Currency"].asString();
if(!valuePlansPlan["SupportPlatform"].isNull())
plansObject.supportPlatform = valuePlansPlan["SupportPlatform"].asString();
plans_.push_back(plansObject);
}
}
std::vector<ListInstancePlansModificationResult::Plan> ListInstancePlansModificationResult::getPlans()const
{
return plans_;
}

View File

@@ -0,0 +1,81 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/swas-open/model/ListInstancesRequest.h>
using AlibabaCloud::SWAS_OPEN::Model::ListInstancesRequest;
ListInstancesRequest::ListInstancesRequest()
: RpcServiceRequest("swas-open", "2020-06-01", "ListInstances") {
setMethod(HttpRequest::Method::Post);
}
ListInstancesRequest::~ListInstancesRequest() {}
int ListInstancesRequest::getPageNumber() const {
return pageNumber_;
}
void ListInstancesRequest::setPageNumber(int pageNumber) {
pageNumber_ = pageNumber;
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
}
std::string ListInstancesRequest::getRegionId() const {
return regionId_;
}
void ListInstancesRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
std::string ListInstancesRequest::getInstanceIds() const {
return instanceIds_;
}
void ListInstancesRequest::setInstanceIds(const std::string &instanceIds) {
instanceIds_ = instanceIds;
setParameter(std::string("InstanceIds"), instanceIds);
}
int ListInstancesRequest::getPageSize() const {
return pageSize_;
}
void ListInstancesRequest::setPageSize(int pageSize) {
pageSize_ = pageSize;
setParameter(std::string("PageSize"), std::to_string(pageSize));
}
std::string ListInstancesRequest::getPublicIpAddresses() const {
return publicIpAddresses_;
}
void ListInstancesRequest::setPublicIpAddresses(const std::string &publicIpAddresses) {
publicIpAddresses_ = publicIpAddresses;
setParameter(std::string("PublicIpAddresses"), publicIpAddresses);
}
std::string ListInstancesRequest::getChargeType() const {
return chargeType_;
}
void ListInstancesRequest::setChargeType(const std::string &chargeType) {
chargeType_ = chargeType;
setParameter(std::string("ChargeType"), chargeType);
}

View File

@@ -0,0 +1,102 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/swas-open/model/ListInstancesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::SWAS_OPEN;
using namespace AlibabaCloud::SWAS_OPEN::Model;
ListInstancesResult::ListInstancesResult() :
ServiceResult()
{}
ListInstancesResult::ListInstancesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListInstancesResult::~ListInstancesResult()
{}
void ListInstancesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allInstancesNode = value["Instances"]["Instance"];
for (auto valueInstancesInstance : allInstancesNode)
{
Instance instancesObject;
if(!valueInstancesInstance["Status"].isNull())
instancesObject.status = valueInstancesInstance["Status"].asString();
if(!valueInstancesInstance["CreationTime"].isNull())
instancesObject.creationTime = valueInstancesInstance["CreationTime"].asString();
if(!valueInstancesInstance["InnerIpAddress"].isNull())
instancesObject.innerIpAddress = valueInstancesInstance["InnerIpAddress"].asString();
if(!valueInstancesInstance["ChargeType"].isNull())
instancesObject.chargeType = valueInstancesInstance["ChargeType"].asString();
if(!valueInstancesInstance["InstanceId"].isNull())
instancesObject.instanceId = valueInstancesInstance["InstanceId"].asString();
if(!valueInstancesInstance["PlanId"].isNull())
instancesObject.planId = valueInstancesInstance["PlanId"].asString();
if(!valueInstancesInstance["PublicIpAddress"].isNull())
instancesObject.publicIpAddress = valueInstancesInstance["PublicIpAddress"].asString();
if(!valueInstancesInstance["RegionId"].isNull())
instancesObject.regionId = valueInstancesInstance["RegionId"].asString();
if(!valueInstancesInstance["ExpiredTime"].isNull())
instancesObject.expiredTime = valueInstancesInstance["ExpiredTime"].asString();
if(!valueInstancesInstance["InstanceName"].isNull())
instancesObject.instanceName = valueInstancesInstance["InstanceName"].asString();
if(!valueInstancesInstance["BusinessStatus"].isNull())
instancesObject.businessStatus = valueInstancesInstance["BusinessStatus"].asString();
if(!valueInstancesInstance["DdosStatus"].isNull())
instancesObject.ddosStatus = valueInstancesInstance["DdosStatus"].asString();
if(!valueInstancesInstance["ImageId"].isNull())
instancesObject.imageId = valueInstancesInstance["ImageId"].asString();
instances_.push_back(instancesObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
}
std::vector<ListInstancesResult::Instance> ListInstancesResult::getInstances()const
{
return instances_;
}
int ListInstancesResult::getTotalCount()const
{
return totalCount_;
}
int ListInstancesResult::getPageSize()const
{
return pageSize_;
}
int ListInstancesResult::getPageNumber()const
{
return pageNumber_;
}

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/swas-open/model/ListInstancesTrafficPackagesRequest.h>
using AlibabaCloud::SWAS_OPEN::Model::ListInstancesTrafficPackagesRequest;
ListInstancesTrafficPackagesRequest::ListInstancesTrafficPackagesRequest()
: RpcServiceRequest("swas-open", "2020-06-01", "ListInstancesTrafficPackages") {
setMethod(HttpRequest::Method::Post);
}
ListInstancesTrafficPackagesRequest::~ListInstancesTrafficPackagesRequest() {}
std::string ListInstancesTrafficPackagesRequest::getRegionId() const {
return regionId_;
}
void ListInstancesTrafficPackagesRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
std::string ListInstancesTrafficPackagesRequest::getInstanceIds() const {
return instanceIds_;
}
void ListInstancesTrafficPackagesRequest::setInstanceIds(const std::string &instanceIds) {
instanceIds_ = instanceIds;
setParameter(std::string("InstanceIds"), instanceIds);
}

View File

@@ -0,0 +1,65 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/swas-open/model/ListInstancesTrafficPackagesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::SWAS_OPEN;
using namespace AlibabaCloud::SWAS_OPEN::Model;
ListInstancesTrafficPackagesResult::ListInstancesTrafficPackagesResult() :
ServiceResult()
{}
ListInstancesTrafficPackagesResult::ListInstancesTrafficPackagesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListInstancesTrafficPackagesResult::~ListInstancesTrafficPackagesResult()
{}
void ListInstancesTrafficPackagesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allInstanceTrafficPackageUsagesNode = value["InstanceTrafficPackageUsages"]["InstanceTrafficPackageUsage"];
for (auto valueInstanceTrafficPackageUsagesInstanceTrafficPackageUsage : allInstanceTrafficPackageUsagesNode)
{
InstanceTrafficPackageUsage instanceTrafficPackageUsagesObject;
if(!valueInstanceTrafficPackageUsagesInstanceTrafficPackageUsage["InstanceId"].isNull())
instanceTrafficPackageUsagesObject.instanceId = valueInstanceTrafficPackageUsagesInstanceTrafficPackageUsage["InstanceId"].asString();
if(!valueInstanceTrafficPackageUsagesInstanceTrafficPackageUsage["TrafficUsed"].isNull())
instanceTrafficPackageUsagesObject.trafficUsed = std::stol(valueInstanceTrafficPackageUsagesInstanceTrafficPackageUsage["TrafficUsed"].asString());
if(!valueInstanceTrafficPackageUsagesInstanceTrafficPackageUsage["TrafficPackageTotal"].isNull())
instanceTrafficPackageUsagesObject.trafficPackageTotal = std::stol(valueInstanceTrafficPackageUsagesInstanceTrafficPackageUsage["TrafficPackageTotal"].asString());
if(!valueInstanceTrafficPackageUsagesInstanceTrafficPackageUsage["TrafficPackageRemaining"].isNull())
instanceTrafficPackageUsagesObject.trafficPackageRemaining = std::stol(valueInstanceTrafficPackageUsagesInstanceTrafficPackageUsage["TrafficPackageRemaining"].asString());
if(!valueInstanceTrafficPackageUsagesInstanceTrafficPackageUsage["TrafficOverflow"].isNull())
instanceTrafficPackageUsagesObject.trafficOverflow = std::stol(valueInstanceTrafficPackageUsagesInstanceTrafficPackageUsage["TrafficOverflow"].asString());
instanceTrafficPackageUsages_.push_back(instanceTrafficPackageUsagesObject);
}
}
std::vector<ListInstancesTrafficPackagesResult::InstanceTrafficPackageUsage> ListInstancesTrafficPackagesResult::getInstanceTrafficPackageUsages()const
{
return instanceTrafficPackageUsages_;
}

View File

@@ -0,0 +1,36 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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/swas-open/model/ListPlansRequest.h>
using AlibabaCloud::SWAS_OPEN::Model::ListPlansRequest;
ListPlansRequest::ListPlansRequest()
: RpcServiceRequest("swas-open", "2020-06-01", "ListPlans") {
setMethod(HttpRequest::Method::Post);
}
ListPlansRequest::~ListPlansRequest() {}
std::string ListPlansRequest::getRegionId() const {
return regionId_;
}
void ListPlansRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}

View File

@@ -0,0 +1,75 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/swas-open/model/ListPlansResult.h>
#include <json/json.h>
using namespace AlibabaCloud::SWAS_OPEN;
using namespace AlibabaCloud::SWAS_OPEN::Model;
ListPlansResult::ListPlansResult() :
ServiceResult()
{}
ListPlansResult::ListPlansResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListPlansResult::~ListPlansResult()
{}
void ListPlansResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allPlansNode = value["Plans"]["Plan"];
for (auto valuePlansPlan : allPlansNode)
{
Plan plansObject;
if(!valuePlansPlan["Core"].isNull())
plansObject.core = std::stoi(valuePlansPlan["Core"].asString());
if(!valuePlansPlan["Bandwidth"].isNull())
plansObject.bandwidth = std::stoi(valuePlansPlan["Bandwidth"].asString());
if(!valuePlansPlan["DiskSize"].isNull())
plansObject.diskSize = std::stoi(valuePlansPlan["DiskSize"].asString());
if(!valuePlansPlan["Flow"].isNull())
plansObject.flow = std::stoi(valuePlansPlan["Flow"].asString());
if(!valuePlansPlan["Memory"].isNull())
plansObject.memory = std::stoi(valuePlansPlan["Memory"].asString());
if(!valuePlansPlan["PlanId"].isNull())
plansObject.planId = valuePlansPlan["PlanId"].asString();
if(!valuePlansPlan["DiskType"].isNull())
plansObject.diskType = valuePlansPlan["DiskType"].asString();
if(!valuePlansPlan["OriginPrice"].isNull())
plansObject.originPrice = valuePlansPlan["OriginPrice"].asString();
if(!valuePlansPlan["Currency"].isNull())
plansObject.currency = valuePlansPlan["Currency"].asString();
if(!valuePlansPlan["SupportPlatform"].isNull())
plansObject.supportPlatform = valuePlansPlan["SupportPlatform"].asString();
plans_.push_back(plansObject);
}
}
std::vector<ListPlansResult::Plan> ListPlansResult::getPlans()const
{
return plans_;
}

View File

@@ -0,0 +1,27 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/swas-open/model/ListRegionsRequest.h>
using AlibabaCloud::SWAS_OPEN::Model::ListRegionsRequest;
ListRegionsRequest::ListRegionsRequest()
: RpcServiceRequest("swas-open", "2020-06-01", "ListRegions") {
setMethod(HttpRequest::Method::Post);
}
ListRegionsRequest::~ListRegionsRequest() {}

View File

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

View File

@@ -0,0 +1,81 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/swas-open/model/ListSnapshotsRequest.h>
using AlibabaCloud::SWAS_OPEN::Model::ListSnapshotsRequest;
ListSnapshotsRequest::ListSnapshotsRequest()
: RpcServiceRequest("swas-open", "2020-06-01", "ListSnapshots") {
setMethod(HttpRequest::Method::Post);
}
ListSnapshotsRequest::~ListSnapshotsRequest() {}
std::string ListSnapshotsRequest::getSnapshotIds() const {
return snapshotIds_;
}
void ListSnapshotsRequest::setSnapshotIds(const std::string &snapshotIds) {
snapshotIds_ = snapshotIds;
setParameter(std::string("SnapshotIds"), snapshotIds);
}
int ListSnapshotsRequest::getPageNumber() const {
return pageNumber_;
}
void ListSnapshotsRequest::setPageNumber(int pageNumber) {
pageNumber_ = pageNumber;
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
}
std::string ListSnapshotsRequest::getInstanceId() const {
return instanceId_;
}
void ListSnapshotsRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
std::string ListSnapshotsRequest::getRegionId() const {
return regionId_;
}
void ListSnapshotsRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
int ListSnapshotsRequest::getPageSize() const {
return pageSize_;
}
void ListSnapshotsRequest::setPageSize(int pageSize) {
pageSize_ = pageSize;
setParameter(std::string("PageSize"), std::to_string(pageSize));
}
std::string ListSnapshotsRequest::getDiskId() const {
return diskId_;
}
void ListSnapshotsRequest::setDiskId(const std::string &diskId) {
diskId_ = diskId;
setParameter(std::string("DiskId"), diskId);
}

View File

@@ -0,0 +1,94 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/swas-open/model/ListSnapshotsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::SWAS_OPEN;
using namespace AlibabaCloud::SWAS_OPEN::Model;
ListSnapshotsResult::ListSnapshotsResult() :
ServiceResult()
{}
ListSnapshotsResult::ListSnapshotsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListSnapshotsResult::~ListSnapshotsResult()
{}
void ListSnapshotsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allSnapshotsNode = value["Snapshots"]["Snapshot"];
for (auto valueSnapshotsSnapshot : allSnapshotsNode)
{
Snapshot snapshotsObject;
if(!valueSnapshotsSnapshot["Status"].isNull())
snapshotsObject.status = valueSnapshotsSnapshot["Status"].asString();
if(!valueSnapshotsSnapshot["CreationTime"].isNull())
snapshotsObject.creationTime = valueSnapshotsSnapshot["CreationTime"].asString();
if(!valueSnapshotsSnapshot["SourceDiskId"].isNull())
snapshotsObject.sourceDiskId = valueSnapshotsSnapshot["SourceDiskId"].asString();
if(!valueSnapshotsSnapshot["SnapshotName"].isNull())
snapshotsObject.snapshotName = valueSnapshotsSnapshot["SnapshotName"].asString();
if(!valueSnapshotsSnapshot["Progress"].isNull())
snapshotsObject.progress = valueSnapshotsSnapshot["Progress"].asString();
if(!valueSnapshotsSnapshot["Remark"].isNull())
snapshotsObject.remark = valueSnapshotsSnapshot["Remark"].asString();
if(!valueSnapshotsSnapshot["SnapshotId"].isNull())
snapshotsObject.snapshotId = valueSnapshotsSnapshot["SnapshotId"].asString();
if(!valueSnapshotsSnapshot["SourceDiskType"].isNull())
snapshotsObject.sourceDiskType = valueSnapshotsSnapshot["SourceDiskType"].asString();
if(!valueSnapshotsSnapshot["RegionId"].isNull())
snapshotsObject.regionId = valueSnapshotsSnapshot["RegionId"].asString();
snapshots_.push_back(snapshotsObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
}
int ListSnapshotsResult::getTotalCount()const
{
return totalCount_;
}
int ListSnapshotsResult::getPageSize()const
{
return pageSize_;
}
int ListSnapshotsResult::getPageNumber()const
{
return pageNumber_;
}
std::vector<ListSnapshotsResult::Snapshot> ListSnapshotsResult::getSnapshots()const
{
return snapshots_;
}

View File

@@ -0,0 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/swas-open/model/LoginInstanceRequest.h>
using AlibabaCloud::SWAS_OPEN::Model::LoginInstanceRequest;
LoginInstanceRequest::LoginInstanceRequest()
: RpcServiceRequest("swas-open", "2020-06-01", "LoginInstance") {
setMethod(HttpRequest::Method::Post);
}
LoginInstanceRequest::~LoginInstanceRequest() {}
std::string LoginInstanceRequest::getPassword() const {
return password_;
}
void LoginInstanceRequest::setPassword(const std::string &password) {
password_ = password;
setParameter(std::string("Password"), password);
}
std::string LoginInstanceRequest::getInstanceId() const {
return instanceId_;
}
void LoginInstanceRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
std::string LoginInstanceRequest::getRegionId() const {
return regionId_;
}
void LoginInstanceRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
std::string LoginInstanceRequest::getUsername() const {
return username_;
}
void LoginInstanceRequest::setUsername(const std::string &username) {
username_ = username;
setParameter(std::string("Username"), username);
}

View 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/swas-open/model/LoginInstanceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::SWAS_OPEN;
using namespace AlibabaCloud::SWAS_OPEN::Model;
LoginInstanceResult::LoginInstanceResult() :
ServiceResult()
{}
LoginInstanceResult::LoginInstanceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
LoginInstanceResult::~LoginInstanceResult()
{}
void LoginInstanceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["RedirectUrl"].isNull())
redirectUrl_ = value["RedirectUrl"].asString();
}
std::string LoginInstanceResult::getRedirectUrl()const
{
return redirectUrl_;
}

View File

@@ -0,0 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/swas-open/model/ModifyDatabaseInstanceDescriptionRequest.h>
using AlibabaCloud::SWAS_OPEN::Model::ModifyDatabaseInstanceDescriptionRequest;
ModifyDatabaseInstanceDescriptionRequest::ModifyDatabaseInstanceDescriptionRequest()
: RpcServiceRequest("swas-open", "2020-06-01", "ModifyDatabaseInstanceDescription") {
setMethod(HttpRequest::Method::Post);
}
ModifyDatabaseInstanceDescriptionRequest::~ModifyDatabaseInstanceDescriptionRequest() {}
std::string ModifyDatabaseInstanceDescriptionRequest::getClientToken() const {
return clientToken_;
}
void ModifyDatabaseInstanceDescriptionRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
std::string ModifyDatabaseInstanceDescriptionRequest::getDatabaseInstanceId() const {
return databaseInstanceId_;
}
void ModifyDatabaseInstanceDescriptionRequest::setDatabaseInstanceId(const std::string &databaseInstanceId) {
databaseInstanceId_ = databaseInstanceId;
setParameter(std::string("DatabaseInstanceId"), databaseInstanceId);
}
std::string ModifyDatabaseInstanceDescriptionRequest::getRegionId() const {
return regionId_;
}
void ModifyDatabaseInstanceDescriptionRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
std::string ModifyDatabaseInstanceDescriptionRequest::getDatabaseInstanceDescription() const {
return databaseInstanceDescription_;
}
void ModifyDatabaseInstanceDescriptionRequest::setDatabaseInstanceDescription(const std::string &databaseInstanceDescription) {
databaseInstanceDescription_ = databaseInstanceDescription;
setParameter(std::string("DatabaseInstanceDescription"), databaseInstanceDescription);
}

View 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/swas-open/model/ModifyDatabaseInstanceDescriptionResult.h>
#include <json/json.h>
using namespace AlibabaCloud::SWAS_OPEN;
using namespace AlibabaCloud::SWAS_OPEN::Model;
ModifyDatabaseInstanceDescriptionResult::ModifyDatabaseInstanceDescriptionResult() :
ServiceResult()
{}
ModifyDatabaseInstanceDescriptionResult::ModifyDatabaseInstanceDescriptionResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ModifyDatabaseInstanceDescriptionResult::~ModifyDatabaseInstanceDescriptionResult()
{}
void ModifyDatabaseInstanceDescriptionResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/swas-open/model/ModifyDatabaseInstanceParameterRequest.h>
using AlibabaCloud::SWAS_OPEN::Model::ModifyDatabaseInstanceParameterRequest;
ModifyDatabaseInstanceParameterRequest::ModifyDatabaseInstanceParameterRequest()
: RpcServiceRequest("swas-open", "2020-06-01", "ModifyDatabaseInstanceParameter") {
setMethod(HttpRequest::Method::Post);
}
ModifyDatabaseInstanceParameterRequest::~ModifyDatabaseInstanceParameterRequest() {}
std::string ModifyDatabaseInstanceParameterRequest::getClientToken() const {
return clientToken_;
}
void ModifyDatabaseInstanceParameterRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
std::string ModifyDatabaseInstanceParameterRequest::getDatabaseInstanceId() const {
return databaseInstanceId_;
}
void ModifyDatabaseInstanceParameterRequest::setDatabaseInstanceId(const std::string &databaseInstanceId) {
databaseInstanceId_ = databaseInstanceId;
setParameter(std::string("DatabaseInstanceId"), databaseInstanceId);
}
std::string ModifyDatabaseInstanceParameterRequest::getRegionId() const {
return regionId_;
}
void ModifyDatabaseInstanceParameterRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
bool ModifyDatabaseInstanceParameterRequest::getForceRestart() const {
return forceRestart_;
}
void ModifyDatabaseInstanceParameterRequest::setForceRestart(bool forceRestart) {
forceRestart_ = forceRestart;
setParameter(std::string("ForceRestart"), forceRestart ? "true" : "false");
}
std::string ModifyDatabaseInstanceParameterRequest::getParameters() const {
return parameters_;
}
void ModifyDatabaseInstanceParameterRequest::setParameters(const std::string &parameters) {
parameters_ = parameters;
setParameter(std::string("Parameters"), parameters);
}

View 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/swas-open/model/ModifyDatabaseInstanceParameterResult.h>
#include <json/json.h>
using namespace AlibabaCloud::SWAS_OPEN;
using namespace AlibabaCloud::SWAS_OPEN::Model;
ModifyDatabaseInstanceParameterResult::ModifyDatabaseInstanceParameterResult() :
ServiceResult()
{}
ModifyDatabaseInstanceParameterResult::ModifyDatabaseInstanceParameterResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ModifyDatabaseInstanceParameterResult::~ModifyDatabaseInstanceParameterResult()
{}
void ModifyDatabaseInstanceParameterResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/swas-open/model/ModifyImageShareStatusRequest.h>
using AlibabaCloud::SWAS_OPEN::Model::ModifyImageShareStatusRequest;
ModifyImageShareStatusRequest::ModifyImageShareStatusRequest()
: RpcServiceRequest("swas-open", "2020-06-01", "ModifyImageShareStatus") {
setMethod(HttpRequest::Method::Post);
}
ModifyImageShareStatusRequest::~ModifyImageShareStatusRequest() {}
std::string ModifyImageShareStatusRequest::getImageId() const {
return imageId_;
}
void ModifyImageShareStatusRequest::setImageId(const std::string &imageId) {
imageId_ = imageId;
setParameter(std::string("ImageId"), imageId);
}
std::string ModifyImageShareStatusRequest::getClientToken() const {
return clientToken_;
}
void ModifyImageShareStatusRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
std::string ModifyImageShareStatusRequest::getRegionId() const {
return regionId_;
}
void ModifyImageShareStatusRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
std::string ModifyImageShareStatusRequest::getOperation() const {
return operation_;
}
void ModifyImageShareStatusRequest::setOperation(const std::string &operation) {
operation_ = operation;
setParameter(std::string("Operation"), operation);
}

View 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/swas-open/model/ModifyImageShareStatusResult.h>
#include <json/json.h>
using namespace AlibabaCloud::SWAS_OPEN;
using namespace AlibabaCloud::SWAS_OPEN::Model;
ModifyImageShareStatusResult::ModifyImageShareStatusResult() :
ServiceResult()
{}
ModifyImageShareStatusResult::ModifyImageShareStatusResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ModifyImageShareStatusResult::~ModifyImageShareStatusResult()
{}
void ModifyImageShareStatusResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/swas-open/model/RebootInstanceRequest.h>
using AlibabaCloud::SWAS_OPEN::Model::RebootInstanceRequest;
RebootInstanceRequest::RebootInstanceRequest()
: RpcServiceRequest("swas-open", "2020-06-01", "RebootInstance") {
setMethod(HttpRequest::Method::Post);
}
RebootInstanceRequest::~RebootInstanceRequest() {}
std::string RebootInstanceRequest::getClientToken() const {
return clientToken_;
}
void RebootInstanceRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
std::string RebootInstanceRequest::getInstanceId() const {
return instanceId_;
}
void RebootInstanceRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
std::string RebootInstanceRequest::getRegionId() const {
return regionId_;
}
void RebootInstanceRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}

View 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/swas-open/model/RebootInstanceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::SWAS_OPEN;
using namespace AlibabaCloud::SWAS_OPEN::Model;
RebootInstanceResult::RebootInstanceResult() :
ServiceResult()
{}
RebootInstanceResult::RebootInstanceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
RebootInstanceResult::~RebootInstanceResult()
{}
void RebootInstanceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/swas-open/model/ReleasePublicConnectionRequest.h>
using AlibabaCloud::SWAS_OPEN::Model::ReleasePublicConnectionRequest;
ReleasePublicConnectionRequest::ReleasePublicConnectionRequest()
: RpcServiceRequest("swas-open", "2020-06-01", "ReleasePublicConnection") {
setMethod(HttpRequest::Method::Post);
}
ReleasePublicConnectionRequest::~ReleasePublicConnectionRequest() {}
std::string ReleasePublicConnectionRequest::getClientToken() const {
return clientToken_;
}
void ReleasePublicConnectionRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
std::string ReleasePublicConnectionRequest::getDatabaseInstanceId() const {
return databaseInstanceId_;
}
void ReleasePublicConnectionRequest::setDatabaseInstanceId(const std::string &databaseInstanceId) {
databaseInstanceId_ = databaseInstanceId;
setParameter(std::string("DatabaseInstanceId"), databaseInstanceId);
}
std::string ReleasePublicConnectionRequest::getRegionId() const {
return regionId_;
}
void ReleasePublicConnectionRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}

View 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/swas-open/model/ReleasePublicConnectionResult.h>
#include <json/json.h>
using namespace AlibabaCloud::SWAS_OPEN;
using namespace AlibabaCloud::SWAS_OPEN::Model;
ReleasePublicConnectionResult::ReleasePublicConnectionResult() :
ServiceResult()
{}
ReleasePublicConnectionResult::ReleasePublicConnectionResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ReleasePublicConnectionResult::~ReleasePublicConnectionResult()
{}
void ReleasePublicConnectionResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/swas-open/model/RenewInstanceRequest.h>
using AlibabaCloud::SWAS_OPEN::Model::RenewInstanceRequest;
RenewInstanceRequest::RenewInstanceRequest()
: RpcServiceRequest("swas-open", "2020-06-01", "RenewInstance") {
setMethod(HttpRequest::Method::Post);
}
RenewInstanceRequest::~RenewInstanceRequest() {}
int RenewInstanceRequest::getPeriod() const {
return period_;
}
void RenewInstanceRequest::setPeriod(int period) {
period_ = period;
setParameter(std::string("Period"), std::to_string(period));
}
std::string RenewInstanceRequest::getClientToken() const {
return clientToken_;
}
void RenewInstanceRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
std::string RenewInstanceRequest::getInstanceId() const {
return instanceId_;
}
void RenewInstanceRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
std::string RenewInstanceRequest::getRegionId() const {
return regionId_;
}
void RenewInstanceRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}

View 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/swas-open/model/RenewInstanceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::SWAS_OPEN;
using namespace AlibabaCloud::SWAS_OPEN::Model;
RenewInstanceResult::RenewInstanceResult() :
ServiceResult()
{}
RenewInstanceResult::RenewInstanceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
RenewInstanceResult::~RenewInstanceResult()
{}
void RenewInstanceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/swas-open/model/ResetDatabaseAccountPasswordRequest.h>
using AlibabaCloud::SWAS_OPEN::Model::ResetDatabaseAccountPasswordRequest;
ResetDatabaseAccountPasswordRequest::ResetDatabaseAccountPasswordRequest()
: RpcServiceRequest("swas-open", "2020-06-01", "ResetDatabaseAccountPassword") {
setMethod(HttpRequest::Method::Post);
}
ResetDatabaseAccountPasswordRequest::~ResetDatabaseAccountPasswordRequest() {}
std::string ResetDatabaseAccountPasswordRequest::getClientToken() const {
return clientToken_;
}
void ResetDatabaseAccountPasswordRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
std::string ResetDatabaseAccountPasswordRequest::getDatabaseInstanceId() const {
return databaseInstanceId_;
}
void ResetDatabaseAccountPasswordRequest::setDatabaseInstanceId(const std::string &databaseInstanceId) {
databaseInstanceId_ = databaseInstanceId;
setParameter(std::string("DatabaseInstanceId"), databaseInstanceId);
}
std::string ResetDatabaseAccountPasswordRequest::getAccountPassword() const {
return accountPassword_;
}
void ResetDatabaseAccountPasswordRequest::setAccountPassword(const std::string &accountPassword) {
accountPassword_ = accountPassword;
setParameter(std::string("AccountPassword"), accountPassword);
}
std::string ResetDatabaseAccountPasswordRequest::getRegionId() const {
return regionId_;
}
void ResetDatabaseAccountPasswordRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}

View 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/swas-open/model/ResetDatabaseAccountPasswordResult.h>
#include <json/json.h>
using namespace AlibabaCloud::SWAS_OPEN;
using namespace AlibabaCloud::SWAS_OPEN::Model;
ResetDatabaseAccountPasswordResult::ResetDatabaseAccountPasswordResult() :
ServiceResult()
{}
ResetDatabaseAccountPasswordResult::ResetDatabaseAccountPasswordResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ResetDatabaseAccountPasswordResult::~ResetDatabaseAccountPasswordResult()
{}
void ResetDatabaseAccountPasswordResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/swas-open/model/ResetDiskRequest.h>
using AlibabaCloud::SWAS_OPEN::Model::ResetDiskRequest;
ResetDiskRequest::ResetDiskRequest()
: RpcServiceRequest("swas-open", "2020-06-01", "ResetDisk") {
setMethod(HttpRequest::Method::Post);
}
ResetDiskRequest::~ResetDiskRequest() {}
std::string ResetDiskRequest::getSnapshotId() const {
return snapshotId_;
}
void ResetDiskRequest::setSnapshotId(const std::string &snapshotId) {
snapshotId_ = snapshotId;
setParameter(std::string("SnapshotId"), snapshotId);
}
std::string ResetDiskRequest::getClientToken() const {
return clientToken_;
}
void ResetDiskRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
std::string ResetDiskRequest::getRegionId() const {
return regionId_;
}
void ResetDiskRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
std::string ResetDiskRequest::getDiskId() const {
return diskId_;
}
void ResetDiskRequest::setDiskId(const std::string &diskId) {
diskId_ = diskId;
setParameter(std::string("DiskId"), diskId);
}

View 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/swas-open/model/ResetDiskResult.h>
#include <json/json.h>
using namespace AlibabaCloud::SWAS_OPEN;
using namespace AlibabaCloud::SWAS_OPEN::Model;
ResetDiskResult::ResetDiskResult() :
ServiceResult()
{}
ResetDiskResult::ResetDiskResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ResetDiskResult::~ResetDiskResult()
{}
void ResetDiskResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/swas-open/model/ResetSystemRequest.h>
using AlibabaCloud::SWAS_OPEN::Model::ResetSystemRequest;
ResetSystemRequest::ResetSystemRequest()
: RpcServiceRequest("swas-open", "2020-06-01", "ResetSystem") {
setMethod(HttpRequest::Method::Post);
}
ResetSystemRequest::~ResetSystemRequest() {}
std::string ResetSystemRequest::getImageId() const {
return imageId_;
}
void ResetSystemRequest::setImageId(const std::string &imageId) {
imageId_ = imageId;
setParameter(std::string("ImageId"), imageId);
}
std::string ResetSystemRequest::getClientToken() const {
return clientToken_;
}
void ResetSystemRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
std::string ResetSystemRequest::getInstanceId() const {
return instanceId_;
}
void ResetSystemRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
std::string ResetSystemRequest::getRegionId() const {
return regionId_;
}
void ResetSystemRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}

View 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/swas-open/model/ResetSystemResult.h>
#include <json/json.h>
using namespace AlibabaCloud::SWAS_OPEN;
using namespace AlibabaCloud::SWAS_OPEN::Model;
ResetSystemResult::ResetSystemResult() :
ServiceResult()
{}
ResetSystemResult::ResetSystemResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ResetSystemResult::~ResetSystemResult()
{}
void ResetSystemResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/swas-open/model/RestartDatabaseInstanceRequest.h>
using AlibabaCloud::SWAS_OPEN::Model::RestartDatabaseInstanceRequest;
RestartDatabaseInstanceRequest::RestartDatabaseInstanceRequest()
: RpcServiceRequest("swas-open", "2020-06-01", "RestartDatabaseInstance") {
setMethod(HttpRequest::Method::Post);
}
RestartDatabaseInstanceRequest::~RestartDatabaseInstanceRequest() {}
std::string RestartDatabaseInstanceRequest::getClientToken() const {
return clientToken_;
}
void RestartDatabaseInstanceRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
std::string RestartDatabaseInstanceRequest::getDatabaseInstanceId() const {
return databaseInstanceId_;
}
void RestartDatabaseInstanceRequest::setDatabaseInstanceId(const std::string &databaseInstanceId) {
databaseInstanceId_ = databaseInstanceId;
setParameter(std::string("DatabaseInstanceId"), databaseInstanceId);
}
std::string RestartDatabaseInstanceRequest::getRegionId() const {
return regionId_;
}
void RestartDatabaseInstanceRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}

View 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/swas-open/model/RestartDatabaseInstanceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::SWAS_OPEN;
using namespace AlibabaCloud::SWAS_OPEN::Model;
RestartDatabaseInstanceResult::RestartDatabaseInstanceResult() :
ServiceResult()
{}
RestartDatabaseInstanceResult::RestartDatabaseInstanceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
RestartDatabaseInstanceResult::~RestartDatabaseInstanceResult()
{}
void RestartDatabaseInstanceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View 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/swas-open/model/RunCommandRequest.h>
using AlibabaCloud::SWAS_OPEN::Model::RunCommandRequest;
RunCommandRequest::RunCommandRequest()
: RpcServiceRequest("swas-open", "2020-06-01", "RunCommand") {
setMethod(HttpRequest::Method::Post);
}
RunCommandRequest::~RunCommandRequest() {}
std::string RunCommandRequest::getWorkingDir() const {
return workingDir_;
}
void RunCommandRequest::setWorkingDir(const std::string &workingDir) {
workingDir_ = workingDir;
setParameter(std::string("WorkingDir"), workingDir);
}
std::string RunCommandRequest::getType() const {
return type_;
}
void RunCommandRequest::setType(const std::string &type) {
type_ = type;
setParameter(std::string("Type"), type);
}
std::string RunCommandRequest::getCommandContent() const {
return commandContent_;
}
void RunCommandRequest::setCommandContent(const std::string &commandContent) {
commandContent_ = commandContent;
setParameter(std::string("CommandContent"), commandContent);
}
int RunCommandRequest::getTimeout() const {
return timeout_;
}
void RunCommandRequest::setTimeout(int timeout) {
timeout_ = timeout;
setParameter(std::string("Timeout"), std::to_string(timeout));
}
std::string RunCommandRequest::getRegionId() const {
return regionId_;
}
void RunCommandRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
std::string RunCommandRequest::getWindowsPasswordName() const {
return windowsPasswordName_;
}
void RunCommandRequest::setWindowsPasswordName(const std::string &windowsPasswordName) {
windowsPasswordName_ = windowsPasswordName;
setParameter(std::string("WindowsPasswordName"), windowsPasswordName);
}
std::string RunCommandRequest::getInstanceId() const {
return instanceId_;
}
void RunCommandRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
std::string RunCommandRequest::getWorkingUser() const {
return workingUser_;
}
void RunCommandRequest::setWorkingUser(const std::string &workingUser) {
workingUser_ = workingUser;
setParameter(std::string("WorkingUser"), workingUser);
}
std::string RunCommandRequest::getName() const {
return name_;
}
void RunCommandRequest::setName(const std::string &name) {
name_ = name;
setParameter(std::string("Name"), name);
}
std::map<std::string, std::string> RunCommandRequest::getParameters() const {
return parameters_;
}
void RunCommandRequest::setParameters(const std::map<std::string, std::string> &parameters) {
parameters_ = parameters;
for(auto const &iter1 : parameters) {
setParameter(std::string("Parameters") + "." + iter1.first, iter1.second);
}
}
bool RunCommandRequest::getEnableParameter() const {
return enableParameter_;
}
void RunCommandRequest::setEnableParameter(bool enableParameter) {
enableParameter_ = enableParameter;
setParameter(std::string("EnableParameter"), enableParameter ? "true" : "false");
}

View 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/swas-open/model/RunCommandResult.h>
#include <json/json.h>
using namespace AlibabaCloud::SWAS_OPEN;
using namespace AlibabaCloud::SWAS_OPEN::Model;
RunCommandResult::RunCommandResult() :
ServiceResult()
{}
RunCommandResult::RunCommandResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
RunCommandResult::~RunCommandResult()
{}
void RunCommandResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["InvokeId"].isNull())
invokeId_ = value["InvokeId"].asString();
}
std::string RunCommandResult::getInvokeId()const
{
return invokeId_;
}

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/swas-open/model/StartDatabaseInstanceRequest.h>
using AlibabaCloud::SWAS_OPEN::Model::StartDatabaseInstanceRequest;
StartDatabaseInstanceRequest::StartDatabaseInstanceRequest()
: RpcServiceRequest("swas-open", "2020-06-01", "StartDatabaseInstance") {
setMethod(HttpRequest::Method::Post);
}
StartDatabaseInstanceRequest::~StartDatabaseInstanceRequest() {}
std::string StartDatabaseInstanceRequest::getClientToken() const {
return clientToken_;
}
void StartDatabaseInstanceRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
std::string StartDatabaseInstanceRequest::getDatabaseInstanceId() const {
return databaseInstanceId_;
}
void StartDatabaseInstanceRequest::setDatabaseInstanceId(const std::string &databaseInstanceId) {
databaseInstanceId_ = databaseInstanceId;
setParameter(std::string("DatabaseInstanceId"), databaseInstanceId);
}
std::string StartDatabaseInstanceRequest::getRegionId() const {
return regionId_;
}
void StartDatabaseInstanceRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}

View 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/swas-open/model/StartDatabaseInstanceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::SWAS_OPEN;
using namespace AlibabaCloud::SWAS_OPEN::Model;
StartDatabaseInstanceResult::StartDatabaseInstanceResult() :
ServiceResult()
{}
StartDatabaseInstanceResult::StartDatabaseInstanceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
StartDatabaseInstanceResult::~StartDatabaseInstanceResult()
{}
void StartDatabaseInstanceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/swas-open/model/StartInstanceRequest.h>
using AlibabaCloud::SWAS_OPEN::Model::StartInstanceRequest;
StartInstanceRequest::StartInstanceRequest()
: RpcServiceRequest("swas-open", "2020-06-01", "StartInstance") {
setMethod(HttpRequest::Method::Post);
}
StartInstanceRequest::~StartInstanceRequest() {}
std::string StartInstanceRequest::getClientToken() const {
return clientToken_;
}
void StartInstanceRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
std::string StartInstanceRequest::getInstanceId() const {
return instanceId_;
}
void StartInstanceRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
std::string StartInstanceRequest::getRegionId() const {
return regionId_;
}
void StartInstanceRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}

View 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/swas-open/model/StartInstanceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::SWAS_OPEN;
using namespace AlibabaCloud::SWAS_OPEN::Model;
StartInstanceResult::StartInstanceResult() :
ServiceResult()
{}
StartInstanceResult::StartInstanceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
StartInstanceResult::~StartInstanceResult()
{}
void StartInstanceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/swas-open/model/StopDatabaseInstanceRequest.h>
using AlibabaCloud::SWAS_OPEN::Model::StopDatabaseInstanceRequest;
StopDatabaseInstanceRequest::StopDatabaseInstanceRequest()
: RpcServiceRequest("swas-open", "2020-06-01", "StopDatabaseInstance") {
setMethod(HttpRequest::Method::Post);
}
StopDatabaseInstanceRequest::~StopDatabaseInstanceRequest() {}
std::string StopDatabaseInstanceRequest::getClientToken() const {
return clientToken_;
}
void StopDatabaseInstanceRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
std::string StopDatabaseInstanceRequest::getDatabaseInstanceId() const {
return databaseInstanceId_;
}
void StopDatabaseInstanceRequest::setDatabaseInstanceId(const std::string &databaseInstanceId) {
databaseInstanceId_ = databaseInstanceId;
setParameter(std::string("DatabaseInstanceId"), databaseInstanceId);
}
std::string StopDatabaseInstanceRequest::getRegionId() const {
return regionId_;
}
void StopDatabaseInstanceRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}

View 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/swas-open/model/StopDatabaseInstanceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::SWAS_OPEN;
using namespace AlibabaCloud::SWAS_OPEN::Model;
StopDatabaseInstanceResult::StopDatabaseInstanceResult() :
ServiceResult()
{}
StopDatabaseInstanceResult::StopDatabaseInstanceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
StopDatabaseInstanceResult::~StopDatabaseInstanceResult()
{}
void StopDatabaseInstanceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/swas-open/model/StopInstanceRequest.h>
using AlibabaCloud::SWAS_OPEN::Model::StopInstanceRequest;
StopInstanceRequest::StopInstanceRequest()
: RpcServiceRequest("swas-open", "2020-06-01", "StopInstance") {
setMethod(HttpRequest::Method::Post);
}
StopInstanceRequest::~StopInstanceRequest() {}
std::string StopInstanceRequest::getClientToken() const {
return clientToken_;
}
void StopInstanceRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
std::string StopInstanceRequest::getInstanceId() const {
return instanceId_;
}
void StopInstanceRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
std::string StopInstanceRequest::getRegionId() const {
return regionId_;
}
void StopInstanceRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}

View 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/swas-open/model/StopInstanceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::SWAS_OPEN;
using namespace AlibabaCloud::SWAS_OPEN::Model;
StopInstanceResult::StopInstanceResult() :
ServiceResult()
{}
StopInstanceResult::StopInstanceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
StopInstanceResult::~StopInstanceResult()
{}
void StopInstanceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/swas-open/model/UpdateInstanceAttributeRequest.h>
using AlibabaCloud::SWAS_OPEN::Model::UpdateInstanceAttributeRequest;
UpdateInstanceAttributeRequest::UpdateInstanceAttributeRequest()
: RpcServiceRequest("swas-open", "2020-06-01", "UpdateInstanceAttribute") {
setMethod(HttpRequest::Method::Post);
}
UpdateInstanceAttributeRequest::~UpdateInstanceAttributeRequest() {}
std::string UpdateInstanceAttributeRequest::getClientToken() const {
return clientToken_;
}
void UpdateInstanceAttributeRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
std::string UpdateInstanceAttributeRequest::getPassword() const {
return password_;
}
void UpdateInstanceAttributeRequest::setPassword(const std::string &password) {
password_ = password;
setParameter(std::string("Password"), password);
}
std::string UpdateInstanceAttributeRequest::getInstanceId() const {
return instanceId_;
}
void UpdateInstanceAttributeRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
std::string UpdateInstanceAttributeRequest::getInstanceName() const {
return instanceName_;
}
void UpdateInstanceAttributeRequest::setInstanceName(const std::string &instanceName) {
instanceName_ = instanceName;
setParameter(std::string("InstanceName"), instanceName);
}
std::string UpdateInstanceAttributeRequest::getRegionId() const {
return regionId_;
}
void UpdateInstanceAttributeRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}

View 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/swas-open/model/UpdateInstanceAttributeResult.h>
#include <json/json.h>
using namespace AlibabaCloud::SWAS_OPEN;
using namespace AlibabaCloud::SWAS_OPEN::Model;
UpdateInstanceAttributeResult::UpdateInstanceAttributeResult() :
ServiceResult()
{}
UpdateInstanceAttributeResult::UpdateInstanceAttributeResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UpdateInstanceAttributeResult::~UpdateInstanceAttributeResult()
{}
void UpdateInstanceAttributeResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/swas-open/model/UpgradeInstanceRequest.h>
using AlibabaCloud::SWAS_OPEN::Model::UpgradeInstanceRequest;
UpgradeInstanceRequest::UpgradeInstanceRequest()
: RpcServiceRequest("swas-open", "2020-06-01", "UpgradeInstance") {
setMethod(HttpRequest::Method::Post);
}
UpgradeInstanceRequest::~UpgradeInstanceRequest() {}
std::string UpgradeInstanceRequest::getClientToken() const {
return clientToken_;
}
void UpgradeInstanceRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
std::string UpgradeInstanceRequest::getInstanceId() const {
return instanceId_;
}
void UpgradeInstanceRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
std::string UpgradeInstanceRequest::getRegionId() const {
return regionId_;
}
void UpgradeInstanceRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
std::string UpgradeInstanceRequest::getPlanId() const {
return planId_;
}
void UpgradeInstanceRequest::setPlanId(const std::string &planId) {
planId_ = planId;
setParameter(std::string("PlanId"), planId);
}

View 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/swas-open/model/UpgradeInstanceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::SWAS_OPEN;
using namespace AlibabaCloud::SWAS_OPEN::Model;
UpgradeInstanceResult::UpgradeInstanceResult() :
ServiceResult()
{}
UpgradeInstanceResult::UpgradeInstanceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UpgradeInstanceResult::~UpgradeInstanceResult()
{}
void UpgradeInstanceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}