CRM SDK Auto Released By shenshi,Version:1.34.56

Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
This commit is contained in:
haowei.yao
2019-03-21 11:49:09 +08:00
parent 00a377f110
commit 50463a22aa
55 changed files with 3481 additions and 1 deletions

485
crm/src/CrmClient.cc Normal file
View File

@@ -0,0 +1,485 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/crm/CrmClient.h>
#include <alibabacloud/core/SimpleCredentialsProvider.h>
using namespace AlibabaCloud;
using namespace AlibabaCloud::Location;
using namespace AlibabaCloud::Crm;
using namespace AlibabaCloud::Crm::Model;
namespace
{
const std::string SERVICE_NAME = "Crm";
}
CrmClient::CrmClient(const Credentials &credentials, const ClientConfiguration &configuration) :
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "crm");
}
CrmClient::CrmClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "crm");
}
CrmClient::CrmClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
{
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "crm");
}
CrmClient::~CrmClient()
{}
CrmClient::CheckLabelForBidOutcome CrmClient::checkLabelForBid(const CheckLabelForBidRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CheckLabelForBidOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CheckLabelForBidOutcome(CheckLabelForBidResult(outcome.result()));
else
return CheckLabelForBidOutcome(outcome.error());
}
void CrmClient::checkLabelForBidAsync(const CheckLabelForBidRequest& request, const CheckLabelForBidAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, checkLabelForBid(request), context);
};
asyncExecute(new Runnable(fn));
}
CrmClient::CheckLabelForBidOutcomeCallable CrmClient::checkLabelForBidCallable(const CheckLabelForBidRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CheckLabelForBidOutcome()>>(
[this, request]()
{
return this->checkLabelForBid(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CrmClient::CheckLabelOutcome CrmClient::checkLabel(const CheckLabelRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CheckLabelOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CheckLabelOutcome(CheckLabelResult(outcome.result()));
else
return CheckLabelOutcome(outcome.error());
}
void CrmClient::checkLabelAsync(const CheckLabelRequest& request, const CheckLabelAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, checkLabel(request), context);
};
asyncExecute(new Runnable(fn));
}
CrmClient::CheckLabelOutcomeCallable CrmClient::checkLabelCallable(const CheckLabelRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CheckLabelOutcome()>>(
[this, request]()
{
return this->checkLabel(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CrmClient::DeleteLabelForBidOutcome CrmClient::deleteLabelForBid(const DeleteLabelForBidRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteLabelForBidOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteLabelForBidOutcome(DeleteLabelForBidResult(outcome.result()));
else
return DeleteLabelForBidOutcome(outcome.error());
}
void CrmClient::deleteLabelForBidAsync(const DeleteLabelForBidRequest& request, const DeleteLabelForBidAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteLabelForBid(request), context);
};
asyncExecute(new Runnable(fn));
}
CrmClient::DeleteLabelForBidOutcomeCallable CrmClient::deleteLabelForBidCallable(const DeleteLabelForBidRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteLabelForBidOutcome()>>(
[this, request]()
{
return this->deleteLabelForBid(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CrmClient::AddIdentityCertifiedForBidUserOutcome CrmClient::addIdentityCertifiedForBidUser(const AddIdentityCertifiedForBidUserRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return AddIdentityCertifiedForBidUserOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return AddIdentityCertifiedForBidUserOutcome(AddIdentityCertifiedForBidUserResult(outcome.result()));
else
return AddIdentityCertifiedForBidUserOutcome(outcome.error());
}
void CrmClient::addIdentityCertifiedForBidUserAsync(const AddIdentityCertifiedForBidUserRequest& request, const AddIdentityCertifiedForBidUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, addIdentityCertifiedForBidUser(request), context);
};
asyncExecute(new Runnable(fn));
}
CrmClient::AddIdentityCertifiedForBidUserOutcomeCallable CrmClient::addIdentityCertifiedForBidUserCallable(const AddIdentityCertifiedForBidUserRequest &request) const
{
auto task = std::make_shared<std::packaged_task<AddIdentityCertifiedForBidUserOutcome()>>(
[this, request]()
{
return this->addIdentityCertifiedForBidUser(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CrmClient::GetAliyunPkByAliyunIdOutcome CrmClient::getAliyunPkByAliyunId(const GetAliyunPkByAliyunIdRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetAliyunPkByAliyunIdOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetAliyunPkByAliyunIdOutcome(GetAliyunPkByAliyunIdResult(outcome.result()));
else
return GetAliyunPkByAliyunIdOutcome(outcome.error());
}
void CrmClient::getAliyunPkByAliyunIdAsync(const GetAliyunPkByAliyunIdRequest& request, const GetAliyunPkByAliyunIdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getAliyunPkByAliyunId(request), context);
};
asyncExecute(new Runnable(fn));
}
CrmClient::GetAliyunPkByAliyunIdOutcomeCallable CrmClient::getAliyunPkByAliyunIdCallable(const GetAliyunPkByAliyunIdRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetAliyunPkByAliyunIdOutcome()>>(
[this, request]()
{
return this->getAliyunPkByAliyunId(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CrmClient::QueryCustomerLabelOutcome CrmClient::queryCustomerLabel(const QueryCustomerLabelRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return QueryCustomerLabelOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return QueryCustomerLabelOutcome(QueryCustomerLabelResult(outcome.result()));
else
return QueryCustomerLabelOutcome(outcome.error());
}
void CrmClient::queryCustomerLabelAsync(const QueryCustomerLabelRequest& request, const QueryCustomerLabelAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, queryCustomerLabel(request), context);
};
asyncExecute(new Runnable(fn));
}
CrmClient::QueryCustomerLabelOutcomeCallable CrmClient::queryCustomerLabelCallable(const QueryCustomerLabelRequest &request) const
{
auto task = std::make_shared<std::packaged_task<QueryCustomerLabelOutcome()>>(
[this, request]()
{
return this->queryCustomerLabel(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CrmClient::RemoveIdentityCertifiedForBidUserOutcome CrmClient::removeIdentityCertifiedForBidUser(const RemoveIdentityCertifiedForBidUserRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return RemoveIdentityCertifiedForBidUserOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return RemoveIdentityCertifiedForBidUserOutcome(RemoveIdentityCertifiedForBidUserResult(outcome.result()));
else
return RemoveIdentityCertifiedForBidUserOutcome(outcome.error());
}
void CrmClient::removeIdentityCertifiedForBidUserAsync(const RemoveIdentityCertifiedForBidUserRequest& request, const RemoveIdentityCertifiedForBidUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, removeIdentityCertifiedForBidUser(request), context);
};
asyncExecute(new Runnable(fn));
}
CrmClient::RemoveIdentityCertifiedForBidUserOutcomeCallable CrmClient::removeIdentityCertifiedForBidUserCallable(const RemoveIdentityCertifiedForBidUserRequest &request) const
{
auto task = std::make_shared<std::packaged_task<RemoveIdentityCertifiedForBidUserOutcome()>>(
[this, request]()
{
return this->removeIdentityCertifiedForBidUser(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CrmClient::QueryBidUserCertifiedInfoOutcome CrmClient::queryBidUserCertifiedInfo(const QueryBidUserCertifiedInfoRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return QueryBidUserCertifiedInfoOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return QueryBidUserCertifiedInfoOutcome(QueryBidUserCertifiedInfoResult(outcome.result()));
else
return QueryBidUserCertifiedInfoOutcome(outcome.error());
}
void CrmClient::queryBidUserCertifiedInfoAsync(const QueryBidUserCertifiedInfoRequest& request, const QueryBidUserCertifiedInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, queryBidUserCertifiedInfo(request), context);
};
asyncExecute(new Runnable(fn));
}
CrmClient::QueryBidUserCertifiedInfoOutcomeCallable CrmClient::queryBidUserCertifiedInfoCallable(const QueryBidUserCertifiedInfoRequest &request) const
{
auto task = std::make_shared<std::packaged_task<QueryBidUserCertifiedInfoOutcome()>>(
[this, request]()
{
return this->queryBidUserCertifiedInfo(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CrmClient::AddLabelForBidOutcome CrmClient::addLabelForBid(const AddLabelForBidRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return AddLabelForBidOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return AddLabelForBidOutcome(AddLabelForBidResult(outcome.result()));
else
return AddLabelForBidOutcome(outcome.error());
}
void CrmClient::addLabelForBidAsync(const AddLabelForBidRequest& request, const AddLabelForBidAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, addLabelForBid(request), context);
};
asyncExecute(new Runnable(fn));
}
CrmClient::AddLabelForBidOutcomeCallable CrmClient::addLabelForBidCallable(const AddLabelForBidRequest &request) const
{
auto task = std::make_shared<std::packaged_task<AddLabelForBidOutcome()>>(
[this, request]()
{
return this->addLabelForBid(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CrmClient::BatchGetAliyunIdByAliyunPkOutcome CrmClient::batchGetAliyunIdByAliyunPk(const BatchGetAliyunIdByAliyunPkRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return BatchGetAliyunIdByAliyunPkOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return BatchGetAliyunIdByAliyunPkOutcome(BatchGetAliyunIdByAliyunPkResult(outcome.result()));
else
return BatchGetAliyunIdByAliyunPkOutcome(outcome.error());
}
void CrmClient::batchGetAliyunIdByAliyunPkAsync(const BatchGetAliyunIdByAliyunPkRequest& request, const BatchGetAliyunIdByAliyunPkAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, batchGetAliyunIdByAliyunPk(request), context);
};
asyncExecute(new Runnable(fn));
}
CrmClient::BatchGetAliyunIdByAliyunPkOutcomeCallable CrmClient::batchGetAliyunIdByAliyunPkCallable(const BatchGetAliyunIdByAliyunPkRequest &request) const
{
auto task = std::make_shared<std::packaged_task<BatchGetAliyunIdByAliyunPkOutcome()>>(
[this, request]()
{
return this->batchGetAliyunIdByAliyunPk(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CrmClient::DeleteLabelOutcome CrmClient::deleteLabel(const DeleteLabelRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteLabelOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteLabelOutcome(DeleteLabelResult(outcome.result()));
else
return DeleteLabelOutcome(outcome.error());
}
void CrmClient::deleteLabelAsync(const DeleteLabelRequest& request, const DeleteLabelAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteLabel(request), context);
};
asyncExecute(new Runnable(fn));
}
CrmClient::DeleteLabelOutcomeCallable CrmClient::deleteLabelCallable(const DeleteLabelRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteLabelOutcome()>>(
[this, request]()
{
return this->deleteLabel(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CrmClient::AddLabelOutcome CrmClient::addLabel(const AddLabelRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return AddLabelOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return AddLabelOutcome(AddLabelResult(outcome.result()));
else
return AddLabelOutcome(outcome.error());
}
void CrmClient::addLabelAsync(const AddLabelRequest& request, const AddLabelAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, addLabel(request), context);
};
asyncExecute(new Runnable(fn));
}
CrmClient::AddLabelOutcomeCallable CrmClient::addLabelCallable(const AddLabelRequest &request) const
{
auto task = std::make_shared<std::packaged_task<AddLabelOutcome()>>(
[this, request]()
{
return this->addLabel(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}

View File

@@ -0,0 +1,104 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/crm/model/AddIdentityCertifiedForBidUserRequest.h>
using AlibabaCloud::Crm::Model::AddIdentityCertifiedForBidUserRequest;
AddIdentityCertifiedForBidUserRequest::AddIdentityCertifiedForBidUserRequest() :
RpcServiceRequest("crm", "2015-04-08", "AddIdentityCertifiedForBidUser")
{}
AddIdentityCertifiedForBidUserRequest::~AddIdentityCertifiedForBidUserRequest()
{}
std::string AddIdentityCertifiedForBidUserRequest::getBidType()const
{
return bidType_;
}
void AddIdentityCertifiedForBidUserRequest::setBidType(const std::string& bidType)
{
bidType_ = bidType;
setParameter("BidType", bidType);
}
std::string AddIdentityCertifiedForBidUserRequest::getLicenseNumber()const
{
return licenseNumber_;
}
void AddIdentityCertifiedForBidUserRequest::setLicenseNumber(const std::string& licenseNumber)
{
licenseNumber_ = licenseNumber;
setParameter("LicenseNumber", licenseNumber);
}
std::string AddIdentityCertifiedForBidUserRequest::getLicenseType()const
{
return licenseType_;
}
void AddIdentityCertifiedForBidUserRequest::setLicenseType(const std::string& licenseType)
{
licenseType_ = licenseType;
setParameter("LicenseType", licenseType);
}
std::string AddIdentityCertifiedForBidUserRequest::getPhone()const
{
return phone_;
}
void AddIdentityCertifiedForBidUserRequest::setPhone(const std::string& phone)
{
phone_ = phone;
setParameter("Phone", phone);
}
std::string AddIdentityCertifiedForBidUserRequest::getName()const
{
return name_;
}
void AddIdentityCertifiedForBidUserRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
std::string AddIdentityCertifiedForBidUserRequest::getPK()const
{
return pK_;
}
void AddIdentityCertifiedForBidUserRequest::setPK(const std::string& pK)
{
pK_ = pK;
setParameter("PK", pK);
}
bool AddIdentityCertifiedForBidUserRequest::getIsEnterprise()const
{
return isEnterprise_;
}
void AddIdentityCertifiedForBidUserRequest::setIsEnterprise(bool isEnterprise)
{
isEnterprise_ = isEnterprise;
setParameter("IsEnterprise", std::to_string(isEnterprise));
}

View File

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

View File

@@ -0,0 +1,71 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/crm/model/AddLabelForBidRequest.h>
using AlibabaCloud::Crm::Model::AddLabelForBidRequest;
AddLabelForBidRequest::AddLabelForBidRequest() :
RpcServiceRequest("crm", "2015-04-08", "AddLabelForBid")
{}
AddLabelForBidRequest::~AddLabelForBidRequest()
{}
std::string AddLabelForBidRequest::getLabelSeries()const
{
return labelSeries_;
}
void AddLabelForBidRequest::setLabelSeries(const std::string& labelSeries)
{
labelSeries_ = labelSeries;
setParameter("LabelSeries", labelSeries);
}
std::string AddLabelForBidRequest::getEndTime()const
{
return endTime_;
}
void AddLabelForBidRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
}
std::string AddLabelForBidRequest::getPK()const
{
return pK_;
}
void AddLabelForBidRequest::setPK(const std::string& pK)
{
pK_ = pK;
setParameter("PK", pK);
}
std::string AddLabelForBidRequest::getLabel()const
{
return label_;
}
void AddLabelForBidRequest::setLabel(const std::string& label)
{
label_ = label;
setParameter("Label", label);
}

View File

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

View File

@@ -0,0 +1,93 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/crm/model/AddLabelRequest.h>
using AlibabaCloud::Crm::Model::AddLabelRequest;
AddLabelRequest::AddLabelRequest() :
RpcServiceRequest("crm", "2015-04-08", "AddLabel")
{}
AddLabelRequest::~AddLabelRequest()
{}
std::string AddLabelRequest::getLabelSeries()const
{
return labelSeries_;
}
void AddLabelRequest::setLabelSeries(const std::string& labelSeries)
{
labelSeries_ = labelSeries;
setParameter("LabelSeries", labelSeries);
}
std::string AddLabelRequest::getOrganization()const
{
return organization_;
}
void AddLabelRequest::setOrganization(const std::string& organization)
{
organization_ = organization;
setParameter("Organization", organization);
}
std::string AddLabelRequest::getEndTime()const
{
return endTime_;
}
void AddLabelRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
}
std::string AddLabelRequest::getPK()const
{
return pK_;
}
void AddLabelRequest::setPK(const std::string& pK)
{
pK_ = pK;
setParameter("PK", pK);
}
std::string AddLabelRequest::getLabelName()const
{
return labelName_;
}
void AddLabelRequest::setLabelName(const std::string& labelName)
{
labelName_ = labelName;
setParameter("LabelName", labelName);
}
std::string AddLabelRequest::getUserName()const
{
return userName_;
}
void AddLabelRequest::setUserName(const std::string& userName)
{
userName_ = userName;
setParameter("UserName", userName);
}

View File

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

View File

@@ -0,0 +1,39 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/crm/model/BatchGetAliyunIdByAliyunPkRequest.h>
using AlibabaCloud::Crm::Model::BatchGetAliyunIdByAliyunPkRequest;
BatchGetAliyunIdByAliyunPkRequest::BatchGetAliyunIdByAliyunPkRequest() :
RpcServiceRequest("crm", "2015-04-08", "BatchGetAliyunIdByAliyunPk")
{}
BatchGetAliyunIdByAliyunPkRequest::~BatchGetAliyunIdByAliyunPkRequest()
{}
std::vector<std::string> BatchGetAliyunIdByAliyunPkRequest::getPkList()const
{
return pkList_;
}
void BatchGetAliyunIdByAliyunPkRequest::setPkList(const std::vector<std::string>& pkList)
{
pkList_ = pkList;
for(int i = 0; i!= pkList.size(); i++)
setParameter("PkList."+ std::to_string(i), pkList.at(i));
}

View File

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

View File

@@ -0,0 +1,60 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/crm/model/CheckLabelForBidRequest.h>
using AlibabaCloud::Crm::Model::CheckLabelForBidRequest;
CheckLabelForBidRequest::CheckLabelForBidRequest() :
RpcServiceRequest("crm", "2015-04-08", "CheckLabelForBid")
{}
CheckLabelForBidRequest::~CheckLabelForBidRequest()
{}
std::string CheckLabelForBidRequest::getLabelSeries()const
{
return labelSeries_;
}
void CheckLabelForBidRequest::setLabelSeries(const std::string& labelSeries)
{
labelSeries_ = labelSeries;
setParameter("LabelSeries", labelSeries);
}
std::string CheckLabelForBidRequest::getPK()const
{
return pK_;
}
void CheckLabelForBidRequest::setPK(const std::string& pK)
{
pK_ = pK;
setParameter("PK", pK);
}
std::string CheckLabelForBidRequest::getLabel()const
{
return label_;
}
void CheckLabelForBidRequest::setLabel(const std::string& label)
{
label_ = label;
setParameter("Label", label);
}

View File

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

View File

@@ -0,0 +1,60 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/crm/model/CheckLabelRequest.h>
using AlibabaCloud::Crm::Model::CheckLabelRequest;
CheckLabelRequest::CheckLabelRequest() :
RpcServiceRequest("crm", "2015-04-08", "CheckLabel")
{}
CheckLabelRequest::~CheckLabelRequest()
{}
std::string CheckLabelRequest::getLabelSeries()const
{
return labelSeries_;
}
void CheckLabelRequest::setLabelSeries(const std::string& labelSeries)
{
labelSeries_ = labelSeries;
setParameter("LabelSeries", labelSeries);
}
std::string CheckLabelRequest::getPK()const
{
return pK_;
}
void CheckLabelRequest::setPK(const std::string& pK)
{
pK_ = pK;
setParameter("PK", pK);
}
std::string CheckLabelRequest::getLabelName()const
{
return labelName_;
}
void CheckLabelRequest::setLabelName(const std::string& labelName)
{
labelName_ = labelName;
setParameter("LabelName", labelName);
}

View File

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

View File

@@ -0,0 +1,60 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/crm/model/DeleteLabelForBidRequest.h>
using AlibabaCloud::Crm::Model::DeleteLabelForBidRequest;
DeleteLabelForBidRequest::DeleteLabelForBidRequest() :
RpcServiceRequest("crm", "2015-04-08", "DeleteLabelForBid")
{}
DeleteLabelForBidRequest::~DeleteLabelForBidRequest()
{}
std::string DeleteLabelForBidRequest::getLabelSeries()const
{
return labelSeries_;
}
void DeleteLabelForBidRequest::setLabelSeries(const std::string& labelSeries)
{
labelSeries_ = labelSeries;
setParameter("LabelSeries", labelSeries);
}
std::string DeleteLabelForBidRequest::getPK()const
{
return pK_;
}
void DeleteLabelForBidRequest::setPK(const std::string& pK)
{
pK_ = pK;
setParameter("PK", pK);
}
std::string DeleteLabelForBidRequest::getLabel()const
{
return label_;
}
void DeleteLabelForBidRequest::setLabel(const std::string& label)
{
label_ = label;
setParameter("Label", label);
}

View File

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

View 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/crm/model/DeleteLabelRequest.h>
using AlibabaCloud::Crm::Model::DeleteLabelRequest;
DeleteLabelRequest::DeleteLabelRequest() :
RpcServiceRequest("crm", "2015-04-08", "DeleteLabel")
{}
DeleteLabelRequest::~DeleteLabelRequest()
{}
std::string DeleteLabelRequest::getLabelSeries()const
{
return labelSeries_;
}
void DeleteLabelRequest::setLabelSeries(const std::string& labelSeries)
{
labelSeries_ = labelSeries;
setParameter("LabelSeries", labelSeries);
}
std::string DeleteLabelRequest::getOrganization()const
{
return organization_;
}
void DeleteLabelRequest::setOrganization(const std::string& organization)
{
organization_ = organization;
setParameter("Organization", organization);
}
std::string DeleteLabelRequest::getPK()const
{
return pK_;
}
void DeleteLabelRequest::setPK(const std::string& pK)
{
pK_ = pK;
setParameter("PK", pK);
}
std::string DeleteLabelRequest::getLabelName()const
{
return labelName_;
}
void DeleteLabelRequest::setLabelName(const std::string& labelName)
{
labelName_ = labelName;
setParameter("LabelName", labelName);
}
std::string DeleteLabelRequest::getUserName()const
{
return userName_;
}
void DeleteLabelRequest::setUserName(const std::string& userName)
{
userName_ = userName;
setParameter("UserName", userName);
}

View File

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

View File

@@ -0,0 +1,38 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/crm/model/GetAliyunPkByAliyunIdRequest.h>
using AlibabaCloud::Crm::Model::GetAliyunPkByAliyunIdRequest;
GetAliyunPkByAliyunIdRequest::GetAliyunPkByAliyunIdRequest() :
RpcServiceRequest("crm", "2015-04-08", "GetAliyunPkByAliyunId")
{}
GetAliyunPkByAliyunIdRequest::~GetAliyunPkByAliyunIdRequest()
{}
std::string GetAliyunPkByAliyunIdRequest::getAliyunId()const
{
return aliyunId_;
}
void GetAliyunPkByAliyunIdRequest::setAliyunId(const std::string& aliyunId)
{
aliyunId_ = aliyunId;
setParameter("AliyunId", aliyunId);
}

View File

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

View File

@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/crm/model/QueryBidUserCertifiedInfoRequest.h>
using AlibabaCloud::Crm::Model::QueryBidUserCertifiedInfoRequest;
QueryBidUserCertifiedInfoRequest::QueryBidUserCertifiedInfoRequest() :
RpcServiceRequest("crm", "2015-04-08", "QueryBidUserCertifiedInfo")
{}
QueryBidUserCertifiedInfoRequest::~QueryBidUserCertifiedInfoRequest()
{}
std::string QueryBidUserCertifiedInfoRequest::getBidType()const
{
return bidType_;
}
void QueryBidUserCertifiedInfoRequest::setBidType(const std::string& bidType)
{
bidType_ = bidType;
setParameter("BidType", bidType);
}
std::string QueryBidUserCertifiedInfoRequest::getPK()const
{
return pK_;
}
void QueryBidUserCertifiedInfoRequest::setPK(const std::string& pK)
{
pK_ = pK;
setParameter("PK", pK);
}

View File

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

View File

@@ -0,0 +1,38 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/crm/model/QueryCustomerLabelRequest.h>
using AlibabaCloud::Crm::Model::QueryCustomerLabelRequest;
QueryCustomerLabelRequest::QueryCustomerLabelRequest() :
RpcServiceRequest("crm", "2015-04-08", "QueryCustomerLabel")
{}
QueryCustomerLabelRequest::~QueryCustomerLabelRequest()
{}
std::string QueryCustomerLabelRequest::getLabelSeries()const
{
return labelSeries_;
}
void QueryCustomerLabelRequest::setLabelSeries(const std::string& labelSeries)
{
labelSeries_ = labelSeries;
setParameter("LabelSeries", labelSeries);
}

View File

@@ -0,0 +1,81 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/crm/model/QueryCustomerLabelResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Crm;
using namespace AlibabaCloud::Crm::Model;
QueryCustomerLabelResult::QueryCustomerLabelResult() :
ServiceResult()
{}
QueryCustomerLabelResult::QueryCustomerLabelResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryCustomerLabelResult::~QueryCustomerLabelResult()
{}
void QueryCustomerLabelResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allData = value["Data"]["CustomerLabel"];
for (auto value : allData)
{
CustomerLabel dataObject;
if(!value["Label"].isNull())
dataObject.label = value["Label"].asString();
if(!value["LabelSeries"].isNull())
dataObject.labelSeries = value["LabelSeries"].asString();
data_.push_back(dataObject);
}
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string QueryCustomerLabelResult::getMessage()const
{
return message_;
}
std::vector<QueryCustomerLabelResult::CustomerLabel> QueryCustomerLabelResult::getData()const
{
return data_;
}
std::string QueryCustomerLabelResult::getCode()const
{
return code_;
}
bool QueryCustomerLabelResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/crm/model/RemoveIdentityCertifiedForBidUserRequest.h>
using AlibabaCloud::Crm::Model::RemoveIdentityCertifiedForBidUserRequest;
RemoveIdentityCertifiedForBidUserRequest::RemoveIdentityCertifiedForBidUserRequest() :
RpcServiceRequest("crm", "2015-04-08", "RemoveIdentityCertifiedForBidUser")
{}
RemoveIdentityCertifiedForBidUserRequest::~RemoveIdentityCertifiedForBidUserRequest()
{}
std::string RemoveIdentityCertifiedForBidUserRequest::getBidType()const
{
return bidType_;
}
void RemoveIdentityCertifiedForBidUserRequest::setBidType(const std::string& bidType)
{
bidType_ = bidType;
setParameter("BidType", bidType);
}
std::string RemoveIdentityCertifiedForBidUserRequest::getPK()const
{
return pK_;
}
void RemoveIdentityCertifiedForBidUserRequest::setPK(const std::string& pK)
{
pK_ = pK;
setParameter("PK", pK);
}

View File

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