Support modifyInstnaceType.
This commit is contained in:
51
hbase/src/model/DescribeClusterConnectionRequest.cc
Normal file
51
hbase/src/model/DescribeClusterConnectionRequest.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/hbase/model/DescribeClusterConnectionRequest.h>
|
||||
|
||||
using AlibabaCloud::HBase::Model::DescribeClusterConnectionRequest;
|
||||
|
||||
DescribeClusterConnectionRequest::DescribeClusterConnectionRequest() :
|
||||
RpcServiceRequest("hbase", "2019-01-01", "DescribeClusterConnection")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeClusterConnectionRequest::~DescribeClusterConnectionRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeClusterConnectionRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DescribeClusterConnectionRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string DescribeClusterConnectionRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeClusterConnectionRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
160
hbase/src/model/DescribeClusterConnectionResult.cc
Normal file
160
hbase/src/model/DescribeClusterConnectionResult.cc
Normal file
@@ -0,0 +1,160 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/hbase/model/DescribeClusterConnectionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::HBase;
|
||||
using namespace AlibabaCloud::HBase::Model;
|
||||
|
||||
DescribeClusterConnectionResult::DescribeClusterConnectionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeClusterConnectionResult::DescribeClusterConnectionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeClusterConnectionResult::~DescribeClusterConnectionResult()
|
||||
{}
|
||||
|
||||
void DescribeClusterConnectionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allZkConnAddrsNode = value["ZkConnAddrs"]["ZkConnAddr"];
|
||||
for (auto valueZkConnAddrsZkConnAddr : allZkConnAddrsNode)
|
||||
{
|
||||
ZkConnAddr zkConnAddrsObject;
|
||||
if(!valueZkConnAddrsZkConnAddr["ConnAddr"].isNull())
|
||||
zkConnAddrsObject.connAddr = valueZkConnAddrsZkConnAddr["ConnAddr"].asString();
|
||||
if(!valueZkConnAddrsZkConnAddr["ConnAddrPort"].isNull())
|
||||
zkConnAddrsObject.connAddrPort = valueZkConnAddrsZkConnAddr["ConnAddrPort"].asString();
|
||||
if(!valueZkConnAddrsZkConnAddr["NetType"].isNull())
|
||||
zkConnAddrsObject.netType = valueZkConnAddrsZkConnAddr["NetType"].asString();
|
||||
zkConnAddrs_.push_back(zkConnAddrsObject);
|
||||
}
|
||||
auto allSlbConnAddrsNode = value["SlbConnAddrs"]["SlbConnAddr"];
|
||||
for (auto valueSlbConnAddrsSlbConnAddr : allSlbConnAddrsNode)
|
||||
{
|
||||
SlbConnAddr slbConnAddrsObject;
|
||||
if(!valueSlbConnAddrsSlbConnAddr["SlbType"].isNull())
|
||||
slbConnAddrsObject.slbType = valueSlbConnAddrsSlbConnAddr["SlbType"].asString();
|
||||
auto connAddrInfoNode = value["ConnAddrInfo"];
|
||||
if(!connAddrInfoNode["ConnAddr"].isNull())
|
||||
slbConnAddrsObject.connAddrInfo.connAddr = connAddrInfoNode["ConnAddr"].asString();
|
||||
if(!connAddrInfoNode["ConnAddrPort"].isNull())
|
||||
slbConnAddrsObject.connAddrInfo.connAddrPort = connAddrInfoNode["ConnAddrPort"].asString();
|
||||
if(!connAddrInfoNode["NetType"].isNull())
|
||||
slbConnAddrsObject.connAddrInfo.netType = connAddrInfoNode["NetType"].asString();
|
||||
slbConnAddrs_.push_back(slbConnAddrsObject);
|
||||
}
|
||||
auto allServiceConnAddrsNode = value["ServiceConnAddrs"]["ServiceConnAddr"];
|
||||
for (auto valueServiceConnAddrsServiceConnAddr : allServiceConnAddrsNode)
|
||||
{
|
||||
ServiceConnAddr serviceConnAddrsObject;
|
||||
if(!valueServiceConnAddrsServiceConnAddr["ConnType"].isNull())
|
||||
serviceConnAddrsObject.connType = valueServiceConnAddrsServiceConnAddr["ConnType"].asString();
|
||||
auto connAddrInfo1Node = value["ConnAddrInfo"];
|
||||
if(!connAddrInfo1Node["ConnAddr"].isNull())
|
||||
serviceConnAddrsObject.connAddrInfo1.connAddr = connAddrInfo1Node["ConnAddr"].asString();
|
||||
if(!connAddrInfo1Node["ConnAddrPort"].isNull())
|
||||
serviceConnAddrsObject.connAddrInfo1.connAddrPort = connAddrInfo1Node["ConnAddrPort"].asString();
|
||||
if(!connAddrInfo1Node["NetType"].isNull())
|
||||
serviceConnAddrsObject.connAddrInfo1.netType = connAddrInfo1Node["NetType"].asString();
|
||||
serviceConnAddrs_.push_back(serviceConnAddrsObject);
|
||||
}
|
||||
auto uiProxyConnAddrInfoNode = value["UiProxyConnAddrInfo"];
|
||||
if(!uiProxyConnAddrInfoNode["ConnAddr"].isNull())
|
||||
uiProxyConnAddrInfo_.connAddr = uiProxyConnAddrInfoNode["ConnAddr"].asString();
|
||||
if(!uiProxyConnAddrInfoNode["ConnAddrPort"].isNull())
|
||||
uiProxyConnAddrInfo_.connAddrPort = uiProxyConnAddrInfoNode["ConnAddrPort"].asString();
|
||||
if(!uiProxyConnAddrInfoNode["NetType"].isNull())
|
||||
uiProxyConnAddrInfo_.netType = uiProxyConnAddrInfoNode["NetType"].asString();
|
||||
auto thriftConnNode = value["ThriftConn"];
|
||||
if(!thriftConnNode["ConnAddr"].isNull())
|
||||
thriftConn_.connAddr = thriftConnNode["ConnAddr"].asString();
|
||||
if(!thriftConnNode["ConnAddrPort"].isNull())
|
||||
thriftConn_.connAddrPort = thriftConnNode["ConnAddrPort"].asString();
|
||||
if(!thriftConnNode["NetType"].isNull())
|
||||
thriftConn_.netType = thriftConnNode["NetType"].asString();
|
||||
if(!value["NetType"].isNull())
|
||||
netType_ = value["NetType"].asString();
|
||||
if(!value["VpcId"].isNull())
|
||||
vpcId_ = value["VpcId"].asString();
|
||||
if(!value["VSwitchId"].isNull())
|
||||
vSwitchId_ = value["VSwitchId"].asString();
|
||||
if(!value["DbType"].isNull())
|
||||
dbType_ = value["DbType"].asString();
|
||||
if(!value["IsMultimod"].isNull())
|
||||
isMultimod_ = value["IsMultimod"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeClusterConnectionResult::getIsMultimod()const
|
||||
{
|
||||
return isMultimod_;
|
||||
}
|
||||
|
||||
DescribeClusterConnectionResult::UiProxyConnAddrInfo DescribeClusterConnectionResult::getUiProxyConnAddrInfo()const
|
||||
{
|
||||
return uiProxyConnAddrInfo_;
|
||||
}
|
||||
|
||||
std::string DescribeClusterConnectionResult::getVpcId()const
|
||||
{
|
||||
return vpcId_;
|
||||
}
|
||||
|
||||
std::string DescribeClusterConnectionResult::getVSwitchId()const
|
||||
{
|
||||
return vSwitchId_;
|
||||
}
|
||||
|
||||
std::vector<DescribeClusterConnectionResult::ServiceConnAddr> DescribeClusterConnectionResult::getServiceConnAddrs()const
|
||||
{
|
||||
return serviceConnAddrs_;
|
||||
}
|
||||
|
||||
std::string DescribeClusterConnectionResult::getNetType()const
|
||||
{
|
||||
return netType_;
|
||||
}
|
||||
|
||||
DescribeClusterConnectionResult::ThriftConn DescribeClusterConnectionResult::getThriftConn()const
|
||||
{
|
||||
return thriftConn_;
|
||||
}
|
||||
|
||||
std::string DescribeClusterConnectionResult::getDbType()const
|
||||
{
|
||||
return dbType_;
|
||||
}
|
||||
|
||||
std::vector<DescribeClusterConnectionResult::ZkConnAddr> DescribeClusterConnectionResult::getZkConnAddrs()const
|
||||
{
|
||||
return zkConnAddrs_;
|
||||
}
|
||||
|
||||
std::vector<DescribeClusterConnectionResult::SlbConnAddr> DescribeClusterConnectionResult::getSlbConnAddrs()const
|
||||
{
|
||||
return slbConnAddrs_;
|
||||
}
|
||||
|
||||
40
hbase/src/model/DescribeDiskWarningLineRequest.cc
Normal file
40
hbase/src/model/DescribeDiskWarningLineRequest.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/hbase/model/DescribeDiskWarningLineRequest.h>
|
||||
|
||||
using AlibabaCloud::HBase::Model::DescribeDiskWarningLineRequest;
|
||||
|
||||
DescribeDiskWarningLineRequest::DescribeDiskWarningLineRequest() :
|
||||
RpcServiceRequest("hbase", "2019-01-01", "DescribeDiskWarningLine")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDiskWarningLineRequest::~DescribeDiskWarningLineRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeDiskWarningLineRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DescribeDiskWarningLineRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
51
hbase/src/model/DescribeDiskWarningLineResult.cc
Normal file
51
hbase/src/model/DescribeDiskWarningLineResult.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/hbase/model/DescribeDiskWarningLineResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::HBase;
|
||||
using namespace AlibabaCloud::HBase::Model;
|
||||
|
||||
DescribeDiskWarningLineResult::DescribeDiskWarningLineResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDiskWarningLineResult::DescribeDiskWarningLineResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDiskWarningLineResult::~DescribeDiskWarningLineResult()
|
||||
{}
|
||||
|
||||
void DescribeDiskWarningLineResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["WarningLine"].isNull())
|
||||
warningLine_ = value["WarningLine"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeDiskWarningLineResult::getWarningLine()const
|
||||
{
|
||||
return warningLine_;
|
||||
}
|
||||
|
||||
51
hbase/src/model/ModifyDiskWarningLineRequest.cc
Normal file
51
hbase/src/model/ModifyDiskWarningLineRequest.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/hbase/model/ModifyDiskWarningLineRequest.h>
|
||||
|
||||
using AlibabaCloud::HBase::Model::ModifyDiskWarningLineRequest;
|
||||
|
||||
ModifyDiskWarningLineRequest::ModifyDiskWarningLineRequest() :
|
||||
RpcServiceRequest("hbase", "2019-01-01", "ModifyDiskWarningLine")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyDiskWarningLineRequest::~ModifyDiskWarningLineRequest()
|
||||
{}
|
||||
|
||||
std::string ModifyDiskWarningLineRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void ModifyDiskWarningLineRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
int ModifyDiskWarningLineRequest::getWarningLine()const
|
||||
{
|
||||
return warningLine_;
|
||||
}
|
||||
|
||||
void ModifyDiskWarningLineRequest::setWarningLine(int warningLine)
|
||||
{
|
||||
warningLine_ = warningLine;
|
||||
setParameter("WarningLine", std::to_string(warningLine));
|
||||
}
|
||||
|
||||
44
hbase/src/model/ModifyDiskWarningLineResult.cc
Normal file
44
hbase/src/model/ModifyDiskWarningLineResult.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/hbase/model/ModifyDiskWarningLineResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::HBase;
|
||||
using namespace AlibabaCloud::HBase::Model;
|
||||
|
||||
ModifyDiskWarningLineResult::ModifyDiskWarningLineResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyDiskWarningLineResult::ModifyDiskWarningLineResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyDiskWarningLineResult::~ModifyDiskWarningLineResult()
|
||||
{}
|
||||
|
||||
void ModifyDiskWarningLineResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
62
hbase/src/model/ModifyInstanceTypeRequest.cc
Normal file
62
hbase/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/hbase/model/ModifyInstanceTypeRequest.h>
|
||||
|
||||
using AlibabaCloud::HBase::Model::ModifyInstanceTypeRequest;
|
||||
|
||||
ModifyInstanceTypeRequest::ModifyInstanceTypeRequest() :
|
||||
RpcServiceRequest("hbase", "2019-01-01", "ModifyInstanceType")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyInstanceTypeRequest::~ModifyInstanceTypeRequest()
|
||||
{}
|
||||
|
||||
std::string ModifyInstanceTypeRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void ModifyInstanceTypeRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string ModifyInstanceTypeRequest::getMasterInstanceType()const
|
||||
{
|
||||
return masterInstanceType_;
|
||||
}
|
||||
|
||||
void ModifyInstanceTypeRequest::setMasterInstanceType(const std::string& masterInstanceType)
|
||||
{
|
||||
masterInstanceType_ = masterInstanceType;
|
||||
setParameter("MasterInstanceType", masterInstanceType);
|
||||
}
|
||||
|
||||
std::string ModifyInstanceTypeRequest::getCoreInstanceType()const
|
||||
{
|
||||
return coreInstanceType_;
|
||||
}
|
||||
|
||||
void ModifyInstanceTypeRequest::setCoreInstanceType(const std::string& coreInstanceType)
|
||||
{
|
||||
coreInstanceType_ = coreInstanceType;
|
||||
setParameter("CoreInstanceType", coreInstanceType);
|
||||
}
|
||||
|
||||
51
hbase/src/model/ModifyInstanceTypeResult.cc
Normal file
51
hbase/src/model/ModifyInstanceTypeResult.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/hbase/model/ModifyInstanceTypeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::HBase;
|
||||
using namespace AlibabaCloud::HBase::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());
|
||||
if(!value["OrderId"].isNull())
|
||||
orderId_ = value["OrderId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ModifyInstanceTypeResult::getOrderId()const
|
||||
{
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
51
hbase/src/model/ResizeColdStorageSizeRequest.cc
Normal file
51
hbase/src/model/ResizeColdStorageSizeRequest.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/hbase/model/ResizeColdStorageSizeRequest.h>
|
||||
|
||||
using AlibabaCloud::HBase::Model::ResizeColdStorageSizeRequest;
|
||||
|
||||
ResizeColdStorageSizeRequest::ResizeColdStorageSizeRequest() :
|
||||
RpcServiceRequest("hbase", "2019-01-01", "ResizeColdStorageSize")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ResizeColdStorageSizeRequest::~ResizeColdStorageSizeRequest()
|
||||
{}
|
||||
|
||||
std::string ResizeColdStorageSizeRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void ResizeColdStorageSizeRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
int ResizeColdStorageSizeRequest::getColdStorageSize()const
|
||||
{
|
||||
return coldStorageSize_;
|
||||
}
|
||||
|
||||
void ResizeColdStorageSizeRequest::setColdStorageSize(int coldStorageSize)
|
||||
{
|
||||
coldStorageSize_ = coldStorageSize;
|
||||
setParameter("ColdStorageSize", std::to_string(coldStorageSize));
|
||||
}
|
||||
|
||||
51
hbase/src/model/ResizeColdStorageSizeResult.cc
Normal file
51
hbase/src/model/ResizeColdStorageSizeResult.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/hbase/model/ResizeColdStorageSizeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::HBase;
|
||||
using namespace AlibabaCloud::HBase::Model;
|
||||
|
||||
ResizeColdStorageSizeResult::ResizeColdStorageSizeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ResizeColdStorageSizeResult::ResizeColdStorageSizeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ResizeColdStorageSizeResult::~ResizeColdStorageSizeResult()
|
||||
{}
|
||||
|
||||
void ResizeColdStorageSizeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["OrderId"].isNull())
|
||||
orderId_ = value["OrderId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ResizeColdStorageSizeResult::getOrderId()const
|
||||
{
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user