Generated 2019-01-01 for HBase.

This commit is contained in:
sdk-team
2019-12-04 21:02:23 +08:00
parent 3da02ee896
commit 099e528d4d
47 changed files with 2737 additions and 1 deletions

View 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/hbase/model/CreateHbaseHaSlbRequest.h>
using AlibabaCloud::HBase::Model::CreateHbaseHaSlbRequest;
CreateHbaseHaSlbRequest::CreateHbaseHaSlbRequest() :
RpcServiceRequest("hbase", "2019-01-01", "CreateHbaseHaSlb")
{
setMethod(HttpRequest::Method::Post);
}
CreateHbaseHaSlbRequest::~CreateHbaseHaSlbRequest()
{}
std::string CreateHbaseHaSlbRequest::getHaTypes()const
{
return haTypes_;
}
void CreateHbaseHaSlbRequest::setHaTypes(const std::string& haTypes)
{
haTypes_ = haTypes;
setCoreParameter("HaTypes", haTypes);
}
std::string CreateHbaseHaSlbRequest::getHbaseType()const
{
return hbaseType_;
}
void CreateHbaseHaSlbRequest::setHbaseType(const std::string& hbaseType)
{
hbaseType_ = hbaseType;
setCoreParameter("HbaseType", hbaseType);
}
std::string CreateHbaseHaSlbRequest::getBdsId()const
{
return bdsId_;
}
void CreateHbaseHaSlbRequest::setBdsId(const std::string& bdsId)
{
bdsId_ = bdsId;
setCoreParameter("BdsId", bdsId);
}
std::string CreateHbaseHaSlbRequest::getHaId()const
{
return haId_;
}
void CreateHbaseHaSlbRequest::setHaId(const std::string& haId)
{
haId_ = haId;
setCoreParameter("HaId", haId);
}

View File

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

View 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/DeleteHbaseHaSlbRequest.h>
using AlibabaCloud::HBase::Model::DeleteHbaseHaSlbRequest;
DeleteHbaseHaSlbRequest::DeleteHbaseHaSlbRequest() :
RpcServiceRequest("hbase", "2019-01-01", "DeleteHbaseHaSlb")
{
setMethod(HttpRequest::Method::Post);
}
DeleteHbaseHaSlbRequest::~DeleteHbaseHaSlbRequest()
{}
std::string DeleteHbaseHaSlbRequest::getHaId()const
{
return haId_;
}
void DeleteHbaseHaSlbRequest::setHaId(const std::string& haId)
{
haId_ = haId;
setCoreParameter("HaId", haId);
}
std::string DeleteHbaseHaSlbRequest::getHaTypes()const
{
return haTypes_;
}
void DeleteHbaseHaSlbRequest::setHaTypes(const std::string& haTypes)
{
haTypes_ = haTypes;
setCoreParameter("HaTypes", haTypes);
}
std::string DeleteHbaseHaSlbRequest::getBdsId()const
{
return bdsId_;
}
void DeleteHbaseHaSlbRequest::setBdsId(const std::string& bdsId)
{
bdsId_ = bdsId;
setCoreParameter("BdsId", bdsId);
}

View File

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

View 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/DescribeDBInstanceUsageRequest.h>
using AlibabaCloud::HBase::Model::DescribeDBInstanceUsageRequest;
DescribeDBInstanceUsageRequest::DescribeDBInstanceUsageRequest() :
RpcServiceRequest("hbase", "2019-01-01", "DescribeDBInstanceUsage")
{
setMethod(HttpRequest::Method::Post);
}
DescribeDBInstanceUsageRequest::~DescribeDBInstanceUsageRequest()
{}
std::string DescribeDBInstanceUsageRequest::getClusterId()const
{
return clusterId_;
}
void DescribeDBInstanceUsageRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setCoreParameter("ClusterId", clusterId);
}

View File

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

View File

