Generated 2019-09-16 for alikafka.
This commit is contained in:
1313
alikafka/src/AlikafkaClient.cc
Normal file
1313
alikafka/src/AlikafkaClient.cc
Normal file
File diff suppressed because it is too large
Load Diff
62
alikafka/src/model/ConvertPostPayOrderRequest.cc
Normal file
62
alikafka/src/model/ConvertPostPayOrderRequest.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/alikafka/model/ConvertPostPayOrderRequest.h>
|
||||
|
||||
using AlibabaCloud::Alikafka::Model::ConvertPostPayOrderRequest;
|
||||
|
||||
ConvertPostPayOrderRequest::ConvertPostPayOrderRequest() :
|
||||
RpcServiceRequest("alikafka", "2019-09-16", "ConvertPostPayOrder")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ConvertPostPayOrderRequest::~ConvertPostPayOrderRequest()
|
||||
{}
|
||||
|
||||
int ConvertPostPayOrderRequest::getDuration()const
|
||||
{
|
||||
return duration_;
|
||||
}
|
||||
|
||||
void ConvertPostPayOrderRequest::setDuration(int duration)
|
||||
{
|
||||
duration_ = duration;
|
||||
setParameter("Duration", std::to_string(duration));
|
||||
}
|
||||
|
||||
std::string ConvertPostPayOrderRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void ConvertPostPayOrderRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string ConvertPostPayOrderRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ConvertPostPayOrderRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
72
alikafka/src/model/ConvertPostPayOrderResult.cc
Normal file
72
alikafka/src/model/ConvertPostPayOrderResult.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/alikafka/model/ConvertPostPayOrderResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alikafka;
|
||||
using namespace AlibabaCloud::Alikafka::Model;
|
||||
|
||||
ConvertPostPayOrderResult::ConvertPostPayOrderResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ConvertPostPayOrderResult::ConvertPostPayOrderResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ConvertPostPayOrderResult::~ConvertPostPayOrderResult()
|
||||
{}
|
||||
|
||||
void ConvertPostPayOrderResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["OrderId"].isNull())
|
||||
orderId_ = value["OrderId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ConvertPostPayOrderResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string ConvertPostPayOrderResult::getOrderId()const
|
||||
{
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
int ConvertPostPayOrderResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ConvertPostPayOrderResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
106
alikafka/src/model/CreateAclRequest.cc
Normal file
106
alikafka/src/model/CreateAclRequest.cc
Normal file
@@ -0,0 +1,106 @@
|
||||
/*
|
||||
* 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/alikafka/model/CreateAclRequest.h>
|
||||
|
||||
using AlibabaCloud::Alikafka::Model::CreateAclRequest;
|
||||
|
||||
CreateAclRequest::CreateAclRequest() :
|
||||
RpcServiceRequest("alikafka", "2019-09-16", "CreateAcl")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateAclRequest::~CreateAclRequest()
|
||||
{}
|
||||
|
||||
std::string CreateAclRequest::getAclResourcePatternType()const
|
||||
{
|
||||
return aclResourcePatternType_;
|
||||
}
|
||||
|
||||
void CreateAclRequest::setAclResourcePatternType(const std::string& aclResourcePatternType)
|
||||
{
|
||||
aclResourcePatternType_ = aclResourcePatternType;
|
||||
setParameter("AclResourcePatternType", aclResourcePatternType);
|
||||
}
|
||||
|
||||
std::string CreateAclRequest::getAclResourceType()const
|
||||
{
|
||||
return aclResourceType_;
|
||||
}
|
||||
|
||||
void CreateAclRequest::setAclResourceType(const std::string& aclResourceType)
|
||||
{
|
||||
aclResourceType_ = aclResourceType;
|
||||
setParameter("AclResourceType", aclResourceType);
|
||||
}
|
||||
|
||||
std::string CreateAclRequest::getAclOperationType()const
|
||||
{
|
||||
return aclOperationType_;
|
||||
}
|
||||
|
||||
void CreateAclRequest::setAclOperationType(const std::string& aclOperationType)
|
||||
{
|
||||
aclOperationType_ = aclOperationType;
|
||||
setParameter("AclOperationType", aclOperationType);
|
||||
}
|
||||
|
||||
std::string CreateAclRequest::getAclResourceName()const
|
||||
{
|
||||
return aclResourceName_;
|
||||
}
|
||||
|
||||
void CreateAclRequest::setAclResourceName(const std::string& aclResourceName)
|
||||
{
|
||||
aclResourceName_ = aclResourceName;
|
||||
setParameter("AclResourceName", aclResourceName);
|
||||
}
|
||||
|
||||
std::string CreateAclRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void CreateAclRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string CreateAclRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateAclRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateAclRequest::getUsername()const
|
||||
{
|
||||
return username_;
|
||||
}
|
||||
|
||||
void CreateAclRequest::setUsername(const std::string& username)
|
||||
{
|
||||
username_ = username;
|
||||
setParameter("Username", username);
|
||||
}
|
||||
|
||||
65
alikafka/src/model/CreateAclResult.cc
Normal file
65
alikafka/src/model/CreateAclResult.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/alikafka/model/CreateAclResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alikafka;
|
||||
using namespace AlibabaCloud::Alikafka::Model;
|
||||
|
||||
CreateAclResult::CreateAclResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateAclResult::CreateAclResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateAclResult::~CreateAclResult()
|
||||
{}
|
||||
|
||||
void CreateAclResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateAclResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int CreateAclResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreateAclResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
73
alikafka/src/model/CreateConsumerGroupRequest.cc
Normal file
73
alikafka/src/model/CreateConsumerGroupRequest.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/alikafka/model/CreateConsumerGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::Alikafka::Model::CreateConsumerGroupRequest;
|
||||
|
||||
CreateConsumerGroupRequest::CreateConsumerGroupRequest() :
|
||||
RpcServiceRequest("alikafka", "2019-09-16", "CreateConsumerGroup")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateConsumerGroupRequest::~CreateConsumerGroupRequest()
|
||||
{}
|
||||
|
||||
std::string CreateConsumerGroupRequest::getConsumerId()const
|
||||
{
|
||||
return consumerId_;
|
||||
}
|
||||
|
||||
void CreateConsumerGroupRequest::setConsumerId(const std::string& consumerId)
|
||||
{
|
||||
consumerId_ = consumerId;
|
||||
setParameter("ConsumerId", consumerId);
|
||||
}
|
||||
|
||||
std::string CreateConsumerGroupRequest::getRemark()const
|
||||
{
|
||||
return remark_;
|
||||
}
|
||||
|
||||
void CreateConsumerGroupRequest::setRemark(const std::string& remark)
|
||||
{
|
||||
remark_ = remark;
|
||||
setParameter("Remark", remark);
|
||||
}
|
||||
|
||||
std::string CreateConsumerGroupRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void CreateConsumerGroupRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string CreateConsumerGroupRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateConsumerGroupRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
65
alikafka/src/model/CreateConsumerGroupResult.cc
Normal file
65
alikafka/src/model/CreateConsumerGroupResult.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/alikafka/model/CreateConsumerGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alikafka;
|
||||
using namespace AlibabaCloud::Alikafka::Model;
|
||||
|
||||
CreateConsumerGroupResult::CreateConsumerGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateConsumerGroupResult::CreateConsumerGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateConsumerGroupResult::~CreateConsumerGroupResult()
|
||||
{}
|
||||
|
||||
void CreateConsumerGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateConsumerGroupResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int CreateConsumerGroupResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreateConsumerGroupResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
139
alikafka/src/model/CreatePostPayOrderRequest.cc
Normal file
139
alikafka/src/model/CreatePostPayOrderRequest.cc
Normal file
@@ -0,0 +1,139 @@
|
||||
/*
|
||||
* 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/alikafka/model/CreatePostPayOrderRequest.h>
|
||||
|
||||
using AlibabaCloud::Alikafka::Model::CreatePostPayOrderRequest;
|
||||
|
||||
CreatePostPayOrderRequest::CreatePostPayOrderRequest() :
|
||||
RpcServiceRequest("alikafka", "2019-09-16", "CreatePostPayOrder")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreatePostPayOrderRequest::~CreatePostPayOrderRequest()
|
||||
{}
|
||||
|
||||
int CreatePostPayOrderRequest::getPaidType()const
|
||||
{
|
||||
return paidType_;
|
||||
}
|
||||
|
||||
void CreatePostPayOrderRequest::setPaidType(int paidType)
|
||||
{
|
||||
paidType_ = paidType;
|
||||
setParameter("PaidType", std::to_string(paidType));
|
||||
}
|
||||
|
||||
int CreatePostPayOrderRequest::getDiskSize()const
|
||||
{
|
||||
return diskSize_;
|
||||
}
|
||||
|
||||
void CreatePostPayOrderRequest::setDiskSize(int diskSize)
|
||||
{
|
||||
diskSize_ = diskSize;
|
||||
setParameter("DiskSize", std::to_string(diskSize));
|
||||
}
|
||||
|
||||
int CreatePostPayOrderRequest::getIoMax()const
|
||||
{
|
||||
return ioMax_;
|
||||
}
|
||||
|
||||
void CreatePostPayOrderRequest::setIoMax(int ioMax)
|
||||
{
|
||||
ioMax_ = ioMax;
|
||||
setParameter("IoMax", std::to_string(ioMax));
|
||||
}
|
||||
|
||||
std::string CreatePostPayOrderRequest::getIoMaxSpec()const
|
||||
{
|
||||
return ioMaxSpec_;
|
||||
}
|
||||
|
||||
void CreatePostPayOrderRequest::setIoMaxSpec(const std::string& ioMaxSpec)
|
||||
{
|
||||
ioMaxSpec_ = ioMaxSpec;
|
||||
setParameter("IoMaxSpec", ioMaxSpec);
|
||||
}
|
||||
|
||||
std::string CreatePostPayOrderRequest::getDiskType()const
|
||||
{
|
||||
return diskType_;
|
||||
}
|
||||
|
||||
void CreatePostPayOrderRequest::setDiskType(const std::string& diskType)
|
||||
{
|
||||
diskType_ = diskType;
|
||||
setParameter("DiskType", diskType);
|
||||
}
|
||||
|
||||
int CreatePostPayOrderRequest::getTopicQuota()const
|
||||
{
|
||||
return topicQuota_;
|
||||
}
|
||||
|
||||
void CreatePostPayOrderRequest::setTopicQuota(int topicQuota)
|
||||
{
|
||||
topicQuota_ = topicQuota;
|
||||
setParameter("TopicQuota", std::to_string(topicQuota));
|
||||
}
|
||||
|
||||
int CreatePostPayOrderRequest::getEipMax()const
|
||||
{
|
||||
return eipMax_;
|
||||
}
|
||||
|
||||
void CreatePostPayOrderRequest::setEipMax(int eipMax)
|
||||
{
|
||||
eipMax_ = eipMax;
|
||||
setParameter("EipMax", std::to_string(eipMax));
|
||||
}
|
||||
|
||||
std::string CreatePostPayOrderRequest::getSpecType()const
|
||||
{
|
||||
return specType_;
|
||||
}
|
||||
|
||||
void CreatePostPayOrderRequest::setSpecType(const std::string& specType)
|
||||
{
|
||||
specType_ = specType;
|
||||
setParameter("SpecType", specType);
|
||||
}
|
||||
|
||||
std::string CreatePostPayOrderRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreatePostPayOrderRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
int CreatePostPayOrderRequest::getDeployType()const
|
||||
{
|
||||
return deployType_;
|
||||
}
|
||||
|
||||
void CreatePostPayOrderRequest::setDeployType(int deployType)
|
||||
{
|
||||
deployType_ = deployType;
|
||||
setParameter("DeployType", std::to_string(deployType));
|
||||
}
|
||||
|
||||
72
alikafka/src/model/CreatePostPayOrderResult.cc
Normal file
72
alikafka/src/model/CreatePostPayOrderResult.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/alikafka/model/CreatePostPayOrderResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alikafka;
|
||||
using namespace AlibabaCloud::Alikafka::Model;
|
||||
|
||||
CreatePostPayOrderResult::CreatePostPayOrderResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreatePostPayOrderResult::CreatePostPayOrderResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreatePostPayOrderResult::~CreatePostPayOrderResult()
|
||||
{}
|
||||
|
||||
void CreatePostPayOrderResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["OrderId"].isNull())
|
||||
orderId_ = value["OrderId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreatePostPayOrderResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string CreatePostPayOrderResult::getOrderId()const
|
||||
{
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
int CreatePostPayOrderResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreatePostPayOrderResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
128
alikafka/src/model/CreatePrePayOrderRequest.cc
Normal file
128
alikafka/src/model/CreatePrePayOrderRequest.cc
Normal file
@@ -0,0 +1,128 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alikafka/model/CreatePrePayOrderRequest.h>
|
||||
|
||||
using AlibabaCloud::Alikafka::Model::CreatePrePayOrderRequest;
|
||||
|
||||
CreatePrePayOrderRequest::CreatePrePayOrderRequest() :
|
||||
RpcServiceRequest("alikafka", "2019-09-16", "CreatePrePayOrder")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreatePrePayOrderRequest::~CreatePrePayOrderRequest()
|
||||
{}
|
||||
|
||||
int CreatePrePayOrderRequest::getDiskSize()const
|
||||
{
|
||||
return diskSize_;
|
||||
}
|
||||
|
||||
void CreatePrePayOrderRequest::setDiskSize(int diskSize)
|
||||
{
|
||||
diskSize_ = diskSize;
|
||||
setParameter("DiskSize", std::to_string(diskSize));
|
||||
}
|
||||
|
||||
int CreatePrePayOrderRequest::getIoMax()const
|
||||
{
|
||||
return ioMax_;
|
||||
}
|
||||
|
||||
void CreatePrePayOrderRequest::setIoMax(int ioMax)
|
||||
{
|
||||
ioMax_ = ioMax;
|
||||
setParameter("IoMax", std::to_string(ioMax));
|
||||
}
|
||||
|
||||
std::string CreatePrePayOrderRequest::getIoMaxSpec()const
|
||||
{
|
||||
return ioMaxSpec_;
|
||||
}
|
||||
|
||||
void CreatePrePayOrderRequest::setIoMaxSpec(const std::string& ioMaxSpec)
|
||||
{
|
||||
ioMaxSpec_ = ioMaxSpec;
|
||||
setParameter("IoMaxSpec", ioMaxSpec);
|
||||
}
|
||||
|
||||
std::string CreatePrePayOrderRequest::getDiskType()const
|
||||
{
|
||||
return diskType_;
|
||||
}
|
||||
|
||||
void CreatePrePayOrderRequest::setDiskType(const std::string& diskType)
|
||||
{
|
||||
diskType_ = diskType;
|
||||
setParameter("DiskType", diskType);
|
||||
}
|
||||
|
||||
int CreatePrePayOrderRequest::getTopicQuota()const
|
||||
{
|
||||
return topicQuota_;
|
||||
}
|
||||
|
||||
void CreatePrePayOrderRequest::setTopicQuota(int topicQuota)
|
||||
{
|
||||
topicQuota_ = topicQuota;
|
||||
setParameter("TopicQuota", std::to_string(topicQuota));
|
||||
}
|
||||
|
||||
int CreatePrePayOrderRequest::getEipMax()const
|
||||
{
|
||||
return eipMax_;
|
||||
}
|
||||
|
||||
void CreatePrePayOrderRequest::setEipMax(int eipMax)
|
||||
{
|
||||
eipMax_ = eipMax;
|
||||
setParameter("EipMax", std::to_string(eipMax));
|
||||
}
|
||||
|
||||
std::string CreatePrePayOrderRequest::getSpecType()const
|
||||
{
|
||||
return specType_;
|
||||
}
|
||||
|
||||
void CreatePrePayOrderRequest::setSpecType(const std::string& specType)
|
||||
{
|
||||
specType_ = specType;
|
||||
setParameter("SpecType", specType);
|
||||
}
|
||||
|
||||
std::string CreatePrePayOrderRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreatePrePayOrderRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
int CreatePrePayOrderRequest::getDeployType()const
|
||||
{
|
||||
return deployType_;
|
||||
}
|
||||
|
||||
void CreatePrePayOrderRequest::setDeployType(int deployType)
|
||||
{
|
||||
deployType_ = deployType;
|
||||
setParameter("DeployType", std::to_string(deployType));
|
||||
}
|
||||
|
||||
72
alikafka/src/model/CreatePrePayOrderResult.cc
Normal file
72
alikafka/src/model/CreatePrePayOrderResult.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/alikafka/model/CreatePrePayOrderResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alikafka;
|
||||
using namespace AlibabaCloud::Alikafka::Model;
|
||||
|
||||
CreatePrePayOrderResult::CreatePrePayOrderResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreatePrePayOrderResult::CreatePrePayOrderResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreatePrePayOrderResult::~CreatePrePayOrderResult()
|
||||
{}
|
||||
|
||||
void CreatePrePayOrderResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["OrderId"].isNull())
|
||||
orderId_ = value["OrderId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreatePrePayOrderResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string CreatePrePayOrderResult::getOrderId()const
|
||||
{
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
int CreatePrePayOrderResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreatePrePayOrderResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
84
alikafka/src/model/CreateSaslUserRequest.cc
Normal file
84
alikafka/src/model/CreateSaslUserRequest.cc
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alikafka/model/CreateSaslUserRequest.h>
|
||||
|
||||
using AlibabaCloud::Alikafka::Model::CreateSaslUserRequest;
|
||||
|
||||
CreateSaslUserRequest::CreateSaslUserRequest() :
|
||||
RpcServiceRequest("alikafka", "2019-09-16", "CreateSaslUser")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateSaslUserRequest::~CreateSaslUserRequest()
|
||||
{}
|
||||
|
||||
std::string CreateSaslUserRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void CreateSaslUserRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string CreateSaslUserRequest::getPassword()const
|
||||
{
|
||||
return password_;
|
||||
}
|
||||
|
||||
void CreateSaslUserRequest::setPassword(const std::string& password)
|
||||
{
|
||||
password_ = password;
|
||||
setParameter("Password", password);
|
||||
}
|
||||
|
||||
std::string CreateSaslUserRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void CreateSaslUserRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string CreateSaslUserRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateSaslUserRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateSaslUserRequest::getUsername()const
|
||||
{
|
||||
return username_;
|
||||
}
|
||||
|
||||
void CreateSaslUserRequest::setUsername(const std::string& username)
|
||||
{
|
||||
username_ = username;
|
||||
setParameter("Username", username);
|
||||
}
|
||||
|
||||
65
alikafka/src/model/CreateSaslUserResult.cc
Normal file
65
alikafka/src/model/CreateSaslUserResult.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/alikafka/model/CreateSaslUserResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alikafka;
|
||||
using namespace AlibabaCloud::Alikafka::Model;
|
||||
|
||||
CreateSaslUserResult::CreateSaslUserResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateSaslUserResult::CreateSaslUserResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateSaslUserResult::~CreateSaslUserResult()
|
||||
{}
|
||||
|
||||
void CreateSaslUserResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateSaslUserResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int CreateSaslUserResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreateSaslUserResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
106
alikafka/src/model/CreateTopicRequest.cc
Normal file
106
alikafka/src/model/CreateTopicRequest.cc
Normal file
@@ -0,0 +1,106 @@
|
||||
/*
|
||||
* 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/alikafka/model/CreateTopicRequest.h>
|
||||
|
||||
using AlibabaCloud::Alikafka::Model::CreateTopicRequest;
|
||||
|
||||
CreateTopicRequest::CreateTopicRequest() :
|
||||
RpcServiceRequest("alikafka", "2019-09-16", "CreateTopic")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateTopicRequest::~CreateTopicRequest()
|
||||
{}
|
||||
|
||||
std::string CreateTopicRequest::getRemark()const
|
||||
{
|
||||
return remark_;
|
||||
}
|
||||
|
||||
void CreateTopicRequest::setRemark(const std::string& remark)
|
||||
{
|
||||
remark_ = remark;
|
||||
setParameter("Remark", remark);
|
||||
}
|
||||
|
||||
std::string CreateTopicRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void CreateTopicRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string CreateTopicRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateTopicRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateTopicRequest::getTopic()const
|
||||
{
|
||||
return topic_;
|
||||
}
|
||||
|
||||
void CreateTopicRequest::setTopic(const std::string& topic)
|
||||
{
|
||||
topic_ = topic;
|
||||
setParameter("Topic", topic);
|
||||
}
|
||||
|
||||
bool CreateTopicRequest::getCompactTopic()const
|
||||
{
|
||||
return compactTopic_;
|
||||
}
|
||||
|
||||
void CreateTopicRequest::setCompactTopic(bool compactTopic)
|
||||
{
|
||||
compactTopic_ = compactTopic;
|
||||
setParameter("CompactTopic", compactTopic ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateTopicRequest::getPartitionNum()const
|
||||
{
|
||||
return partitionNum_;
|
||||
}
|
||||
|
||||
void CreateTopicRequest::setPartitionNum(const std::string& partitionNum)
|
||||
{
|
||||
partitionNum_ = partitionNum;
|
||||
setParameter("PartitionNum", partitionNum);
|
||||
}
|
||||
|
||||
bool CreateTopicRequest::getLocalTopic()const
|
||||
{
|
||||
return localTopic_;
|
||||
}
|
||||
|
||||
void CreateTopicRequest::setLocalTopic(bool localTopic)
|
||||
{
|
||||
localTopic_ = localTopic;
|
||||
setParameter("LocalTopic", localTopic ? "true" : "false");
|
||||
}
|
||||
|
||||
65
alikafka/src/model/CreateTopicResult.cc
Normal file
65
alikafka/src/model/CreateTopicResult.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/alikafka/model/CreateTopicResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alikafka;
|
||||
using namespace AlibabaCloud::Alikafka::Model;
|
||||
|
||||
CreateTopicResult::CreateTopicResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateTopicResult::CreateTopicResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateTopicResult::~CreateTopicResult()
|
||||
{}
|
||||
|
||||
void CreateTopicResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateTopicResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int CreateTopicResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreateTopicResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
106
alikafka/src/model/DeleteAclRequest.cc
Normal file
106
alikafka/src/model/DeleteAclRequest.cc
Normal file
@@ -0,0 +1,106 @@
|
||||
/*
|
||||
* 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/alikafka/model/DeleteAclRequest.h>
|
||||
|
||||
using AlibabaCloud::Alikafka::Model::DeleteAclRequest;
|
||||
|
||||
DeleteAclRequest::DeleteAclRequest() :
|
||||
RpcServiceRequest("alikafka", "2019-09-16", "DeleteAcl")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteAclRequest::~DeleteAclRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteAclRequest::getAclResourcePatternType()const
|
||||
{
|
||||
return aclResourcePatternType_;
|
||||
}
|
||||
|
||||
void DeleteAclRequest::setAclResourcePatternType(const std::string& aclResourcePatternType)
|
||||
{
|
||||
aclResourcePatternType_ = aclResourcePatternType;
|
||||
setParameter("AclResourcePatternType", aclResourcePatternType);
|
||||
}
|
||||
|
||||
std::string DeleteAclRequest::getAclResourceType()const
|
||||
{
|
||||
return aclResourceType_;
|
||||
}
|
||||
|
||||
void DeleteAclRequest::setAclResourceType(const std::string& aclResourceType)
|
||||
{
|
||||
aclResourceType_ = aclResourceType;
|
||||
setParameter("AclResourceType", aclResourceType);
|
||||
}
|
||||
|
||||
std::string DeleteAclRequest::getAclOperationType()const
|
||||
{
|
||||
return aclOperationType_;
|
||||
}
|
||||
|
||||
void DeleteAclRequest::setAclOperationType(const std::string& aclOperationType)
|
||||
{
|
||||
aclOperationType_ = aclOperationType;
|
||||
setParameter("AclOperationType", aclOperationType);
|
||||
}
|
||||
|
||||
std::string DeleteAclRequest::getAclResourceName()const
|
||||
{
|
||||
return aclResourceName_;
|
||||
}
|
||||
|
||||
void DeleteAclRequest::setAclResourceName(const std::string& aclResourceName)
|
||||
{
|
||||
aclResourceName_ = aclResourceName;
|
||||
setParameter("AclResourceName", aclResourceName);
|
||||
}
|
||||
|
||||
std::string DeleteAclRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DeleteAclRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string DeleteAclRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteAclRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DeleteAclRequest::getUsername()const
|
||||
{
|
||||
return username_;
|
||||
}
|
||||
|
||||
void DeleteAclRequest::setUsername(const std::string& username)
|
||||
{
|
||||
username_ = username;
|
||||
setParameter("Username", username);
|
||||
}
|
||||
|
||||
65
alikafka/src/model/DeleteAclResult.cc
Normal file
65
alikafka/src/model/DeleteAclResult.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/alikafka/model/DeleteAclResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alikafka;
|
||||
using namespace AlibabaCloud::Alikafka::Model;
|
||||
|
||||
DeleteAclResult::DeleteAclResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteAclResult::DeleteAclResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteAclResult::~DeleteAclResult()
|
||||
{}
|
||||
|
||||
void DeleteAclResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteAclResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DeleteAclResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeleteAclResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
62
alikafka/src/model/DeleteConsumerGroupRequest.cc
Normal file
62
alikafka/src/model/DeleteConsumerGroupRequest.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/alikafka/model/DeleteConsumerGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::Alikafka::Model::DeleteConsumerGroupRequest;
|
||||
|
||||
DeleteConsumerGroupRequest::DeleteConsumerGroupRequest() :
|
||||
RpcServiceRequest("alikafka", "2019-09-16", "DeleteConsumerGroup")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteConsumerGroupRequest::~DeleteConsumerGroupRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteConsumerGroupRequest::getConsumerId()const
|
||||
{
|
||||
return consumerId_;
|
||||
}
|
||||
|
||||
void DeleteConsumerGroupRequest::setConsumerId(const std::string& consumerId)
|
||||
{
|
||||
consumerId_ = consumerId;
|
||||
setParameter("ConsumerId", consumerId);
|
||||
}
|
||||
|
||||
std::string DeleteConsumerGroupRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DeleteConsumerGroupRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string DeleteConsumerGroupRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteConsumerGroupRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
65
alikafka/src/model/DeleteConsumerGroupResult.cc
Normal file
65
alikafka/src/model/DeleteConsumerGroupResult.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/alikafka/model/DeleteConsumerGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alikafka;
|
||||
using namespace AlibabaCloud::Alikafka::Model;
|
||||
|
||||
DeleteConsumerGroupResult::DeleteConsumerGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteConsumerGroupResult::DeleteConsumerGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteConsumerGroupResult::~DeleteConsumerGroupResult()
|
||||
{}
|
||||
|
||||
void DeleteConsumerGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteConsumerGroupResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DeleteConsumerGroupResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeleteConsumerGroupResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
51
alikafka/src/model/DeleteInstanceRequest.cc
Normal file
51
alikafka/src/model/DeleteInstanceRequest.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/alikafka/model/DeleteInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::Alikafka::Model::DeleteInstanceRequest;
|
||||
|
||||
DeleteInstanceRequest::DeleteInstanceRequest() :
|
||||
RpcServiceRequest("alikafka", "2019-09-16", "DeleteInstance")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteInstanceRequest::~DeleteInstanceRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteInstanceRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DeleteInstanceRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string DeleteInstanceRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteInstanceRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
65
alikafka/src/model/DeleteInstanceResult.cc
Normal file
65
alikafka/src/model/DeleteInstanceResult.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/alikafka/model/DeleteInstanceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alikafka;
|
||||
using namespace AlibabaCloud::Alikafka::Model;
|
||||
|
||||
DeleteInstanceResult::DeleteInstanceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteInstanceResult::DeleteInstanceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteInstanceResult::~DeleteInstanceResult()
|
||||
{}
|
||||
|
||||
void DeleteInstanceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteInstanceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DeleteInstanceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeleteInstanceResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
73
alikafka/src/model/DeleteSaslUserRequest.cc
Normal file
73
alikafka/src/model/DeleteSaslUserRequest.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/alikafka/model/DeleteSaslUserRequest.h>
|
||||
|
||||
using AlibabaCloud::Alikafka::Model::DeleteSaslUserRequest;
|
||||
|
||||
DeleteSaslUserRequest::DeleteSaslUserRequest() :
|
||||
RpcServiceRequest("alikafka", "2019-09-16", "DeleteSaslUser")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteSaslUserRequest::~DeleteSaslUserRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteSaslUserRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void DeleteSaslUserRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string DeleteSaslUserRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DeleteSaslUserRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string DeleteSaslUserRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteSaslUserRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DeleteSaslUserRequest::getUsername()const
|
||||
{
|
||||
return username_;
|
||||
}
|
||||
|
||||
void DeleteSaslUserRequest::setUsername(const std::string& username)
|
||||
{
|
||||
username_ = username;
|
||||
setParameter("Username", username);
|
||||
}
|
||||
|
||||
65
alikafka/src/model/DeleteSaslUserResult.cc
Normal file
65
alikafka/src/model/DeleteSaslUserResult.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/alikafka/model/DeleteSaslUserResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alikafka;
|
||||
using namespace AlibabaCloud::Alikafka::Model;
|
||||
|
||||
DeleteSaslUserResult::DeleteSaslUserResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteSaslUserResult::DeleteSaslUserResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteSaslUserResult::~DeleteSaslUserResult()
|
||||
{}
|
||||
|
||||
void DeleteSaslUserResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteSaslUserResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DeleteSaslUserResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeleteSaslUserResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
62
alikafka/src/model/DeleteTopicRequest.cc
Normal file
62
alikafka/src/model/DeleteTopicRequest.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/alikafka/model/DeleteTopicRequest.h>
|
||||
|
||||
using AlibabaCloud::Alikafka::Model::DeleteTopicRequest;
|
||||
|
||||
DeleteTopicRequest::DeleteTopicRequest() :
|
||||
RpcServiceRequest("alikafka", "2019-09-16", "DeleteTopic")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteTopicRequest::~DeleteTopicRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteTopicRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DeleteTopicRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string DeleteTopicRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteTopicRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DeleteTopicRequest::getTopic()const
|
||||
{
|
||||
return topic_;
|
||||
}
|
||||
|
||||
void DeleteTopicRequest::setTopic(const std::string& topic)
|
||||
{
|
||||
topic_ = topic;
|
||||
setParameter("Topic", topic);
|
||||
}
|
||||
|
||||
65
alikafka/src/model/DeleteTopicResult.cc
Normal file
65
alikafka/src/model/DeleteTopicResult.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/alikafka/model/DeleteTopicResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alikafka;
|
||||
using namespace AlibabaCloud::Alikafka::Model;
|
||||
|
||||
DeleteTopicResult::DeleteTopicResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteTopicResult::DeleteTopicResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteTopicResult::~DeleteTopicResult()
|
||||
{}
|
||||
|
||||
void DeleteTopicResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteTopicResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DeleteTopicResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeleteTopicResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
95
alikafka/src/model/DescribeAclsRequest.cc
Normal file
95
alikafka/src/model/DescribeAclsRequest.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/alikafka/model/DescribeAclsRequest.h>
|
||||
|
||||
using AlibabaCloud::Alikafka::Model::DescribeAclsRequest;
|
||||
|
||||
DescribeAclsRequest::DescribeAclsRequest() :
|
||||
RpcServiceRequest("alikafka", "2019-09-16", "DescribeAcls")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeAclsRequest::~DescribeAclsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeAclsRequest::getAclResourcePatternType()const
|
||||
{
|
||||
return aclResourcePatternType_;
|
||||
}
|
||||
|
||||
void DescribeAclsRequest::setAclResourcePatternType(const std::string& aclResourcePatternType)
|
||||
{
|
||||
aclResourcePatternType_ = aclResourcePatternType;
|
||||
setParameter("AclResourcePatternType", aclResourcePatternType);
|
||||
}
|
||||
|
||||
std::string DescribeAclsRequest::getAclResourceType()const
|
||||
{
|
||||
return aclResourceType_;
|
||||
}
|
||||
|
||||
void DescribeAclsRequest::setAclResourceType(const std::string& aclResourceType)
|
||||
{
|
||||
aclResourceType_ = aclResourceType;
|
||||
setParameter("AclResourceType", aclResourceType);
|
||||
}
|
||||
|
||||
std::string DescribeAclsRequest::getAclResourceName()const
|
||||
{
|
||||
return aclResourceName_;
|
||||
}
|
||||
|
||||
void DescribeAclsRequest::setAclResourceName(const std::string& aclResourceName)
|
||||
{
|
||||
aclResourceName_ = aclResourceName;
|
||||
setParameter("AclResourceName", aclResourceName);
|
||||
}
|
||||
|
||||
std::string DescribeAclsRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DescribeAclsRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string DescribeAclsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeAclsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeAclsRequest::getUsername()const
|
||||
{
|
||||
return username_;
|
||||
}
|
||||
|
||||
void DescribeAclsRequest::setUsername(const std::string& username)
|
||||
{
|
||||
username_ = username;
|
||||
setParameter("Username", username);
|
||||
}
|
||||
|
||||
88
alikafka/src/model/DescribeAclsResult.cc
Normal file
88
alikafka/src/model/DescribeAclsResult.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/alikafka/model/DescribeAclsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alikafka;
|
||||
using namespace AlibabaCloud::Alikafka::Model;
|
||||
|
||||
DescribeAclsResult::DescribeAclsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeAclsResult::DescribeAclsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeAclsResult::~DescribeAclsResult()
|
||||
{}
|
||||
|
||||
void DescribeAclsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allKafkaAclListNode = value["KafkaAclList"]["KafkaAclVO"];
|
||||
for (auto valueKafkaAclListKafkaAclVO : allKafkaAclListNode)
|
||||
{
|
||||
KafkaAclVO kafkaAclListObject;
|
||||
if(!valueKafkaAclListKafkaAclVO["Username"].isNull())
|
||||
kafkaAclListObject.username = valueKafkaAclListKafkaAclVO["Username"].asString();
|
||||
if(!valueKafkaAclListKafkaAclVO["AclResourceType"].isNull())
|
||||
kafkaAclListObject.aclResourceType = valueKafkaAclListKafkaAclVO["AclResourceType"].asString();
|
||||
if(!valueKafkaAclListKafkaAclVO["AclResourceName"].isNull())
|
||||
kafkaAclListObject.aclResourceName = valueKafkaAclListKafkaAclVO["AclResourceName"].asString();
|
||||
if(!valueKafkaAclListKafkaAclVO["AclResourcePatternType"].isNull())
|
||||
kafkaAclListObject.aclResourcePatternType = valueKafkaAclListKafkaAclVO["AclResourcePatternType"].asString();
|
||||
if(!valueKafkaAclListKafkaAclVO["Host"].isNull())
|
||||
kafkaAclListObject.host = valueKafkaAclListKafkaAclVO["Host"].asString();
|
||||
if(!valueKafkaAclListKafkaAclVO["AclOperationType"].isNull())
|
||||
kafkaAclListObject.aclOperationType = valueKafkaAclListKafkaAclVO["AclOperationType"].asString();
|
||||
kafkaAclList_.push_back(kafkaAclListObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeAclsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DescribeAclsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DescribeAclsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::vector<DescribeAclsResult::KafkaAclVO> DescribeAclsResult::getKafkaAclList()const
|
||||
{
|
||||
return kafkaAclList_;
|
||||
}
|
||||
|
||||
51
alikafka/src/model/DescribeNodeStatusRequest.cc
Normal file
51
alikafka/src/model/DescribeNodeStatusRequest.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/alikafka/model/DescribeNodeStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::Alikafka::Model::DescribeNodeStatusRequest;
|
||||
|
||||
DescribeNodeStatusRequest::DescribeNodeStatusRequest() :
|
||||
RpcServiceRequest("alikafka", "2019-09-16", "DescribeNodeStatus")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeNodeStatusRequest::~DescribeNodeStatusRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeNodeStatusRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DescribeNodeStatusRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string DescribeNodeStatusRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeNodeStatusRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
73
alikafka/src/model/DescribeNodeStatusResult.cc
Normal file
73
alikafka/src/model/DescribeNodeStatusResult.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/alikafka/model/DescribeNodeStatusResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alikafka;
|
||||
using namespace AlibabaCloud::Alikafka::Model;
|
||||
|
||||
DescribeNodeStatusResult::DescribeNodeStatusResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeNodeStatusResult::DescribeNodeStatusResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeNodeStatusResult::~DescribeNodeStatusResult()
|
||||
{}
|
||||
|
||||
void DescribeNodeStatusResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allStatusList = value["StatusList"]["Status"];
|
||||
for (const auto &item : allStatusList)
|
||||
statusList_.push_back(item.asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeNodeStatusResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeNodeStatusResult::getStatusList()const
|
||||
{
|
||||
return statusList_;
|
||||
}
|
||||
|
||||
int DescribeNodeStatusResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DescribeNodeStatusResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
51
alikafka/src/model/DescribeSaslUsersRequest.cc
Normal file
51
alikafka/src/model/DescribeSaslUsersRequest.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/alikafka/model/DescribeSaslUsersRequest.h>
|
||||
|
||||
using AlibabaCloud::Alikafka::Model::DescribeSaslUsersRequest;
|
||||
|
||||
DescribeSaslUsersRequest::DescribeSaslUsersRequest() :
|
||||
RpcServiceRequest("alikafka", "2019-09-16", "DescribeSaslUsers")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeSaslUsersRequest::~DescribeSaslUsersRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeSaslUsersRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DescribeSaslUsersRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string DescribeSaslUsersRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeSaslUsersRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
82
alikafka/src/model/DescribeSaslUsersResult.cc
Normal file
82
alikafka/src/model/DescribeSaslUsersResult.cc
Normal file
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* 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/alikafka/model/DescribeSaslUsersResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alikafka;
|
||||
using namespace AlibabaCloud::Alikafka::Model;
|
||||
|
||||
DescribeSaslUsersResult::DescribeSaslUsersResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeSaslUsersResult::DescribeSaslUsersResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeSaslUsersResult::~DescribeSaslUsersResult()
|
||||
{}
|
||||
|
||||
void DescribeSaslUsersResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allSaslUserListNode = value["SaslUserList"]["SaslUserVO"];
|
||||
for (auto valueSaslUserListSaslUserVO : allSaslUserListNode)
|
||||
{
|
||||
SaslUserVO saslUserListObject;
|
||||
if(!valueSaslUserListSaslUserVO["Username"].isNull())
|
||||
saslUserListObject.username = valueSaslUserListSaslUserVO["Username"].asString();
|
||||
if(!valueSaslUserListSaslUserVO["Password"].isNull())
|
||||
saslUserListObject.password = valueSaslUserListSaslUserVO["Password"].asString();
|
||||
if(!valueSaslUserListSaslUserVO["Type"].isNull())
|
||||
saslUserListObject.type = valueSaslUserListSaslUserVO["Type"].asString();
|
||||
saslUserList_.push_back(saslUserListObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeSaslUsersResult::SaslUserVO> DescribeSaslUsersResult::getSaslUserList()const
|
||||
{
|
||||
return saslUserList_;
|
||||
}
|
||||
|
||||
std::string DescribeSaslUsersResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DescribeSaslUsersResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DescribeSaslUsersResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
51
alikafka/src/model/GetAllowedIpListRequest.cc
Normal file
51
alikafka/src/model/GetAllowedIpListRequest.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/alikafka/model/GetAllowedIpListRequest.h>
|
||||
|
||||
using AlibabaCloud::Alikafka::Model::GetAllowedIpListRequest;
|
||||
|
||||
GetAllowedIpListRequest::GetAllowedIpListRequest() :
|
||||
RpcServiceRequest("alikafka", "2019-09-16", "GetAllowedIpList")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetAllowedIpListRequest::~GetAllowedIpListRequest()
|
||||
{}
|
||||
|
||||
std::string GetAllowedIpListRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void GetAllowedIpListRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string GetAllowedIpListRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetAllowedIpListRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
95
alikafka/src/model/GetAllowedIpListResult.cc
Normal file
95
alikafka/src/model/GetAllowedIpListResult.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/alikafka/model/GetAllowedIpListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alikafka;
|
||||
using namespace AlibabaCloud::Alikafka::Model;
|
||||
|
||||
GetAllowedIpListResult::GetAllowedIpListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetAllowedIpListResult::GetAllowedIpListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetAllowedIpListResult::~GetAllowedIpListResult()
|
||||
{}
|
||||
|
||||
void GetAllowedIpListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allowedListNode = value["AllowedList"];
|
||||
if(!allowedListNode["DeployType"].isNull())
|
||||
allowedList_.deployType = std::stoi(allowedListNode["DeployType"].asString());
|
||||
auto allVpcListNode = allowedListNode["VpcList"]["IPListVO"];
|
||||
for (auto allowedListNodeVpcListIPListVO : allVpcListNode)
|
||||
{
|
||||
AllowedList::IPListVO iPListVOObject;
|
||||
if(!allowedListNodeVpcListIPListVO["PortRange"].isNull())
|
||||
iPListVOObject.portRange = allowedListNodeVpcListIPListVO["PortRange"].asString();
|
||||
auto allAllowedIpList = value["AllowedIpList"]["IPVO"];
|
||||
for (auto value : allAllowedIpList)
|
||||
iPListVOObject.allowedIpList.push_back(value.asString());
|
||||
allowedList_.vpcList.push_back(iPListVOObject);
|
||||
}
|
||||
auto allInternetListNode = allowedListNode["InternetList"]["IPListVO"];
|
||||
for (auto allowedListNodeInternetListIPListVO : allInternetListNode)
|
||||
{
|
||||
AllowedList::IPListVO iPListVOObject;
|
||||
if(!allowedListNodeInternetListIPListVO["PortRange"].isNull())
|
||||
iPListVOObject.portRange = allowedListNodeInternetListIPListVO["PortRange"].asString();
|
||||
auto allAllowedIpList = value["AllowedIpList"]["IPVO"];
|
||||
for (auto value : allAllowedIpList)
|
||||
iPListVOObject.allowedIpList.push_back(value.asString());
|
||||
allowedList_.internetList.push_back(iPListVOObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
GetAllowedIpListResult::AllowedList GetAllowedIpListResult::getAllowedList()const
|
||||
{
|
||||
return allowedList_;
|
||||
}
|
||||
|
||||
std::string GetAllowedIpListResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int GetAllowedIpListResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetAllowedIpListResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
73
alikafka/src/model/GetConsumerListRequest.cc
Normal file
73
alikafka/src/model/GetConsumerListRequest.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/alikafka/model/GetConsumerListRequest.h>
|
||||
|
||||
using AlibabaCloud::Alikafka::Model::GetConsumerListRequest;
|
||||
|
||||
GetConsumerListRequest::GetConsumerListRequest() :
|
||||
RpcServiceRequest("alikafka", "2019-09-16", "GetConsumerList")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetConsumerListRequest::~GetConsumerListRequest()
|
||||
{}
|
||||
|
||||
int GetConsumerListRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void GetConsumerListRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string GetConsumerListRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void GetConsumerListRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string GetConsumerListRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetConsumerListRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
int GetConsumerListRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void GetConsumerListRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
94
alikafka/src/model/GetConsumerListResult.cc
Normal file
94
alikafka/src/model/GetConsumerListResult.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/alikafka/model/GetConsumerListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alikafka;
|
||||
using namespace AlibabaCloud::Alikafka::Model;
|
||||
|
||||
GetConsumerListResult::GetConsumerListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetConsumerListResult::GetConsumerListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetConsumerListResult::~GetConsumerListResult()
|
||||
{}
|
||||
|
||||
void GetConsumerListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allConsumerListNode = value["ConsumerList"]["ConsumerVO"];
|
||||
for (auto valueConsumerListConsumerVO : allConsumerListNode)
|
||||
{
|
||||
ConsumerVO consumerListObject;
|
||||
if(!valueConsumerListConsumerVO["RegionId"].isNull())
|
||||
consumerListObject.regionId = valueConsumerListConsumerVO["RegionId"].asString();
|
||||
if(!valueConsumerListConsumerVO["InstanceId"].isNull())
|
||||
consumerListObject.instanceId = valueConsumerListConsumerVO["InstanceId"].asString();
|
||||
if(!valueConsumerListConsumerVO["ConsumerId"].isNull())
|
||||
consumerListObject.consumerId = valueConsumerListConsumerVO["ConsumerId"].asString();
|
||||
if(!valueConsumerListConsumerVO["Remark"].isNull())
|
||||
consumerListObject.remark = valueConsumerListConsumerVO["Remark"].asString();
|
||||
auto allTagsNode = valueConsumerListConsumerVO["Tags"]["TagVO"];
|
||||
for (auto valueConsumerListConsumerVOTagsTagVO : allTagsNode)
|
||||
{
|
||||
ConsumerVO::TagVO tagsObject;
|
||||
if(!valueConsumerListConsumerVOTagsTagVO["Key"].isNull())
|
||||
tagsObject.key = valueConsumerListConsumerVOTagsTagVO["Key"].asString();
|
||||
if(!valueConsumerListConsumerVOTagsTagVO["Value"].isNull())
|
||||
tagsObject.value = valueConsumerListConsumerVOTagsTagVO["Value"].asString();
|
||||
consumerListObject.tags.push_back(tagsObject);
|
||||
}
|
||||
consumerList_.push_back(consumerListObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetConsumerListResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::vector<GetConsumerListResult::ConsumerVO> GetConsumerListResult::getConsumerList()const
|
||||
{
|
||||
return consumerList_;
|
||||
}
|
||||
|
||||
int GetConsumerListResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetConsumerListResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
62
alikafka/src/model/GetConsumerProgressRequest.cc
Normal file
62
alikafka/src/model/GetConsumerProgressRequest.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/alikafka/model/GetConsumerProgressRequest.h>
|
||||
|
||||
using AlibabaCloud::Alikafka::Model::GetConsumerProgressRequest;
|
||||
|
||||
GetConsumerProgressRequest::GetConsumerProgressRequest() :
|
||||
RpcServiceRequest("alikafka", "2019-09-16", "GetConsumerProgress")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetConsumerProgressRequest::~GetConsumerProgressRequest()
|
||||
{}
|
||||
|
||||
std::string GetConsumerProgressRequest::getConsumerId()const
|
||||
{
|
||||
return consumerId_;
|
||||
}
|
||||
|
||||
void GetConsumerProgressRequest::setConsumerId(const std::string& consumerId)
|
||||
{
|
||||
consumerId_ = consumerId;
|
||||
setParameter("ConsumerId", consumerId);
|
||||
}
|
||||
|
||||
std::string GetConsumerProgressRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void GetConsumerProgressRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string GetConsumerProgressRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetConsumerProgressRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
101
alikafka/src/model/GetConsumerProgressResult.cc
Normal file
101
alikafka/src/model/GetConsumerProgressResult.cc
Normal file
@@ -0,0 +1,101 @@
|
||||
/*
|
||||
* 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/alikafka/model/GetConsumerProgressResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alikafka;
|
||||
using namespace AlibabaCloud::Alikafka::Model;
|
||||
|
||||
GetConsumerProgressResult::GetConsumerProgressResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetConsumerProgressResult::GetConsumerProgressResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetConsumerProgressResult::~GetConsumerProgressResult()
|
||||
{}
|
||||
|
||||
void GetConsumerProgressResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto consumerProgressNode = value["ConsumerProgress"];
|
||||
if(!consumerProgressNode["TotalDiff"].isNull())
|
||||
consumerProgress_.totalDiff = std::stol(consumerProgressNode["TotalDiff"].asString());
|
||||
if(!consumerProgressNode["LastTimestamp"].isNull())
|
||||
consumerProgress_.lastTimestamp = std::stol(consumerProgressNode["LastTimestamp"].asString());
|
||||
auto allTopicListNode = consumerProgressNode["TopicList"]["TopicListItem"];
|
||||
for (auto consumerProgressNodeTopicListTopicListItem : allTopicListNode)
|
||||
{
|
||||
ConsumerProgress::TopicListItem topicListItemObject;
|
||||
if(!consumerProgressNodeTopicListTopicListItem["Topic"].isNull())
|
||||
topicListItemObject.topic = consumerProgressNodeTopicListTopicListItem["Topic"].asString();
|
||||
if(!consumerProgressNodeTopicListTopicListItem["TotalDiff"].isNull())
|
||||
topicListItemObject.totalDiff = std::stol(consumerProgressNodeTopicListTopicListItem["TotalDiff"].asString());
|
||||
if(!consumerProgressNodeTopicListTopicListItem["LastTimestamp"].isNull())
|
||||
topicListItemObject.lastTimestamp = std::stol(consumerProgressNodeTopicListTopicListItem["LastTimestamp"].asString());
|
||||
auto allOffsetListNode = consumerProgressNodeTopicListTopicListItem["OffsetList"]["OffsetListItem"];
|
||||
for (auto consumerProgressNodeTopicListTopicListItemOffsetListOffsetListItem : allOffsetListNode)
|
||||
{
|
||||
ConsumerProgress::TopicListItem::OffsetListItem offsetListObject;
|
||||
if(!consumerProgressNodeTopicListTopicListItemOffsetListOffsetListItem["BrokerOffset"].isNull())
|
||||
offsetListObject.brokerOffset = std::stol(consumerProgressNodeTopicListTopicListItemOffsetListOffsetListItem["BrokerOffset"].asString());
|
||||
if(!consumerProgressNodeTopicListTopicListItemOffsetListOffsetListItem["ConsumerOffset"].isNull())
|
||||
offsetListObject.consumerOffset = std::stol(consumerProgressNodeTopicListTopicListItemOffsetListOffsetListItem["ConsumerOffset"].asString());
|
||||
if(!consumerProgressNodeTopicListTopicListItemOffsetListOffsetListItem["LastTimestamp"].isNull())
|
||||
offsetListObject.lastTimestamp = std::stol(consumerProgressNodeTopicListTopicListItemOffsetListOffsetListItem["LastTimestamp"].asString());
|
||||
if(!consumerProgressNodeTopicListTopicListItemOffsetListOffsetListItem["Partition"].isNull())
|
||||
offsetListObject.partition = std::stoi(consumerProgressNodeTopicListTopicListItemOffsetListOffsetListItem["Partition"].asString());
|
||||
topicListItemObject.offsetList.push_back(offsetListObject);
|
||||
}
|
||||
consumerProgress_.topicList.push_back(topicListItemObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetConsumerProgressResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
GetConsumerProgressResult::ConsumerProgress GetConsumerProgressResult::getConsumerProgress()const
|
||||
{
|
||||
return consumerProgress_;
|
||||
}
|
||||
|
||||
int GetConsumerProgressResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetConsumerProgressResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
80
alikafka/src/model/GetInstanceListRequest.cc
Normal file
80
alikafka/src/model/GetInstanceListRequest.cc
Normal 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/alikafka/model/GetInstanceListRequest.h>
|
||||
|
||||
using AlibabaCloud::Alikafka::Model::GetInstanceListRequest;
|
||||
|
||||
GetInstanceListRequest::GetInstanceListRequest() :
|
||||
RpcServiceRequest("alikafka", "2019-09-16", "GetInstanceList")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetInstanceListRequest::~GetInstanceListRequest()
|
||||
{}
|
||||
|
||||
std::string GetInstanceListRequest::getOrderId()const
|
||||
{
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
void GetInstanceListRequest::setOrderId(const std::string& orderId)
|
||||
{
|
||||
orderId_ = orderId;
|
||||
setParameter("OrderId", orderId);
|
||||
}
|
||||
|
||||
std::vector<std::string> GetInstanceListRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void GetInstanceListRequest::setInstanceId(const std::vector<std::string>& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
for(int dep1 = 0; dep1!= instanceId.size(); dep1++) {
|
||||
setParameter("InstanceId."+ std::to_string(dep1), instanceId.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::string GetInstanceListRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetInstanceListRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::vector<GetInstanceListRequest::Tag> GetInstanceListRequest::getTag()const
|
||||
{
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void GetInstanceListRequest::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 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
133
alikafka/src/model/GetInstanceListResult.cc
Normal file
133
alikafka/src/model/GetInstanceListResult.cc
Normal file
@@ -0,0 +1,133 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alikafka/model/GetInstanceListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alikafka;
|
||||
using namespace AlibabaCloud::Alikafka::Model;
|
||||
|
||||
GetInstanceListResult::GetInstanceListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetInstanceListResult::GetInstanceListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetInstanceListResult::~GetInstanceListResult()
|
||||
{}
|
||||
|
||||
void GetInstanceListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allInstanceListNode = value["InstanceList"]["InstanceVO"];
|
||||
for (auto valueInstanceListInstanceVO : allInstanceListNode)
|
||||
{
|
||||
InstanceVO instanceListObject;
|
||||
if(!valueInstanceListInstanceVO["InstanceId"].isNull())
|
||||
instanceListObject.instanceId = valueInstanceListInstanceVO["InstanceId"].asString();
|
||||
if(!valueInstanceListInstanceVO["RegionId"].isNull())
|
||||
instanceListObject.regionId = valueInstanceListInstanceVO["RegionId"].asString();
|
||||
if(!valueInstanceListInstanceVO["ServiceStatus"].isNull())
|
||||
instanceListObject.serviceStatus = std::stoi(valueInstanceListInstanceVO["ServiceStatus"].asString());
|
||||
if(!valueInstanceListInstanceVO["VpcId"].isNull())
|
||||
instanceListObject.vpcId = valueInstanceListInstanceVO["VpcId"].asString();
|
||||
if(!valueInstanceListInstanceVO["VSwitchId"].isNull())
|
||||
instanceListObject.vSwitchId = valueInstanceListInstanceVO["VSwitchId"].asString();
|
||||
if(!valueInstanceListInstanceVO["EndPoint"].isNull())
|
||||
instanceListObject.endPoint = valueInstanceListInstanceVO["EndPoint"].asString();
|
||||
if(!valueInstanceListInstanceVO["CreateTime"].isNull())
|
||||
instanceListObject.createTime = std::stol(valueInstanceListInstanceVO["CreateTime"].asString());
|
||||
if(!valueInstanceListInstanceVO["ExpiredTime"].isNull())
|
||||
instanceListObject.expiredTime = std::stol(valueInstanceListInstanceVO["ExpiredTime"].asString());
|
||||
if(!valueInstanceListInstanceVO["DeployType"].isNull())
|
||||
instanceListObject.deployType = std::stoi(valueInstanceListInstanceVO["DeployType"].asString());
|
||||
if(!valueInstanceListInstanceVO["SslEndPoint"].isNull())
|
||||
instanceListObject.sslEndPoint = valueInstanceListInstanceVO["SslEndPoint"].asString();
|
||||
if(!valueInstanceListInstanceVO["Name"].isNull())
|
||||
instanceListObject.name = valueInstanceListInstanceVO["Name"].asString();
|
||||
if(!valueInstanceListInstanceVO["IoMax"].isNull())
|
||||
instanceListObject.ioMax = std::stoi(valueInstanceListInstanceVO["IoMax"].asString());
|
||||
if(!valueInstanceListInstanceVO["EipMax"].isNull())
|
||||
instanceListObject.eipMax = std::stoi(valueInstanceListInstanceVO["EipMax"].asString());
|
||||
if(!valueInstanceListInstanceVO["DiskType"].isNull())
|
||||
instanceListObject.diskType = std::stoi(valueInstanceListInstanceVO["DiskType"].asString());
|
||||
if(!valueInstanceListInstanceVO["DiskSize"].isNull())
|
||||
instanceListObject.diskSize = std::stoi(valueInstanceListInstanceVO["DiskSize"].asString());
|
||||
if(!valueInstanceListInstanceVO["MsgRetain"].isNull())
|
||||
instanceListObject.msgRetain = std::stoi(valueInstanceListInstanceVO["MsgRetain"].asString());
|
||||
if(!valueInstanceListInstanceVO["TopicNumLimit"].isNull())
|
||||
instanceListObject.topicNumLimit = std::stoi(valueInstanceListInstanceVO["TopicNumLimit"].asString());
|
||||
if(!valueInstanceListInstanceVO["ZoneId"].isNull())
|
||||
instanceListObject.zoneId = valueInstanceListInstanceVO["ZoneId"].asString();
|
||||
if(!valueInstanceListInstanceVO["PaidType"].isNull())
|
||||
instanceListObject.paidType = std::stoi(valueInstanceListInstanceVO["PaidType"].asString());
|
||||
if(!valueInstanceListInstanceVO["SpecType"].isNull())
|
||||
instanceListObject.specType = valueInstanceListInstanceVO["SpecType"].asString();
|
||||
if(!valueInstanceListInstanceVO["SecurityGroup"].isNull())
|
||||
instanceListObject.securityGroup = valueInstanceListInstanceVO["SecurityGroup"].asString();
|
||||
if(!valueInstanceListInstanceVO["AllConfig"].isNull())
|
||||
instanceListObject.allConfig = valueInstanceListInstanceVO["AllConfig"].asString();
|
||||
auto allTagsNode = valueInstanceListInstanceVO["Tags"]["TagVO"];
|
||||
for (auto valueInstanceListInstanceVOTagsTagVO : allTagsNode)
|
||||
{
|
||||
InstanceVO::TagVO tagsObject;
|
||||
if(!valueInstanceListInstanceVOTagsTagVO["Key"].isNull())
|
||||
tagsObject.key = valueInstanceListInstanceVOTagsTagVO["Key"].asString();
|
||||
if(!valueInstanceListInstanceVOTagsTagVO["Value"].isNull())
|
||||
tagsObject.value = valueInstanceListInstanceVOTagsTagVO["Value"].asString();
|
||||
instanceListObject.tags.push_back(tagsObject);
|
||||
}
|
||||
auto upgradeServiceDetailInfoNode = value["UpgradeServiceDetailInfo"];
|
||||
if(!upgradeServiceDetailInfoNode["Current2OpenSourceVersion"].isNull())
|
||||
instanceListObject.upgradeServiceDetailInfo.current2OpenSourceVersion = upgradeServiceDetailInfoNode["Current2OpenSourceVersion"].asString();
|
||||
instanceList_.push_back(instanceListObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetInstanceListResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::vector<GetInstanceListResult::InstanceVO> GetInstanceListResult::getInstanceList()const
|
||||
{
|
||||
return instanceList_;
|
||||
}
|
||||
|
||||
int GetInstanceListResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetInstanceListResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
51
alikafka/src/model/GetMetaProductListRequest.cc
Normal file
51
alikafka/src/model/GetMetaProductListRequest.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/alikafka/model/GetMetaProductListRequest.h>
|
||||
|
||||
using AlibabaCloud::Alikafka::Model::GetMetaProductListRequest;
|
||||
|
||||
GetMetaProductListRequest::GetMetaProductListRequest() :
|
||||
RpcServiceRequest("alikafka", "2019-09-16", "GetMetaProductList")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetMetaProductListRequest::~GetMetaProductListRequest()
|
||||
{}
|
||||
|
||||
std::string GetMetaProductListRequest::getListNormal()const
|
||||
{
|
||||
return listNormal_;
|
||||
}
|
||||
|
||||
void GetMetaProductListRequest::setListNormal(const std::string& listNormal)
|
||||
{
|
||||
listNormal_ = listNormal;
|
||||
setParameter("ListNormal", listNormal);
|
||||
}
|
||||
|
||||
std::string GetMetaProductListRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetMetaProductListRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
113
alikafka/src/model/GetMetaProductListResult.cc
Normal file
113
alikafka/src/model/GetMetaProductListResult.cc
Normal file
@@ -0,0 +1,113 @@
|
||||
/*
|
||||
* 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/alikafka/model/GetMetaProductListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alikafka;
|
||||
using namespace AlibabaCloud::Alikafka::Model;
|
||||
|
||||
GetMetaProductListResult::GetMetaProductListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetMetaProductListResult::GetMetaProductListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetMetaProductListResult::~GetMetaProductListResult()
|
||||
{}
|
||||
|
||||
void GetMetaProductListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto metaDataNode = value["MetaData"];
|
||||
if(!metaDataNode["Names"].isNull())
|
||||
metaData_.names = metaDataNode["Names"].asString();
|
||||
auto allProductsNormalNode = metaDataNode["ProductsNormal"]["SpecVO"];
|
||||
for (auto metaDataNodeProductsNormalSpecVO : allProductsNormalNode)
|
||||
{
|
||||
MetaData::SpecVO specVOObject;
|
||||
if(!metaDataNodeProductsNormalSpecVO["RegionId"].isNull())
|
||||
specVOObject.regionId = metaDataNodeProductsNormalSpecVO["RegionId"].asString();
|
||||
if(!metaDataNodeProductsNormalSpecVO["SpecType"].isNull())
|
||||
specVOObject.specType = metaDataNodeProductsNormalSpecVO["SpecType"].asString();
|
||||
if(!metaDataNodeProductsNormalSpecVO["IoMax"].isNull())
|
||||
specVOObject.ioMax = std::stol(metaDataNodeProductsNormalSpecVO["IoMax"].asString());
|
||||
if(!metaDataNodeProductsNormalSpecVO["DiskType"].isNull())
|
||||
specVOObject.diskType = metaDataNodeProductsNormalSpecVO["DiskType"].asString();
|
||||
if(!metaDataNodeProductsNormalSpecVO["DiskSize"].isNull())
|
||||
specVOObject.diskSize = metaDataNodeProductsNormalSpecVO["DiskSize"].asString();
|
||||
if(!metaDataNodeProductsNormalSpecVO["TopicQuota"].isNull())
|
||||
specVOObject.topicQuota = metaDataNodeProductsNormalSpecVO["TopicQuota"].asString();
|
||||
if(!metaDataNodeProductsNormalSpecVO["DeployType"].isNull())
|
||||
specVOObject.deployType = metaDataNodeProductsNormalSpecVO["DeployType"].asString();
|
||||
metaData_.productsNormal.push_back(specVOObject);
|
||||
}
|
||||
auto allProductsProfessionalNode = metaDataNode["ProductsProfessional"]["SpecVO"];
|
||||
for (auto metaDataNodeProductsProfessionalSpecVO : allProductsProfessionalNode)
|
||||
{
|
||||
MetaData::SpecVO specVOObject;
|
||||
if(!metaDataNodeProductsProfessionalSpecVO["RegionId"].isNull())
|
||||
specVOObject.regionId = metaDataNodeProductsProfessionalSpecVO["RegionId"].asString();
|
||||
if(!metaDataNodeProductsProfessionalSpecVO["SpecType"].isNull())
|
||||
specVOObject.specType = metaDataNodeProductsProfessionalSpecVO["SpecType"].asString();
|
||||
if(!metaDataNodeProductsProfessionalSpecVO["IoMax"].isNull())
|
||||
specVOObject.ioMax = std::stol(metaDataNodeProductsProfessionalSpecVO["IoMax"].asString());
|
||||
if(!metaDataNodeProductsProfessionalSpecVO["DiskType"].isNull())
|
||||
specVOObject.diskType = metaDataNodeProductsProfessionalSpecVO["DiskType"].asString();
|
||||
if(!metaDataNodeProductsProfessionalSpecVO["DiskSize"].isNull())
|
||||
specVOObject.diskSize = metaDataNodeProductsProfessionalSpecVO["DiskSize"].asString();
|
||||
if(!metaDataNodeProductsProfessionalSpecVO["TopicQuota"].isNull())
|
||||
specVOObject.topicQuota = metaDataNodeProductsProfessionalSpecVO["TopicQuota"].asString();
|
||||
if(!metaDataNodeProductsProfessionalSpecVO["DeployType"].isNull())
|
||||
specVOObject.deployType = metaDataNodeProductsProfessionalSpecVO["DeployType"].asString();
|
||||
metaData_.productsProfessional.push_back(specVOObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetMetaProductListResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
GetMetaProductListResult::MetaData GetMetaProductListResult::getMetaData()const
|
||||
{
|
||||
return metaData_;
|
||||
}
|
||||
|
||||
int GetMetaProductListResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetMetaProductListResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
73
alikafka/src/model/GetTopicListRequest.cc
Normal file
73
alikafka/src/model/GetTopicListRequest.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/alikafka/model/GetTopicListRequest.h>
|
||||
|
||||
using AlibabaCloud::Alikafka::Model::GetTopicListRequest;
|
||||
|
||||
GetTopicListRequest::GetTopicListRequest() :
|
||||
RpcServiceRequest("alikafka", "2019-09-16", "GetTopicList")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetTopicListRequest::~GetTopicListRequest()
|
||||
{}
|
||||
|
||||
std::string GetTopicListRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void GetTopicListRequest::setCurrentPage(const std::string& currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setParameter("CurrentPage", currentPage);
|
||||
}
|
||||
|
||||
std::string GetTopicListRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void GetTopicListRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string GetTopicListRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetTopicListRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string GetTopicListRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void GetTopicListRequest::setPageSize(const std::string& pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", pageSize);
|
||||
}
|
||||
|
||||
127
alikafka/src/model/GetTopicListResult.cc
Normal file
127
alikafka/src/model/GetTopicListResult.cc
Normal file
@@ -0,0 +1,127 @@
|
||||
/*
|
||||
* 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/alikafka/model/GetTopicListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alikafka;
|
||||
using namespace AlibabaCloud::Alikafka::Model;
|
||||
|
||||
GetTopicListResult::GetTopicListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetTopicListResult::GetTopicListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetTopicListResult::~GetTopicListResult()
|
||||
{}
|
||||
|
||||
void GetTopicListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allTopicListNode = value["TopicList"]["TopicVO"];
|
||||
for (auto valueTopicListTopicVO : allTopicListNode)
|
||||
{
|
||||
TopicVO topicListObject;
|
||||
if(!valueTopicListTopicVO["Topic"].isNull())
|
||||
topicListObject.topic = valueTopicListTopicVO["Topic"].asString();
|
||||
if(!valueTopicListTopicVO["CreateTime"].isNull())
|
||||
topicListObject.createTime = std::stol(valueTopicListTopicVO["CreateTime"].asString());
|
||||
if(!valueTopicListTopicVO["Remark"].isNull())
|
||||
topicListObject.remark = valueTopicListTopicVO["Remark"].asString();
|
||||
if(!valueTopicListTopicVO["Status"].isNull())
|
||||
topicListObject.status = std::stoi(valueTopicListTopicVO["Status"].asString());
|
||||
if(!valueTopicListTopicVO["InstanceId"].isNull())
|
||||
topicListObject.instanceId = valueTopicListTopicVO["InstanceId"].asString();
|
||||
if(!valueTopicListTopicVO["RegionId"].isNull())
|
||||
topicListObject.regionId = valueTopicListTopicVO["RegionId"].asString();
|
||||
if(!valueTopicListTopicVO["StatusName"].isNull())
|
||||
topicListObject.statusName = valueTopicListTopicVO["StatusName"].asString();
|
||||
if(!valueTopicListTopicVO["CompactTopic"].isNull())
|
||||
topicListObject.compactTopic = valueTopicListTopicVO["CompactTopic"].asString() == "true";
|
||||
if(!valueTopicListTopicVO["LocalTopic"].isNull())
|
||||
topicListObject.localTopic = valueTopicListTopicVO["LocalTopic"].asString() == "true";
|
||||
if(!valueTopicListTopicVO["PartitionNum"].isNull())
|
||||
topicListObject.partitionNum = std::stoi(valueTopicListTopicVO["PartitionNum"].asString());
|
||||
auto allTagsNode = valueTopicListTopicVO["Tags"]["TagVO"];
|
||||
for (auto valueTopicListTopicVOTagsTagVO : allTagsNode)
|
||||
{
|
||||
TopicVO::TagVO tagsObject;
|
||||
if(!valueTopicListTopicVOTagsTagVO["Key"].isNull())
|
||||
tagsObject.key = valueTopicListTopicVOTagsTagVO["Key"].asString();
|
||||
if(!valueTopicListTopicVOTagsTagVO["Value"].isNull())
|
||||
tagsObject.value = valueTopicListTopicVOTagsTagVO["Value"].asString();
|
||||
topicListObject.tags.push_back(tagsObject);
|
||||
}
|
||||
topicList_.push_back(topicListObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Total"].isNull())
|
||||
total_ = std::stoi(value["Total"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["CurrentPage"].isNull())
|
||||
currentPage_ = std::stoi(value["CurrentPage"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string GetTopicListResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int GetTopicListResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int GetTopicListResult::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
int GetTopicListResult::getTotal()const
|
||||
{
|
||||
return total_;
|
||||
}
|
||||
|
||||
std::vector<GetTopicListResult::TopicVO> GetTopicListResult::getTopicList()const
|
||||
{
|
||||
return topicList_;
|
||||
}
|
||||
|
||||
int GetTopicListResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetTopicListResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
62
alikafka/src/model/GetTopicStatusRequest.cc
Normal file
62
alikafka/src/model/GetTopicStatusRequest.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/alikafka/model/GetTopicStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::Alikafka::Model::GetTopicStatusRequest;
|
||||
|
||||
GetTopicStatusRequest::GetTopicStatusRequest() :
|
||||
RpcServiceRequest("alikafka", "2019-09-16", "GetTopicStatus")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetTopicStatusRequest::~GetTopicStatusRequest()
|
||||
{}
|
||||
|
||||
std::string GetTopicStatusRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void GetTopicStatusRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string GetTopicStatusRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetTopicStatusRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string GetTopicStatusRequest::getTopic()const
|
||||
{
|
||||
return topic_;
|
||||
}
|
||||
|
||||
void GetTopicStatusRequest::setTopic(const std::string& topic)
|
||||
{
|
||||
topic_ = topic;
|
||||
setParameter("Topic", topic);
|
||||
}
|
||||
|
||||
91
alikafka/src/model/GetTopicStatusResult.cc
Normal file
91
alikafka/src/model/GetTopicStatusResult.cc
Normal file
@@ -0,0 +1,91 @@
|
||||
/*
|
||||
* 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/alikafka/model/GetTopicStatusResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alikafka;
|
||||
using namespace AlibabaCloud::Alikafka::Model;
|
||||
|
||||
GetTopicStatusResult::GetTopicStatusResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetTopicStatusResult::GetTopicStatusResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetTopicStatusResult::~GetTopicStatusResult()
|
||||
{}
|
||||
|
||||
void GetTopicStatusResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto topicStatusNode = value["TopicStatus"];
|
||||
if(!topicStatusNode["TotalCount"].isNull())
|
||||
topicStatus_.totalCount = std::stol(topicStatusNode["TotalCount"].asString());
|
||||
if(!topicStatusNode["LastTimeStamp"].isNull())
|
||||
topicStatus_.lastTimeStamp = std::stol(topicStatusNode["LastTimeStamp"].asString());
|
||||
auto allOffsetTableNode = topicStatusNode["OffsetTable"]["OffsetTableItem"];
|
||||
for (auto topicStatusNodeOffsetTableOffsetTableItem : allOffsetTableNode)
|
||||
{
|
||||
TopicStatus::OffsetTableItem offsetTableItemObject;
|
||||
if(!topicStatusNodeOffsetTableOffsetTableItem["MinOffset"].isNull())
|
||||
offsetTableItemObject.minOffset = std::stol(topicStatusNodeOffsetTableOffsetTableItem["MinOffset"].asString());
|
||||
if(!topicStatusNodeOffsetTableOffsetTableItem["MaxOffset"].isNull())
|
||||
offsetTableItemObject.maxOffset = std::stol(topicStatusNodeOffsetTableOffsetTableItem["MaxOffset"].asString());
|
||||
if(!topicStatusNodeOffsetTableOffsetTableItem["LastUpdateTimestamp"].isNull())
|
||||
offsetTableItemObject.lastUpdateTimestamp = std::stol(topicStatusNodeOffsetTableOffsetTableItem["LastUpdateTimestamp"].asString());
|
||||
if(!topicStatusNodeOffsetTableOffsetTableItem["Topic"].isNull())
|
||||
offsetTableItemObject.topic = topicStatusNodeOffsetTableOffsetTableItem["Topic"].asString();
|
||||
if(!topicStatusNodeOffsetTableOffsetTableItem["Partition"].isNull())
|
||||
offsetTableItemObject.partition = std::stoi(topicStatusNodeOffsetTableOffsetTableItem["Partition"].asString());
|
||||
topicStatus_.offsetTable.push_back(offsetTableItemObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetTopicStatusResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
GetTopicStatusResult::TopicStatus GetTopicStatusResult::getTopicStatus()const
|
||||
{
|
||||
return topicStatus_;
|
||||
}
|
||||
|
||||
int GetTopicStatusResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetTopicStatusResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
91
alikafka/src/model/ListTagResourcesRequest.cc
Normal file
91
alikafka/src/model/ListTagResourcesRequest.cc
Normal file
@@ -0,0 +1,91 @@
|
||||
/*
|
||||
* 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/alikafka/model/ListTagResourcesRequest.h>
|
||||
|
||||
using AlibabaCloud::Alikafka::Model::ListTagResourcesRequest;
|
||||
|
||||
ListTagResourcesRequest::ListTagResourcesRequest() :
|
||||
RpcServiceRequest("alikafka", "2019-09-16", "ListTagResources")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListTagResourcesRequest::~ListTagResourcesRequest()
|
||||
{}
|
||||
|
||||
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++) {
|
||||
setParameter("ResourceId."+ std::to_string(dep1), resourceId.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::string ListTagResourcesRequest::getResourceType()const
|
||||
{
|
||||
return resourceType_;
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setResourceType(const std::string& resourceType)
|
||||
{
|
||||
resourceType_ = resourceType;
|
||||
setParameter("ResourceType", resourceType);
|
||||
}
|
||||
|
||||
std::string ListTagResourcesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ListTagResourcesRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("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 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
70
alikafka/src/model/ListTagResourcesResult.cc
Normal file
70
alikafka/src/model/ListTagResourcesResult.cc
Normal file
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alikafka/model/ListTagResourcesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alikafka;
|
||||
using namespace AlibabaCloud::Alikafka::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_;
|
||||
}
|
||||
|
||||
62
alikafka/src/model/ModifyInstanceNameRequest.cc
Normal file
62
alikafka/src/model/ModifyInstanceNameRequest.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/alikafka/model/ModifyInstanceNameRequest.h>
|
||||
|
||||
using AlibabaCloud::Alikafka::Model::ModifyInstanceNameRequest;
|
||||
|
||||
ModifyInstanceNameRequest::ModifyInstanceNameRequest() :
|
||||
RpcServiceRequest("alikafka", "2019-09-16", "ModifyInstanceName")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyInstanceNameRequest::~ModifyInstanceNameRequest()
|
||||
{}
|
||||
|
||||
std::string ModifyInstanceNameRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void ModifyInstanceNameRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string ModifyInstanceNameRequest::getInstanceName()const
|
||||
{
|
||||
return instanceName_;
|
||||
}
|
||||
|
||||
void ModifyInstanceNameRequest::setInstanceName(const std::string& instanceName)
|
||||
{
|
||||
instanceName_ = instanceName;
|
||||
setParameter("InstanceName", instanceName);
|
||||
}
|
||||
|
||||
std::string ModifyInstanceNameRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ModifyInstanceNameRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
65
alikafka/src/model/ModifyInstanceNameResult.cc
Normal file
65
alikafka/src/model/ModifyInstanceNameResult.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/alikafka/model/ModifyInstanceNameResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alikafka;
|
||||
using namespace AlibabaCloud::Alikafka::Model;
|
||||
|
||||
ModifyInstanceNameResult::ModifyInstanceNameResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyInstanceNameResult::ModifyInstanceNameResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyInstanceNameResult::~ModifyInstanceNameResult()
|
||||
{}
|
||||
|
||||
void ModifyInstanceNameResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ModifyInstanceNameResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int ModifyInstanceNameResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ModifyInstanceNameResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
73
alikafka/src/model/ModifyPartitionNumRequest.cc
Normal file
73
alikafka/src/model/ModifyPartitionNumRequest.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/alikafka/model/ModifyPartitionNumRequest.h>
|
||||
|
||||
using AlibabaCloud::Alikafka::Model::ModifyPartitionNumRequest;
|
||||
|
||||
ModifyPartitionNumRequest::ModifyPartitionNumRequest() :
|
||||
RpcServiceRequest("alikafka", "2019-09-16", "ModifyPartitionNum")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyPartitionNumRequest::~ModifyPartitionNumRequest()
|
||||
{}
|
||||
|
||||
std::string ModifyPartitionNumRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void ModifyPartitionNumRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string ModifyPartitionNumRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ModifyPartitionNumRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ModifyPartitionNumRequest::getTopic()const
|
||||
{
|
||||
return topic_;
|
||||
}
|
||||
|
||||
void ModifyPartitionNumRequest::setTopic(const std::string& topic)
|
||||
{
|
||||
topic_ = topic;
|
||||
setParameter("Topic", topic);
|
||||
}
|
||||
|
||||
int ModifyPartitionNumRequest::getAddPartitionNum()const
|
||||
{
|
||||
return addPartitionNum_;
|
||||
}
|
||||
|
||||
void ModifyPartitionNumRequest::setAddPartitionNum(int addPartitionNum)
|
||||
{
|
||||
addPartitionNum_ = addPartitionNum;
|
||||
setParameter("AddPartitionNum", std::to_string(addPartitionNum));
|
||||
}
|
||||
|
||||
65
alikafka/src/model/ModifyPartitionNumResult.cc
Normal file
65
alikafka/src/model/ModifyPartitionNumResult.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/alikafka/model/ModifyPartitionNumResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alikafka;
|
||||
using namespace AlibabaCloud::Alikafka::Model;
|
||||
|
||||
ModifyPartitionNumResult::ModifyPartitionNumResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyPartitionNumResult::ModifyPartitionNumResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyPartitionNumResult::~ModifyPartitionNumResult()
|
||||
{}
|
||||
|
||||
void ModifyPartitionNumResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ModifyPartitionNumResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int ModifyPartitionNumResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ModifyPartitionNumResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
73
alikafka/src/model/ModifyTopicRemarkRequest.cc
Normal file
73
alikafka/src/model/ModifyTopicRemarkRequest.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/alikafka/model/ModifyTopicRemarkRequest.h>
|
||||
|
||||
using AlibabaCloud::Alikafka::Model::ModifyTopicRemarkRequest;
|
||||
|
||||
ModifyTopicRemarkRequest::ModifyTopicRemarkRequest() :
|
||||
RpcServiceRequest("alikafka", "2019-09-16", "ModifyTopicRemark")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyTopicRemarkRequest::~ModifyTopicRemarkRequest()
|
||||
{}
|
||||
|
||||
std::string ModifyTopicRemarkRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void ModifyTopicRemarkRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string ModifyTopicRemarkRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ModifyTopicRemarkRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ModifyTopicRemarkRequest::getTopic()const
|
||||
{
|
||||
return topic_;
|
||||
}
|
||||
|
||||
void ModifyTopicRemarkRequest::setTopic(const std::string& topic)
|
||||
{
|
||||
topic_ = topic;
|
||||
setParameter("Topic", topic);
|
||||
}
|
||||
|
||||
std::string ModifyTopicRemarkRequest::getRemark()const
|
||||
{
|
||||
return remark_;
|
||||
}
|
||||
|
||||
void ModifyTopicRemarkRequest::setRemark(const std::string& remark)
|
||||
{
|
||||
remark_ = remark;
|
||||
setParameter("Remark", remark);
|
||||
}
|
||||
|
||||
65
alikafka/src/model/ModifyTopicRemarkResult.cc
Normal file
65
alikafka/src/model/ModifyTopicRemarkResult.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/alikafka/model/ModifyTopicRemarkResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alikafka;
|
||||
using namespace AlibabaCloud::Alikafka::Model;
|
||||
|
||||
ModifyTopicRemarkResult::ModifyTopicRemarkResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyTopicRemarkResult::ModifyTopicRemarkResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyTopicRemarkResult::~ModifyTopicRemarkResult()
|
||||
{}
|
||||
|
||||
void ModifyTopicRemarkResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ModifyTopicRemarkResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int ModifyTopicRemarkResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ModifyTopicRemarkResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
73
alikafka/src/model/ReleaseInstanceRequest.cc
Normal file
73
alikafka/src/model/ReleaseInstanceRequest.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/alikafka/model/ReleaseInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::Alikafka::Model::ReleaseInstanceRequest;
|
||||
|
||||
ReleaseInstanceRequest::ReleaseInstanceRequest() :
|
||||
RpcServiceRequest("alikafka", "2019-09-16", "ReleaseInstance")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ReleaseInstanceRequest::~ReleaseInstanceRequest()
|
||||
{}
|
||||
|
||||
bool ReleaseInstanceRequest::getForceDeleteInstance()const
|
||||
{
|
||||
return forceDeleteInstance_;
|
||||
}
|
||||
|
||||
void ReleaseInstanceRequest::setForceDeleteInstance(bool forceDeleteInstance)
|
||||
{
|
||||
forceDeleteInstance_ = forceDeleteInstance;
|
||||
setParameter("ForceDeleteInstance", forceDeleteInstance ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ReleaseInstanceRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void ReleaseInstanceRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string ReleaseInstanceRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ReleaseInstanceRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
bool ReleaseInstanceRequest::getReleaseIgnoreTime()const
|
||||
{
|
||||
return releaseIgnoreTime_;
|
||||
}
|
||||
|
||||
void ReleaseInstanceRequest::setReleaseIgnoreTime(bool releaseIgnoreTime)
|
||||
{
|
||||
releaseIgnoreTime_ = releaseIgnoreTime;
|
||||
setParameter("ReleaseIgnoreTime", releaseIgnoreTime ? "true" : "false");
|
||||
}
|
||||
|
||||
65
alikafka/src/model/ReleaseInstanceResult.cc
Normal file
65
alikafka/src/model/ReleaseInstanceResult.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/alikafka/model/ReleaseInstanceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alikafka;
|
||||
using namespace AlibabaCloud::Alikafka::Model;
|
||||
|
||||
ReleaseInstanceResult::ReleaseInstanceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ReleaseInstanceResult::ReleaseInstanceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ReleaseInstanceResult::~ReleaseInstanceResult()
|
||||
{}
|
||||
|
||||
void ReleaseInstanceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ReleaseInstanceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int ReleaseInstanceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ReleaseInstanceResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
205
alikafka/src/model/StartInstanceRequest.cc
Normal file
205
alikafka/src/model/StartInstanceRequest.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/alikafka/model/StartInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::Alikafka::Model::StartInstanceRequest;
|
||||
|
||||
StartInstanceRequest::StartInstanceRequest() :
|
||||
RpcServiceRequest("alikafka", "2019-09-16", "StartInstance")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
StartInstanceRequest::~StartInstanceRequest()
|
||||
{}
|
||||
|
||||
bool StartInstanceRequest::getIsEipInner()const
|
||||
{
|
||||
return isEipInner_;
|
||||
}
|
||||
|
||||
void StartInstanceRequest::setIsEipInner(bool isEipInner)
|
||||
{
|
||||
isEipInner_ = isEipInner;
|
||||
setParameter("IsEipInner", isEipInner ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string StartInstanceRequest::getSecurityGroup()const
|
||||
{
|
||||
return securityGroup_;
|
||||
}
|
||||
|
||||
void StartInstanceRequest::setSecurityGroup(const std::string& securityGroup)
|
||||
{
|
||||
securityGroup_ = securityGroup;
|
||||
setParameter("SecurityGroup", securityGroup);
|
||||
}
|
||||
|
||||
std::string StartInstanceRequest::getDeployModule()const
|
||||
{
|
||||
return deployModule_;
|
||||
}
|
||||
|
||||
void StartInstanceRequest::setDeployModule(const std::string& deployModule)
|
||||
{
|
||||
deployModule_ = deployModule;
|
||||
setParameter("DeployModule", deployModule);
|
||||
}
|
||||
|
||||
bool StartInstanceRequest::getIsSetUserAndPassword()const
|
||||
{
|
||||
return isSetUserAndPassword_;
|
||||
}
|
||||
|
||||
void StartInstanceRequest::setIsSetUserAndPassword(bool isSetUserAndPassword)
|
||||
{
|
||||
isSetUserAndPassword_ = isSetUserAndPassword;
|
||||
setParameter("IsSetUserAndPassword", isSetUserAndPassword ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string StartInstanceRequest::getPassword()const
|
||||
{
|
||||
return password_;
|
||||
}
|
||||
|
||||
void StartInstanceRequest::setPassword(const std::string& password)
|
||||
{
|
||||
password_ = password;
|
||||
setParameter("Password", password);
|
||||
}
|
||||
|
||||
std::string StartInstanceRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void StartInstanceRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string StartInstanceRequest::getVSwitchId()const
|
||||
{
|
||||
return vSwitchId_;
|
||||
}
|
||||
|
||||
void StartInstanceRequest::setVSwitchId(const std::string& vSwitchId)
|
||||
{
|
||||
vSwitchId_ = vSwitchId;
|
||||
setParameter("VSwitchId", vSwitchId);
|
||||
}
|
||||
|
||||
std::string StartInstanceRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void StartInstanceRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string StartInstanceRequest::getVpcId()const
|
||||
{
|
||||
return vpcId_;
|
||||
}
|
||||
|
||||
void StartInstanceRequest::setVpcId(const std::string& vpcId)
|
||||
{
|
||||
vpcId_ = vpcId;
|
||||
setParameter("VpcId", vpcId);
|
||||
}
|
||||
|
||||
bool StartInstanceRequest::getCrossZone()const
|
||||
{
|
||||
return crossZone_;
|
||||
}
|
||||
|
||||
void StartInstanceRequest::setCrossZone(bool crossZone)
|
||||
{
|
||||
crossZone_ = crossZone;
|
||||
setParameter("CrossZone", crossZone ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string StartInstanceRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void StartInstanceRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string StartInstanceRequest::getServiceVersion()const
|
||||
{
|
||||
return serviceVersion_;
|
||||
}
|
||||
|
||||
void StartInstanceRequest::setServiceVersion(const std::string& serviceVersion)
|
||||
{
|
||||
serviceVersion_ = serviceVersion;
|
||||
setParameter("ServiceVersion", serviceVersion);
|
||||
}
|
||||
|
||||
std::string StartInstanceRequest::getZoneId()const
|
||||
{
|
||||
return zoneId_;
|
||||
}
|
||||
|
||||
void StartInstanceRequest::setZoneId(const std::string& zoneId)
|
||||
{
|
||||
zoneId_ = zoneId;
|
||||
setParameter("ZoneId", zoneId);
|
||||
}
|
||||
|
||||
std::string StartInstanceRequest::getKMSKeyId()const
|
||||
{
|
||||
return kMSKeyId_;
|
||||
}
|
||||
|
||||
void StartInstanceRequest::setKMSKeyId(const std::string& kMSKeyId)
|
||||
{
|
||||
kMSKeyId_ = kMSKeyId;
|
||||
setParameter("KMSKeyId", kMSKeyId);
|
||||
}
|
||||
|
||||
std::string StartInstanceRequest::getConfig()const
|
||||
{
|
||||
return config_;
|
||||
}
|
||||
|
||||
void StartInstanceRequest::setConfig(const std::string& config)
|
||||
{
|
||||
config_ = config;
|
||||
setParameter("Config", config);
|
||||
}
|
||||
|
||||
std::string StartInstanceRequest::getUsername()const
|
||||
{
|
||||
return username_;
|
||||
}
|
||||
|
||||
void StartInstanceRequest::setUsername(const std::string& username)
|
||||
{
|
||||
username_ = username;
|
||||
setParameter("Username", username);
|
||||
}
|
||||
|
||||
65
alikafka/src/model/StartInstanceResult.cc
Normal file
65
alikafka/src/model/StartInstanceResult.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/alikafka/model/StartInstanceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alikafka;
|
||||
using namespace AlibabaCloud::Alikafka::Model;
|
||||
|
||||
StartInstanceResult::StartInstanceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
StartInstanceResult::StartInstanceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
StartInstanceResult::~StartInstanceResult()
|
||||
{}
|
||||
|
||||
void StartInstanceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string StartInstanceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int StartInstanceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool StartInstanceResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
80
alikafka/src/model/TagResourcesRequest.cc
Normal file
80
alikafka/src/model/TagResourcesRequest.cc
Normal 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/alikafka/model/TagResourcesRequest.h>
|
||||
|
||||
using AlibabaCloud::Alikafka::Model::TagResourcesRequest;
|
||||
|
||||
TagResourcesRequest::TagResourcesRequest() :
|
||||
RpcServiceRequest("alikafka", "2019-09-16", "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++) {
|
||||
setParameter("ResourceId."+ std::to_string(dep1), resourceId.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::string TagResourcesRequest::getResourceType()const
|
||||
{
|
||||
return resourceType_;
|
||||
}
|
||||
|
||||
void TagResourcesRequest::setResourceType(const std::string& resourceType)
|
||||
{
|
||||
resourceType_ = resourceType;
|
||||
setParameter("ResourceType", resourceType);
|
||||
}
|
||||
|
||||
std::string TagResourcesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void TagResourcesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("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 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
44
alikafka/src/model/TagResourcesResult.cc
Normal file
44
alikafka/src/model/TagResourcesResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alikafka/model/TagResourcesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alikafka;
|
||||
using namespace AlibabaCloud::Alikafka::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());
|
||||
|
||||
}
|
||||
|
||||
88
alikafka/src/model/UntagResourcesRequest.cc
Normal file
88
alikafka/src/model/UntagResourcesRequest.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/alikafka/model/UntagResourcesRequest.h>
|
||||
|
||||
using AlibabaCloud::Alikafka::Model::UntagResourcesRequest;
|
||||
|
||||
UntagResourcesRequest::UntagResourcesRequest() :
|
||||
RpcServiceRequest("alikafka", "2019-09-16", "UntagResources")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UntagResourcesRequest::~UntagResourcesRequest()
|
||||
{}
|
||||
|
||||
bool UntagResourcesRequest::getAll()const
|
||||
{
|
||||
return all_;
|
||||
}
|
||||
|
||||
void UntagResourcesRequest::setAll(bool all)
|
||||
{
|
||||
all_ = all;
|
||||
setParameter("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++) {
|
||||
setParameter("ResourceId."+ std::to_string(dep1), resourceId.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::string UntagResourcesRequest::getResourceType()const
|
||||
{
|
||||
return resourceType_;
|
||||
}
|
||||
|
||||
void UntagResourcesRequest::setResourceType(const std::string& resourceType)
|
||||
{
|
||||
resourceType_ = resourceType;
|
||||
setParameter("ResourceType", resourceType);
|
||||
}
|
||||
|
||||
std::string UntagResourcesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void UntagResourcesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
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++) {
|
||||
setParameter("TagKey."+ std::to_string(dep1), tagKey.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
44
alikafka/src/model/UntagResourcesResult.cc
Normal file
44
alikafka/src/model/UntagResourcesResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alikafka/model/UntagResourcesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alikafka;
|
||||
using namespace AlibabaCloud::Alikafka::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());
|
||||
|
||||
}
|
||||
|
||||
95
alikafka/src/model/UpdateAllowedIpRequest.cc
Normal file
95
alikafka/src/model/UpdateAllowedIpRequest.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/alikafka/model/UpdateAllowedIpRequest.h>
|
||||
|
||||
using AlibabaCloud::Alikafka::Model::UpdateAllowedIpRequest;
|
||||
|
||||
UpdateAllowedIpRequest::UpdateAllowedIpRequest() :
|
||||
RpcServiceRequest("alikafka", "2019-09-16", "UpdateAllowedIp")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateAllowedIpRequest::~UpdateAllowedIpRequest()
|
||||
{}
|
||||
|
||||
std::string UpdateAllowedIpRequest::getPortRange()const
|
||||
{
|
||||
return portRange_;
|
||||
}
|
||||
|
||||
void UpdateAllowedIpRequest::setPortRange(const std::string& portRange)
|
||||
{
|
||||
portRange_ = portRange;
|
||||
setParameter("PortRange", portRange);
|
||||
}
|
||||
|
||||
std::string UpdateAllowedIpRequest::getAllowedListIp()const
|
||||
{
|
||||
return allowedListIp_;
|
||||
}
|
||||
|
||||
void UpdateAllowedIpRequest::setAllowedListIp(const std::string& allowedListIp)
|
||||
{
|
||||
allowedListIp_ = allowedListIp;
|
||||
setParameter("AllowedListIp", allowedListIp);
|
||||
}
|
||||
|
||||
std::string UpdateAllowedIpRequest::getUpdateType()const
|
||||
{
|
||||
return updateType_;
|
||||
}
|
||||
|
||||
void UpdateAllowedIpRequest::setUpdateType(const std::string& updateType)
|
||||
{
|
||||
updateType_ = updateType;
|
||||
setParameter("UpdateType", updateType);
|
||||
}
|
||||
|
||||
std::string UpdateAllowedIpRequest::getAllowedListType()const
|
||||
{
|
||||
return allowedListType_;
|
||||
}
|
||||
|
||||
void UpdateAllowedIpRequest::setAllowedListType(const std::string& allowedListType)
|
||||
{
|
||||
allowedListType_ = allowedListType;
|
||||
setParameter("AllowedListType", allowedListType);
|
||||
}
|
||||
|
||||
std::string UpdateAllowedIpRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void UpdateAllowedIpRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string UpdateAllowedIpRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void UpdateAllowedIpRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
65
alikafka/src/model/UpdateAllowedIpResult.cc
Normal file
65
alikafka/src/model/UpdateAllowedIpResult.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/alikafka/model/UpdateAllowedIpResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alikafka;
|
||||
using namespace AlibabaCloud::Alikafka::Model;
|
||||
|
||||
UpdateAllowedIpResult::UpdateAllowedIpResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateAllowedIpResult::UpdateAllowedIpResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateAllowedIpResult::~UpdateAllowedIpResult()
|
||||
{}
|
||||
|
||||
void UpdateAllowedIpResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string UpdateAllowedIpResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int UpdateAllowedIpResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool UpdateAllowedIpResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
62
alikafka/src/model/UpdateInstanceConfigRequest.cc
Normal file
62
alikafka/src/model/UpdateInstanceConfigRequest.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/alikafka/model/UpdateInstanceConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Alikafka::Model::UpdateInstanceConfigRequest;
|
||||
|
||||
UpdateInstanceConfigRequest::UpdateInstanceConfigRequest() :
|
||||
RpcServiceRequest("alikafka", "2019-09-16", "UpdateInstanceConfig")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateInstanceConfigRequest::~UpdateInstanceConfigRequest()
|
||||
{}
|
||||
|
||||
std::string UpdateInstanceConfigRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void UpdateInstanceConfigRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string UpdateInstanceConfigRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void UpdateInstanceConfigRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string UpdateInstanceConfigRequest::getConfig()const
|
||||
{
|
||||
return config_;
|
||||
}
|
||||
|
||||
void UpdateInstanceConfigRequest::setConfig(const std::string& config)
|
||||
{
|
||||
config_ = config;
|
||||
setParameter("Config", config);
|
||||
}
|
||||
|
||||
65
alikafka/src/model/UpdateInstanceConfigResult.cc
Normal file
65
alikafka/src/model/UpdateInstanceConfigResult.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/alikafka/model/UpdateInstanceConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alikafka;
|
||||
using namespace AlibabaCloud::Alikafka::Model;
|
||||
|
||||
UpdateInstanceConfigResult::UpdateInstanceConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateInstanceConfigResult::UpdateInstanceConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateInstanceConfigResult::~UpdateInstanceConfigResult()
|
||||
{}
|
||||
|
||||
void UpdateInstanceConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string UpdateInstanceConfigResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int UpdateInstanceConfigResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool UpdateInstanceConfigResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
62
alikafka/src/model/UpgradeInstanceVersionRequest.cc
Normal file
62
alikafka/src/model/UpgradeInstanceVersionRequest.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/alikafka/model/UpgradeInstanceVersionRequest.h>
|
||||
|
||||
using AlibabaCloud::Alikafka::Model::UpgradeInstanceVersionRequest;
|
||||
|
||||
UpgradeInstanceVersionRequest::UpgradeInstanceVersionRequest() :
|
||||
RpcServiceRequest("alikafka", "2019-09-16", "UpgradeInstanceVersion")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpgradeInstanceVersionRequest::~UpgradeInstanceVersionRequest()
|
||||
{}
|
||||
|
||||
std::string UpgradeInstanceVersionRequest::getTargetVersion()const
|
||||
{
|
||||
return targetVersion_;
|
||||
}
|
||||
|
||||
void UpgradeInstanceVersionRequest::setTargetVersion(const std::string& targetVersion)
|
||||
{
|
||||
targetVersion_ = targetVersion;
|
||||
setParameter("TargetVersion", targetVersion);
|
||||
}
|
||||
|
||||
std::string UpgradeInstanceVersionRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void UpgradeInstanceVersionRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string UpgradeInstanceVersionRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void UpgradeInstanceVersionRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
65
alikafka/src/model/UpgradeInstanceVersionResult.cc
Normal file
65
alikafka/src/model/UpgradeInstanceVersionResult.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/alikafka/model/UpgradeInstanceVersionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alikafka;
|
||||
using namespace AlibabaCloud::Alikafka::Model;
|
||||
|
||||
UpgradeInstanceVersionResult::UpgradeInstanceVersionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpgradeInstanceVersionResult::UpgradeInstanceVersionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpgradeInstanceVersionResult::~UpgradeInstanceVersionResult()
|
||||
{}
|
||||
|
||||
void UpgradeInstanceVersionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string UpgradeInstanceVersionResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int UpgradeInstanceVersionResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool UpgradeInstanceVersionResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
117
alikafka/src/model/UpgradePostPayOrderRequest.cc
Normal file
117
alikafka/src/model/UpgradePostPayOrderRequest.cc
Normal file
@@ -0,0 +1,117 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alikafka/model/UpgradePostPayOrderRequest.h>
|
||||
|
||||
using AlibabaCloud::Alikafka::Model::UpgradePostPayOrderRequest;
|
||||
|
||||
UpgradePostPayOrderRequest::UpgradePostPayOrderRequest() :
|
||||
RpcServiceRequest("alikafka", "2019-09-16", "UpgradePostPayOrder")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpgradePostPayOrderRequest::~UpgradePostPayOrderRequest()
|
||||
{}
|
||||
|
||||
int UpgradePostPayOrderRequest::getDiskSize()const
|
||||
{
|
||||
return diskSize_;
|
||||
}
|
||||
|
||||
void UpgradePostPayOrderRequest::setDiskSize(int diskSize)
|
||||
{
|
||||
diskSize_ = diskSize;
|
||||
setParameter("DiskSize", std::to_string(diskSize));
|
||||
}
|
||||
|
||||
int UpgradePostPayOrderRequest::getIoMax()const
|
||||
{
|
||||
return ioMax_;
|
||||
}
|
||||
|
||||
void UpgradePostPayOrderRequest::setIoMax(int ioMax)
|
||||
{
|
||||
ioMax_ = ioMax;
|
||||
setParameter("IoMax", std::to_string(ioMax));
|
||||
}
|
||||
|
||||
std::string UpgradePostPayOrderRequest::getIoMaxSpec()const
|
||||
{
|
||||
return ioMaxSpec_;
|
||||
}
|
||||
|
||||
void UpgradePostPayOrderRequest::setIoMaxSpec(const std::string& ioMaxSpec)
|
||||
{
|
||||
ioMaxSpec_ = ioMaxSpec;
|
||||
setParameter("IoMaxSpec", ioMaxSpec);
|
||||
}
|
||||
|
||||
int UpgradePostPayOrderRequest::getTopicQuota()const
|
||||
{
|
||||
return topicQuota_;
|
||||
}
|
||||
|
||||
void UpgradePostPayOrderRequest::setTopicQuota(int topicQuota)
|
||||
{
|
||||
topicQuota_ = topicQuota;
|
||||
setParameter("TopicQuota", std::to_string(topicQuota));
|
||||
}
|
||||
|
||||
int UpgradePostPayOrderRequest::getEipMax()const
|
||||
{
|
||||
return eipMax_;
|
||||
}
|
||||
|
||||
void UpgradePostPayOrderRequest::setEipMax(int eipMax)
|
||||
{
|
||||
eipMax_ = eipMax;
|
||||
setParameter("EipMax", std::to_string(eipMax));
|
||||
}
|
||||
|
||||
std::string UpgradePostPayOrderRequest::getSpecType()const
|
||||
{
|
||||
return specType_;
|
||||
}
|
||||
|
||||
void UpgradePostPayOrderRequest::setSpecType(const std::string& specType)
|
||||
{
|
||||
specType_ = specType;
|
||||
setParameter("SpecType", specType);
|
||||
}
|
||||
|
||||
std::string UpgradePostPayOrderRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void UpgradePostPayOrderRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string UpgradePostPayOrderRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void UpgradePostPayOrderRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
65
alikafka/src/model/UpgradePostPayOrderResult.cc
Normal file
65
alikafka/src/model/UpgradePostPayOrderResult.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/alikafka/model/UpgradePostPayOrderResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alikafka;
|
||||
using namespace AlibabaCloud::Alikafka::Model;
|
||||
|
||||
UpgradePostPayOrderResult::UpgradePostPayOrderResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpgradePostPayOrderResult::UpgradePostPayOrderResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpgradePostPayOrderResult::~UpgradePostPayOrderResult()
|
||||
{}
|
||||
|
||||
void UpgradePostPayOrderResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string UpgradePostPayOrderResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int UpgradePostPayOrderResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool UpgradePostPayOrderResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
117
alikafka/src/model/UpgradePrePayOrderRequest.cc
Normal file
117
alikafka/src/model/UpgradePrePayOrderRequest.cc
Normal file
@@ -0,0 +1,117 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alikafka/model/UpgradePrePayOrderRequest.h>
|
||||
|
||||
using AlibabaCloud::Alikafka::Model::UpgradePrePayOrderRequest;
|
||||
|
||||
UpgradePrePayOrderRequest::UpgradePrePayOrderRequest() :
|
||||
RpcServiceRequest("alikafka", "2019-09-16", "UpgradePrePayOrder")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpgradePrePayOrderRequest::~UpgradePrePayOrderRequest()
|
||||
{}
|
||||
|
||||
int UpgradePrePayOrderRequest::getDiskSize()const
|
||||
{
|
||||
return diskSize_;
|
||||
}
|
||||
|
||||
void UpgradePrePayOrderRequest::setDiskSize(int diskSize)
|
||||
{
|
||||
diskSize_ = diskSize;
|
||||
setParameter("DiskSize", std::to_string(diskSize));
|
||||
}
|
||||
|
||||
int UpgradePrePayOrderRequest::getIoMax()const
|
||||
{
|
||||
return ioMax_;
|
||||
}
|
||||
|
||||
void UpgradePrePayOrderRequest::setIoMax(int ioMax)
|
||||
{
|
||||
ioMax_ = ioMax;
|
||||
setParameter("IoMax", std::to_string(ioMax));
|
||||
}
|
||||
|
||||
std::string UpgradePrePayOrderRequest::getIoMaxSpec()const
|
||||
{
|
||||
return ioMaxSpec_;
|
||||
}
|
||||
|
||||
void UpgradePrePayOrderRequest::setIoMaxSpec(const std::string& ioMaxSpec)
|
||||
{
|
||||
ioMaxSpec_ = ioMaxSpec;
|
||||
setParameter("IoMaxSpec", ioMaxSpec);
|
||||
}
|
||||
|
||||
int UpgradePrePayOrderRequest::getTopicQuota()const
|
||||
{
|
||||
return topicQuota_;
|
||||
}
|
||||
|
||||
void UpgradePrePayOrderRequest::setTopicQuota(int topicQuota)
|
||||
{
|
||||
topicQuota_ = topicQuota;
|
||||
setParameter("TopicQuota", std::to_string(topicQuota));
|
||||
}
|
||||
|
||||
int UpgradePrePayOrderRequest::getEipMax()const
|
||||
{
|
||||
return eipMax_;
|
||||
}
|
||||
|
||||
void UpgradePrePayOrderRequest::setEipMax(int eipMax)
|
||||
{
|
||||
eipMax_ = eipMax;
|
||||
setParameter("EipMax", std::to_string(eipMax));
|
||||
}
|
||||
|
||||
std::string UpgradePrePayOrderRequest::getSpecType()const
|
||||
{
|
||||
return specType_;
|
||||
}
|
||||
|
||||
void UpgradePrePayOrderRequest::setSpecType(const std::string& specType)
|
||||
{
|
||||
specType_ = specType;
|
||||
setParameter("SpecType", specType);
|
||||
}
|
||||
|
||||
std::string UpgradePrePayOrderRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void UpgradePrePayOrderRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string UpgradePrePayOrderRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void UpgradePrePayOrderRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
65
alikafka/src/model/UpgradePrePayOrderResult.cc
Normal file
65
alikafka/src/model/UpgradePrePayOrderResult.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/alikafka/model/UpgradePrePayOrderResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alikafka;
|
||||
using namespace AlibabaCloud::Alikafka::Model;
|
||||
|
||||
UpgradePrePayOrderResult::UpgradePrePayOrderResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpgradePrePayOrderResult::UpgradePrePayOrderResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpgradePrePayOrderResult::~UpgradePrePayOrderResult()
|
||||
{}
|
||||
|
||||
void UpgradePrePayOrderResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string UpgradePrePayOrderResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int UpgradePrePayOrderResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool UpgradePrePayOrderResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user