Generated 2019-01-01 for Cassandra.
This commit is contained in:
1709
cassandra/src/CassandraClient.cc
Normal file
1709
cassandra/src/CassandraClient.cc
Normal file
File diff suppressed because it is too large
Load Diff
51
cassandra/src/model/AllocatePublicContactPointsRequest.cc
Normal file
51
cassandra/src/model/AllocatePublicContactPointsRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/AllocatePublicContactPointsRequest.h>
|
||||
|
||||
using AlibabaCloud::Cassandra::Model::AllocatePublicContactPointsRequest;
|
||||
|
||||
AllocatePublicContactPointsRequest::AllocatePublicContactPointsRequest() :
|
||||
RpcServiceRequest("cassandra", "2019-01-01", "AllocatePublicContactPoints")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AllocatePublicContactPointsRequest::~AllocatePublicContactPointsRequest()
|
||||
{}
|
||||
|
||||
std::string AllocatePublicContactPointsRequest::getDataCenterId()const
|
||||
{
|
||||
return dataCenterId_;
|
||||
}
|
||||
|
||||
void AllocatePublicContactPointsRequest::setDataCenterId(const std::string& dataCenterId)
|
||||
{
|
||||
dataCenterId_ = dataCenterId;
|
||||
setParameter("DataCenterId", dataCenterId);
|
||||
}
|
||||
|
||||
std::string AllocatePublicContactPointsRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void AllocatePublicContactPointsRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
44
cassandra/src/model/AllocatePublicContactPointsResult.cc
Normal file
44
cassandra/src/model/AllocatePublicContactPointsResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/AllocatePublicContactPointsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cassandra;
|
||||
using namespace AlibabaCloud::Cassandra::Model;
|
||||
|
||||
AllocatePublicContactPointsResult::AllocatePublicContactPointsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AllocatePublicContactPointsResult::AllocatePublicContactPointsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AllocatePublicContactPointsResult::~AllocatePublicContactPointsResult()
|
||||
{}
|
||||
|
||||
void AllocatePublicContactPointsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
95
cassandra/src/model/CreateBackupPlanRequest.cc
Normal file
95
cassandra/src/model/CreateBackupPlanRequest.cc
Normal file
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/CreateBackupPlanRequest.h>
|
||||
|
||||
using AlibabaCloud::Cassandra::Model::CreateBackupPlanRequest;
|
||||
|
||||
CreateBackupPlanRequest::CreateBackupPlanRequest() :
|
||||
RpcServiceRequest("cassandra", "2019-01-01", "CreateBackupPlan")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateBackupPlanRequest::~CreateBackupPlanRequest()
|
||||
{}
|
||||
|
||||
int CreateBackupPlanRequest::getRetentionPeriod()const
|
||||
{
|
||||
return retentionPeriod_;
|
||||
}
|
||||
|
||||
void CreateBackupPlanRequest::setRetentionPeriod(int retentionPeriod)
|
||||
{
|
||||
retentionPeriod_ = retentionPeriod;
|
||||
setParameter("RetentionPeriod", std::to_string(retentionPeriod));
|
||||
}
|
||||
|
||||
std::string CreateBackupPlanRequest::getDataCenterId()const
|
||||
{
|
||||
return dataCenterId_;
|
||||
}
|
||||
|
||||
void CreateBackupPlanRequest::setDataCenterId(const std::string& dataCenterId)
|
||||
{
|
||||
dataCenterId_ = dataCenterId;
|
||||
setParameter("DataCenterId", dataCenterId);
|
||||
}
|
||||
|
||||
bool CreateBackupPlanRequest::getActive()const
|
||||
{
|
||||
return active_;
|
||||
}
|
||||
|
||||
void CreateBackupPlanRequest::setActive(bool active)
|
||||
{
|
||||
active_ = active;
|
||||
setParameter("Active", active ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateBackupPlanRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void CreateBackupPlanRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string CreateBackupPlanRequest::getBackupTime()const
|
||||
{
|
||||
return backupTime_;
|
||||
}
|
||||
|
||||
void CreateBackupPlanRequest::setBackupTime(const std::string& backupTime)
|
||||
{
|
||||
backupTime_ = backupTime;
|
||||
setParameter("BackupTime", backupTime);
|
||||
}
|
||||
|
||||
std::string CreateBackupPlanRequest::getBackupPeriod()const
|
||||
{
|
||||
return backupPeriod_;
|
||||
}
|
||||
|
||||
void CreateBackupPlanRequest::setBackupPeriod(const std::string& backupPeriod)
|
||||
{
|
||||
backupPeriod_ = backupPeriod;
|
||||
setParameter("BackupPeriod", backupPeriod);
|
||||
}
|
||||
|
||||
44
cassandra/src/model/CreateBackupPlanResult.cc
Normal file
44
cassandra/src/model/CreateBackupPlanResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/CreateBackupPlanResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cassandra;
|
||||
using namespace AlibabaCloud::Cassandra::Model;
|
||||
|
||||
CreateBackupPlanResult::CreateBackupPlanResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateBackupPlanResult::CreateBackupPlanResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateBackupPlanResult::~CreateBackupPlanResult()
|
||||
{}
|
||||
|
||||
void CreateBackupPlanResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
227
cassandra/src/model/CreateClusterRequest.cc
Normal file
227
cassandra/src/model/CreateClusterRequest.cc
Normal file
@@ -0,0 +1,227 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES 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/cassandra/model/CreateClusterRequest.h>
|
||||
|
||||
using AlibabaCloud::Cassandra::Model::CreateClusterRequest;
|
||||
|
||||
CreateClusterRequest::CreateClusterRequest() :
|
||||
RpcServiceRequest("cassandra", "2019-01-01", "CreateCluster")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateClusterRequest::~CreateClusterRequest()
|
||||
{}
|
||||
|
||||
std::string CreateClusterRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getClusterName()const
|
||||
{
|
||||
return clusterName_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setClusterName(const std::string& clusterName)
|
||||
{
|
||||
clusterName_ = clusterName;
|
||||
setParameter("ClusterName", clusterName);
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getPassword()const
|
||||
{
|
||||
return password_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setPassword(const std::string& password)
|
||||
{
|
||||
password_ = password;
|
||||
setParameter("Password", password);
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getInstanceType()const
|
||||
{
|
||||
return instanceType_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setInstanceType(const std::string& instanceType)
|
||||
{
|
||||
instanceType_ = instanceType;
|
||||
setParameter("InstanceType", instanceType);
|
||||
}
|
||||
|
||||
int CreateClusterRequest::getAutoRenewPeriod()const
|
||||
{
|
||||
return autoRenewPeriod_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setAutoRenewPeriod(int autoRenewPeriod)
|
||||
{
|
||||
autoRenewPeriod_ = autoRenewPeriod;
|
||||
setParameter("AutoRenewPeriod", std::to_string(autoRenewPeriod));
|
||||
}
|
||||
|
||||
int CreateClusterRequest::getPeriod()const
|
||||
{
|
||||
return period_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setPeriod(int period)
|
||||
{
|
||||
period_ = period;
|
||||
setParameter("Period", std::to_string(period));
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getMajorVersion()const
|
||||
{
|
||||
return majorVersion_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setMajorVersion(const std::string& majorVersion)
|
||||
{
|
||||
majorVersion_ = majorVersion;
|
||||
setParameter("MajorVersion", majorVersion);
|
||||
}
|
||||
|
||||
int CreateClusterRequest::getDiskSize()const
|
||||
{
|
||||
return diskSize_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setDiskSize(int diskSize)
|
||||
{
|
||||
diskSize_ = diskSize;
|
||||
setParameter("DiskSize", std::to_string(diskSize));
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getDiskType()const
|
||||
{
|
||||
return diskType_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setDiskType(const std::string& diskType)
|
||||
{
|
||||
diskType_ = diskType;
|
||||
setParameter("DiskType", diskType);
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getVswitchId()const
|
||||
{
|
||||
return vswitchId_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setVswitchId(const std::string& vswitchId)
|
||||
{
|
||||
vswitchId_ = vswitchId;
|
||||
setParameter("VswitchId", vswitchId);
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getPeriodUnit()const
|
||||
{
|
||||
return periodUnit_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setPeriodUnit(const std::string& periodUnit)
|
||||
{
|
||||
periodUnit_ = periodUnit;
|
||||
setParameter("PeriodUnit", periodUnit);
|
||||
}
|
||||
|
||||
bool CreateClusterRequest::getAutoRenew()const
|
||||
{
|
||||
return autoRenew_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setAutoRenew(bool autoRenew)
|
||||
{
|
||||
autoRenew_ = autoRenew;
|
||||
setParameter("AutoRenew", autoRenew ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getDataCenterName()const
|
||||
{
|
||||
return dataCenterName_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setDataCenterName(const std::string& dataCenterName)
|
||||
{
|
||||
dataCenterName_ = dataCenterName;
|
||||
setParameter("DataCenterName", dataCenterName);
|
||||
}
|
||||
|
||||
int CreateClusterRequest::getNodeCount()const
|
||||
{
|
||||
return nodeCount_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setNodeCount(int nodeCount)
|
||||
{
|
||||
nodeCount_ = nodeCount;
|
||||
setParameter("NodeCount", std::to_string(nodeCount));
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getVpcId()const
|
||||
{
|
||||
return vpcId_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setVpcId(const std::string& vpcId)
|
||||
{
|
||||
vpcId_ = vpcId;
|
||||
setParameter("VpcId", vpcId);
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getZoneId()const
|
||||
{
|
||||
return zoneId_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setZoneId(const std::string& zoneId)
|
||||
{
|
||||
zoneId_ = zoneId;
|
||||
setParameter("ZoneId", zoneId);
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getPayType()const
|
||||
{
|
||||
return payType_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setPayType(const std::string& payType)
|
||||
{
|
||||
payType_ = payType;
|
||||
setParameter("PayType", payType);
|
||||
}
|
||||
|
||||
51
cassandra/src/model/CreateClusterResult.cc
Normal file
51
cassandra/src/model/CreateClusterResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/CreateClusterResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cassandra;
|
||||
using namespace AlibabaCloud::Cassandra::Model;
|
||||
|
||||
CreateClusterResult::CreateClusterResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateClusterResult::CreateClusterResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateClusterResult::~CreateClusterResult()
|
||||
{}
|
||||
|
||||
void CreateClusterResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ClusterId"].isNull())
|
||||
clusterId_ = value["ClusterId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateClusterResult::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
205
cassandra/src/model/CreateDataCenterRequest.cc
Normal file
205
cassandra/src/model/CreateDataCenterRequest.cc
Normal file
@@ -0,0 +1,205 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES 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/cassandra/model/CreateDataCenterRequest.h>
|
||||
|
||||
using AlibabaCloud::Cassandra::Model::CreateDataCenterRequest;
|
||||
|
||||
CreateDataCenterRequest::CreateDataCenterRequest() :
|
||||
RpcServiceRequest("cassandra", "2019-01-01", "CreateDataCenter")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateDataCenterRequest::~CreateDataCenterRequest()
|
||||
{}
|
||||
|
||||
std::string CreateDataCenterRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateDataCenterRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string CreateDataCenterRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateDataCenterRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateDataCenterRequest::getInstanceType()const
|
||||
{
|
||||
return instanceType_;
|
||||
}
|
||||
|
||||
void CreateDataCenterRequest::setInstanceType(const std::string& instanceType)
|
||||
{
|
||||
instanceType_ = instanceType;
|
||||
setParameter("InstanceType", instanceType);
|
||||
}
|
||||
|
||||
int CreateDataCenterRequest::getAutoRenewPeriod()const
|
||||
{
|
||||
return autoRenewPeriod_;
|
||||
}
|
||||
|
||||
void CreateDataCenterRequest::setAutoRenewPeriod(int autoRenewPeriod)
|
||||
{
|
||||
autoRenewPeriod_ = autoRenewPeriod;
|
||||
setParameter("AutoRenewPeriod", std::to_string(autoRenewPeriod));
|
||||
}
|
||||
|
||||
int CreateDataCenterRequest::getPeriod()const
|
||||
{
|
||||
return period_;
|
||||
}
|
||||
|
||||
void CreateDataCenterRequest::setPeriod(int period)
|
||||
{
|
||||
period_ = period;
|
||||
setParameter("Period", std::to_string(period));
|
||||
}
|
||||
|
||||
int CreateDataCenterRequest::getDiskSize()const
|
||||
{
|
||||
return diskSize_;
|
||||
}
|
||||
|
||||
void CreateDataCenterRequest::setDiskSize(int diskSize)
|
||||
{
|
||||
diskSize_ = diskSize;
|
||||
setParameter("DiskSize", std::to_string(diskSize));
|
||||
}
|
||||
|
||||
std::string CreateDataCenterRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void CreateDataCenterRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string CreateDataCenterRequest::getDiskType()const
|
||||
{
|
||||
return diskType_;
|
||||
}
|
||||
|
||||
void CreateDataCenterRequest::setDiskType(const std::string& diskType)
|
||||
{
|
||||
diskType_ = diskType;
|
||||
setParameter("DiskType", diskType);
|
||||
}
|
||||
|
||||
std::string CreateDataCenterRequest::getVswitchId()const
|
||||
{
|
||||
return vswitchId_;
|
||||
}
|
||||
|
||||
void CreateDataCenterRequest::setVswitchId(const std::string& vswitchId)
|
||||
{
|
||||
vswitchId_ = vswitchId;
|
||||
setParameter("VswitchId", vswitchId);
|
||||
}
|
||||
|
||||
std::string CreateDataCenterRequest::getPeriodUnit()const
|
||||
{
|
||||
return periodUnit_;
|
||||
}
|
||||
|
||||
void CreateDataCenterRequest::setPeriodUnit(const std::string& periodUnit)
|
||||
{
|
||||
periodUnit_ = periodUnit;
|
||||
setParameter("PeriodUnit", periodUnit);
|
||||
}
|
||||
|
||||
bool CreateDataCenterRequest::getAutoRenew()const
|
||||
{
|
||||
return autoRenew_;
|
||||
}
|
||||
|
||||
void CreateDataCenterRequest::setAutoRenew(bool autoRenew)
|
||||
{
|
||||
autoRenew_ = autoRenew;
|
||||
setParameter("AutoRenew", autoRenew ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateDataCenterRequest::getDataCenterName()const
|
||||
{
|
||||
return dataCenterName_;
|
||||
}
|
||||
|
||||
void CreateDataCenterRequest::setDataCenterName(const std::string& dataCenterName)
|
||||
{
|
||||
dataCenterName_ = dataCenterName;
|
||||
setParameter("DataCenterName", dataCenterName);
|
||||
}
|
||||
|
||||
int CreateDataCenterRequest::getNodeCount()const
|
||||
{
|
||||
return nodeCount_;
|
||||
}
|
||||
|
||||
void CreateDataCenterRequest::setNodeCount(int nodeCount)
|
||||
{
|
||||
nodeCount_ = nodeCount;
|
||||
setParameter("NodeCount", std::to_string(nodeCount));
|
||||
}
|
||||
|
||||
std::string CreateDataCenterRequest::getVpcId()const
|
||||
{
|
||||
return vpcId_;
|
||||
}
|
||||
|
||||
void CreateDataCenterRequest::setVpcId(const std::string& vpcId)
|
||||
{
|
||||
vpcId_ = vpcId;
|
||||
setParameter("VpcId", vpcId);
|
||||
}
|
||||
|
||||
std::string CreateDataCenterRequest::getZoneId()const
|
||||
{
|
||||
return zoneId_;
|
||||
}
|
||||
|
||||
void CreateDataCenterRequest::setZoneId(const std::string& zoneId)
|
||||
{
|
||||
zoneId_ = zoneId;
|
||||
setParameter("ZoneId", zoneId);
|
||||
}
|
||||
|
||||
std::string CreateDataCenterRequest::getPayType()const
|
||||
{
|
||||
return payType_;
|
||||
}
|
||||
|
||||
void CreateDataCenterRequest::setPayType(const std::string& payType)
|
||||
{
|
||||
payType_ = payType;
|
||||
setParameter("PayType", payType);
|
||||
}
|
||||
|
||||
51
cassandra/src/model/CreateDataCenterResult.cc
Normal file
51
cassandra/src/model/CreateDataCenterResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/CreateDataCenterResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cassandra;
|
||||
using namespace AlibabaCloud::Cassandra::Model;
|
||||
|
||||
CreateDataCenterResult::CreateDataCenterResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateDataCenterResult::CreateDataCenterResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateDataCenterResult::~CreateDataCenterResult()
|
||||
{}
|
||||
|
||||
void CreateDataCenterResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["DataCenterId"].isNull())
|
||||
dataCenterId_ = value["DataCenterId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateDataCenterResult::getDataCenterId()const
|
||||
{
|
||||
return dataCenterId_;
|
||||
}
|
||||
|
||||
51
cassandra/src/model/DeleteBackupPlanRequest.cc
Normal file
51
cassandra/src/model/DeleteBackupPlanRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/DeleteBackupPlanRequest.h>
|
||||
|
||||
using AlibabaCloud::Cassandra::Model::DeleteBackupPlanRequest;
|
||||
|
||||
DeleteBackupPlanRequest::DeleteBackupPlanRequest() :
|
||||
RpcServiceRequest("cassandra", "2019-01-01", "DeleteBackupPlan")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteBackupPlanRequest::~DeleteBackupPlanRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteBackupPlanRequest::getDataCenterId()const
|
||||
{
|
||||
return dataCenterId_;
|
||||
}
|
||||
|
||||
void DeleteBackupPlanRequest::setDataCenterId(const std::string& dataCenterId)
|
||||
{
|
||||
dataCenterId_ = dataCenterId;
|
||||
setParameter("DataCenterId", dataCenterId);
|
||||
}
|
||||
|
||||
std::string DeleteBackupPlanRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DeleteBackupPlanRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
44
cassandra/src/model/DeleteBackupPlanResult.cc
Normal file
44
cassandra/src/model/DeleteBackupPlanResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/DeleteBackupPlanResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cassandra;
|
||||
using namespace AlibabaCloud::Cassandra::Model;
|
||||
|
||||
DeleteBackupPlanResult::DeleteBackupPlanResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteBackupPlanResult::DeleteBackupPlanResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteBackupPlanResult::~DeleteBackupPlanResult()
|
||||
{}
|
||||
|
||||
void DeleteBackupPlanResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
40
cassandra/src/model/DeleteClusterRequest.cc
Normal file
40
cassandra/src/model/DeleteClusterRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES 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/cassandra/model/DeleteClusterRequest.h>
|
||||
|
||||
using AlibabaCloud::Cassandra::Model::DeleteClusterRequest;
|
||||
|
||||
DeleteClusterRequest::DeleteClusterRequest() :
|
||||
RpcServiceRequest("cassandra", "2019-01-01", "DeleteCluster")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteClusterRequest::~DeleteClusterRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteClusterRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DeleteClusterRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
44
cassandra/src/model/DeleteClusterResult.cc
Normal file
44
cassandra/src/model/DeleteClusterResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/DeleteClusterResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cassandra;
|
||||
using namespace AlibabaCloud::Cassandra::Model;
|
||||
|
||||
DeleteClusterResult::DeleteClusterResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteClusterResult::DeleteClusterResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteClusterResult::~DeleteClusterResult()
|
||||
{}
|
||||
|
||||
void DeleteClusterResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
51
cassandra/src/model/DeleteDataCenterRequest.cc
Normal file
51
cassandra/src/model/DeleteDataCenterRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/DeleteDataCenterRequest.h>
|
||||
|
||||
using AlibabaCloud::Cassandra::Model::DeleteDataCenterRequest;
|
||||
|
||||
DeleteDataCenterRequest::DeleteDataCenterRequest() :
|
||||
RpcServiceRequest("cassandra", "2019-01-01", "DeleteDataCenter")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteDataCenterRequest::~DeleteDataCenterRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteDataCenterRequest::getDataCenterId()const
|
||||
{
|
||||
return dataCenterId_;
|
||||
}
|
||||
|
||||
void DeleteDataCenterRequest::setDataCenterId(const std::string& dataCenterId)
|
||||
{
|
||||
dataCenterId_ = dataCenterId;
|
||||
setParameter("DataCenterId", dataCenterId);
|
||||
}
|
||||
|
||||
std::string DeleteDataCenterRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DeleteDataCenterRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
44
cassandra/src/model/DeleteDataCenterResult.cc
Normal file
44
cassandra/src/model/DeleteDataCenterResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/DeleteDataCenterResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cassandra;
|
||||
using namespace AlibabaCloud::Cassandra::Model;
|
||||
|
||||
DeleteDataCenterResult::DeleteDataCenterResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteDataCenterResult::DeleteDataCenterResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteDataCenterResult::~DeleteDataCenterResult()
|
||||
{}
|
||||
|
||||
void DeleteDataCenterResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
62
cassandra/src/model/DeleteNodeToolExecutionHistoryRequest.cc
Normal file
62
cassandra/src/model/DeleteNodeToolExecutionHistoryRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/DeleteNodeToolExecutionHistoryRequest.h>
|
||||
|
||||
using AlibabaCloud::Cassandra::Model::DeleteNodeToolExecutionHistoryRequest;
|
||||
|
||||
DeleteNodeToolExecutionHistoryRequest::DeleteNodeToolExecutionHistoryRequest() :
|
||||
RpcServiceRequest("cassandra", "2019-01-01", "DeleteNodeToolExecutionHistory")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteNodeToolExecutionHistoryRequest::~DeleteNodeToolExecutionHistoryRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteNodeToolExecutionHistoryRequest::getDataCenterId()const
|
||||
{
|
||||
return dataCenterId_;
|
||||
}
|
||||
|
||||
void DeleteNodeToolExecutionHistoryRequest::setDataCenterId(const std::string& dataCenterId)
|
||||
{
|
||||
dataCenterId_ = dataCenterId;
|
||||
setParameter("DataCenterId", dataCenterId);
|
||||
}
|
||||
|
||||
std::string DeleteNodeToolExecutionHistoryRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DeleteNodeToolExecutionHistoryRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string DeleteNodeToolExecutionHistoryRequest::getJobId()const
|
||||
{
|
||||
return jobId_;
|
||||
}
|
||||
|
||||
void DeleteNodeToolExecutionHistoryRequest::setJobId(const std::string& jobId)
|
||||
{
|
||||
jobId_ = jobId;
|
||||
setParameter("JobId", jobId);
|
||||
}
|
||||
|
||||
44
cassandra/src/model/DeleteNodeToolExecutionHistoryResult.cc
Normal file
44
cassandra/src/model/DeleteNodeToolExecutionHistoryResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/DeleteNodeToolExecutionHistoryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cassandra;
|
||||
using namespace AlibabaCloud::Cassandra::Model;
|
||||
|
||||
DeleteNodeToolExecutionHistoryResult::DeleteNodeToolExecutionHistoryResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteNodeToolExecutionHistoryResult::DeleteNodeToolExecutionHistoryResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteNodeToolExecutionHistoryResult::~DeleteNodeToolExecutionHistoryResult()
|
||||
{}
|
||||
|
||||
void DeleteNodeToolExecutionHistoryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
40
cassandra/src/model/DescribeAccountsRequest.cc
Normal file
40
cassandra/src/model/DescribeAccountsRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES 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/cassandra/model/DescribeAccountsRequest.h>
|
||||
|
||||
using AlibabaCloud::Cassandra::Model::DescribeAccountsRequest;
|
||||
|
||||
DescribeAccountsRequest::DescribeAccountsRequest() :
|
||||
RpcServiceRequest("cassandra", "2019-01-01", "DescribeAccounts")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeAccountsRequest::~DescribeAccountsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeAccountsRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DescribeAccountsRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
57
cassandra/src/model/DescribeAccountsResult.cc
Normal file
57
cassandra/src/model/DescribeAccountsResult.cc
Normal file
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/DescribeAccountsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cassandra;
|
||||
using namespace AlibabaCloud::Cassandra::Model;
|
||||
|
||||
DescribeAccountsResult::DescribeAccountsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeAccountsResult::DescribeAccountsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeAccountsResult::~DescribeAccountsResult()
|
||||
{}
|
||||
|
||||
void DescribeAccountsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allAccountsNode = value["Accounts"]["Account"];
|
||||
for (auto valueAccountsAccount : allAccountsNode)
|
||||
{
|
||||
Account accountsObject;
|
||||
if(!valueAccountsAccount["Name"].isNull())
|
||||
accountsObject.name = valueAccountsAccount["Name"].asString();
|
||||
accounts_.push_back(accountsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeAccountsResult::Account> DescribeAccountsResult::getAccounts()const
|
||||
{
|
||||
return accounts_;
|
||||
}
|
||||
|
||||
51
cassandra/src/model/DescribeBackupPlanRequest.cc
Normal file
51
cassandra/src/model/DescribeBackupPlanRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/DescribeBackupPlanRequest.h>
|
||||
|
||||
using AlibabaCloud::Cassandra::Model::DescribeBackupPlanRequest;
|
||||
|
||||
DescribeBackupPlanRequest::DescribeBackupPlanRequest() :
|
||||
RpcServiceRequest("cassandra", "2019-01-01", "DescribeBackupPlan")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeBackupPlanRequest::~DescribeBackupPlanRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeBackupPlanRequest::getDataCenterId()const
|
||||
{
|
||||
return dataCenterId_;
|
||||
}
|
||||
|
||||
void DescribeBackupPlanRequest::setDataCenterId(const std::string& dataCenterId)
|
||||
{
|
||||
dataCenterId_ = dataCenterId;
|
||||
setParameter("DataCenterId", dataCenterId);
|
||||
}
|
||||
|
||||
std::string DescribeBackupPlanRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DescribeBackupPlanRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
64
cassandra/src/model/DescribeBackupPlanResult.cc
Normal file
64
cassandra/src/model/DescribeBackupPlanResult.cc
Normal file
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/DescribeBackupPlanResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cassandra;
|
||||
using namespace AlibabaCloud::Cassandra::Model;
|
||||
|
||||
DescribeBackupPlanResult::DescribeBackupPlanResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeBackupPlanResult::DescribeBackupPlanResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeBackupPlanResult::~DescribeBackupPlanResult()
|
||||
{}
|
||||
|
||||
void DescribeBackupPlanResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto backupPlanNode = value["BackupPlan"];
|
||||
if(!backupPlanNode["ClusterId"].isNull())
|
||||
backupPlan_.clusterId = backupPlanNode["ClusterId"].asString();
|
||||
if(!backupPlanNode["DataCenterId"].isNull())
|
||||
backupPlan_.dataCenterId = backupPlanNode["DataCenterId"].asString();
|
||||
if(!backupPlanNode["CreatedTime"].isNull())
|
||||
backupPlan_.createdTime = backupPlanNode["CreatedTime"].asString();
|
||||
if(!backupPlanNode["BackupTime"].isNull())
|
||||
backupPlan_.backupTime = backupPlanNode["BackupTime"].asString();
|
||||
if(!backupPlanNode["BackupPeriod"].isNull())
|
||||
backupPlan_.backupPeriod = backupPlanNode["BackupPeriod"].asString();
|
||||
if(!backupPlanNode["RetentionPeriod"].isNull())
|
||||
backupPlan_.retentionPeriod = std::stoi(backupPlanNode["RetentionPeriod"].asString());
|
||||
if(!backupPlanNode["Active"].isNull())
|
||||
backupPlan_.active = backupPlanNode["Active"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
DescribeBackupPlanResult::BackupPlan DescribeBackupPlanResult::getBackupPlan()const
|
||||
{
|
||||
return backupPlan_;
|
||||
}
|
||||
|
||||
40
cassandra/src/model/DescribeBackupPlansRequest.cc
Normal file
40
cassandra/src/model/DescribeBackupPlansRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES 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/cassandra/model/DescribeBackupPlansRequest.h>
|
||||
|
||||
using AlibabaCloud::Cassandra::Model::DescribeBackupPlansRequest;
|
||||
|
||||
DescribeBackupPlansRequest::DescribeBackupPlansRequest() :
|
||||
RpcServiceRequest("cassandra", "2019-01-01", "DescribeBackupPlans")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeBackupPlansRequest::~DescribeBackupPlansRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeBackupPlansRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DescribeBackupPlansRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
69
cassandra/src/model/DescribeBackupPlansResult.cc
Normal file
69
cassandra/src/model/DescribeBackupPlansResult.cc
Normal file
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/DescribeBackupPlansResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cassandra;
|
||||
using namespace AlibabaCloud::Cassandra::Model;
|
||||
|
||||
DescribeBackupPlansResult::DescribeBackupPlansResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeBackupPlansResult::DescribeBackupPlansResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeBackupPlansResult::~DescribeBackupPlansResult()
|
||||
{}
|
||||
|
||||
void DescribeBackupPlansResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allBackupPlansNode = value["BackupPlans"]["BackupPlan"];
|
||||
for (auto valueBackupPlansBackupPlan : allBackupPlansNode)
|
||||
{
|
||||
BackupPlan backupPlansObject;
|
||||
if(!valueBackupPlansBackupPlan["ClusterId"].isNull())
|
||||
backupPlansObject.clusterId = valueBackupPlansBackupPlan["ClusterId"].asString();
|
||||
if(!valueBackupPlansBackupPlan["DataCenterId"].isNull())
|
||||
backupPlansObject.dataCenterId = valueBackupPlansBackupPlan["DataCenterId"].asString();
|
||||
if(!valueBackupPlansBackupPlan["CreatedTime"].isNull())
|
||||
backupPlansObject.createdTime = valueBackupPlansBackupPlan["CreatedTime"].asString();
|
||||
if(!valueBackupPlansBackupPlan["BackupTime"].isNull())
|
||||
backupPlansObject.backupTime = valueBackupPlansBackupPlan["BackupTime"].asString();
|
||||
if(!valueBackupPlansBackupPlan["BackupPeriod"].isNull())
|
||||
backupPlansObject.backupPeriod = valueBackupPlansBackupPlan["BackupPeriod"].asString();
|
||||
if(!valueBackupPlansBackupPlan["RetentionPeriod"].isNull())
|
||||
backupPlansObject.retentionPeriod = std::stoi(valueBackupPlansBackupPlan["RetentionPeriod"].asString());
|
||||
if(!valueBackupPlansBackupPlan["Active"].isNull())
|
||||
backupPlansObject.active = valueBackupPlansBackupPlan["Active"].asString() == "true";
|
||||
backupPlans_.push_back(backupPlansObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeBackupPlansResult::BackupPlan> DescribeBackupPlansResult::getBackupPlans()const
|
||||
{
|
||||
return backupPlans_;
|
||||
}
|
||||
|
||||
73
cassandra/src/model/DescribeBackupRequest.cc
Normal file
73
cassandra/src/model/DescribeBackupRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/DescribeBackupRequest.h>
|
||||
|
||||
using AlibabaCloud::Cassandra::Model::DescribeBackupRequest;
|
||||
|
||||
DescribeBackupRequest::DescribeBackupRequest() :
|
||||
RpcServiceRequest("cassandra", "2019-01-01", "DescribeBackup")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeBackupRequest::~DescribeBackupRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeBackupRequest::getBackupType()const
|
||||
{
|
||||
return backupType_;
|
||||
}
|
||||
|
||||
void DescribeBackupRequest::setBackupType(const std::string& backupType)
|
||||
{
|
||||
backupType_ = backupType;
|
||||
setParameter("BackupType", backupType);
|
||||
}
|
||||
|
||||
std::string DescribeBackupRequest::getBackupId()const
|
||||
{
|
||||
return backupId_;
|
||||
}
|
||||
|
||||
void DescribeBackupRequest::setBackupId(const std::string& backupId)
|
||||
{
|
||||
backupId_ = backupId;
|
||||
setParameter("BackupId", backupId);
|
||||
}
|
||||
|
||||
std::string DescribeBackupRequest::getDataCenterId()const
|
||||
{
|
||||
return dataCenterId_;
|
||||
}
|
||||
|
||||
void DescribeBackupRequest::setDataCenterId(const std::string& dataCenterId)
|
||||
{
|
||||
dataCenterId_ = dataCenterId;
|
||||
setParameter("DataCenterId", dataCenterId);
|
||||
}
|
||||
|
||||
std::string DescribeBackupRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DescribeBackupRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
68
cassandra/src/model/DescribeBackupResult.cc
Normal file
68
cassandra/src/model/DescribeBackupResult.cc
Normal file
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/DescribeBackupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cassandra;
|
||||
using namespace AlibabaCloud::Cassandra::Model;
|
||||
|
||||
DescribeBackupResult::DescribeBackupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeBackupResult::DescribeBackupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeBackupResult::~DescribeBackupResult()
|
||||
{}
|
||||
|
||||
void DescribeBackupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto backupNode = value["Backup"];
|
||||
if(!backupNode["ClusterId"].isNull())
|
||||
backup_.clusterId = backupNode["ClusterId"].asString();
|
||||
if(!backupNode["DataCenterId"].isNull())
|
||||
backup_.dataCenterId = backupNode["DataCenterId"].asString();
|
||||
if(!backupNode["BackupId"].isNull())
|
||||
backup_.backupId = backupNode["BackupId"].asString();
|
||||
if(!backupNode["BackupType"].isNull())
|
||||
backup_.backupType = backupNode["BackupType"].asString();
|
||||
if(!backupNode["Status"].isNull())
|
||||
backup_.status = backupNode["Status"].asString();
|
||||
if(!backupNode["StartTime"].isNull())
|
||||
backup_.startTime = backupNode["StartTime"].asString();
|
||||
if(!backupNode["EndTime"].isNull())
|
||||
backup_.endTime = backupNode["EndTime"].asString();
|
||||
if(!backupNode["Size"].isNull())
|
||||
backup_.size = std::stol(backupNode["Size"].asString());
|
||||
if(!backupNode["Details"].isNull())
|
||||
backup_.details = backupNode["Details"].asString();
|
||||
|
||||
}
|
||||
|
||||
DescribeBackupResult::Backup DescribeBackupResult::getBackup()const
|
||||
{
|
||||
return backup_;
|
||||
}
|
||||
|
||||
62
cassandra/src/model/DescribeBackupsRequest.cc
Normal file
62
cassandra/src/model/DescribeBackupsRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/DescribeBackupsRequest.h>
|
||||
|
||||
using AlibabaCloud::Cassandra::Model::DescribeBackupsRequest;
|
||||
|
||||
DescribeBackupsRequest::DescribeBackupsRequest() :
|
||||
RpcServiceRequest("cassandra", "2019-01-01", "DescribeBackups")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeBackupsRequest::~DescribeBackupsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeBackupsRequest::getDataCenterId()const
|
||||
{
|
||||
return dataCenterId_;
|
||||
}
|
||||
|
||||
void DescribeBackupsRequest::setDataCenterId(const std::string& dataCenterId)
|
||||
{
|
||||
dataCenterId_ = dataCenterId;
|
||||
setParameter("DataCenterId", dataCenterId);
|
||||
}
|
||||
|
||||
std::string DescribeBackupsRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DescribeBackupsRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string DescribeBackupsRequest::getBackupType()const
|
||||
{
|
||||
return backupType_;
|
||||
}
|
||||
|
||||
void DescribeBackupsRequest::setBackupType(const std::string& backupType)
|
||||
{
|
||||
backupType_ = backupType;
|
||||
setParameter("BackupType", backupType);
|
||||
}
|
||||
|
||||
71
cassandra/src/model/DescribeBackupsResult.cc
Normal file
71
cassandra/src/model/DescribeBackupsResult.cc
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/DescribeBackupsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cassandra;
|
||||
using namespace AlibabaCloud::Cassandra::Model;
|
||||
|
||||
DescribeBackupsResult::DescribeBackupsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeBackupsResult::DescribeBackupsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeBackupsResult::~DescribeBackupsResult()
|
||||
{}
|
||||
|
||||
void DescribeBackupsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allBackupsNode = value["Backups"]["Backup"];
|
||||
for (auto valueBackupsBackup : allBackupsNode)
|
||||
{
|
||||
Backup backupsObject;
|
||||
if(!valueBackupsBackup["ClusterId"].isNull())
|
||||
backupsObject.clusterId = valueBackupsBackup["ClusterId"].asString();
|
||||
if(!valueBackupsBackup["DataCenterId"].isNull())
|
||||
backupsObject.dataCenterId = valueBackupsBackup["DataCenterId"].asString();
|
||||
if(!valueBackupsBackup["BackupId"].isNull())
|
||||
backupsObject.backupId = valueBackupsBackup["BackupId"].asString();
|
||||
if(!valueBackupsBackup["BackupType"].isNull())
|
||||
backupsObject.backupType = valueBackupsBackup["BackupType"].asString();
|
||||
if(!valueBackupsBackup["Status"].isNull())
|
||||
backupsObject.status = valueBackupsBackup["Status"].asString();
|
||||
if(!valueBackupsBackup["StartTime"].isNull())
|
||||
backupsObject.startTime = valueBackupsBackup["StartTime"].asString();
|
||||
if(!valueBackupsBackup["EndTime"].isNull())
|
||||
backupsObject.endTime = valueBackupsBackup["EndTime"].asString();
|
||||
if(!valueBackupsBackup["Size"].isNull())
|
||||
backupsObject.size = std::stol(valueBackupsBackup["Size"].asString());
|
||||
backups_.push_back(backupsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeBackupsResult::Backup> DescribeBackupsResult::getBackups()const
|
||||
{
|
||||
return backups_;
|
||||
}
|
||||
|
||||
40
cassandra/src/model/DescribeClusterDashboardRequest.cc
Normal file
40
cassandra/src/model/DescribeClusterDashboardRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES 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/cassandra/model/DescribeClusterDashboardRequest.h>
|
||||
|
||||
using AlibabaCloud::Cassandra::Model::DescribeClusterDashboardRequest;
|
||||
|
||||
DescribeClusterDashboardRequest::DescribeClusterDashboardRequest() :
|
||||
RpcServiceRequest("cassandra", "2019-01-01", "DescribeClusterDashboard")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeClusterDashboardRequest::~DescribeClusterDashboardRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeClusterDashboardRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DescribeClusterDashboardRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
72
cassandra/src/model/DescribeClusterDashboardResult.cc
Normal file
72
cassandra/src/model/DescribeClusterDashboardResult.cc
Normal 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/cassandra/model/DescribeClusterDashboardResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cassandra;
|
||||
using namespace AlibabaCloud::Cassandra::Model;
|
||||
|
||||
DescribeClusterDashboardResult::DescribeClusterDashboardResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeClusterDashboardResult::DescribeClusterDashboardResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeClusterDashboardResult::~DescribeClusterDashboardResult()
|
||||
{}
|
||||
|
||||
void DescribeClusterDashboardResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dashboardNode = value["Dashboard"];
|
||||
if(!dashboardNode["ClusterId"].isNull())
|
||||
dashboard_.clusterId = dashboardNode["ClusterId"].asString();
|
||||
auto allDataCentersNode = dashboardNode["DataCenters"]["DataCenter"];
|
||||
for (auto dashboardNodeDataCentersDataCenter : allDataCentersNode)
|
||||
{
|
||||
Dashboard::DataCenter dataCenterObject;
|
||||
if(!dashboardNodeDataCentersDataCenter["DataCenterId"].isNull())
|
||||
dataCenterObject.dataCenterId = dashboardNodeDataCentersDataCenter["DataCenterId"].asString();
|
||||
auto allNodesNode = allDataCentersNode["Nodes"]["Node"];
|
||||
for (auto allDataCentersNodeNodesNode : allNodesNode)
|
||||
{
|
||||
Dashboard::DataCenter::Node nodesObject;
|
||||
if(!allDataCentersNodeNodesNode["Address"].isNull())
|
||||
nodesObject.address = allDataCentersNodeNodesNode["Address"].asString();
|
||||
if(!allDataCentersNodeNodesNode["Status"].isNull())
|
||||
nodesObject.status = allDataCentersNodeNodesNode["Status"].asString();
|
||||
if(!allDataCentersNodeNodesNode["Load"].isNull())
|
||||
nodesObject.load = allDataCentersNodeNodesNode["Load"].asString();
|
||||
dataCenterObject.nodes.push_back(nodesObject);
|
||||
}
|
||||
dashboard_.dataCenters.push_back(dataCenterObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
DescribeClusterDashboardResult::Dashboard DescribeClusterDashboardResult::getDashboard()const
|
||||
{
|
||||
return dashboard_;
|
||||
}
|
||||
|
||||
40
cassandra/src/model/DescribeClusterRequest.cc
Normal file
40
cassandra/src/model/DescribeClusterRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES 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/cassandra/model/DescribeClusterRequest.h>
|
||||
|
||||
using AlibabaCloud::Cassandra::Model::DescribeClusterRequest;
|
||||
|
||||
DescribeClusterRequest::DescribeClusterRequest() :
|
||||
RpcServiceRequest("cassandra", "2019-01-01", "DescribeCluster")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeClusterRequest::~DescribeClusterRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeClusterRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DescribeClusterRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
76
cassandra/src/model/DescribeClusterResult.cc
Normal file
76
cassandra/src/model/DescribeClusterResult.cc
Normal file
@@ -0,0 +1,76 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/DescribeClusterResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cassandra;
|
||||
using namespace AlibabaCloud::Cassandra::Model;
|
||||
|
||||
DescribeClusterResult::DescribeClusterResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeClusterResult::DescribeClusterResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeClusterResult::~DescribeClusterResult()
|
||||
{}
|
||||
|
||||
void DescribeClusterResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto clusterNode = value["Cluster"];
|
||||
if(!clusterNode["ClusterId"].isNull())
|
||||
cluster_.clusterId = clusterNode["ClusterId"].asString();
|
||||
if(!clusterNode["ClusterName"].isNull())
|
||||
cluster_.clusterName = clusterNode["ClusterName"].asString();
|
||||
if(!clusterNode["Status"].isNull())
|
||||
cluster_.status = clusterNode["Status"].asString();
|
||||
if(!clusterNode["PayType"].isNull())
|
||||
cluster_.payType = clusterNode["PayType"].asString();
|
||||
if(!clusterNode["CreatedTime"].isNull())
|
||||
cluster_.createdTime = clusterNode["CreatedTime"].asString();
|
||||
if(!clusterNode["ExpireTime"].isNull())
|
||||
cluster_.expireTime = clusterNode["ExpireTime"].asString();
|
||||
if(!clusterNode["MajorVersion"].isNull())
|
||||
cluster_.majorVersion = clusterNode["MajorVersion"].asString();
|
||||
if(!clusterNode["MinorVersion"].isNull())
|
||||
cluster_.minorVersion = clusterNode["MinorVersion"].asString();
|
||||
if(!clusterNode["DataCenterCount"].isNull())
|
||||
cluster_.dataCenterCount = std::stoi(clusterNode["DataCenterCount"].asString());
|
||||
if(!clusterNode["IsLatestVersion"].isNull())
|
||||
cluster_.isLatestVersion = clusterNode["IsLatestVersion"].asString() == "true";
|
||||
if(!clusterNode["MaintainStartTime"].isNull())
|
||||
cluster_.maintainStartTime = clusterNode["MaintainStartTime"].asString();
|
||||
if(!clusterNode["MaintainEndTime"].isNull())
|
||||
cluster_.maintainEndTime = clusterNode["MaintainEndTime"].asString();
|
||||
if(!clusterNode["LockMode"].isNull())
|
||||
cluster_.lockMode = clusterNode["LockMode"].asString();
|
||||
|
||||
}
|
||||
|
||||
DescribeClusterResult::Cluster DescribeClusterResult::getCluster()const
|
||||
{
|
||||
return cluster_;
|
||||
}
|
||||
|
||||
40
cassandra/src/model/DescribeClusterStatusRequest.cc
Normal file
40
cassandra/src/model/DescribeClusterStatusRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES 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/cassandra/model/DescribeClusterStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::Cassandra::Model::DescribeClusterStatusRequest;
|
||||
|
||||
DescribeClusterStatusRequest::DescribeClusterStatusRequest() :
|
||||
RpcServiceRequest("cassandra", "2019-01-01", "DescribeClusterStatus")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeClusterStatusRequest::~DescribeClusterStatusRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeClusterStatusRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DescribeClusterStatusRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
58
cassandra/src/model/DescribeClusterStatusResult.cc
Normal file
58
cassandra/src/model/DescribeClusterStatusResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/DescribeClusterStatusResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cassandra;
|
||||
using namespace AlibabaCloud::Cassandra::Model;
|
||||
|
||||
DescribeClusterStatusResult::DescribeClusterStatusResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeClusterStatusResult::DescribeClusterStatusResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeClusterStatusResult::~DescribeClusterStatusResult()
|
||||
{}
|
||||
|
||||
void DescribeClusterStatusResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Status"].isNull())
|
||||
status_ = value["Status"].asString();
|
||||
if(!value["CreatedTime"].isNull())
|
||||
createdTime_ = value["CreatedTime"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeClusterStatusResult::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
std::string DescribeClusterStatusResult::getCreatedTime()const
|
||||
{
|
||||
return createdTime_;
|
||||
}
|
||||
|
||||
62
cassandra/src/model/DescribeClustersRequest.cc
Normal file
62
cassandra/src/model/DescribeClustersRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/DescribeClustersRequest.h>
|
||||
|
||||
using AlibabaCloud::Cassandra::Model::DescribeClustersRequest;
|
||||
|
||||
DescribeClustersRequest::DescribeClustersRequest() :
|
||||
RpcServiceRequest("cassandra", "2019-01-01", "DescribeClusters")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeClustersRequest::~DescribeClustersRequest()
|
||||
{}
|
||||
|
||||
int DescribeClustersRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeClustersRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeClustersRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeClustersRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
int DescribeClustersRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeClustersRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
96
cassandra/src/model/DescribeClustersResult.cc
Normal file
96
cassandra/src/model/DescribeClustersResult.cc
Normal file
@@ -0,0 +1,96 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/DescribeClustersResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cassandra;
|
||||
using namespace AlibabaCloud::Cassandra::Model;
|
||||
|
||||
DescribeClustersResult::DescribeClustersResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeClustersResult::DescribeClustersResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeClustersResult::~DescribeClustersResult()
|
||||
{}
|
||||
|
||||
void DescribeClustersResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allClustersNode = value["Clusters"]["Cluster"];
|
||||
for (auto valueClustersCluster : allClustersNode)
|
||||
{
|
||||
Cluster clustersObject;
|
||||
if(!valueClustersCluster["ClusterId"].isNull())
|
||||
clustersObject.clusterId = valueClustersCluster["ClusterId"].asString();
|
||||
if(!valueClustersCluster["ClusterName"].isNull())
|
||||
clustersObject.clusterName = valueClustersCluster["ClusterName"].asString();
|
||||
if(!valueClustersCluster["Status"].isNull())
|
||||
clustersObject.status = valueClustersCluster["Status"].asString();
|
||||
if(!valueClustersCluster["PayType"].isNull())
|
||||
clustersObject.payType = valueClustersCluster["PayType"].asString();
|
||||
if(!valueClustersCluster["CreatedTime"].isNull())
|
||||
clustersObject.createdTime = valueClustersCluster["CreatedTime"].asString();
|
||||
if(!valueClustersCluster["ExpireTime"].isNull())
|
||||
clustersObject.expireTime = valueClustersCluster["ExpireTime"].asString();
|
||||
if(!valueClustersCluster["MajorVersion"].isNull())
|
||||
clustersObject.majorVersion = valueClustersCluster["MajorVersion"].asString();
|
||||
if(!valueClustersCluster["MinorVersion"].isNull())
|
||||
clustersObject.minorVersion = valueClustersCluster["MinorVersion"].asString();
|
||||
if(!valueClustersCluster["DataCenterCount"].isNull())
|
||||
clustersObject.dataCenterCount = std::stoi(valueClustersCluster["DataCenterCount"].asString());
|
||||
if(!valueClustersCluster["LockMode"].isNull())
|
||||
clustersObject.lockMode = valueClustersCluster["LockMode"].asString();
|
||||
clusters_.push_back(clustersObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
long DescribeClustersResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeClustersResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeClustersResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribeClustersResult::Cluster> DescribeClustersResult::getClusters()const
|
||||
{
|
||||
return clusters_;
|
||||
}
|
||||
|
||||
40
cassandra/src/model/DescribeContactPointsRequest.cc
Normal file
40
cassandra/src/model/DescribeContactPointsRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES 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/cassandra/model/DescribeContactPointsRequest.h>
|
||||
|
||||
using AlibabaCloud::Cassandra::Model::DescribeContactPointsRequest;
|
||||
|
||||
DescribeContactPointsRequest::DescribeContactPointsRequest() :
|
||||
RpcServiceRequest("cassandra", "2019-01-01", "DescribeContactPoints")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeContactPointsRequest::~DescribeContactPointsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeContactPointsRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DescribeContactPointsRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
65
cassandra/src/model/DescribeContactPointsResult.cc
Normal file
65
cassandra/src/model/DescribeContactPointsResult.cc
Normal 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/cassandra/model/DescribeContactPointsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cassandra;
|
||||
using namespace AlibabaCloud::Cassandra::Model;
|
||||
|
||||
DescribeContactPointsResult::DescribeContactPointsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeContactPointsResult::DescribeContactPointsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeContactPointsResult::~DescribeContactPointsResult()
|
||||
{}
|
||||
|
||||
void DescribeContactPointsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allContactPointsNode = value["ContactPoints"]["ContactPoint"];
|
||||
for (auto valueContactPointsContactPoint : allContactPointsNode)
|
||||
{
|
||||
ContactPoint contactPointsObject;
|
||||
if(!valueContactPointsContactPoint["DataCenterId"].isNull())
|
||||
contactPointsObject.dataCenterId = valueContactPointsContactPoint["DataCenterId"].asString();
|
||||
if(!valueContactPointsContactPoint["Port"].isNull())
|
||||
contactPointsObject.port = std::stoi(valueContactPointsContactPoint["Port"].asString());
|
||||
auto allPrivateAddresses = value["PrivateAddresses"]["PrivateAddress"];
|
||||
for (auto value : allPrivateAddresses)
|
||||
contactPointsObject.privateAddresses.push_back(value.asString());
|
||||
auto allPublicAddresses = value["PublicAddresses"]["PublicAddress"];
|
||||
for (auto value : allPublicAddresses)
|
||||
contactPointsObject.publicAddresses.push_back(value.asString());
|
||||
contactPoints_.push_back(contactPointsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeContactPointsResult::ContactPoint> DescribeContactPointsResult::getContactPoints()const
|
||||
{
|
||||
return contactPoints_;
|
||||
}
|
||||
|
||||
40
cassandra/src/model/DescribeDataCentersRequest.cc
Normal file
40
cassandra/src/model/DescribeDataCentersRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES 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/cassandra/model/DescribeDataCentersRequest.h>
|
||||
|
||||
using AlibabaCloud::Cassandra::Model::DescribeDataCentersRequest;
|
||||
|
||||
DescribeDataCentersRequest::DescribeDataCentersRequest() :
|
||||
RpcServiceRequest("cassandra", "2019-01-01", "DescribeDataCenters")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDataCentersRequest::~DescribeDataCentersRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeDataCentersRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DescribeDataCentersRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
89
cassandra/src/model/DescribeDataCentersResult.cc
Normal file
89
cassandra/src/model/DescribeDataCentersResult.cc
Normal file
@@ -0,0 +1,89 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/DescribeDataCentersResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cassandra;
|
||||
using namespace AlibabaCloud::Cassandra::Model;
|
||||
|
||||
DescribeDataCentersResult::DescribeDataCentersResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDataCentersResult::DescribeDataCentersResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDataCentersResult::~DescribeDataCentersResult()
|
||||
{}
|
||||
|
||||
void DescribeDataCentersResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataCentersNode = value["DataCenters"]["DataCenter"];
|
||||
for (auto valueDataCentersDataCenter : allDataCentersNode)
|
||||
{
|
||||
DataCenter dataCentersObject;
|
||||
if(!valueDataCentersDataCenter["DataCenterId"].isNull())
|
||||
dataCentersObject.dataCenterId = valueDataCentersDataCenter["DataCenterId"].asString();
|
||||
if(!valueDataCentersDataCenter["RegionId"].isNull())
|
||||
dataCentersObject.regionId = valueDataCentersDataCenter["RegionId"].asString();
|
||||
if(!valueDataCentersDataCenter["ZoneId"].isNull())
|
||||
dataCentersObject.zoneId = valueDataCentersDataCenter["ZoneId"].asString();
|
||||
if(!valueDataCentersDataCenter["ClusterId"].isNull())
|
||||
dataCentersObject.clusterId = valueDataCentersDataCenter["ClusterId"].asString();
|
||||
if(!valueDataCentersDataCenter["DataCenterName"].isNull())
|
||||
dataCentersObject.dataCenterName = valueDataCentersDataCenter["DataCenterName"].asString();
|
||||
if(!valueDataCentersDataCenter["Status"].isNull())
|
||||
dataCentersObject.status = valueDataCentersDataCenter["Status"].asString();
|
||||
if(!valueDataCentersDataCenter["CreatedTime"].isNull())
|
||||
dataCentersObject.createdTime = valueDataCentersDataCenter["CreatedTime"].asString();
|
||||
if(!valueDataCentersDataCenter["InstanceType"].isNull())
|
||||
dataCentersObject.instanceType = valueDataCentersDataCenter["InstanceType"].asString();
|
||||
if(!valueDataCentersDataCenter["NodeCount"].isNull())
|
||||
dataCentersObject.nodeCount = std::stoi(valueDataCentersDataCenter["NodeCount"].asString());
|
||||
if(!valueDataCentersDataCenter["DiskType"].isNull())
|
||||
dataCentersObject.diskType = valueDataCentersDataCenter["DiskType"].asString();
|
||||
if(!valueDataCentersDataCenter["DiskSize"].isNull())
|
||||
dataCentersObject.diskSize = std::stoi(valueDataCentersDataCenter["DiskSize"].asString());
|
||||
if(!valueDataCentersDataCenter["VpcId"].isNull())
|
||||
dataCentersObject.vpcId = valueDataCentersDataCenter["VpcId"].asString();
|
||||
if(!valueDataCentersDataCenter["VswitchId"].isNull())
|
||||
dataCentersObject.vswitchId = valueDataCentersDataCenter["VswitchId"].asString();
|
||||
if(!valueDataCentersDataCenter["PayType"].isNull())
|
||||
dataCentersObject.payType = valueDataCentersDataCenter["PayType"].asString();
|
||||
if(!valueDataCentersDataCenter["CommodityInstance"].isNull())
|
||||
dataCentersObject.commodityInstance = valueDataCentersDataCenter["CommodityInstance"].asString();
|
||||
if(!valueDataCentersDataCenter["ExpireTime"].isNull())
|
||||
dataCentersObject.expireTime = valueDataCentersDataCenter["ExpireTime"].asString();
|
||||
if(!valueDataCentersDataCenter["LockMode"].isNull())
|
||||
dataCentersObject.lockMode = valueDataCentersDataCenter["LockMode"].asString();
|
||||
dataCenters_.push_back(dataCentersObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeDataCentersResult::DataCenter> DescribeDataCentersResult::getDataCenters()const
|
||||
{
|
||||
return dataCenters_;
|
||||
}
|
||||
|
||||
62
cassandra/src/model/DescribeDeletedClustersRequest.cc
Normal file
62
cassandra/src/model/DescribeDeletedClustersRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/DescribeDeletedClustersRequest.h>
|
||||
|
||||
using AlibabaCloud::Cassandra::Model::DescribeDeletedClustersRequest;
|
||||
|
||||
DescribeDeletedClustersRequest::DescribeDeletedClustersRequest() :
|
||||
RpcServiceRequest("cassandra", "2019-01-01", "DescribeDeletedClusters")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDeletedClustersRequest::~DescribeDeletedClustersRequest()
|
||||
{}
|
||||
|
||||
int DescribeDeletedClustersRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeDeletedClustersRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeDeletedClustersRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeDeletedClustersRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
int DescribeDeletedClustersRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeDeletedClustersRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
94
cassandra/src/model/DescribeDeletedClustersResult.cc
Normal file
94
cassandra/src/model/DescribeDeletedClustersResult.cc
Normal 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/cassandra/model/DescribeDeletedClustersResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cassandra;
|
||||
using namespace AlibabaCloud::Cassandra::Model;
|
||||
|
||||
DescribeDeletedClustersResult::DescribeDeletedClustersResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDeletedClustersResult::DescribeDeletedClustersResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDeletedClustersResult::~DescribeDeletedClustersResult()
|
||||
{}
|
||||
|
||||
void DescribeDeletedClustersResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allClustersNode = value["Clusters"]["Cluster"];
|
||||
for (auto valueClustersCluster : allClustersNode)
|
||||
{
|
||||
Cluster clustersObject;
|
||||
if(!valueClustersCluster["ClusterId"].isNull())
|
||||
clustersObject.clusterId = valueClustersCluster["ClusterId"].asString();
|
||||
if(!valueClustersCluster["ClusterName"].isNull())
|
||||
clustersObject.clusterName = valueClustersCluster["ClusterName"].asString();
|
||||
if(!valueClustersCluster["Status"].isNull())
|
||||
clustersObject.status = valueClustersCluster["Status"].asString();
|
||||
if(!valueClustersCluster["PayType"].isNull())
|
||||
clustersObject.payType = valueClustersCluster["PayType"].asString();
|
||||
if(!valueClustersCluster["CreatedTime"].isNull())
|
||||
clustersObject.createdTime = valueClustersCluster["CreatedTime"].asString();
|
||||
if(!valueClustersCluster["ExpireTime"].isNull())
|
||||
clustersObject.expireTime = valueClustersCluster["ExpireTime"].asString();
|
||||
if(!valueClustersCluster["MajorVersion"].isNull())
|
||||
clustersObject.majorVersion = valueClustersCluster["MajorVersion"].asString();
|
||||
if(!valueClustersCluster["MinorVersion"].isNull())
|
||||
clustersObject.minorVersion = valueClustersCluster["MinorVersion"].asString();
|
||||
if(!valueClustersCluster["DataCenterCount"].isNull())
|
||||
clustersObject.dataCenterCount = std::stoi(valueClustersCluster["DataCenterCount"].asString());
|
||||
clusters_.push_back(clustersObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
long DescribeDeletedClustersResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeDeletedClustersResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeDeletedClustersResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDeletedClustersResult::Cluster> DescribeDeletedClustersResult::getClusters()const
|
||||
{
|
||||
return clusters_;
|
||||
}
|
||||
|
||||
40
cassandra/src/model/DescribeInstanceTypeRequest.cc
Normal file
40
cassandra/src/model/DescribeInstanceTypeRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES 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/cassandra/model/DescribeInstanceTypeRequest.h>
|
||||
|
||||
using AlibabaCloud::Cassandra::Model::DescribeInstanceTypeRequest;
|
||||
|
||||
DescribeInstanceTypeRequest::DescribeInstanceTypeRequest() :
|
||||
RpcServiceRequest("cassandra", "2019-01-01", "DescribeInstanceType")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeInstanceTypeRequest::~DescribeInstanceTypeRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeInstanceTypeRequest::getInstanceType()const
|
||||
{
|
||||
return instanceType_;
|
||||
}
|
||||
|
||||
void DescribeInstanceTypeRequest::setInstanceType(const std::string& instanceType)
|
||||
{
|
||||
instanceType_ = instanceType;
|
||||
setParameter("InstanceType", instanceType);
|
||||
}
|
||||
|
||||
61
cassandra/src/model/DescribeInstanceTypeResult.cc
Normal file
61
cassandra/src/model/DescribeInstanceTypeResult.cc
Normal 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/cassandra/model/DescribeInstanceTypeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cassandra;
|
||||
using namespace AlibabaCloud::Cassandra::Model;
|
||||
|
||||
DescribeInstanceTypeResult::DescribeInstanceTypeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeInstanceTypeResult::DescribeInstanceTypeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeInstanceTypeResult::~DescribeInstanceTypeResult()
|
||||
{}
|
||||
|
||||
void DescribeInstanceTypeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allInstanceTypeSpecListNode = value["InstanceTypeSpecList"]["InstanceTypeSpec"];
|
||||
for (auto valueInstanceTypeSpecListInstanceTypeSpec : allInstanceTypeSpecListNode)
|
||||
{
|
||||
InstanceTypeSpec instanceTypeSpecListObject;
|
||||
if(!valueInstanceTypeSpecListInstanceTypeSpec["InstanceType"].isNull())
|
||||
instanceTypeSpecListObject.instanceType = valueInstanceTypeSpecListInstanceTypeSpec["InstanceType"].asString();
|
||||
if(!valueInstanceTypeSpecListInstanceTypeSpec["CpuSize"].isNull())
|
||||
instanceTypeSpecListObject.cpuSize = std::stol(valueInstanceTypeSpecListInstanceTypeSpec["CpuSize"].asString());
|
||||
if(!valueInstanceTypeSpecListInstanceTypeSpec["MemSize"].isNull())
|
||||
instanceTypeSpecListObject.memSize = std::stol(valueInstanceTypeSpecListInstanceTypeSpec["MemSize"].asString());
|
||||
instanceTypeSpecList_.push_back(instanceTypeSpecListObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeInstanceTypeResult::InstanceTypeSpec> DescribeInstanceTypeResult::getInstanceTypeSpecList()const
|
||||
{
|
||||
return instanceTypeSpecList_;
|
||||
}
|
||||
|
||||
40
cassandra/src/model/DescribeIpWhitelistGroupsRequest.cc
Normal file
40
cassandra/src/model/DescribeIpWhitelistGroupsRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES 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/cassandra/model/DescribeIpWhitelistGroupsRequest.h>
|
||||
|
||||
using AlibabaCloud::Cassandra::Model::DescribeIpWhitelistGroupsRequest;
|
||||
|
||||
DescribeIpWhitelistGroupsRequest::DescribeIpWhitelistGroupsRequest() :
|
||||
RpcServiceRequest("cassandra", "2019-01-01", "DescribeIpWhitelistGroups")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeIpWhitelistGroupsRequest::~DescribeIpWhitelistGroupsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeIpWhitelistGroupsRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DescribeIpWhitelistGroupsRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
62
cassandra/src/model/DescribeIpWhitelistGroupsResult.cc
Normal file
62
cassandra/src/model/DescribeIpWhitelistGroupsResult.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/DescribeIpWhitelistGroupsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cassandra;
|
||||
using namespace AlibabaCloud::Cassandra::Model;
|
||||
|
||||
DescribeIpWhitelistGroupsResult::DescribeIpWhitelistGroupsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeIpWhitelistGroupsResult::DescribeIpWhitelistGroupsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeIpWhitelistGroupsResult::~DescribeIpWhitelistGroupsResult()
|
||||
{}
|
||||
|
||||
void DescribeIpWhitelistGroupsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allGroupsNode = value["Groups"]["Group"];
|
||||
for (auto valueGroupsGroup : allGroupsNode)
|
||||
{
|
||||
Group groupsObject;
|
||||
if(!valueGroupsGroup["GroupName"].isNull())
|
||||
groupsObject.groupName = valueGroupsGroup["GroupName"].asString();
|
||||
if(!valueGroupsGroup["IpVersion"].isNull())
|
||||
groupsObject.ipVersion = std::stoi(valueGroupsGroup["IpVersion"].asString());
|
||||
auto allIpList = value["IpList"]["IP"];
|
||||
for (auto value : allIpList)
|
||||
groupsObject.ipList.push_back(value.asString());
|
||||
groups_.push_back(groupsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeIpWhitelistGroupsResult::Group> DescribeIpWhitelistGroupsResult::getGroups()const
|
||||
{
|
||||
return groups_;
|
||||
}
|
||||
|
||||
40
cassandra/src/model/DescribeIpWhitelistRequest.cc
Normal file
40
cassandra/src/model/DescribeIpWhitelistRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES 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/cassandra/model/DescribeIpWhitelistRequest.h>
|
||||
|
||||
using AlibabaCloud::Cassandra::Model::DescribeIpWhitelistRequest;
|
||||
|
||||
DescribeIpWhitelistRequest::DescribeIpWhitelistRequest() :
|
||||
RpcServiceRequest("cassandra", "2019-01-01", "DescribeIpWhitelist")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeIpWhitelistRequest::~DescribeIpWhitelistRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeIpWhitelistRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DescribeIpWhitelistRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
52
cassandra/src/model/DescribeIpWhitelistResult.cc
Normal file
52
cassandra/src/model/DescribeIpWhitelistResult.cc
Normal 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/cassandra/model/DescribeIpWhitelistResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cassandra;
|
||||
using namespace AlibabaCloud::Cassandra::Model;
|
||||
|
||||
DescribeIpWhitelistResult::DescribeIpWhitelistResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeIpWhitelistResult::DescribeIpWhitelistResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeIpWhitelistResult::~DescribeIpWhitelistResult()
|
||||
{}
|
||||
|
||||
void DescribeIpWhitelistResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allIpList = value["IpList"]["IP"];
|
||||
for (const auto &item : allIpList)
|
||||
ipList_.push_back(item.asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeIpWhitelistResult::getIpList()const
|
||||
{
|
||||
return ipList_;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/DescribeNodeToolExecutionHistoriesRequest.h>
|
||||
|
||||
using AlibabaCloud::Cassandra::Model::DescribeNodeToolExecutionHistoriesRequest;
|
||||
|
||||
DescribeNodeToolExecutionHistoriesRequest::DescribeNodeToolExecutionHistoriesRequest() :
|
||||
RpcServiceRequest("cassandra", "2019-01-01", "DescribeNodeToolExecutionHistories")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeNodeToolExecutionHistoriesRequest::~DescribeNodeToolExecutionHistoriesRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeNodeToolExecutionHistoriesRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DescribeNodeToolExecutionHistoriesRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
int DescribeNodeToolExecutionHistoriesRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeNodeToolExecutionHistoriesRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
int DescribeNodeToolExecutionHistoriesRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeNodeToolExecutionHistoriesRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
@@ -0,0 +1,96 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/DescribeNodeToolExecutionHistoriesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cassandra;
|
||||
using namespace AlibabaCloud::Cassandra::Model;
|
||||
|
||||
DescribeNodeToolExecutionHistoriesResult::DescribeNodeToolExecutionHistoriesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeNodeToolExecutionHistoriesResult::DescribeNodeToolExecutionHistoriesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeNodeToolExecutionHistoriesResult::~DescribeNodeToolExecutionHistoriesResult()
|
||||
{}
|
||||
|
||||
void DescribeNodeToolExecutionHistoriesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allHistoriesNode = value["Histories"]["History"];
|
||||
for (auto valueHistoriesHistory : allHistoriesNode)
|
||||
{
|
||||
History historiesObject;
|
||||
if(!valueHistoriesHistory["JobId"].isNull())
|
||||
historiesObject.jobId = valueHistoriesHistory["JobId"].asString();
|
||||
if(!valueHistoriesHistory["Command"].isNull())
|
||||
historiesObject.command = valueHistoriesHistory["Command"].asString();
|
||||
if(!valueHistoriesHistory["Nodes"].isNull())
|
||||
historiesObject.nodes = valueHistoriesHistory["Nodes"].asString();
|
||||
if(!valueHistoriesHistory["ModifyTime"].isNull())
|
||||
historiesObject.modifyTime = std::stol(valueHistoriesHistory["ModifyTime"].asString());
|
||||
if(!valueHistoriesHistory["CreateTime"].isNull())
|
||||
historiesObject.createTime = std::stol(valueHistoriesHistory["CreateTime"].asString());
|
||||
if(!valueHistoriesHistory["RegionId"].isNull())
|
||||
historiesObject.regionId = valueHistoriesHistory["RegionId"].asString();
|
||||
if(!valueHistoriesHistory["IsEnded"].isNull())
|
||||
historiesObject.isEnded = valueHistoriesHistory["IsEnded"].asString() == "true";
|
||||
if(!valueHistoriesHistory["Arguments"].isNull())
|
||||
historiesObject.arguments = valueHistoriesHistory["Arguments"].asString();
|
||||
if(!valueHistoriesHistory["ErrorMessage"].isNull())
|
||||
historiesObject.errorMessage = valueHistoriesHistory["ErrorMessage"].asString();
|
||||
if(!valueHistoriesHistory["DataCenterId"].isNull())
|
||||
historiesObject.dataCenterId = valueHistoriesHistory["DataCenterId"].asString();
|
||||
histories_.push_back(historiesObject);
|
||||
}
|
||||
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::stol(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
long DescribeNodeToolExecutionHistoriesResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeNodeToolExecutionHistoriesResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeNodeToolExecutionHistoriesResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribeNodeToolExecutionHistoriesResult::History> DescribeNodeToolExecutionHistoriesResult::getHistories()const
|
||||
{
|
||||
return histories_;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/DescribeParameterModificationHistoriesRequest.h>
|
||||
|
||||
using AlibabaCloud::Cassandra::Model::DescribeParameterModificationHistoriesRequest;
|
||||
|
||||
DescribeParameterModificationHistoriesRequest::DescribeParameterModificationHistoriesRequest() :
|
||||
RpcServiceRequest("cassandra", "2019-01-01", "DescribeParameterModificationHistories")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeParameterModificationHistoriesRequest::~DescribeParameterModificationHistoriesRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeParameterModificationHistoriesRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DescribeParameterModificationHistoriesRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
int DescribeParameterModificationHistoriesRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeParameterModificationHistoriesRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
int DescribeParameterModificationHistoriesRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeParameterModificationHistoriesRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
@@ -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/cassandra/model/DescribeParameterModificationHistoriesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cassandra;
|
||||
using namespace AlibabaCloud::Cassandra::Model;
|
||||
|
||||
DescribeParameterModificationHistoriesResult::DescribeParameterModificationHistoriesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeParameterModificationHistoriesResult::DescribeParameterModificationHistoriesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeParameterModificationHistoriesResult::~DescribeParameterModificationHistoriesResult()
|
||||
{}
|
||||
|
||||
void DescribeParameterModificationHistoriesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allHistoriesNode = value["Histories"]["History"];
|
||||
for (auto valueHistoriesHistory : allHistoriesNode)
|
||||
{
|
||||
History historiesObject;
|
||||
if(!valueHistoriesHistory["Name"].isNull())
|
||||
historiesObject.name = valueHistoriesHistory["Name"].asString();
|
||||
if(!valueHistoriesHistory["OldValue"].isNull())
|
||||
historiesObject.oldValue = valueHistoriesHistory["OldValue"].asString();
|
||||
if(!valueHistoriesHistory["NewValue"].isNull())
|
||||
historiesObject.newValue = valueHistoriesHistory["NewValue"].asString();
|
||||
if(!valueHistoriesHistory["Time"].isNull())
|
||||
historiesObject.time = std::stol(valueHistoriesHistory["Time"].asString());
|
||||
histories_.push_back(historiesObject);
|
||||
}
|
||||
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::stol(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
long DescribeParameterModificationHistoriesResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeParameterModificationHistoriesResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeParameterModificationHistoriesResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribeParameterModificationHistoriesResult::History> DescribeParameterModificationHistoriesResult::getHistories()const
|
||||
{
|
||||
return histories_;
|
||||
}
|
||||
|
||||
62
cassandra/src/model/DescribeParametersRequest.cc
Normal file
62
cassandra/src/model/DescribeParametersRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/DescribeParametersRequest.h>
|
||||
|
||||
using AlibabaCloud::Cassandra::Model::DescribeParametersRequest;
|
||||
|
||||
DescribeParametersRequest::DescribeParametersRequest() :
|
||||
RpcServiceRequest("cassandra", "2019-01-01", "DescribeParameters")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeParametersRequest::~DescribeParametersRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeParametersRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DescribeParametersRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
int DescribeParametersRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeParametersRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
int DescribeParametersRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeParametersRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
88
cassandra/src/model/DescribeParametersResult.cc
Normal file
88
cassandra/src/model/DescribeParametersResult.cc
Normal file
@@ -0,0 +1,88 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/DescribeParametersResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cassandra;
|
||||
using namespace AlibabaCloud::Cassandra::Model;
|
||||
|
||||
DescribeParametersResult::DescribeParametersResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeParametersResult::DescribeParametersResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeParametersResult::~DescribeParametersResult()
|
||||
{}
|
||||
|
||||
void DescribeParametersResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allParametersNode = value["Parameters"]["Parameter"];
|
||||
for (auto valueParametersParameter : allParametersNode)
|
||||
{
|
||||
_Parameter parametersObject;
|
||||
if(!valueParametersParameter["Name"].isNull())
|
||||
parametersObject.name = valueParametersParameter["Name"].asString();
|
||||
if(!valueParametersParameter["Value"].isNull())
|
||||
parametersObject.value = valueParametersParameter["Value"].asString();
|
||||
if(!valueParametersParameter["DefaultValue"].isNull())
|
||||
parametersObject.defaultValue = valueParametersParameter["DefaultValue"].asString();
|
||||
if(!valueParametersParameter["DataType"].isNull())
|
||||
parametersObject.dataType = valueParametersParameter["DataType"].asString();
|
||||
if(!valueParametersParameter["AllowedValues"].isNull())
|
||||
parametersObject.allowedValues = valueParametersParameter["AllowedValues"].asString();
|
||||
if(!valueParametersParameter["Description"].isNull())
|
||||
parametersObject.description = valueParametersParameter["Description"].asString();
|
||||
parameters_.push_back(parametersObject);
|
||||
}
|
||||
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::stol(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
long DescribeParametersResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::vector<DescribeParametersResult::_Parameter> DescribeParametersResult::getParameters()const
|
||||
{
|
||||
return parameters_;
|
||||
}
|
||||
|
||||
int DescribeParametersResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeParametersResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
40
cassandra/src/model/DescribeRegionsRequest.cc
Normal file
40
cassandra/src/model/DescribeRegionsRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES 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/cassandra/model/DescribeRegionsRequest.h>
|
||||
|
||||
using AlibabaCloud::Cassandra::Model::DescribeRegionsRequest;
|
||||
|
||||
DescribeRegionsRequest::DescribeRegionsRequest() :
|
||||
RpcServiceRequest("cassandra", "2019-01-01", "DescribeRegions")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeRegionsRequest::~DescribeRegionsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeRegionsRequest::getAcceptLanguage()const
|
||||
{
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void DescribeRegionsRequest::setAcceptLanguage(const std::string& acceptLanguage)
|
||||
{
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter("AcceptLanguage", acceptLanguage);
|
||||
}
|
||||
|
||||
69
cassandra/src/model/DescribeRegionsResult.cc
Normal file
69
cassandra/src/model/DescribeRegionsResult.cc
Normal file
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/DescribeRegionsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cassandra;
|
||||
using namespace AlibabaCloud::Cassandra::Model;
|
||||
|
||||
DescribeRegionsResult::DescribeRegionsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeRegionsResult::DescribeRegionsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeRegionsResult::~DescribeRegionsResult()
|
||||
{}
|
||||
|
||||
void DescribeRegionsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allRegionsNode = value["Regions"]["Region"];
|
||||
for (auto valueRegionsRegion : allRegionsNode)
|
||||
{
|
||||
Region regionsObject;
|
||||
if(!valueRegionsRegion["RegionId"].isNull())
|
||||
regionsObject.regionId = valueRegionsRegion["RegionId"].asString();
|
||||
if(!valueRegionsRegion["LocalName"].isNull())
|
||||
regionsObject.localName = valueRegionsRegion["LocalName"].asString();
|
||||
if(!valueRegionsRegion["RegionEndpoint"].isNull())
|
||||
regionsObject.regionEndpoint = valueRegionsRegion["RegionEndpoint"].asString();
|
||||
auto allZonesNode = allRegionsNode["Zones"]["Zone"];
|
||||
for (auto allRegionsNodeZonesZone : allZonesNode)
|
||||
{
|
||||
Region::Zone zonesObject;
|
||||
if(!allRegionsNodeZonesZone["Id"].isNull())
|
||||
zonesObject.id = allRegionsNodeZonesZone["Id"].asString();
|
||||
regionsObject.zones.push_back(zonesObject);
|
||||
}
|
||||
regions_.push_back(regionsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeRegionsResult::Region> DescribeRegionsResult::getRegions()const
|
||||
{
|
||||
return regions_;
|
||||
}
|
||||
|
||||
40
cassandra/src/model/DescribeSecurityGroupsRequest.cc
Normal file
40
cassandra/src/model/DescribeSecurityGroupsRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES 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/cassandra/model/DescribeSecurityGroupsRequest.h>
|
||||
|
||||
using AlibabaCloud::Cassandra::Model::DescribeSecurityGroupsRequest;
|
||||
|
||||
DescribeSecurityGroupsRequest::DescribeSecurityGroupsRequest() :
|
||||
RpcServiceRequest("cassandra", "2019-01-01", "DescribeSecurityGroups")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeSecurityGroupsRequest::~DescribeSecurityGroupsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeSecurityGroupsRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DescribeSecurityGroupsRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
52
cassandra/src/model/DescribeSecurityGroupsResult.cc
Normal file
52
cassandra/src/model/DescribeSecurityGroupsResult.cc
Normal 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/cassandra/model/DescribeSecurityGroupsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cassandra;
|
||||
using namespace AlibabaCloud::Cassandra::Model;
|
||||
|
||||
DescribeSecurityGroupsResult::DescribeSecurityGroupsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeSecurityGroupsResult::DescribeSecurityGroupsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeSecurityGroupsResult::~DescribeSecurityGroupsResult()
|
||||
{}
|
||||
|
||||
void DescribeSecurityGroupsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allSecurityGroupIds = value["SecurityGroupIds"]["SecurityGroupId"];
|
||||
for (const auto &item : allSecurityGroupIds)
|
||||
securityGroupIds_.push_back(item.asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeSecurityGroupsResult::getSecurityGroupIds()const
|
||||
{
|
||||
return securityGroupIds_;
|
||||
}
|
||||
|
||||
73
cassandra/src/model/ExecuteNodeToolRequest.cc
Normal file
73
cassandra/src/model/ExecuteNodeToolRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/ExecuteNodeToolRequest.h>
|
||||
|
||||
using AlibabaCloud::Cassandra::Model::ExecuteNodeToolRequest;
|
||||
|
||||
ExecuteNodeToolRequest::ExecuteNodeToolRequest() :
|
||||
RpcServiceRequest("cassandra", "2019-01-01", "ExecuteNodeTool")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ExecuteNodeToolRequest::~ExecuteNodeToolRequest()
|
||||
{}
|
||||
|
||||
std::string ExecuteNodeToolRequest::getDataCenterId()const
|
||||
{
|
||||
return dataCenterId_;
|
||||
}
|
||||
|
||||
void ExecuteNodeToolRequest::setDataCenterId(const std::string& dataCenterId)
|
||||
{
|
||||
dataCenterId_ = dataCenterId;
|
||||
setParameter("DataCenterId", dataCenterId);
|
||||
}
|
||||
|
||||
std::string ExecuteNodeToolRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void ExecuteNodeToolRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string ExecuteNodeToolRequest::getCommand()const
|
||||
{
|
||||
return command_;
|
||||
}
|
||||
|
||||
void ExecuteNodeToolRequest::setCommand(const std::string& command)
|
||||
{
|
||||
command_ = command;
|
||||
setParameter("Command", command);
|
||||
}
|
||||
|
||||
std::string ExecuteNodeToolRequest::getArguments()const
|
||||
{
|
||||
return arguments_;
|
||||
}
|
||||
|
||||
void ExecuteNodeToolRequest::setArguments(const std::string& arguments)
|
||||
{
|
||||
arguments_ = arguments;
|
||||
setParameter("Arguments", arguments);
|
||||
}
|
||||
|
||||
44
cassandra/src/model/ExecuteNodeToolResult.cc
Normal file
44
cassandra/src/model/ExecuteNodeToolResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/ExecuteNodeToolResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cassandra;
|
||||
using namespace AlibabaCloud::Cassandra::Model;
|
||||
|
||||
ExecuteNodeToolResult::ExecuteNodeToolResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ExecuteNodeToolResult::ExecuteNodeToolResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ExecuteNodeToolResult::~ExecuteNodeToolResult()
|
||||
{}
|
||||
|
||||
void ExecuteNodeToolResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
40
cassandra/src/model/GetCmsUrlRequest.cc
Normal file
40
cassandra/src/model/GetCmsUrlRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES 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/cassandra/model/GetCmsUrlRequest.h>
|
||||
|
||||
using AlibabaCloud::Cassandra::Model::GetCmsUrlRequest;
|
||||
|
||||
GetCmsUrlRequest::GetCmsUrlRequest() :
|
||||
RpcServiceRequest("cassandra", "2019-01-01", "GetCmsUrl")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetCmsUrlRequest::~GetCmsUrlRequest()
|
||||
{}
|
||||
|
||||
std::string GetCmsUrlRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void GetCmsUrlRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
51
cassandra/src/model/GetCmsUrlResult.cc
Normal file
51
cassandra/src/model/GetCmsUrlResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/GetCmsUrlResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cassandra;
|
||||
using namespace AlibabaCloud::Cassandra::Model;
|
||||
|
||||
GetCmsUrlResult::GetCmsUrlResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetCmsUrlResult::GetCmsUrlResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetCmsUrlResult::~GetCmsUrlResult()
|
||||
{}
|
||||
|
||||
void GetCmsUrlResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Url"].isNull())
|
||||
url_ = value["Url"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetCmsUrlResult::getUrl()const
|
||||
{
|
||||
return url_;
|
||||
}
|
||||
|
||||
62
cassandra/src/model/ModifyAccountPasswordRequest.cc
Normal file
62
cassandra/src/model/ModifyAccountPasswordRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/ModifyAccountPasswordRequest.h>
|
||||
|
||||
using AlibabaCloud::Cassandra::Model::ModifyAccountPasswordRequest;
|
||||
|
||||
ModifyAccountPasswordRequest::ModifyAccountPasswordRequest() :
|
||||
RpcServiceRequest("cassandra", "2019-01-01", "ModifyAccountPassword")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyAccountPasswordRequest::~ModifyAccountPasswordRequest()
|
||||
{}
|
||||
|
||||
std::string ModifyAccountPasswordRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void ModifyAccountPasswordRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string ModifyAccountPasswordRequest::getPassword()const
|
||||
{
|
||||
return password_;
|
||||
}
|
||||
|
||||
void ModifyAccountPasswordRequest::setPassword(const std::string& password)
|
||||
{
|
||||
password_ = password;
|
||||
setParameter("Password", password);
|
||||
}
|
||||
|
||||
std::string ModifyAccountPasswordRequest::getAccount()const
|
||||
{
|
||||
return account_;
|
||||
}
|
||||
|
||||
void ModifyAccountPasswordRequest::setAccount(const std::string& account)
|
||||
{
|
||||
account_ = account;
|
||||
setParameter("Account", account);
|
||||
}
|
||||
|
||||
44
cassandra/src/model/ModifyAccountPasswordResult.cc
Normal file
44
cassandra/src/model/ModifyAccountPasswordResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/ModifyAccountPasswordResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cassandra;
|
||||
using namespace AlibabaCloud::Cassandra::Model;
|
||||
|
||||
ModifyAccountPasswordResult::ModifyAccountPasswordResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyAccountPasswordResult::ModifyAccountPasswordResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyAccountPasswordResult::~ModifyAccountPasswordResult()
|
||||
{}
|
||||
|
||||
void ModifyAccountPasswordResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
95
cassandra/src/model/ModifyBackupPlanRequest.cc
Normal file
95
cassandra/src/model/ModifyBackupPlanRequest.cc
Normal file
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/ModifyBackupPlanRequest.h>
|
||||
|
||||
using AlibabaCloud::Cassandra::Model::ModifyBackupPlanRequest;
|
||||
|
||||
ModifyBackupPlanRequest::ModifyBackupPlanRequest() :
|
||||
RpcServiceRequest("cassandra", "2019-01-01", "ModifyBackupPlan")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyBackupPlanRequest::~ModifyBackupPlanRequest()
|
||||
{}
|
||||
|
||||
int ModifyBackupPlanRequest::getRetentionPeriod()const
|
||||
{
|
||||
return retentionPeriod_;
|
||||
}
|
||||
|
||||
void ModifyBackupPlanRequest::setRetentionPeriod(int retentionPeriod)
|
||||
{
|
||||
retentionPeriod_ = retentionPeriod;
|
||||
setParameter("RetentionPeriod", std::to_string(retentionPeriod));
|
||||
}
|
||||
|
||||
std::string ModifyBackupPlanRequest::getDataCenterId()const
|
||||
{
|
||||
return dataCenterId_;
|
||||
}
|
||||
|
||||
void ModifyBackupPlanRequest::setDataCenterId(const std::string& dataCenterId)
|
||||
{
|
||||
dataCenterId_ = dataCenterId;
|
||||
setParameter("DataCenterId", dataCenterId);
|
||||
}
|
||||
|
||||
bool ModifyBackupPlanRequest::getActive()const
|
||||
{
|
||||
return active_;
|
||||
}
|
||||
|
||||
void ModifyBackupPlanRequest::setActive(bool active)
|
||||
{
|
||||
active_ = active;
|
||||
setParameter("Active", active ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ModifyBackupPlanRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void ModifyBackupPlanRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string ModifyBackupPlanRequest::getBackupTime()const
|
||||
{
|
||||
return backupTime_;
|
||||
}
|
||||
|
||||
void ModifyBackupPlanRequest::setBackupTime(const std::string& backupTime)
|
||||
{
|
||||
backupTime_ = backupTime;
|
||||
setParameter("BackupTime", backupTime);
|
||||
}
|
||||
|
||||
std::string ModifyBackupPlanRequest::getBackupPeriod()const
|
||||
{
|
||||
return backupPeriod_;
|
||||
}
|
||||
|
||||
void ModifyBackupPlanRequest::setBackupPeriod(const std::string& backupPeriod)
|
||||
{
|
||||
backupPeriod_ = backupPeriod;
|
||||
setParameter("BackupPeriod", backupPeriod);
|
||||
}
|
||||
|
||||
44
cassandra/src/model/ModifyBackupPlanResult.cc
Normal file
44
cassandra/src/model/ModifyBackupPlanResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/ModifyBackupPlanResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cassandra;
|
||||
using namespace AlibabaCloud::Cassandra::Model;
|
||||
|
||||
ModifyBackupPlanResult::ModifyBackupPlanResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyBackupPlanResult::ModifyBackupPlanResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyBackupPlanResult::~ModifyBackupPlanResult()
|
||||
{}
|
||||
|
||||
void ModifyBackupPlanResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
51
cassandra/src/model/ModifyClusterRequest.cc
Normal file
51
cassandra/src/model/ModifyClusterRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/ModifyClusterRequest.h>
|
||||
|
||||
using AlibabaCloud::Cassandra::Model::ModifyClusterRequest;
|
||||
|
||||
ModifyClusterRequest::ModifyClusterRequest() :
|
||||
RpcServiceRequest("cassandra", "2019-01-01", "ModifyCluster")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyClusterRequest::~ModifyClusterRequest()
|
||||
{}
|
||||
|
||||
std::string ModifyClusterRequest::getClusterName()const
|
||||
{
|
||||
return clusterName_;
|
||||
}
|
||||
|
||||
void ModifyClusterRequest::setClusterName(const std::string& clusterName)
|
||||
{
|
||||
clusterName_ = clusterName;
|
||||
setParameter("ClusterName", clusterName);
|
||||
}
|
||||
|
||||
std::string ModifyClusterRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void ModifyClusterRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
44
cassandra/src/model/ModifyClusterResult.cc
Normal file
44
cassandra/src/model/ModifyClusterResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/ModifyClusterResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cassandra;
|
||||
using namespace AlibabaCloud::Cassandra::Model;
|
||||
|
||||
ModifyClusterResult::ModifyClusterResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyClusterResult::ModifyClusterResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyClusterResult::~ModifyClusterResult()
|
||||
{}
|
||||
|
||||
void ModifyClusterResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
62
cassandra/src/model/ModifyDataCenterRequest.cc
Normal file
62
cassandra/src/model/ModifyDataCenterRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/ModifyDataCenterRequest.h>
|
||||
|
||||
using AlibabaCloud::Cassandra::Model::ModifyDataCenterRequest;
|
||||
|
||||
ModifyDataCenterRequest::ModifyDataCenterRequest() :
|
||||
RpcServiceRequest("cassandra", "2019-01-01", "ModifyDataCenter")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyDataCenterRequest::~ModifyDataCenterRequest()
|
||||
{}
|
||||
|
||||
std::string ModifyDataCenterRequest::getDataCenterId()const
|
||||
{
|
||||
return dataCenterId_;
|
||||
}
|
||||
|
||||
void ModifyDataCenterRequest::setDataCenterId(const std::string& dataCenterId)
|
||||
{
|
||||
dataCenterId_ = dataCenterId;
|
||||
setParameter("DataCenterId", dataCenterId);
|
||||
}
|
||||
|
||||
std::string ModifyDataCenterRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void ModifyDataCenterRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string ModifyDataCenterRequest::getDataCenterName()const
|
||||
{
|
||||
return dataCenterName_;
|
||||
}
|
||||
|
||||
void ModifyDataCenterRequest::setDataCenterName(const std::string& dataCenterName)
|
||||
{
|
||||
dataCenterName_ = dataCenterName;
|
||||
setParameter("DataCenterName", dataCenterName);
|
||||
}
|
||||
|
||||
44
cassandra/src/model/ModifyDataCenterResult.cc
Normal file
44
cassandra/src/model/ModifyDataCenterResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/ModifyDataCenterResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cassandra;
|
||||
using namespace AlibabaCloud::Cassandra::Model;
|
||||
|
||||
ModifyDataCenterResult::ModifyDataCenterResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyDataCenterResult::ModifyDataCenterResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyDataCenterResult::~ModifyDataCenterResult()
|
||||
{}
|
||||
|
||||
void ModifyDataCenterResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
62
cassandra/src/model/ModifyInstanceMaintainTimeRequest.cc
Normal file
62
cassandra/src/model/ModifyInstanceMaintainTimeRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/ModifyInstanceMaintainTimeRequest.h>
|
||||
|
||||
using AlibabaCloud::Cassandra::Model::ModifyInstanceMaintainTimeRequest;
|
||||
|
||||
ModifyInstanceMaintainTimeRequest::ModifyInstanceMaintainTimeRequest() :
|
||||
RpcServiceRequest("cassandra", "2019-01-01", "ModifyInstanceMaintainTime")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyInstanceMaintainTimeRequest::~ModifyInstanceMaintainTimeRequest()
|
||||
{}
|
||||
|
||||
std::string ModifyInstanceMaintainTimeRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void ModifyInstanceMaintainTimeRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string ModifyInstanceMaintainTimeRequest::getMaintainEndTime()const
|
||||
{
|
||||
return maintainEndTime_;
|
||||
}
|
||||
|
||||
void ModifyInstanceMaintainTimeRequest::setMaintainEndTime(const std::string& maintainEndTime)
|
||||
{
|
||||
maintainEndTime_ = maintainEndTime;
|
||||
setParameter("MaintainEndTime", maintainEndTime);
|
||||
}
|
||||
|
||||
std::string ModifyInstanceMaintainTimeRequest::getMaintainStartTime()const
|
||||
{
|
||||
return maintainStartTime_;
|
||||
}
|
||||
|
||||
void ModifyInstanceMaintainTimeRequest::setMaintainStartTime(const std::string& maintainStartTime)
|
||||
{
|
||||
maintainStartTime_ = maintainStartTime;
|
||||
setParameter("MaintainStartTime", maintainStartTime);
|
||||
}
|
||||
|
||||
44
cassandra/src/model/ModifyInstanceMaintainTimeResult.cc
Normal file
44
cassandra/src/model/ModifyInstanceMaintainTimeResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/ModifyInstanceMaintainTimeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cassandra;
|
||||
using namespace AlibabaCloud::Cassandra::Model;
|
||||
|
||||
ModifyInstanceMaintainTimeResult::ModifyInstanceMaintainTimeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyInstanceMaintainTimeResult::ModifyInstanceMaintainTimeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyInstanceMaintainTimeResult::~ModifyInstanceMaintainTimeResult()
|
||||
{}
|
||||
|
||||
void ModifyInstanceMaintainTimeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
62
cassandra/src/model/ModifyInstanceTypeRequest.cc
Normal file
62
cassandra/src/model/ModifyInstanceTypeRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/ModifyInstanceTypeRequest.h>
|
||||
|
||||
using AlibabaCloud::Cassandra::Model::ModifyInstanceTypeRequest;
|
||||
|
||||
ModifyInstanceTypeRequest::ModifyInstanceTypeRequest() :
|
||||
RpcServiceRequest("cassandra", "2019-01-01", "ModifyInstanceType")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyInstanceTypeRequest::~ModifyInstanceTypeRequest()
|
||||
{}
|
||||
|
||||
std::string ModifyInstanceTypeRequest::getDataCenterId()const
|
||||
{
|
||||
return dataCenterId_;
|
||||
}
|
||||
|
||||
void ModifyInstanceTypeRequest::setDataCenterId(const std::string& dataCenterId)
|
||||
{
|
||||
dataCenterId_ = dataCenterId;
|
||||
setParameter("DataCenterId", dataCenterId);
|
||||
}
|
||||
|
||||
std::string ModifyInstanceTypeRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void ModifyInstanceTypeRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string ModifyInstanceTypeRequest::getInstanceType()const
|
||||
{
|
||||
return instanceType_;
|
||||
}
|
||||
|
||||
void ModifyInstanceTypeRequest::setInstanceType(const std::string& instanceType)
|
||||
{
|
||||
instanceType_ = instanceType;
|
||||
setParameter("InstanceType", instanceType);
|
||||
}
|
||||
|
||||
44
cassandra/src/model/ModifyInstanceTypeResult.cc
Normal file
44
cassandra/src/model/ModifyInstanceTypeResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/ModifyInstanceTypeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cassandra;
|
||||
using namespace AlibabaCloud::Cassandra::Model;
|
||||
|
||||
ModifyInstanceTypeResult::ModifyInstanceTypeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyInstanceTypeResult::ModifyInstanceTypeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyInstanceTypeResult::~ModifyInstanceTypeResult()
|
||||
{}
|
||||
|
||||
void ModifyInstanceTypeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
73
cassandra/src/model/ModifyIpWhitelistGroupRequest.cc
Normal file
73
cassandra/src/model/ModifyIpWhitelistGroupRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/ModifyIpWhitelistGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::Cassandra::Model::ModifyIpWhitelistGroupRequest;
|
||||
|
||||
ModifyIpWhitelistGroupRequest::ModifyIpWhitelistGroupRequest() :
|
||||
RpcServiceRequest("cassandra", "2019-01-01", "ModifyIpWhitelistGroup")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyIpWhitelistGroupRequest::~ModifyIpWhitelistGroupRequest()
|
||||
{}
|
||||
|
||||
std::string ModifyIpWhitelistGroupRequest::getIpList()const
|
||||
{
|
||||
return ipList_;
|
||||
}
|
||||
|
||||
void ModifyIpWhitelistGroupRequest::setIpList(const std::string& ipList)
|
||||
{
|
||||
ipList_ = ipList;
|
||||
setParameter("IpList", ipList);
|
||||
}
|
||||
|
||||
int ModifyIpWhitelistGroupRequest::getIpVersion()const
|
||||
{
|
||||
return ipVersion_;
|
||||
}
|
||||
|
||||
void ModifyIpWhitelistGroupRequest::setIpVersion(int ipVersion)
|
||||
{
|
||||
ipVersion_ = ipVersion;
|
||||
setParameter("IpVersion", std::to_string(ipVersion));
|
||||
}
|
||||
|
||||
std::string ModifyIpWhitelistGroupRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void ModifyIpWhitelistGroupRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string ModifyIpWhitelistGroupRequest::getGroupName()const
|
||||
{
|
||||
return groupName_;
|
||||
}
|
||||
|
||||
void ModifyIpWhitelistGroupRequest::setGroupName(const std::string& groupName)
|
||||
{
|
||||
groupName_ = groupName;
|
||||
setParameter("GroupName", groupName);
|
||||
}
|
||||
|
||||
44
cassandra/src/model/ModifyIpWhitelistGroupResult.cc
Normal file
44
cassandra/src/model/ModifyIpWhitelistGroupResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/ModifyIpWhitelistGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cassandra;
|
||||
using namespace AlibabaCloud::Cassandra::Model;
|
||||
|
||||
ModifyIpWhitelistGroupResult::ModifyIpWhitelistGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyIpWhitelistGroupResult::ModifyIpWhitelistGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyIpWhitelistGroupResult::~ModifyIpWhitelistGroupResult()
|
||||
{}
|
||||
|
||||
void ModifyIpWhitelistGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
51
cassandra/src/model/ModifyIpWhitelistRequest.cc
Normal file
51
cassandra/src/model/ModifyIpWhitelistRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/ModifyIpWhitelistRequest.h>
|
||||
|
||||
using AlibabaCloud::Cassandra::Model::ModifyIpWhitelistRequest;
|
||||
|
||||
ModifyIpWhitelistRequest::ModifyIpWhitelistRequest() :
|
||||
RpcServiceRequest("cassandra", "2019-01-01", "ModifyIpWhitelist")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyIpWhitelistRequest::~ModifyIpWhitelistRequest()
|
||||
{}
|
||||
|
||||
std::string ModifyIpWhitelistRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void ModifyIpWhitelistRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string ModifyIpWhitelistRequest::getIpList()const
|
||||
{
|
||||
return ipList_;
|
||||
}
|
||||
|
||||
void ModifyIpWhitelistRequest::setIpList(const std::string& ipList)
|
||||
{
|
||||
ipList_ = ipList;
|
||||
setParameter("IpList", ipList);
|
||||
}
|
||||
|
||||
44
cassandra/src/model/ModifyIpWhitelistResult.cc
Normal file
44
cassandra/src/model/ModifyIpWhitelistResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/ModifyIpWhitelistResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cassandra;
|
||||
using namespace AlibabaCloud::Cassandra::Model;
|
||||
|
||||
ModifyIpWhitelistResult::ModifyIpWhitelistResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyIpWhitelistResult::ModifyIpWhitelistResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyIpWhitelistResult::~ModifyIpWhitelistResult()
|
||||
{}
|
||||
|
||||
void ModifyIpWhitelistResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
62
cassandra/src/model/ModifyParameterRequest.cc
Normal file
62
cassandra/src/model/ModifyParameterRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/ModifyParameterRequest.h>
|
||||
|
||||
using AlibabaCloud::Cassandra::Model::ModifyParameterRequest;
|
||||
|
||||
ModifyParameterRequest::ModifyParameterRequest() :
|
||||
RpcServiceRequest("cassandra", "2019-01-01", "ModifyParameter")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyParameterRequest::~ModifyParameterRequest()
|
||||
{}
|
||||
|
||||
std::string ModifyParameterRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void ModifyParameterRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string ModifyParameterRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void ModifyParameterRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string ModifyParameterRequest::getValue()const
|
||||
{
|
||||
return value_;
|
||||
}
|
||||
|
||||
void ModifyParameterRequest::setValue(const std::string& value)
|
||||
{
|
||||
value_ = value;
|
||||
setParameter("Value", value);
|
||||
}
|
||||
|
||||
44
cassandra/src/model/ModifyParameterResult.cc
Normal file
44
cassandra/src/model/ModifyParameterResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/ModifyParameterResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cassandra;
|
||||
using namespace AlibabaCloud::Cassandra::Model;
|
||||
|
||||
ModifyParameterResult::ModifyParameterResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyParameterResult::ModifyParameterResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyParameterResult::~ModifyParameterResult()
|
||||
{}
|
||||
|
||||
void ModifyParameterResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
51
cassandra/src/model/ModifySecurityGroupsRequest.cc
Normal file
51
cassandra/src/model/ModifySecurityGroupsRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/ModifySecurityGroupsRequest.h>
|
||||
|
||||
using AlibabaCloud::Cassandra::Model::ModifySecurityGroupsRequest;
|
||||
|
||||
ModifySecurityGroupsRequest::ModifySecurityGroupsRequest() :
|
||||
RpcServiceRequest("cassandra", "2019-01-01", "ModifySecurityGroups")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifySecurityGroupsRequest::~ModifySecurityGroupsRequest()
|
||||
{}
|
||||
|
||||
std::string ModifySecurityGroupsRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void ModifySecurityGroupsRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string ModifySecurityGroupsRequest::getSecurityGroupIds()const
|
||||
{
|
||||
return securityGroupIds_;
|
||||
}
|
||||
|
||||
void ModifySecurityGroupsRequest::setSecurityGroupIds(const std::string& securityGroupIds)
|
||||
{
|
||||
securityGroupIds_ = securityGroupIds;
|
||||
setParameter("SecurityGroupIds", securityGroupIds);
|
||||
}
|
||||
|
||||
44
cassandra/src/model/ModifySecurityGroupsResult.cc
Normal file
44
cassandra/src/model/ModifySecurityGroupsResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/ModifySecurityGroupsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cassandra;
|
||||
using namespace AlibabaCloud::Cassandra::Model;
|
||||
|
||||
ModifySecurityGroupsResult::ModifySecurityGroupsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifySecurityGroupsResult::ModifySecurityGroupsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifySecurityGroupsResult::~ModifySecurityGroupsResult()
|
||||
{}
|
||||
|
||||
void ModifySecurityGroupsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
40
cassandra/src/model/PurgeClusterRequest.cc
Normal file
40
cassandra/src/model/PurgeClusterRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES 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/cassandra/model/PurgeClusterRequest.h>
|
||||
|
||||
using AlibabaCloud::Cassandra::Model::PurgeClusterRequest;
|
||||
|
||||
PurgeClusterRequest::PurgeClusterRequest() :
|
||||
RpcServiceRequest("cassandra", "2019-01-01", "PurgeCluster")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
PurgeClusterRequest::~PurgeClusterRequest()
|
||||
{}
|
||||
|
||||
std::string PurgeClusterRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void PurgeClusterRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
44
cassandra/src/model/PurgeClusterResult.cc
Normal file
44
cassandra/src/model/PurgeClusterResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/PurgeClusterResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cassandra;
|
||||
using namespace AlibabaCloud::Cassandra::Model;
|
||||
|
||||
PurgeClusterResult::PurgeClusterResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
PurgeClusterResult::PurgeClusterResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
PurgeClusterResult::~PurgeClusterResult()
|
||||
{}
|
||||
|
||||
void PurgeClusterResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
40
cassandra/src/model/RebootClusterRequest.cc
Normal file
40
cassandra/src/model/RebootClusterRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES 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/cassandra/model/RebootClusterRequest.h>
|
||||
|
||||
using AlibabaCloud::Cassandra::Model::RebootClusterRequest;
|
||||
|
||||
RebootClusterRequest::RebootClusterRequest() :
|
||||
RpcServiceRequest("cassandra", "2019-01-01", "RebootCluster")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
RebootClusterRequest::~RebootClusterRequest()
|
||||
{}
|
||||
|
||||
std::string RebootClusterRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void RebootClusterRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
44
cassandra/src/model/RebootClusterResult.cc
Normal file
44
cassandra/src/model/RebootClusterResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/RebootClusterResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cassandra;
|
||||
using namespace AlibabaCloud::Cassandra::Model;
|
||||
|
||||
RebootClusterResult::RebootClusterResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
RebootClusterResult::RebootClusterResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
RebootClusterResult::~RebootClusterResult()
|
||||
{}
|
||||
|
||||
void RebootClusterResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
51
cassandra/src/model/ReleasePublicContactPointsRequest.cc
Normal file
51
cassandra/src/model/ReleasePublicContactPointsRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/ReleasePublicContactPointsRequest.h>
|
||||
|
||||
using AlibabaCloud::Cassandra::Model::ReleasePublicContactPointsRequest;
|
||||
|
||||
ReleasePublicContactPointsRequest::ReleasePublicContactPointsRequest() :
|
||||
RpcServiceRequest("cassandra", "2019-01-01", "ReleasePublicContactPoints")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ReleasePublicContactPointsRequest::~ReleasePublicContactPointsRequest()
|
||||
{}
|
||||
|
||||
std::string ReleasePublicContactPointsRequest::getDataCenterId()const
|
||||
{
|
||||
return dataCenterId_;
|
||||
}
|
||||
|
||||
void ReleasePublicContactPointsRequest::setDataCenterId(const std::string& dataCenterId)
|
||||
{
|
||||
dataCenterId_ = dataCenterId;
|
||||
setParameter("DataCenterId", dataCenterId);
|
||||
}
|
||||
|
||||
std::string ReleasePublicContactPointsRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void ReleasePublicContactPointsRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
44
cassandra/src/model/ReleasePublicContactPointsResult.cc
Normal file
44
cassandra/src/model/ReleasePublicContactPointsResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/ReleasePublicContactPointsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cassandra;
|
||||
using namespace AlibabaCloud::Cassandra::Model;
|
||||
|
||||
ReleasePublicContactPointsResult::ReleasePublicContactPointsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ReleasePublicContactPointsResult::ReleasePublicContactPointsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ReleasePublicContactPointsResult::~ReleasePublicContactPointsResult()
|
||||
{}
|
||||
|
||||
void ReleasePublicContactPointsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
62
cassandra/src/model/ResizeDiskSizeRequest.cc
Normal file
62
cassandra/src/model/ResizeDiskSizeRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/ResizeDiskSizeRequest.h>
|
||||
|
||||
using AlibabaCloud::Cassandra::Model::ResizeDiskSizeRequest;
|
||||
|
||||
ResizeDiskSizeRequest::ResizeDiskSizeRequest() :
|
||||
RpcServiceRequest("cassandra", "2019-01-01", "ResizeDiskSize")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ResizeDiskSizeRequest::~ResizeDiskSizeRequest()
|
||||
{}
|
||||
|
||||
int ResizeDiskSizeRequest::getDiskSize()const
|
||||
{
|
||||
return diskSize_;
|
||||
}
|
||||
|
||||
void ResizeDiskSizeRequest::setDiskSize(int diskSize)
|
||||
{
|
||||
diskSize_ = diskSize;
|
||||
setParameter("DiskSize", std::to_string(diskSize));
|
||||
}
|
||||
|
||||
std::string ResizeDiskSizeRequest::getDataCenterId()const
|
||||
{
|
||||
return dataCenterId_;
|
||||
}
|
||||
|
||||
void ResizeDiskSizeRequest::setDataCenterId(const std::string& dataCenterId)
|
||||
{
|
||||
dataCenterId_ = dataCenterId;
|
||||
setParameter("DataCenterId", dataCenterId);
|
||||
}
|
||||
|
||||
std::string ResizeDiskSizeRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void ResizeDiskSizeRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
44
cassandra/src/model/ResizeDiskSizeResult.cc
Normal file
44
cassandra/src/model/ResizeDiskSizeResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/ResizeDiskSizeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cassandra;
|
||||
using namespace AlibabaCloud::Cassandra::Model;
|
||||
|
||||
ResizeDiskSizeResult::ResizeDiskSizeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ResizeDiskSizeResult::ResizeDiskSizeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ResizeDiskSizeResult::~ResizeDiskSizeResult()
|
||||
{}
|
||||
|
||||
void ResizeDiskSizeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
62
cassandra/src/model/ResizeNodeCountRequest.cc
Normal file
62
cassandra/src/model/ResizeNodeCountRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/ResizeNodeCountRequest.h>
|
||||
|
||||
using AlibabaCloud::Cassandra::Model::ResizeNodeCountRequest;
|
||||
|
||||
ResizeNodeCountRequest::ResizeNodeCountRequest() :
|
||||
RpcServiceRequest("cassandra", "2019-01-01", "ResizeNodeCount")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ResizeNodeCountRequest::~ResizeNodeCountRequest()
|
||||
{}
|
||||
|
||||
std::string ResizeNodeCountRequest::getDataCenterId()const
|
||||
{
|
||||
return dataCenterId_;
|
||||
}
|
||||
|
||||
void ResizeNodeCountRequest::setDataCenterId(const std::string& dataCenterId)
|
||||
{
|
||||
dataCenterId_ = dataCenterId;
|
||||
setParameter("DataCenterId", dataCenterId);
|
||||
}
|
||||
|
||||
std::string ResizeNodeCountRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void ResizeNodeCountRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
int ResizeNodeCountRequest::getNodeCount()const
|
||||
{
|
||||
return nodeCount_;
|
||||
}
|
||||
|
||||
void ResizeNodeCountRequest::setNodeCount(int nodeCount)
|
||||
{
|
||||
nodeCount_ = nodeCount;
|
||||
setParameter("NodeCount", std::to_string(nodeCount));
|
||||
}
|
||||
|
||||
44
cassandra/src/model/ResizeNodeCountResult.cc
Normal file
44
cassandra/src/model/ResizeNodeCountResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/ResizeNodeCountResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cassandra;
|
||||
using namespace AlibabaCloud::Cassandra::Model;
|
||||
|
||||
ResizeNodeCountResult::ResizeNodeCountResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ResizeNodeCountResult::ResizeNodeCountResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ResizeNodeCountResult::~ResizeNodeCountResult()
|
||||
{}
|
||||
|
||||
void ResizeNodeCountResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
40
cassandra/src/model/UpgradeClusterVersionRequest.cc
Normal file
40
cassandra/src/model/UpgradeClusterVersionRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES 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/cassandra/model/UpgradeClusterVersionRequest.h>
|
||||
|
||||
using AlibabaCloud::Cassandra::Model::UpgradeClusterVersionRequest;
|
||||
|
||||
UpgradeClusterVersionRequest::UpgradeClusterVersionRequest() :
|
||||
RpcServiceRequest("cassandra", "2019-01-01", "UpgradeClusterVersion")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpgradeClusterVersionRequest::~UpgradeClusterVersionRequest()
|
||||
{}
|
||||
|
||||
std::string UpgradeClusterVersionRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void UpgradeClusterVersionRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
44
cassandra/src/model/UpgradeClusterVersionResult.cc
Normal file
44
cassandra/src/model/UpgradeClusterVersionResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/UpgradeClusterVersionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cassandra;
|
||||
using namespace AlibabaCloud::Cassandra::Model;
|
||||
|
||||
UpgradeClusterVersionResult::UpgradeClusterVersionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpgradeClusterVersionResult::UpgradeClusterVersionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpgradeClusterVersionResult::~UpgradeClusterVersionResult()
|
||||
{}
|
||||
|
||||
void UpgradeClusterVersionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user