@@ -101,6 +101,10 @@ void DescribeInstanceResult::parse(const std::string &payload)
backupStatus_ = value["BackupStatus"].asString();
if(!value["CoreDiskCount"].isNull())
coreDiskCount_ = value["CoreDiskCount"].asString();
if(!value["MaintainStartTime"].isNull())
maintainStartTime_ = value["MaintainStartTime"].asString();
if(!value["MaintainEndTime"].isNull())
maintainEndTime_ = value["MaintainEndTime"].asString();
}
@@ -119,6 +123,11 @@ std::string DescribeInstanceResult::getMasterInstanceType()const
return masterInstanceType_;
}
std::string DescribeInstanceResult::getMaintainEndTime()const
{
return maintainEndTime_;
}
std::string DescribeInstanceResult::getNetworkType()const
{
return networkType_;
@@ -144,6 +153,11 @@ std::string DescribeInstanceResult::getEngine()const
return engine_;
}
std::string DescribeInstanceResult::getMaintainStartTime()const
{
return maintainStartTime_;
}
std::string DescribeInstanceResult::getStatus()const
{
return status_;

View 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/DescribeInstanceTypeRequest.h>
using AlibabaCloud::HBase::Model::DescribeInstanceTypeRequest;
DescribeInstanceTypeRequest::DescribeInstanceTypeRequest() :
RpcServiceRequest("hbase", "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;
setCoreParameter("InstanceType", instanceType);
}

View File

@@ -0,0 +1,61 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/hbase/model/DescribeInstanceTypeResult.h>
#include <json/json.h>
using namespace AlibabaCloud::HBase;
using namespace AlibabaCloud::HBase::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_;
}

View File

@@ -0,0 +1,80 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/hbase/model/ListTagResourcesRequest.h>
using AlibabaCloud::HBase::Model::ListTagResourcesRequest;
ListTagResourcesRequest::ListTagResourcesRequest() :
RpcServiceRequest("hbase", "2019-01-01", "ListTagResources")
{
setMethod(HttpRequest::Method::Post);
}
ListTagResourcesRequest::~ListTagResourcesRequest()
{}
std::string ListTagResourcesRequest::getRegionId()const
{
return regionId_;
}
void ListTagResourcesRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
}
std::string ListTagResourcesRequest::getNextToken()const
{
return nextToken_;
}
void ListTagResourcesRequest::setNextToken(const std::string& nextToken)
{
nextToken_ = nextToken;
setCoreParameter("NextToken", nextToken);
}
std::vector<ListTagResourcesRequest::Tag> ListTagResourcesRequest::getTag()const
{
return tag_;
}
void ListTagResourcesRequest::setTag(const std::vector<Tag>& tag)
{
tag_ = tag;
for(int dep1 = 0; dep1!= tag.size(); dep1++) {
auto tagObj = tag.at(dep1);
std::string tagObjStr = "Tag." + std::to_string(dep1);
setCoreParameter(tagObjStr + ".Value", tagObj.value);
setCoreParameter(tagObjStr + ".Key", tagObj.key);
}
}
std::vector<std::string> ListTagResourcesRequest::getResourceId()const
{
return resourceId_;
}
void ListTagResourcesRequest::setResourceId(const std::vector<std::string>& resourceId)
{
resourceId_ = resourceId;
for(int dep1 = 0; dep1!= resourceId.size(); dep1++) {
setCoreParameter("ResourceId."+ std::to_string(dep1), resourceId.at(dep1));
}
}

View File

@@ -0,0 +1,70 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/hbase/model/ListTagResourcesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::HBase;
using namespace AlibabaCloud::HBase::Model;
ListTagResourcesResult::ListTagResourcesResult() :
ServiceResult()
{}
ListTagResourcesResult::ListTagResourcesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListTagResourcesResult::~ListTagResourcesResult()
{}
void ListTagResourcesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allTagResourcesNode = value["TagResources"]["TagResource"];
for (auto valueTagResourcesTagResource : allTagResourcesNode)
{
TagResource tagResourcesObject;
if(!valueTagResourcesTagResource["TagKey"].isNull())
tagResourcesObject.tagKey = valueTagResourcesTagResource["TagKey"].asString();
if(!valueTagResourcesTagResource["TagValue"].isNull())
tagResourcesObject.tagValue = valueTagResourcesTagResource["TagValue"].asString();
if(!valueTagResourcesTagResource["ResourceType"].isNull())
tagResourcesObject.resourceType = valueTagResourcesTagResource["ResourceType"].asString();
if(!valueTagResourcesTagResource["ResourceId"].isNull())
tagResourcesObject.resourceId = valueTagResourcesTagResource["ResourceId"].asString();
tagResources_.push_back(tagResourcesObject);
}
if(!value["NextToken"].isNull())
nextToken_ = value["NextToken"].asString();
}
std::string ListTagResourcesResult::getNextToken()const
{
return nextToken_;
}
std::vector<ListTagResourcesResult::TagResource> ListTagResourcesResult::getTagResources()const
{
return tagResources_;
}

View 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/ModifyInstanceMaintainTimeRequest.h>
using AlibabaCloud::HBase::Model::ModifyInstanceMaintainTimeRequest;
ModifyInstanceMaintainTimeRequest::ModifyInstanceMaintainTimeRequest() :
RpcServiceRequest("hbase", "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;
setCoreParameter("ClusterId", clusterId);
}
std::string ModifyInstanceMaintainTimeRequest::getMaintainEndTime()const
{
return maintainEndTime_;
}
void ModifyInstanceMaintainTimeRequest::setMaintainEndTime(const std::string& maintainEndTime)
{
maintainEndTime_ = maintainEndTime;
setCoreParameter("MaintainEndTime", maintainEndTime);
}
std::string ModifyInstanceMaintainTimeRequest::getMaintainStartTime()const
{
return maintainStartTime_;
}
void ModifyInstanceMaintainTimeRequest::setMaintainStartTime(const std::string& maintainStartTime)
{
maintainStartTime_ = maintainStartTime;
setCoreParameter("MaintainStartTime", maintainStartTime);
}

View File

@@ -0,0 +1,44 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/hbase/model/ModifyInstanceMaintainTimeResult.h>
#include <json/json.h>
using namespace AlibabaCloud::HBase;
using namespace AlibabaCloud::HBase::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());
}

View 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/QueryHBaseHaDBRequest.h>
using AlibabaCloud::HBase::Model::QueryHBaseHaDBRequest;
QueryHBaseHaDBRequest::QueryHBaseHaDBRequest() :
RpcServiceRequest("hbase", "2019-01-01", "QueryHBaseHaDB")
{
setMethod(HttpRequest::Method::Post);
}
QueryHBaseHaDBRequest::~QueryHBaseHaDBRequest()
{}
std::string QueryHBaseHaDBRequest::getBdsId()const
{
return bdsId_;
}
void QueryHBaseHaDBRequest::setBdsId(const std::string& bdsId)
{
bdsId_ = bdsId;
setCoreParameter("BdsId", bdsId);
}

View 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/hbase/model/QueryHBaseHaDBResult.h>
#include <json/json.h>
using namespace AlibabaCloud::HBase;
using namespace AlibabaCloud::HBase::Model;
QueryHBaseHaDBResult::QueryHBaseHaDBResult() :
ServiceResult()
{}
QueryHBaseHaDBResult::QueryHBaseHaDBResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryHBaseHaDBResult::~QueryHBaseHaDBResult()
{}
void QueryHBaseHaDBResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allClusterListNode = value["ClusterList"]["Cluster"];
for (auto valueClusterListCluster : allClusterListNode)
{
Cluster clusterListObject;
if(!valueClusterListCluster["HaName"].isNull())
clusterListObject.haName = valueClusterListCluster["HaName"].asString();
if(!valueClusterListCluster["BdsName"].isNull())
clusterListObject.bdsName = valueClusterListCluster["BdsName"].asString();
if(!valueClusterListCluster["ActiveName"].isNull())
clusterListObject.activeName = valueClusterListCluster["ActiveName"].asString();
if(!valueClusterListCluster["StandbyName"].isNull())
clusterListObject.standbyName = valueClusterListCluster["StandbyName"].asString();
auto allHaSlbConnListNode = allClusterListNode["HaSlbConnList"]["HaSlbConn"];
for (auto allClusterListNodeHaSlbConnListHaSlbConn : allHaSlbConnListNode)
{
Cluster::HaSlbConn haSlbConnListObject;
if(!allClusterListNodeHaSlbConnListHaSlbConn["SlbType"].isNull())
haSlbConnListObject.slbType = allClusterListNodeHaSlbConnListHaSlbConn["SlbType"].asString();
if(!allClusterListNodeHaSlbConnListHaSlbConn["SlbConnAddr"].isNull())
haSlbConnListObject.slbConnAddr = allClusterListNodeHaSlbConnListHaSlbConn["SlbConnAddr"].asString();
if(!allClusterListNodeHaSlbConnListHaSlbConn["HbaseType"].isNull())
haSlbConnListObject.hbaseType = allClusterListNodeHaSlbConnListHaSlbConn["HbaseType"].asString();
clusterListObject.haSlbConnList.push_back(haSlbConnListObject);
}
clusterList_.push_back(clusterListObject);
}
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 QueryHBaseHaDBResult::getTotalCount()const
{
return totalCount_;
}
std::vector<QueryHBaseHaDBResult::Cluster> QueryHBaseHaDBResult::getClusterList()const
{
return clusterList_;
}
int QueryHBaseHaDBResult::getPageSize()const
{
return pageSize_;
}
int QueryHBaseHaDBResult::getPageNumber()const
{
return pageNumber_;
}

View 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/hbase/model/SwitchHbaseHaSlbRequest.h>
using AlibabaCloud::HBase::Model::SwitchHbaseHaSlbRequest;
SwitchHbaseHaSlbRequest::SwitchHbaseHaSlbRequest() :
RpcServiceRequest("hbase", "2019-01-01", "SwitchHbaseHaSlb")
{
setMethod(HttpRequest::Method::Post);
}
SwitchHbaseHaSlbRequest::~SwitchHbaseHaSlbRequest()
{}
std::string SwitchHbaseHaSlbRequest::getHaTypes()const
{
return haTypes_;
}
void SwitchHbaseHaSlbRequest::setHaTypes(const std::string& haTypes)
{
haTypes_ = haTypes;
setCoreParameter("HaTypes", haTypes);
}
std::string SwitchHbaseHaSlbRequest::getHbaseType()const
{
return hbaseType_;
}
void SwitchHbaseHaSlbRequest::setHbaseType(const std::string& hbaseType)
{
hbaseType_ = hbaseType;
setCoreParameter("HbaseType", hbaseType);
}
std::string SwitchHbaseHaSlbRequest::getBdsId()const
{
return bdsId_;
}
void SwitchHbaseHaSlbRequest::setBdsId(const std::string& bdsId)
{
bdsId_ = bdsId;
setCoreParameter("BdsId", bdsId);
}
std::string SwitchHbaseHaSlbRequest::getHaId()const
{
return haId_;
}
void SwitchHbaseHaSlbRequest::setHaId(const std::string& haId)
{
haId_ = haId;
setCoreParameter("HaId", haId);
}

View File

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

View 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/hbase/model/TagResourcesRequest.h>
using AlibabaCloud::HBase::Model::TagResourcesRequest;
TagResourcesRequest::TagResourcesRequest() :
RpcServiceRequest("hbase", "2019-01-01", "TagResources")
{
setMethod(HttpRequest::Method::Post);
}
TagResourcesRequest::~TagResourcesRequest()
{}
std::vector<std::string> TagResourcesRequest::getResourceId()const
{
return resourceId_;
}
void TagResourcesRequest::setResourceId(const std::vector<std::string>& resourceId)
{
resourceId_ = resourceId;
for(int dep1 = 0; dep1!= resourceId.size(); dep1++) {
setCoreParameter("ResourceId."+ std::to_string(dep1), resourceId.at(dep1));
}
}
std::string TagResourcesRequest::getRegionId()const
{
return regionId_;
}
void TagResourcesRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
}
std::vector<TagResourcesRequest::Tag> TagResourcesRequest::getTag()const
{
return tag_;
}
void TagResourcesRequest::setTag(const std::vector<Tag>& tag)
{
tag_ = tag;
for(int dep1 = 0; dep1!= tag.size(); dep1++) {
auto tagObj = tag.at(dep1);
std::string tagObjStr = "Tag." + std::to_string(dep1);
setCoreParameter(tagObjStr + ".Value", tagObj.value);
setCoreParameter(tagObjStr + ".Key", tagObj.key);
}
}

View File

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

View File

@@ -0,0 +1,77 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR 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/UnTagResourcesRequest.h>
using AlibabaCloud::HBase::Model::UnTagResourcesRequest;
UnTagResourcesRequest::UnTagResourcesRequest() :
RpcServiceRequest("hbase", "2019-01-01", "UnTagResources")
{
setMethod(HttpRequest::Method::Post);
}
UnTagResourcesRequest::~UnTagResourcesRequest()
{}
std::string UnTagResourcesRequest::getRegionId()const
{
return regionId_;
}
void UnTagResourcesRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
}
bool UnTagResourcesRequest::getAll()const
{
return all_;
}
void UnTagResourcesRequest::setAll(bool all)
{
all_ = all;
setCoreParameter("All", all ? "true" : "false");
}
std::vector<std::string> UnTagResourcesRequest::getResourceId()const
{
return resourceId_;
}
void UnTagResourcesRequest::setResourceId(const std::vector<std::string>& resourceId)
{
resourceId_ = resourceId;
for(int dep1 = 0; dep1!= resourceId.size(); dep1++) {
setCoreParameter("ResourceId."+ std::to_string(dep1), resourceId.at(dep1));
}
}
std::vector<std::string> UnTagResourcesRequest::getTagKey()const
{
return tagKey_;
}
void UnTagResourcesRequest::setTagKey(const std::vector<std::string>& tagKey)
{
tagKey_ = tagKey;
for(int dep1 = 0; dep1!= tagKey.size(); dep1++) {
setCoreParameter("TagKey."+ std::to_string(dep1), tagKey.at(dep1));
}
}

View File

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