Supported new features for outbound.
This commit is contained in:
@@ -2067,6 +2067,42 @@ OutboundBotClient::ExportScriptOutcomeCallable OutboundBotClient::exportScriptCa
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OutboundBotClient::GenerateUploadUrlOutcome OutboundBotClient::generateUploadUrl(const GenerateUploadUrlRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GenerateUploadUrlOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GenerateUploadUrlOutcome(GenerateUploadUrlResult(outcome.result()));
|
||||
else
|
||||
return GenerateUploadUrlOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OutboundBotClient::generateUploadUrlAsync(const GenerateUploadUrlRequest& request, const GenerateUploadUrlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, generateUploadUrl(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OutboundBotClient::GenerateUploadUrlOutcomeCallable OutboundBotClient::generateUploadUrlCallable(const GenerateUploadUrlRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GenerateUploadUrlOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->generateUploadUrl(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OutboundBotClient::GetAfterAnswerDelayPlaybackOutcome OutboundBotClient::getAfterAnswerDelayPlayback(const GetAfterAnswerDelayPlaybackRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -1,40 +1,36 @@
|
||||
/*
|
||||
* 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/outboundbot/model/ApplyNumberDistrictInfoParsingResultRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::ApplyNumberDistrictInfoParsingResultRequest;
|
||||
|
||||
ApplyNumberDistrictInfoParsingResultRequest::ApplyNumberDistrictInfoParsingResultRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "ApplyNumberDistrictInfoParsingResult")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ApplyNumberDistrictInfoParsingResultRequest::~ApplyNumberDistrictInfoParsingResultRequest()
|
||||
{}
|
||||
|
||||
std::string ApplyNumberDistrictInfoParsingResultRequest::getVersionId()const
|
||||
{
|
||||
return versionId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/ApplyNumberDistrictInfoParsingResultRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::ApplyNumberDistrictInfoParsingResultRequest;
|
||||
|
||||
ApplyNumberDistrictInfoParsingResultRequest::ApplyNumberDistrictInfoParsingResultRequest()
|
||||
: RpcServiceRequest("outboundbot", "2019-12-26", "ApplyNumberDistrictInfoParsingResult") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void ApplyNumberDistrictInfoParsingResultRequest::setVersionId(const std::string& versionId)
|
||||
{
|
||||
versionId_ = versionId;
|
||||
setParameter("VersionId", versionId);
|
||||
ApplyNumberDistrictInfoParsingResultRequest::~ApplyNumberDistrictInfoParsingResultRequest() {}
|
||||
|
||||
std::string ApplyNumberDistrictInfoParsingResultRequest::getVersionId() const {
|
||||
return versionId_;
|
||||
}
|
||||
|
||||
void ApplyNumberDistrictInfoParsingResultRequest::setVersionId(const std::string &versionId) {
|
||||
versionId_ = versionId;
|
||||
setParameter(std::string("VersionId"), versionId);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,121 +1,97 @@
|
||||
/*
|
||||
* 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/outboundbot/model/AssignJobsRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::AssignJobsRequest;
|
||||
|
||||
AssignJobsRequest::AssignJobsRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "AssignJobs")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AssignJobsRequest::~AssignJobsRequest()
|
||||
{}
|
||||
|
||||
std::vector<std::string> AssignJobsRequest::getJobsJson()const
|
||||
{
|
||||
return jobsJson_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/AssignJobsRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::AssignJobsRequest;
|
||||
|
||||
AssignJobsRequest::AssignJobsRequest()
|
||||
: RpcServiceRequest("outboundbot", "2019-12-26", "AssignJobs") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void AssignJobsRequest::setJobsJson(const std::vector<std::string>& jobsJson)
|
||||
{
|
||||
jobsJson_ = jobsJson;
|
||||
for(int dep1 = 0; dep1!= jobsJson.size(); dep1++) {
|
||||
setParameter("JobsJson."+ std::to_string(dep1), jobsJson.at(dep1));
|
||||
}
|
||||
AssignJobsRequest::~AssignJobsRequest() {}
|
||||
|
||||
std::vector<std::string> AssignJobsRequest::getJobsJson() const {
|
||||
return jobsJson_;
|
||||
}
|
||||
|
||||
std::vector<std::string> AssignJobsRequest::getCallingNumber()const
|
||||
{
|
||||
return callingNumber_;
|
||||
void AssignJobsRequest::setJobsJson(const std::vector<std::string> &jobsJson) {
|
||||
jobsJson_ = jobsJson;
|
||||
}
|
||||
|
||||
void AssignJobsRequest::setCallingNumber(const std::vector<std::string>& callingNumber)
|
||||
{
|
||||
callingNumber_ = callingNumber;
|
||||
for(int dep1 = 0; dep1!= callingNumber.size(); dep1++) {
|
||||
setParameter("CallingNumber."+ std::to_string(dep1), callingNumber.at(dep1));
|
||||
}
|
||||
std::vector<std::string> AssignJobsRequest::getCallingNumber() const {
|
||||
return callingNumber_;
|
||||
}
|
||||
|
||||
std::string AssignJobsRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
void AssignJobsRequest::setCallingNumber(const std::vector<std::string> &callingNumber) {
|
||||
callingNumber_ = callingNumber;
|
||||
}
|
||||
|
||||
void AssignJobsRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
std::string AssignJobsRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string AssignJobsRequest::getRosterType()const
|
||||
{
|
||||
return rosterType_;
|
||||
void AssignJobsRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
void AssignJobsRequest::setRosterType(const std::string& rosterType)
|
||||
{
|
||||
rosterType_ = rosterType;
|
||||
setParameter("RosterType", rosterType);
|
||||
std::string AssignJobsRequest::getRosterType() const {
|
||||
return rosterType_;
|
||||
}
|
||||
|
||||
std::string AssignJobsRequest::getJobDataParsingTaskId()const
|
||||
{
|
||||
return jobDataParsingTaskId_;
|
||||
void AssignJobsRequest::setRosterType(const std::string &rosterType) {
|
||||
rosterType_ = rosterType;
|
||||
setParameter(std::string("RosterType"), rosterType);
|
||||
}
|
||||
|
||||
void AssignJobsRequest::setJobDataParsingTaskId(const std::string& jobDataParsingTaskId)
|
||||
{
|
||||
jobDataParsingTaskId_ = jobDataParsingTaskId;
|
||||
setParameter("JobDataParsingTaskId", jobDataParsingTaskId);
|
||||
std::string AssignJobsRequest::getJobDataParsingTaskId() const {
|
||||
return jobDataParsingTaskId_;
|
||||
}
|
||||
|
||||
std::string AssignJobsRequest::getStrategyJson()const
|
||||
{
|
||||
return strategyJson_;
|
||||
void AssignJobsRequest::setJobDataParsingTaskId(const std::string &jobDataParsingTaskId) {
|
||||
jobDataParsingTaskId_ = jobDataParsingTaskId;
|
||||
setParameter(std::string("JobDataParsingTaskId"), jobDataParsingTaskId);
|
||||
}
|
||||
|
||||
void AssignJobsRequest::setStrategyJson(const std::string& strategyJson)
|
||||
{
|
||||
strategyJson_ = strategyJson;
|
||||
setParameter("StrategyJson", strategyJson);
|
||||
std::string AssignJobsRequest::getStrategyJson() const {
|
||||
return strategyJson_;
|
||||
}
|
||||
|
||||
std::string AssignJobsRequest::getJobGroupId()const
|
||||
{
|
||||
return jobGroupId_;
|
||||
void AssignJobsRequest::setStrategyJson(const std::string &strategyJson) {
|
||||
strategyJson_ = strategyJson;
|
||||
setParameter(std::string("StrategyJson"), strategyJson);
|
||||
}
|
||||
|
||||
void AssignJobsRequest::setJobGroupId(const std::string& jobGroupId)
|
||||
{
|
||||
jobGroupId_ = jobGroupId;
|
||||
setParameter("JobGroupId", jobGroupId);
|
||||
std::string AssignJobsRequest::getJobGroupId() const {
|
||||
return jobGroupId_;
|
||||
}
|
||||
|
||||
bool AssignJobsRequest::getIsAsynchrony()const
|
||||
{
|
||||
return isAsynchrony_;
|
||||
void AssignJobsRequest::setJobGroupId(const std::string &jobGroupId) {
|
||||
jobGroupId_ = jobGroupId;
|
||||
setParameter(std::string("JobGroupId"), jobGroupId);
|
||||
}
|
||||
|
||||
void AssignJobsRequest::setIsAsynchrony(bool isAsynchrony)
|
||||
{
|
||||
isAsynchrony_ = isAsynchrony;
|
||||
setParameter("IsAsynchrony", isAsynchrony ? "true" : "false");
|
||||
bool AssignJobsRequest::getIsAsynchrony() const {
|
||||
return isAsynchrony_;
|
||||
}
|
||||
|
||||
void AssignJobsRequest::setIsAsynchrony(bool isAsynchrony) {
|
||||
isAsynchrony_ = isAsynchrony;
|
||||
setParameter(std::string("IsAsynchrony"), isAsynchrony ? "true" : "false");
|
||||
}
|
||||
|
||||
|
||||
@@ -1,99 +1,79 @@
|
||||
/*
|
||||
* 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/outboundbot/model/CancelJobsRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::CancelJobsRequest;
|
||||
|
||||
CancelJobsRequest::CancelJobsRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "CancelJobs")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CancelJobsRequest::~CancelJobsRequest()
|
||||
{}
|
||||
|
||||
bool CancelJobsRequest::getAll()const
|
||||
{
|
||||
return all_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/CancelJobsRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::CancelJobsRequest;
|
||||
|
||||
CancelJobsRequest::CancelJobsRequest()
|
||||
: RpcServiceRequest("outboundbot", "2019-12-26", "CancelJobs") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CancelJobsRequest::setAll(bool all)
|
||||
{
|
||||
all_ = all;
|
||||
setParameter("All", all ? "true" : "false");
|
||||
CancelJobsRequest::~CancelJobsRequest() {}
|
||||
|
||||
bool CancelJobsRequest::getAll() const {
|
||||
return all_;
|
||||
}
|
||||
|
||||
std::vector<std::string> CancelJobsRequest::getJobReferenceId()const
|
||||
{
|
||||
return jobReferenceId_;
|
||||
void CancelJobsRequest::setAll(bool all) {
|
||||
all_ = all;
|
||||
setParameter(std::string("All"), all ? "true" : "false");
|
||||
}
|
||||
|
||||
void CancelJobsRequest::setJobReferenceId(const std::vector<std::string>& jobReferenceId)
|
||||
{
|
||||
jobReferenceId_ = jobReferenceId;
|
||||
for(int dep1 = 0; dep1!= jobReferenceId.size(); dep1++) {
|
||||
setParameter("JobReferenceId."+ std::to_string(dep1), jobReferenceId.at(dep1));
|
||||
}
|
||||
std::vector<std::string> CancelJobsRequest::getJobReferenceId() const {
|
||||
return jobReferenceId_;
|
||||
}
|
||||
|
||||
std::vector<std::string> CancelJobsRequest::getJobId()const
|
||||
{
|
||||
return jobId_;
|
||||
void CancelJobsRequest::setJobReferenceId(const std::vector<std::string> &jobReferenceId) {
|
||||
jobReferenceId_ = jobReferenceId;
|
||||
}
|
||||
|
||||
void CancelJobsRequest::setJobId(const std::vector<std::string>& jobId)
|
||||
{
|
||||
jobId_ = jobId;
|
||||
for(int dep1 = 0; dep1!= jobId.size(); dep1++) {
|
||||
setParameter("JobId."+ std::to_string(dep1), jobId.at(dep1));
|
||||
}
|
||||
std::vector<std::string> CancelJobsRequest::getJobId() const {
|
||||
return jobId_;
|
||||
}
|
||||
|
||||
std::string CancelJobsRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
void CancelJobsRequest::setJobId(const std::vector<std::string> &jobId) {
|
||||
jobId_ = jobId;
|
||||
}
|
||||
|
||||
void CancelJobsRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
std::string CancelJobsRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string CancelJobsRequest::getJobGroupId()const
|
||||
{
|
||||
return jobGroupId_;
|
||||
void CancelJobsRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
void CancelJobsRequest::setJobGroupId(const std::string& jobGroupId)
|
||||
{
|
||||
jobGroupId_ = jobGroupId;
|
||||
setParameter("JobGroupId", jobGroupId);
|
||||
std::string CancelJobsRequest::getJobGroupId() const {
|
||||
return jobGroupId_;
|
||||
}
|
||||
|
||||
std::string CancelJobsRequest::getScenarioId()const
|
||||
{
|
||||
return scenarioId_;
|
||||
void CancelJobsRequest::setJobGroupId(const std::string &jobGroupId) {
|
||||
jobGroupId_ = jobGroupId;
|
||||
setParameter(std::string("JobGroupId"), jobGroupId);
|
||||
}
|
||||
|
||||
void CancelJobsRequest::setScenarioId(const std::string& scenarioId)
|
||||
{
|
||||
scenarioId_ = scenarioId;
|
||||
setParameter("ScenarioId", scenarioId);
|
||||
std::string CancelJobsRequest::getScenarioId() const {
|
||||
return scenarioId_;
|
||||
}
|
||||
|
||||
void CancelJobsRequest::setScenarioId(const std::string &scenarioId) {
|
||||
scenarioId_ = scenarioId;
|
||||
setParameter(std::string("ScenarioId"), scenarioId);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,10 +39,10 @@ void CancelJobsResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* 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/outboundbot/model/ChangeResourceGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::ChangeResourceGroupRequest;
|
||||
|
||||
ChangeResourceGroupRequest::ChangeResourceGroupRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "ChangeResourceGroup")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ChangeResourceGroupRequest::~ChangeResourceGroupRequest()
|
||||
{}
|
||||
|
||||
std::string ChangeResourceGroupRequest::getResourceId()const
|
||||
{
|
||||
return resourceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/ChangeResourceGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::ChangeResourceGroupRequest;
|
||||
|
||||
ChangeResourceGroupRequest::ChangeResourceGroupRequest()
|
||||
: RpcServiceRequest("outboundbot", "2019-12-26", "ChangeResourceGroup") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void ChangeResourceGroupRequest::setResourceId(const std::string& resourceId)
|
||||
{
|
||||
resourceId_ = resourceId;
|
||||
setParameter("ResourceId", resourceId);
|
||||
ChangeResourceGroupRequest::~ChangeResourceGroupRequest() {}
|
||||
|
||||
std::string ChangeResourceGroupRequest::getResourceId() const {
|
||||
return resourceId_;
|
||||
}
|
||||
|
||||
std::string ChangeResourceGroupRequest::getNewResourceGroupId()const
|
||||
{
|
||||
return newResourceGroupId_;
|
||||
void ChangeResourceGroupRequest::setResourceId(const std::string &resourceId) {
|
||||
resourceId_ = resourceId;
|
||||
setParameter(std::string("ResourceId"), resourceId);
|
||||
}
|
||||
|
||||
void ChangeResourceGroupRequest::setNewResourceGroupId(const std::string& newResourceGroupId)
|
||||
{
|
||||
newResourceGroupId_ = newResourceGroupId;
|
||||
setParameter("NewResourceGroupId", newResourceGroupId);
|
||||
std::string ChangeResourceGroupRequest::getNewResourceGroupId() const {
|
||||
return newResourceGroupId_;
|
||||
}
|
||||
|
||||
void ChangeResourceGroupRequest::setNewResourceGroupId(const std::string &newResourceGroupId) {
|
||||
newResourceGroupId_ = newResourceGroupId;
|
||||
setParameter(std::string("NewResourceGroupId"), newResourceGroupId);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void ChangeResourceGroupResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,130 +1,107 @@
|
||||
/*
|
||||
* 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/outboundbot/model/CreateBatchJobsRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::CreateBatchJobsRequest;
|
||||
|
||||
CreateBatchJobsRequest::CreateBatchJobsRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "CreateBatchJobs")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateBatchJobsRequest::~CreateBatchJobsRequest()
|
||||
{}
|
||||
|
||||
std::string CreateBatchJobsRequest::getJobFilePath()const
|
||||
{
|
||||
return jobFilePath_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/CreateBatchJobsRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::CreateBatchJobsRequest;
|
||||
|
||||
CreateBatchJobsRequest::CreateBatchJobsRequest()
|
||||
: RpcServiceRequest("outboundbot", "2019-12-26", "CreateBatchJobs") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateBatchJobsRequest::setJobFilePath(const std::string& jobFilePath)
|
||||
{
|
||||
jobFilePath_ = jobFilePath;
|
||||
setParameter("JobFilePath", jobFilePath);
|
||||
CreateBatchJobsRequest::~CreateBatchJobsRequest() {}
|
||||
|
||||
std::string CreateBatchJobsRequest::getJobFilePath() const {
|
||||
return jobFilePath_;
|
||||
}
|
||||
|
||||
std::string CreateBatchJobsRequest::getScriptId()const
|
||||
{
|
||||
return scriptId_;
|
||||
void CreateBatchJobsRequest::setJobFilePath(const std::string &jobFilePath) {
|
||||
jobFilePath_ = jobFilePath;
|
||||
setParameter(std::string("JobFilePath"), jobFilePath);
|
||||
}
|
||||
|
||||
void CreateBatchJobsRequest::setScriptId(const std::string& scriptId)
|
||||
{
|
||||
scriptId_ = scriptId;
|
||||
setParameter("ScriptId", scriptId);
|
||||
std::string CreateBatchJobsRequest::getScriptId() const {
|
||||
return scriptId_;
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateBatchJobsRequest::getCallingNumber()const
|
||||
{
|
||||
return callingNumber_;
|
||||
void CreateBatchJobsRequest::setScriptId(const std::string &scriptId) {
|
||||
scriptId_ = scriptId;
|
||||
setParameter(std::string("ScriptId"), scriptId);
|
||||
}
|
||||
|
||||
void CreateBatchJobsRequest::setCallingNumber(const std::vector<std::string>& callingNumber)
|
||||
{
|
||||
callingNumber_ = callingNumber;
|
||||
for(int dep1 = 0; dep1!= callingNumber.size(); dep1++) {
|
||||
setParameter("CallingNumber."+ std::to_string(dep1), callingNumber.at(dep1));
|
||||
}
|
||||
std::vector<std::string> CreateBatchJobsRequest::getCallingNumber() const {
|
||||
return callingNumber_;
|
||||
}
|
||||
|
||||
std::string CreateBatchJobsRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
void CreateBatchJobsRequest::setCallingNumber(const std::vector<std::string> &callingNumber) {
|
||||
callingNumber_ = callingNumber;
|
||||
}
|
||||
|
||||
void CreateBatchJobsRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
std::string CreateBatchJobsRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
bool CreateBatchJobsRequest::getSubmitted()const
|
||||
{
|
||||
return submitted_;
|
||||
void CreateBatchJobsRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
void CreateBatchJobsRequest::setSubmitted(bool submitted)
|
||||
{
|
||||
submitted_ = submitted;
|
||||
setParameter("Submitted", submitted ? "true" : "false");
|
||||
bool CreateBatchJobsRequest::getSubmitted() const {
|
||||
return submitted_;
|
||||
}
|
||||
|
||||
std::string CreateBatchJobsRequest::getBatchJobName()const
|
||||
{
|
||||
return batchJobName_;
|
||||
void CreateBatchJobsRequest::setSubmitted(bool submitted) {
|
||||
submitted_ = submitted;
|
||||
setParameter(std::string("Submitted"), submitted ? "true" : "false");
|
||||
}
|
||||
|
||||
void CreateBatchJobsRequest::setBatchJobName(const std::string& batchJobName)
|
||||
{
|
||||
batchJobName_ = batchJobName;
|
||||
setParameter("BatchJobName", batchJobName);
|
||||
std::string CreateBatchJobsRequest::getBatchJobName() const {
|
||||
return batchJobName_;
|
||||
}
|
||||
|
||||
std::string CreateBatchJobsRequest::getStrategyJson()const
|
||||
{
|
||||
return strategyJson_;
|
||||
void CreateBatchJobsRequest::setBatchJobName(const std::string &batchJobName) {
|
||||
batchJobName_ = batchJobName;
|
||||
setParameter(std::string("BatchJobName"), batchJobName);
|
||||
}
|
||||
|
||||
void CreateBatchJobsRequest::setStrategyJson(const std::string& strategyJson)
|
||||
{
|
||||
strategyJson_ = strategyJson;
|
||||
setParameter("StrategyJson", strategyJson);
|
||||
std::string CreateBatchJobsRequest::getStrategyJson() const {
|
||||
return strategyJson_;
|
||||
}
|
||||
|
||||
std::string CreateBatchJobsRequest::getBatchJobDescription()const
|
||||
{
|
||||
return batchJobDescription_;
|
||||
void CreateBatchJobsRequest::setStrategyJson(const std::string &strategyJson) {
|
||||
strategyJson_ = strategyJson;
|
||||
setParameter(std::string("StrategyJson"), strategyJson);
|
||||
}
|
||||
|
||||
void CreateBatchJobsRequest::setBatchJobDescription(const std::string& batchJobDescription)
|
||||
{
|
||||
batchJobDescription_ = batchJobDescription;
|
||||
setParameter("BatchJobDescription", batchJobDescription);
|
||||
std::string CreateBatchJobsRequest::getBatchJobDescription() const {
|
||||
return batchJobDescription_;
|
||||
}
|
||||
|
||||
std::string CreateBatchJobsRequest::getScenarioId()const
|
||||
{
|
||||
return scenarioId_;
|
||||
void CreateBatchJobsRequest::setBatchJobDescription(const std::string &batchJobDescription) {
|
||||
batchJobDescription_ = batchJobDescription;
|
||||
setParameter(std::string("BatchJobDescription"), batchJobDescription);
|
||||
}
|
||||
|
||||
void CreateBatchJobsRequest::setScenarioId(const std::string& scenarioId)
|
||||
{
|
||||
scenarioId_ = scenarioId;
|
||||
setParameter("ScenarioId", scenarioId);
|
||||
std::string CreateBatchJobsRequest::getScenarioId() const {
|
||||
return scenarioId_;
|
||||
}
|
||||
|
||||
void CreateBatchJobsRequest::setScenarioId(const std::string &scenarioId) {
|
||||
scenarioId_ = scenarioId;
|
||||
setParameter(std::string("ScenarioId"), scenarioId);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,53 +40,53 @@ void CreateBatchJobsResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto batchJobNode = value["BatchJob"];
|
||||
if(!batchJobNode["BatchJobId"].isNull())
|
||||
batchJob_.batchJobId = batchJobNode["BatchJobId"].asString();
|
||||
if(!batchJobNode["CreationTime"].isNull())
|
||||
batchJob_.creationTime = std::stol(batchJobNode["CreationTime"].asString());
|
||||
if(!batchJobNode["ScenarioId"].isNull())
|
||||
batchJob_.scenarioId = batchJobNode["ScenarioId"].asString();
|
||||
if(!batchJobNode["JobGroupName"].isNull())
|
||||
batchJob_.jobGroupName = batchJobNode["JobGroupName"].asString();
|
||||
if(!batchJobNode["BatchJobId"].isNull())
|
||||
batchJob_.batchJobId = batchJobNode["BatchJobId"].asString();
|
||||
if(!batchJobNode["JobFilePath"].isNull())
|
||||
batchJob_.jobFilePath = batchJobNode["JobFilePath"].asString();
|
||||
if(!batchJobNode["JobGroupDescription"].isNull())
|
||||
batchJob_.jobGroupDescription = batchJobNode["JobGroupDescription"].asString();
|
||||
if(!batchJobNode["JobGroupName"].isNull())
|
||||
batchJob_.jobGroupName = batchJobNode["JobGroupName"].asString();
|
||||
if(!batchJobNode["ScenarioId"].isNull())
|
||||
batchJob_.scenarioId = batchJobNode["ScenarioId"].asString();
|
||||
auto strategyNode = batchJobNode["Strategy"];
|
||||
if(!strategyNode["Customized"].isNull())
|
||||
batchJob_.strategy.customized = strategyNode["Customized"].asString();
|
||||
if(!strategyNode["EndTime"].isNull())
|
||||
batchJob_.strategy.endTime = std::stol(strategyNode["EndTime"].asString());
|
||||
if(!strategyNode["FollowUpStrategy"].isNull())
|
||||
batchJob_.strategy.followUpStrategy = strategyNode["FollowUpStrategy"].asString();
|
||||
if(!strategyNode["IsTemplate"].isNull())
|
||||
batchJob_.strategy.isTemplate = strategyNode["IsTemplate"].asString() == "true";
|
||||
if(!strategyNode["MaxAttemptsPerDay"].isNull())
|
||||
batchJob_.strategy.maxAttemptsPerDay = std::stoi(strategyNode["MaxAttemptsPerDay"].asString());
|
||||
if(!strategyNode["MinAttemptInterval"].isNull())
|
||||
batchJob_.strategy.minAttemptInterval = std::stoi(strategyNode["MinAttemptInterval"].asString());
|
||||
if(!strategyNode["RepeatBy"].isNull())
|
||||
batchJob_.strategy.repeatBy = strategyNode["RepeatBy"].asString();
|
||||
if(!strategyNode["RoutingStrategy"].isNull())
|
||||
batchJob_.strategy.routingStrategy = strategyNode["RoutingStrategy"].asString();
|
||||
if(!strategyNode["StartTime"].isNull())
|
||||
batchJob_.strategy.startTime = std::stol(strategyNode["StartTime"].asString());
|
||||
if(!strategyNode["StrategyDescription"].isNull())
|
||||
batchJob_.strategy.strategyDescription = strategyNode["StrategyDescription"].asString();
|
||||
if(!strategyNode["StrategyId"].isNull())
|
||||
batchJob_.strategy.strategyId = strategyNode["StrategyId"].asString();
|
||||
if(!strategyNode["StrategyName"].isNull())
|
||||
batchJob_.strategy.strategyName = strategyNode["StrategyName"].asString();
|
||||
if(!strategyNode["Type"].isNull())
|
||||
batchJob_.strategy.type = strategyNode["Type"].asString();
|
||||
if(!strategyNode["StrategyName"].isNull())
|
||||
batchJob_.strategy.strategyName = strategyNode["StrategyName"].asString();
|
||||
if(!strategyNode["MaxAttemptsPerDay"].isNull())
|
||||
batchJob_.strategy.maxAttemptsPerDay = std::stoi(strategyNode["MaxAttemptsPerDay"].asString());
|
||||
if(!strategyNode["FollowUpStrategy"].isNull())
|
||||
batchJob_.strategy.followUpStrategy = strategyNode["FollowUpStrategy"].asString();
|
||||
if(!strategyNode["EndTime"].isNull())
|
||||
batchJob_.strategy.endTime = std::stol(strategyNode["EndTime"].asString());
|
||||
if(!strategyNode["Customized"].isNull())
|
||||
batchJob_.strategy.customized = strategyNode["Customized"].asString();
|
||||
if(!strategyNode["IsTemplate"].isNull())
|
||||
batchJob_.strategy.isTemplate = strategyNode["IsTemplate"].asString() == "true";
|
||||
if(!strategyNode["StartTime"].isNull())
|
||||
batchJob_.strategy.startTime = std::stol(strategyNode["StartTime"].asString());
|
||||
if(!strategyNode["StrategyId"].isNull())
|
||||
batchJob_.strategy.strategyId = strategyNode["StrategyId"].asString();
|
||||
if(!strategyNode["RoutingStrategy"].isNull())
|
||||
batchJob_.strategy.routingStrategy = strategyNode["RoutingStrategy"].asString();
|
||||
if(!strategyNode["MinAttemptInterval"].isNull())
|
||||
batchJob_.strategy.minAttemptInterval = std::stoi(strategyNode["MinAttemptInterval"].asString());
|
||||
if(!strategyNode["StrategyDescription"].isNull())
|
||||
batchJob_.strategy.strategyDescription = strategyNode["StrategyDescription"].asString();
|
||||
if(!strategyNode["RepeatBy"].isNull())
|
||||
batchJob_.strategy.repeatBy = strategyNode["RepeatBy"].asString();
|
||||
auto allWorkingTimeNode = strategyNode["WorkingTime"]["TimeFrame"];
|
||||
for (auto strategyNodeWorkingTimeTimeFrame : allWorkingTimeNode)
|
||||
{
|
||||
BatchJob::Strategy::TimeFrame timeFrameObject;
|
||||
if(!strategyNodeWorkingTimeTimeFrame["BeginTime"].isNull())
|
||||
timeFrameObject.beginTime = strategyNodeWorkingTimeTimeFrame["BeginTime"].asString();
|
||||
if(!strategyNodeWorkingTimeTimeFrame["EndTime"].isNull())
|
||||
timeFrameObject.endTime = strategyNodeWorkingTimeTimeFrame["EndTime"].asString();
|
||||
if(!strategyNodeWorkingTimeTimeFrame["BeginTime"].isNull())
|
||||
timeFrameObject.beginTime = strategyNodeWorkingTimeTimeFrame["BeginTime"].asString();
|
||||
batchJob_.strategy.workingTime.push_back(timeFrameObject);
|
||||
}
|
||||
auto allRepeatDays = strategyNode["RepeatDays"]["Integer"];
|
||||
@@ -95,10 +95,10 @@ void CreateBatchJobsResult::parse(const std::string &payload)
|
||||
auto allCallingNumbers = batchJobNode["CallingNumbers"]["String"];
|
||||
for (auto value : allCallingNumbers)
|
||||
batchJob_.callingNumbers.push_back(value.asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
|
||||
@@ -1,163 +1,134 @@
|
||||
/*
|
||||
* 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/outboundbot/model/CreateBatchRepeatJobRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::CreateBatchRepeatJobRequest;
|
||||
|
||||
CreateBatchRepeatJobRequest::CreateBatchRepeatJobRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "CreateBatchRepeatJob")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateBatchRepeatJobRequest::~CreateBatchRepeatJobRequest()
|
||||
{}
|
||||
|
||||
std::string CreateBatchRepeatJobRequest::getRecallStrategyJson()const
|
||||
{
|
||||
return recallStrategyJson_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/CreateBatchRepeatJobRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::CreateBatchRepeatJobRequest;
|
||||
|
||||
CreateBatchRepeatJobRequest::CreateBatchRepeatJobRequest()
|
||||
: RpcServiceRequest("outboundbot", "2019-12-26", "CreateBatchRepeatJob") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateBatchRepeatJobRequest::setRecallStrategyJson(const std::string& recallStrategyJson)
|
||||
{
|
||||
recallStrategyJson_ = recallStrategyJson;
|
||||
setParameter("RecallStrategyJson", recallStrategyJson);
|
||||
CreateBatchRepeatJobRequest::~CreateBatchRepeatJobRequest() {}
|
||||
|
||||
std::string CreateBatchRepeatJobRequest::getRecallStrategyJson() const {
|
||||
return recallStrategyJson_;
|
||||
}
|
||||
|
||||
std::string CreateBatchRepeatJobRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
void CreateBatchRepeatJobRequest::setRecallStrategyJson(const std::string &recallStrategyJson) {
|
||||
recallStrategyJson_ = recallStrategyJson;
|
||||
setParameter(std::string("RecallStrategyJson"), recallStrategyJson);
|
||||
}
|
||||
|
||||
void CreateBatchRepeatJobRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
std::string CreateBatchRepeatJobRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
std::string CreateBatchRepeatJobRequest::getScriptId()const
|
||||
{
|
||||
return scriptId_;
|
||||
void CreateBatchRepeatJobRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
void CreateBatchRepeatJobRequest::setScriptId(const std::string& scriptId)
|
||||
{
|
||||
scriptId_ = scriptId;
|
||||
setParameter("ScriptId", scriptId);
|
||||
std::string CreateBatchRepeatJobRequest::getScriptId() const {
|
||||
return scriptId_;
|
||||
}
|
||||
|
||||
std::string CreateBatchRepeatJobRequest::getFilterStatus()const
|
||||
{
|
||||
return filterStatus_;
|
||||
void CreateBatchRepeatJobRequest::setScriptId(const std::string &scriptId) {
|
||||
scriptId_ = scriptId;
|
||||
setParameter(std::string("ScriptId"), scriptId);
|
||||
}
|
||||
|
||||
void CreateBatchRepeatJobRequest::setFilterStatus(const std::string& filterStatus)
|
||||
{
|
||||
filterStatus_ = filterStatus;
|
||||
setParameter("FilterStatus", filterStatus);
|
||||
std::string CreateBatchRepeatJobRequest::getFilterStatus() const {
|
||||
return filterStatus_;
|
||||
}
|
||||
|
||||
std::string CreateBatchRepeatJobRequest::getStrategyJson()const
|
||||
{
|
||||
return strategyJson_;
|
||||
void CreateBatchRepeatJobRequest::setFilterStatus(const std::string &filterStatus) {
|
||||
filterStatus_ = filterStatus;
|
||||
setParameter(std::string("FilterStatus"), filterStatus);
|
||||
}
|
||||
|
||||
void CreateBatchRepeatJobRequest::setStrategyJson(const std::string& strategyJson)
|
||||
{
|
||||
strategyJson_ = strategyJson;
|
||||
setParameter("StrategyJson", strategyJson);
|
||||
std::string CreateBatchRepeatJobRequest::getStrategyJson() const {
|
||||
return strategyJson_;
|
||||
}
|
||||
|
||||
long CreateBatchRepeatJobRequest::getRingingDuration()const
|
||||
{
|
||||
return ringingDuration_;
|
||||
void CreateBatchRepeatJobRequest::setStrategyJson(const std::string &strategyJson) {
|
||||
strategyJson_ = strategyJson;
|
||||
setParameter(std::string("StrategyJson"), strategyJson);
|
||||
}
|
||||
|
||||
void CreateBatchRepeatJobRequest::setRingingDuration(long ringingDuration)
|
||||
{
|
||||
ringingDuration_ = ringingDuration;
|
||||
setParameter("RingingDuration", std::to_string(ringingDuration));
|
||||
long CreateBatchRepeatJobRequest::getRingingDuration() const {
|
||||
return ringingDuration_;
|
||||
}
|
||||
|
||||
std::string CreateBatchRepeatJobRequest::getPriority()const
|
||||
{
|
||||
return priority_;
|
||||
void CreateBatchRepeatJobRequest::setRingingDuration(long ringingDuration) {
|
||||
ringingDuration_ = ringingDuration;
|
||||
setParameter(std::string("RingingDuration"), std::to_string(ringingDuration));
|
||||
}
|
||||
|
||||
void CreateBatchRepeatJobRequest::setPriority(const std::string& priority)
|
||||
{
|
||||
priority_ = priority;
|
||||
setParameter("Priority", priority);
|
||||
std::string CreateBatchRepeatJobRequest::getPriority() const {
|
||||
return priority_;
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateBatchRepeatJobRequest::getCallingNumber()const
|
||||
{
|
||||
return callingNumber_;
|
||||
void CreateBatchRepeatJobRequest::setPriority(const std::string &priority) {
|
||||
priority_ = priority;
|
||||
setParameter(std::string("Priority"), priority);
|
||||
}
|
||||
|
||||
void CreateBatchRepeatJobRequest::setCallingNumber(const std::vector<std::string>& callingNumber)
|
||||
{
|
||||
callingNumber_ = callingNumber;
|
||||
for(int dep1 = 0; dep1!= callingNumber.size(); dep1++) {
|
||||
setParameter("CallingNumber."+ std::to_string(dep1), callingNumber.at(dep1));
|
||||
}
|
||||
std::vector<std::string> CreateBatchRepeatJobRequest::getCallingNumber() const {
|
||||
return callingNumber_;
|
||||
}
|
||||
|
||||
std::string CreateBatchRepeatJobRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
void CreateBatchRepeatJobRequest::setCallingNumber(const std::vector<std::string> &callingNumber) {
|
||||
callingNumber_ = callingNumber;
|
||||
}
|
||||
|
||||
void CreateBatchRepeatJobRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
std::string CreateBatchRepeatJobRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string CreateBatchRepeatJobRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
void CreateBatchRepeatJobRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
void CreateBatchRepeatJobRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
std::string CreateBatchRepeatJobRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
std::string CreateBatchRepeatJobRequest::getSourceGroupId()const
|
||||
{
|
||||
return sourceGroupId_;
|
||||
void CreateBatchRepeatJobRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
void CreateBatchRepeatJobRequest::setSourceGroupId(const std::string& sourceGroupId)
|
||||
{
|
||||
sourceGroupId_ = sourceGroupId;
|
||||
setParameter("SourceGroupId", sourceGroupId);
|
||||
std::string CreateBatchRepeatJobRequest::getSourceGroupId() const {
|
||||
return sourceGroupId_;
|
||||
}
|
||||
|
||||
long CreateBatchRepeatJobRequest::getMinConcurrency()const
|
||||
{
|
||||
return minConcurrency_;
|
||||
void CreateBatchRepeatJobRequest::setSourceGroupId(const std::string &sourceGroupId) {
|
||||
sourceGroupId_ = sourceGroupId;
|
||||
setParameter(std::string("SourceGroupId"), sourceGroupId);
|
||||
}
|
||||
|
||||
void CreateBatchRepeatJobRequest::setMinConcurrency(long minConcurrency)
|
||||
{
|
||||
minConcurrency_ = minConcurrency;
|
||||
setParameter("MinConcurrency", std::to_string(minConcurrency));
|
||||
long CreateBatchRepeatJobRequest::getMinConcurrency() const {
|
||||
return minConcurrency_;
|
||||
}
|
||||
|
||||
void CreateBatchRepeatJobRequest::setMinConcurrency(long minConcurrency) {
|
||||
minConcurrency_ = minConcurrency;
|
||||
setParameter(std::string("MinConcurrency"), std::to_string(minConcurrency));
|
||||
}
|
||||
|
||||
|
||||
@@ -1,73 +1,63 @@
|
||||
/*
|
||||
* 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/outboundbot/model/CreateDialogueFlowRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::CreateDialogueFlowRequest;
|
||||
|
||||
CreateDialogueFlowRequest::CreateDialogueFlowRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "CreateDialogueFlow")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateDialogueFlowRequest::~CreateDialogueFlowRequest()
|
||||
{}
|
||||
|
||||
std::string CreateDialogueFlowRequest::getDialogueFlowType()const
|
||||
{
|
||||
return dialogueFlowType_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/CreateDialogueFlowRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::CreateDialogueFlowRequest;
|
||||
|
||||
CreateDialogueFlowRequest::CreateDialogueFlowRequest()
|
||||
: RpcServiceRequest("outboundbot", "2019-12-26", "CreateDialogueFlow") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateDialogueFlowRequest::setDialogueFlowType(const std::string& dialogueFlowType)
|
||||
{
|
||||
dialogueFlowType_ = dialogueFlowType;
|
||||
setParameter("DialogueFlowType", dialogueFlowType);
|
||||
CreateDialogueFlowRequest::~CreateDialogueFlowRequest() {}
|
||||
|
||||
std::string CreateDialogueFlowRequest::getDialogueFlowType() const {
|
||||
return dialogueFlowType_;
|
||||
}
|
||||
|
||||
std::string CreateDialogueFlowRequest::getDialogueName()const
|
||||
{
|
||||
return dialogueName_;
|
||||
void CreateDialogueFlowRequest::setDialogueFlowType(const std::string &dialogueFlowType) {
|
||||
dialogueFlowType_ = dialogueFlowType;
|
||||
setParameter(std::string("DialogueFlowType"), dialogueFlowType);
|
||||
}
|
||||
|
||||
void CreateDialogueFlowRequest::setDialogueName(const std::string& dialogueName)
|
||||
{
|
||||
dialogueName_ = dialogueName;
|
||||
setParameter("DialogueName", dialogueName);
|
||||
std::string CreateDialogueFlowRequest::getDialogueName() const {
|
||||
return dialogueName_;
|
||||
}
|
||||
|
||||
std::string CreateDialogueFlowRequest::getScriptId()const
|
||||
{
|
||||
return scriptId_;
|
||||
void CreateDialogueFlowRequest::setDialogueName(const std::string &dialogueName) {
|
||||
dialogueName_ = dialogueName;
|
||||
setParameter(std::string("DialogueName"), dialogueName);
|
||||
}
|
||||
|
||||
void CreateDialogueFlowRequest::setScriptId(const std::string& scriptId)
|
||||
{
|
||||
scriptId_ = scriptId;
|
||||
setParameter("ScriptId", scriptId);
|
||||
std::string CreateDialogueFlowRequest::getScriptId() const {
|
||||
return scriptId_;
|
||||
}
|
||||
|
||||
std::string CreateDialogueFlowRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
void CreateDialogueFlowRequest::setScriptId(const std::string &scriptId) {
|
||||
scriptId_ = scriptId;
|
||||
setParameter(std::string("ScriptId"), scriptId);
|
||||
}
|
||||
|
||||
void CreateDialogueFlowRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
std::string CreateDialogueFlowRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void CreateDialogueFlowRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,16 +39,16 @@ void CreateDialogueFlowResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["DialogueFlowId"].isNull())
|
||||
dialogueFlowId_ = value["DialogueFlowId"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["DialogueFlowId"].isNull())
|
||||
dialogueFlowId_ = value["DialogueFlowId"].asString();
|
||||
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();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* 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/outboundbot/model/CreateDownloadUrlRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::CreateDownloadUrlRequest;
|
||||
|
||||
CreateDownloadUrlRequest::CreateDownloadUrlRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "CreateDownloadUrl")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
CreateDownloadUrlRequest::~CreateDownloadUrlRequest()
|
||||
{}
|
||||
|
||||
std::string CreateDownloadUrlRequest::getDownloadTaskId()const
|
||||
{
|
||||
return downloadTaskId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/CreateDownloadUrlRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::CreateDownloadUrlRequest;
|
||||
|
||||
CreateDownloadUrlRequest::CreateDownloadUrlRequest()
|
||||
: RpcServiceRequest("outboundbot", "2019-12-26", "CreateDownloadUrl") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
void CreateDownloadUrlRequest::setDownloadTaskId(const std::string& downloadTaskId)
|
||||
{
|
||||
downloadTaskId_ = downloadTaskId;
|
||||
setParameter("DownloadTaskId", downloadTaskId);
|
||||
CreateDownloadUrlRequest::~CreateDownloadUrlRequest() {}
|
||||
|
||||
std::string CreateDownloadUrlRequest::getDownloadTaskId() const {
|
||||
return downloadTaskId_;
|
||||
}
|
||||
|
||||
std::string CreateDownloadUrlRequest::getFileId()const
|
||||
{
|
||||
return fileId_;
|
||||
void CreateDownloadUrlRequest::setDownloadTaskId(const std::string &downloadTaskId) {
|
||||
downloadTaskId_ = downloadTaskId;
|
||||
setParameter(std::string("DownloadTaskId"), downloadTaskId);
|
||||
}
|
||||
|
||||
void CreateDownloadUrlRequest::setFileId(const std::string& fileId)
|
||||
{
|
||||
fileId_ = fileId;
|
||||
setParameter("FileId", fileId);
|
||||
std::string CreateDownloadUrlRequest::getFileId() const {
|
||||
return fileId_;
|
||||
}
|
||||
|
||||
void CreateDownloadUrlRequest::setFileId(const std::string &fileId) {
|
||||
fileId_ = fileId;
|
||||
setParameter(std::string("FileId"), fileId);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,95 +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/outboundbot/model/CreateGlobalQuestionRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::CreateGlobalQuestionRequest;
|
||||
|
||||
CreateGlobalQuestionRequest::CreateGlobalQuestionRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "CreateGlobalQuestion")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateGlobalQuestionRequest::~CreateGlobalQuestionRequest()
|
||||
{}
|
||||
|
||||
std::string CreateGlobalQuestionRequest::getGlobalQuestionName()const
|
||||
{
|
||||
return globalQuestionName_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/CreateGlobalQuestionRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::CreateGlobalQuestionRequest;
|
||||
|
||||
CreateGlobalQuestionRequest::CreateGlobalQuestionRequest()
|
||||
: RpcServiceRequest("outboundbot", "2019-12-26", "CreateGlobalQuestion") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateGlobalQuestionRequest::setGlobalQuestionName(const std::string& globalQuestionName)
|
||||
{
|
||||
globalQuestionName_ = globalQuestionName;
|
||||
setParameter("GlobalQuestionName", globalQuestionName);
|
||||
CreateGlobalQuestionRequest::~CreateGlobalQuestionRequest() {}
|
||||
|
||||
std::string CreateGlobalQuestionRequest::getGlobalQuestionName() const {
|
||||
return globalQuestionName_;
|
||||
}
|
||||
|
||||
std::string CreateGlobalQuestionRequest::getQuestions()const
|
||||
{
|
||||
return questions_;
|
||||
void CreateGlobalQuestionRequest::setGlobalQuestionName(const std::string &globalQuestionName) {
|
||||
globalQuestionName_ = globalQuestionName;
|
||||
setParameter(std::string("GlobalQuestionName"), globalQuestionName);
|
||||
}
|
||||
|
||||
void CreateGlobalQuestionRequest::setQuestions(const std::string& questions)
|
||||
{
|
||||
questions_ = questions;
|
||||
setParameter("Questions", questions);
|
||||
std::string CreateGlobalQuestionRequest::getQuestions() const {
|
||||
return questions_;
|
||||
}
|
||||
|
||||
std::string CreateGlobalQuestionRequest::getAnswers()const
|
||||
{
|
||||
return answers_;
|
||||
void CreateGlobalQuestionRequest::setQuestions(const std::string &questions) {
|
||||
questions_ = questions;
|
||||
setParameter(std::string("Questions"), questions);
|
||||
}
|
||||
|
||||
void CreateGlobalQuestionRequest::setAnswers(const std::string& answers)
|
||||
{
|
||||
answers_ = answers;
|
||||
setParameter("Answers", answers);
|
||||
std::string CreateGlobalQuestionRequest::getAnswers() const {
|
||||
return answers_;
|
||||
}
|
||||
|
||||
std::string CreateGlobalQuestionRequest::getScriptId()const
|
||||
{
|
||||
return scriptId_;
|
||||
void CreateGlobalQuestionRequest::setAnswers(const std::string &answers) {
|
||||
answers_ = answers;
|
||||
setParameter(std::string("Answers"), answers);
|
||||
}
|
||||
|
||||
void CreateGlobalQuestionRequest::setScriptId(const std::string& scriptId)
|
||||
{
|
||||
scriptId_ = scriptId;
|
||||
setParameter("ScriptId", scriptId);
|
||||
std::string CreateGlobalQuestionRequest::getScriptId() const {
|
||||
return scriptId_;
|
||||
}
|
||||
|
||||
std::string CreateGlobalQuestionRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
void CreateGlobalQuestionRequest::setScriptId(const std::string &scriptId) {
|
||||
scriptId_ = scriptId;
|
||||
setParameter(std::string("ScriptId"), scriptId);
|
||||
}
|
||||
|
||||
void CreateGlobalQuestionRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
std::string CreateGlobalQuestionRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string CreateGlobalQuestionRequest::getGlobalQuestionType()const
|
||||
{
|
||||
return globalQuestionType_;
|
||||
void CreateGlobalQuestionRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
void CreateGlobalQuestionRequest::setGlobalQuestionType(const std::string& globalQuestionType)
|
||||
{
|
||||
globalQuestionType_ = globalQuestionType;
|
||||
setParameter("GlobalQuestionType", globalQuestionType);
|
||||
std::string CreateGlobalQuestionRequest::getGlobalQuestionType() const {
|
||||
return globalQuestionType_;
|
||||
}
|
||||
|
||||
void CreateGlobalQuestionRequest::setGlobalQuestionType(const std::string &globalQuestionType) {
|
||||
globalQuestionType_ = globalQuestionType;
|
||||
setParameter(std::string("GlobalQuestionType"), globalQuestionType);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,16 +39,16 @@ void CreateGlobalQuestionResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["GlobalQuestionId"].isNull())
|
||||
globalQuestionId_ = value["GlobalQuestionId"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["GlobalQuestionId"].isNull())
|
||||
globalQuestionId_ = value["GlobalQuestionId"].asString();
|
||||
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();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* 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/outboundbot/model/CreateInstanceBindNumberRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::CreateInstanceBindNumberRequest;
|
||||
|
||||
CreateInstanceBindNumberRequest::CreateInstanceBindNumberRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "CreateInstanceBindNumber")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateInstanceBindNumberRequest::~CreateInstanceBindNumberRequest()
|
||||
{}
|
||||
|
||||
std::string CreateInstanceBindNumberRequest::getInstanceList()const
|
||||
{
|
||||
return instanceList_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/CreateInstanceBindNumberRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::CreateInstanceBindNumberRequest;
|
||||
|
||||
CreateInstanceBindNumberRequest::CreateInstanceBindNumberRequest()
|
||||
: RpcServiceRequest("outboundbot", "2019-12-26", "CreateInstanceBindNumber") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateInstanceBindNumberRequest::setInstanceList(const std::string& instanceList)
|
||||
{
|
||||
instanceList_ = instanceList;
|
||||
setParameter("InstanceList", instanceList);
|
||||
CreateInstanceBindNumberRequest::~CreateInstanceBindNumberRequest() {}
|
||||
|
||||
std::string CreateInstanceBindNumberRequest::getInstanceList() const {
|
||||
return instanceList_;
|
||||
}
|
||||
|
||||
std::string CreateInstanceBindNumberRequest::getNumber()const
|
||||
{
|
||||
return number_;
|
||||
void CreateInstanceBindNumberRequest::setInstanceList(const std::string &instanceList) {
|
||||
instanceList_ = instanceList;
|
||||
setParameter(std::string("InstanceList"), instanceList);
|
||||
}
|
||||
|
||||
void CreateInstanceBindNumberRequest::setNumber(const std::string& number)
|
||||
{
|
||||
number_ = number;
|
||||
setParameter("Number", number);
|
||||
std::string CreateInstanceBindNumberRequest::getNumber() const {
|
||||
return number_;
|
||||
}
|
||||
|
||||
void CreateInstanceBindNumberRequest::setNumber(const std::string &number) {
|
||||
number_ = number;
|
||||
setParameter(std::string("Number"), number);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,141 +1,116 @@
|
||||
/*
|
||||
* 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/outboundbot/model/CreateInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::CreateInstanceRequest;
|
||||
|
||||
CreateInstanceRequest::CreateInstanceRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "CreateInstance")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateInstanceRequest::~CreateInstanceRequest()
|
||||
{}
|
||||
|
||||
int CreateInstanceRequest::getMaxConcurrentConversation()const
|
||||
{
|
||||
return maxConcurrentConversation_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/CreateInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::CreateInstanceRequest;
|
||||
|
||||
CreateInstanceRequest::CreateInstanceRequest()
|
||||
: RpcServiceRequest("outboundbot", "2019-12-26", "CreateInstance") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setMaxConcurrentConversation(int maxConcurrentConversation)
|
||||
{
|
||||
maxConcurrentConversation_ = maxConcurrentConversation;
|
||||
setParameter("MaxConcurrentConversation", std::to_string(maxConcurrentConversation));
|
||||
CreateInstanceRequest::~CreateInstanceRequest() {}
|
||||
|
||||
int CreateInstanceRequest::getMaxConcurrentConversation() const {
|
||||
return maxConcurrentConversation_;
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getSecretKey()const
|
||||
{
|
||||
return secretKey_;
|
||||
void CreateInstanceRequest::setMaxConcurrentConversation(int maxConcurrentConversation) {
|
||||
maxConcurrentConversation_ = maxConcurrentConversation;
|
||||
setParameter(std::string("MaxConcurrentConversation"), std::to_string(maxConcurrentConversation));
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setSecretKey(const std::string& secretKey)
|
||||
{
|
||||
secretKey_ = secretKey;
|
||||
setParameter("SecretKey", secretKey);
|
||||
std::string CreateInstanceRequest::getSecretKey() const {
|
||||
return secretKey_;
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
void CreateInstanceRequest::setSecretKey(const std::string &secretKey) {
|
||||
secretKey_ = secretKey;
|
||||
setParameter(std::string("SecretKey"), secretKey);
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
std::string CreateInstanceRequest::getResourceGroupId() const {
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getEndpoint()const
|
||||
{
|
||||
return endpoint_;
|
||||
void CreateInstanceRequest::setResourceGroupId(const std::string &resourceGroupId) {
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter(std::string("ResourceGroupId"), resourceGroupId);
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setEndpoint(const std::string& endpoint)
|
||||
{
|
||||
endpoint_ = endpoint;
|
||||
setParameter("Endpoint", endpoint);
|
||||
std::string CreateInstanceRequest::getEndpoint() const {
|
||||
return endpoint_;
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateInstanceRequest::getCallingNumber()const
|
||||
{
|
||||
return callingNumber_;
|
||||
void CreateInstanceRequest::setEndpoint(const std::string &endpoint) {
|
||||
endpoint_ = endpoint;
|
||||
setParameter(std::string("Endpoint"), endpoint);
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setCallingNumber(const std::vector<std::string>& callingNumber)
|
||||
{
|
||||
callingNumber_ = callingNumber;
|
||||
for(int dep1 = 0; dep1!= callingNumber.size(); dep1++) {
|
||||
setParameter("CallingNumber."+ std::to_string(dep1), callingNumber.at(dep1));
|
||||
}
|
||||
std::vector<std::string> CreateInstanceRequest::getCallingNumber() const {
|
||||
return callingNumber_;
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getInstanceName()const
|
||||
{
|
||||
return instanceName_;
|
||||
void CreateInstanceRequest::setCallingNumber(const std::vector<std::string> &callingNumber) {
|
||||
callingNumber_ = callingNumber;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setInstanceName(const std::string& instanceName)
|
||||
{
|
||||
instanceName_ = instanceName;
|
||||
setParameter("InstanceName", instanceName);
|
||||
std::string CreateInstanceRequest::getInstanceName() const {
|
||||
return instanceName_;
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getCallCenterInstanceId()const
|
||||
{
|
||||
return callCenterInstanceId_;
|
||||
void CreateInstanceRequest::setInstanceName(const std::string &instanceName) {
|
||||
instanceName_ = instanceName;
|
||||
setParameter(std::string("InstanceName"), instanceName);
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setCallCenterInstanceId(const std::string& callCenterInstanceId)
|
||||
{
|
||||
callCenterInstanceId_ = callCenterInstanceId;
|
||||
setParameter("CallCenterInstanceId", callCenterInstanceId);
|
||||
std::string CreateInstanceRequest::getCallCenterInstanceId() const {
|
||||
return callCenterInstanceId_;
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getAccessKey()const
|
||||
{
|
||||
return accessKey_;
|
||||
void CreateInstanceRequest::setCallCenterInstanceId(const std::string &callCenterInstanceId) {
|
||||
callCenterInstanceId_ = callCenterInstanceId;
|
||||
setParameter(std::string("CallCenterInstanceId"), callCenterInstanceId);
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setAccessKey(const std::string& accessKey)
|
||||
{
|
||||
accessKey_ = accessKey;
|
||||
setParameter("AccessKey", accessKey);
|
||||
std::string CreateInstanceRequest::getAccessKey() const {
|
||||
return accessKey_;
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getInstanceDescription()const
|
||||
{
|
||||
return instanceDescription_;
|
||||
void CreateInstanceRequest::setAccessKey(const std::string &accessKey) {
|
||||
accessKey_ = accessKey;
|
||||
setParameter(std::string("AccessKey"), accessKey);
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setInstanceDescription(const std::string& instanceDescription)
|
||||
{
|
||||
instanceDescription_ = instanceDescription;
|
||||
setParameter("InstanceDescription", instanceDescription);
|
||||
std::string CreateInstanceRequest::getInstanceDescription() const {
|
||||
return instanceDescription_;
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getNluServiceType()const
|
||||
{
|
||||
return nluServiceType_;
|
||||
void CreateInstanceRequest::setInstanceDescription(const std::string &instanceDescription) {
|
||||
instanceDescription_ = instanceDescription;
|
||||
setParameter(std::string("InstanceDescription"), instanceDescription);
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setNluServiceType(const std::string& nluServiceType)
|
||||
{
|
||||
nluServiceType_ = nluServiceType;
|
||||
setParameter("NluServiceType", nluServiceType);
|
||||
std::string CreateInstanceRequest::getNluServiceType() const {
|
||||
return nluServiceType_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setNluServiceType(const std::string &nluServiceType) {
|
||||
nluServiceType_ = nluServiceType;
|
||||
setParameter(std::string("NluServiceType"), nluServiceType);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,41 +40,41 @@ void CreateInstanceResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto instanceNode = value["Instance"];
|
||||
if(!instanceNode["CallCenterInstanceId"].isNull())
|
||||
instance_.callCenterInstanceId = instanceNode["CallCenterInstanceId"].asString();
|
||||
if(!instanceNode["CreationTime"].isNull())
|
||||
instance_.creationTime = std::stol(instanceNode["CreationTime"].asString());
|
||||
if(!instanceNode["InstanceDescription"].isNull())
|
||||
instance_.instanceDescription = instanceNode["InstanceDescription"].asString();
|
||||
if(!instanceNode["InstanceId"].isNull())
|
||||
instance_.instanceId = instanceNode["InstanceId"].asString();
|
||||
if(!instanceNode["InstanceName"].isNull())
|
||||
instance_.instanceName = instanceNode["InstanceName"].asString();
|
||||
if(!instanceNode["MaxConcurrentConversation"].isNull())
|
||||
instance_.maxConcurrentConversation = std::stoi(instanceNode["MaxConcurrentConversation"].asString());
|
||||
if(!instanceNode["NluServiceType"].isNull())
|
||||
instance_.nluServiceType = instanceNode["NluServiceType"].asString();
|
||||
if(!instanceNode["CallCenterInstanceId"].isNull())
|
||||
instance_.callCenterInstanceId = instanceNode["CallCenterInstanceId"].asString();
|
||||
if(!instanceNode["Owner"].isNull())
|
||||
instance_.owner = instanceNode["Owner"].asString();
|
||||
if(!instanceNode["NluServiceType"].isNull())
|
||||
instance_.nluServiceType = instanceNode["NluServiceType"].asString();
|
||||
if(!instanceNode["InstanceId"].isNull())
|
||||
instance_.instanceId = instanceNode["InstanceId"].asString();
|
||||
if(!instanceNode["CreatorId"].isNull())
|
||||
instance_.creatorId = std::stol(instanceNode["CreatorId"].asString());
|
||||
if(!instanceNode["CreatorName"].isNull())
|
||||
instance_.creatorName = instanceNode["CreatorName"].asString();
|
||||
if(!instanceNode["OwnerName"].isNull())
|
||||
instance_.ownerName = instanceNode["OwnerName"].asString();
|
||||
if(!instanceNode["InstanceDescription"].isNull())
|
||||
instance_.instanceDescription = instanceNode["InstanceDescription"].asString();
|
||||
if(!instanceNode["InstanceName"].isNull())
|
||||
instance_.instanceName = instanceNode["InstanceName"].asString();
|
||||
if(!instanceNode["CreatorName"].isNull())
|
||||
instance_.creatorName = instanceNode["CreatorName"].asString();
|
||||
if(!instanceNode["ResourceGroupId"].isNull())
|
||||
instance_.resourceGroupId = instanceNode["ResourceGroupId"].asString();
|
||||
if(!instanceNode["MaxConcurrentConversation"].isNull())
|
||||
instance_.maxConcurrentConversation = std::stoi(instanceNode["MaxConcurrentConversation"].asString());
|
||||
auto nluProfileNode = instanceNode["NluProfile"];
|
||||
if(!nluProfileNode["AccessKey"].isNull())
|
||||
instance_.nluProfile.accessKey = nluProfileNode["AccessKey"].asString();
|
||||
if(!nluProfileNode["Endpoint"].isNull())
|
||||
instance_.nluProfile.endpoint = nluProfileNode["Endpoint"].asString();
|
||||
if(!nluProfileNode["SecretKey"].isNull())
|
||||
instance_.nluProfile.secretKey = nluProfileNode["SecretKey"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!nluProfileNode["Endpoint"].isNull())
|
||||
instance_.nluProfile.endpoint = nluProfileNode["Endpoint"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
|
||||
@@ -1,95 +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/outboundbot/model/CreateIntentRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::CreateIntentRequest;
|
||||
|
||||
CreateIntentRequest::CreateIntentRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "CreateIntent")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateIntentRequest::~CreateIntentRequest()
|
||||
{}
|
||||
|
||||
std::string CreateIntentRequest::getUtterances()const
|
||||
{
|
||||
return utterances_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/CreateIntentRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::CreateIntentRequest;
|
||||
|
||||
CreateIntentRequest::CreateIntentRequest()
|
||||
: RpcServiceRequest("outboundbot", "2019-12-26", "CreateIntent") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateIntentRequest::setUtterances(const std::string& utterances)
|
||||
{
|
||||
utterances_ = utterances;
|
||||
setParameter("Utterances", utterances);
|
||||
CreateIntentRequest::~CreateIntentRequest() {}
|
||||
|
||||
std::string CreateIntentRequest::getUtterances() const {
|
||||
return utterances_;
|
||||
}
|
||||
|
||||
std::string CreateIntentRequest::getKeywords()const
|
||||
{
|
||||
return keywords_;
|
||||
void CreateIntentRequest::setUtterances(const std::string &utterances) {
|
||||
utterances_ = utterances;
|
||||
setParameter(std::string("Utterances"), utterances);
|
||||
}
|
||||
|
||||
void CreateIntentRequest::setKeywords(const std::string& keywords)
|
||||
{
|
||||
keywords_ = keywords;
|
||||
setParameter("Keywords", keywords);
|
||||
std::string CreateIntentRequest::getKeywords() const {
|
||||
return keywords_;
|
||||
}
|
||||
|
||||
std::string CreateIntentRequest::getIntentDescription()const
|
||||
{
|
||||
return intentDescription_;
|
||||
void CreateIntentRequest::setKeywords(const std::string &keywords) {
|
||||
keywords_ = keywords;
|
||||
setParameter(std::string("Keywords"), keywords);
|
||||
}
|
||||
|
||||
void CreateIntentRequest::setIntentDescription(const std::string& intentDescription)
|
||||
{
|
||||
intentDescription_ = intentDescription;
|
||||
setParameter("IntentDescription", intentDescription);
|
||||
std::string CreateIntentRequest::getIntentDescription() const {
|
||||
return intentDescription_;
|
||||
}
|
||||
|
||||
std::string CreateIntentRequest::getScriptId()const
|
||||
{
|
||||
return scriptId_;
|
||||
void CreateIntentRequest::setIntentDescription(const std::string &intentDescription) {
|
||||
intentDescription_ = intentDescription;
|
||||
setParameter(std::string("IntentDescription"), intentDescription);
|
||||
}
|
||||
|
||||
void CreateIntentRequest::setScriptId(const std::string& scriptId)
|
||||
{
|
||||
scriptId_ = scriptId;
|
||||
setParameter("ScriptId", scriptId);
|
||||
std::string CreateIntentRequest::getScriptId() const {
|
||||
return scriptId_;
|
||||
}
|
||||
|
||||
std::string CreateIntentRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
void CreateIntentRequest::setScriptId(const std::string &scriptId) {
|
||||
scriptId_ = scriptId;
|
||||
setParameter(std::string("ScriptId"), scriptId);
|
||||
}
|
||||
|
||||
void CreateIntentRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
std::string CreateIntentRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string CreateIntentRequest::getIntentName()const
|
||||
{
|
||||
return intentName_;
|
||||
void CreateIntentRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
void CreateIntentRequest::setIntentName(const std::string& intentName)
|
||||
{
|
||||
intentName_ = intentName;
|
||||
setParameter("IntentName", intentName);
|
||||
std::string CreateIntentRequest::getIntentName() const {
|
||||
return intentName_;
|
||||
}
|
||||
|
||||
void CreateIntentRequest::setIntentName(const std::string &intentName) {
|
||||
intentName_ = intentName;
|
||||
setParameter(std::string("IntentName"), intentName);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,16 +39,16 @@ void CreateIntentResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["IntentId"].isNull())
|
||||
intentId_ = value["IntentId"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
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();
|
||||
if(!value["IntentId"].isNull())
|
||||
intentId_ = value["IntentId"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* 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/outboundbot/model/CreateJobDataParsingTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::CreateJobDataParsingTaskRequest;
|
||||
|
||||
CreateJobDataParsingTaskRequest::CreateJobDataParsingTaskRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "CreateJobDataParsingTask")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateJobDataParsingTaskRequest::~CreateJobDataParsingTaskRequest()
|
||||
{}
|
||||
|
||||
std::string CreateJobDataParsingTaskRequest::getJobFilePath()const
|
||||
{
|
||||
return jobFilePath_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/CreateJobDataParsingTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::CreateJobDataParsingTaskRequest;
|
||||
|
||||
CreateJobDataParsingTaskRequest::CreateJobDataParsingTaskRequest()
|
||||
: RpcServiceRequest("outboundbot", "2019-12-26", "CreateJobDataParsingTask") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateJobDataParsingTaskRequest::setJobFilePath(const std::string& jobFilePath)
|
||||
{
|
||||
jobFilePath_ = jobFilePath;
|
||||
setParameter("JobFilePath", jobFilePath);
|
||||
CreateJobDataParsingTaskRequest::~CreateJobDataParsingTaskRequest() {}
|
||||
|
||||
std::string CreateJobDataParsingTaskRequest::getJobFilePath() const {
|
||||
return jobFilePath_;
|
||||
}
|
||||
|
||||
std::string CreateJobDataParsingTaskRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
void CreateJobDataParsingTaskRequest::setJobFilePath(const std::string &jobFilePath) {
|
||||
jobFilePath_ = jobFilePath;
|
||||
setParameter(std::string("JobFilePath"), jobFilePath);
|
||||
}
|
||||
|
||||
void CreateJobDataParsingTaskRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
std::string CreateJobDataParsingTaskRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void CreateJobDataParsingTaskRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void CreateJobDataParsingTaskResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
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();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["JobDataParsingTaskId"].isNull())
|
||||
jobDataParsingTaskId_ = value["JobDataParsingTaskId"].asString();
|
||||
|
||||
|
||||
@@ -1,64 +1,53 @@
|
||||
/*
|
||||
* 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/outboundbot/model/CreateJobGroupExportTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::CreateJobGroupExportTaskRequest;
|
||||
|
||||
CreateJobGroupExportTaskRequest::CreateJobGroupExportTaskRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "CreateJobGroupExportTask")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateJobGroupExportTaskRequest::~CreateJobGroupExportTaskRequest()
|
||||
{}
|
||||
|
||||
std::string CreateJobGroupExportTaskRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/CreateJobGroupExportTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::CreateJobGroupExportTaskRequest;
|
||||
|
||||
CreateJobGroupExportTaskRequest::CreateJobGroupExportTaskRequest()
|
||||
: RpcServiceRequest("outboundbot", "2019-12-26", "CreateJobGroupExportTask") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateJobGroupExportTaskRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
CreateJobGroupExportTaskRequest::~CreateJobGroupExportTaskRequest() {}
|
||||
|
||||
std::string CreateJobGroupExportTaskRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string CreateJobGroupExportTaskRequest::getJobGroupId()const
|
||||
{
|
||||
return jobGroupId_;
|
||||
void CreateJobGroupExportTaskRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
void CreateJobGroupExportTaskRequest::setJobGroupId(const std::string& jobGroupId)
|
||||
{
|
||||
jobGroupId_ = jobGroupId;
|
||||
setParameter("JobGroupId", jobGroupId);
|
||||
std::string CreateJobGroupExportTaskRequest::getJobGroupId() const {
|
||||
return jobGroupId_;
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateJobGroupExportTaskRequest::getOption()const
|
||||
{
|
||||
return option_;
|
||||
void CreateJobGroupExportTaskRequest::setJobGroupId(const std::string &jobGroupId) {
|
||||
jobGroupId_ = jobGroupId;
|
||||
setParameter(std::string("JobGroupId"), jobGroupId);
|
||||
}
|
||||
|
||||
void CreateJobGroupExportTaskRequest::setOption(const std::vector<std::string>& option)
|
||||
{
|
||||
option_ = option;
|
||||
for(int dep1 = 0; dep1!= option.size(); dep1++) {
|
||||
setParameter("Option."+ std::to_string(dep1), option.at(dep1));
|
||||
}
|
||||
std::vector<std::string> CreateJobGroupExportTaskRequest::getOption() const {
|
||||
return option_;
|
||||
}
|
||||
|
||||
void CreateJobGroupExportTaskRequest::setOption(const std::vector<std::string> &option) {
|
||||
option_ = option;
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void CreateJobGroupExportTaskResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
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();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["TaskId"].isNull())
|
||||
taskId_ = value["TaskId"].asString();
|
||||
|
||||
|
||||
@@ -1,152 +1,125 @@
|
||||
/*
|
||||
* 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/outboundbot/model/CreateJobGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::CreateJobGroupRequest;
|
||||
|
||||
CreateJobGroupRequest::CreateJobGroupRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "CreateJobGroup")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateJobGroupRequest::~CreateJobGroupRequest()
|
||||
{}
|
||||
|
||||
std::string CreateJobGroupRequest::getRecallStrategyJson()const
|
||||
{
|
||||
return recallStrategyJson_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/CreateJobGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::CreateJobGroupRequest;
|
||||
|
||||
CreateJobGroupRequest::CreateJobGroupRequest()
|
||||
: RpcServiceRequest("outboundbot", "2019-12-26", "CreateJobGroup") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateJobGroupRequest::setRecallStrategyJson(const std::string& recallStrategyJson)
|
||||
{
|
||||
recallStrategyJson_ = recallStrategyJson;
|
||||
setParameter("RecallStrategyJson", recallStrategyJson);
|
||||
CreateJobGroupRequest::~CreateJobGroupRequest() {}
|
||||
|
||||
std::string CreateJobGroupRequest::getRecallStrategyJson() const {
|
||||
return recallStrategyJson_;
|
||||
}
|
||||
|
||||
std::string CreateJobGroupRequest::getJobGroupName()const
|
||||
{
|
||||
return jobGroupName_;
|
||||
void CreateJobGroupRequest::setRecallStrategyJson(const std::string &recallStrategyJson) {
|
||||
recallStrategyJson_ = recallStrategyJson;
|
||||
setParameter(std::string("RecallStrategyJson"), recallStrategyJson);
|
||||
}
|
||||
|
||||
void CreateJobGroupRequest::setJobGroupName(const std::string& jobGroupName)
|
||||
{
|
||||
jobGroupName_ = jobGroupName;
|
||||
setParameter("JobGroupName", jobGroupName);
|
||||
std::string CreateJobGroupRequest::getJobGroupName() const {
|
||||
return jobGroupName_;
|
||||
}
|
||||
|
||||
std::string CreateJobGroupRequest::getScriptId()const
|
||||
{
|
||||
return scriptId_;
|
||||
void CreateJobGroupRequest::setJobGroupName(const std::string &jobGroupName) {
|
||||
jobGroupName_ = jobGroupName;
|
||||
setParameter(std::string("JobGroupName"), jobGroupName);
|
||||
}
|
||||
|
||||
void CreateJobGroupRequest::setScriptId(const std::string& scriptId)
|
||||
{
|
||||
scriptId_ = scriptId;
|
||||
setParameter("ScriptId", scriptId);
|
||||
std::string CreateJobGroupRequest::getScriptId() const {
|
||||
return scriptId_;
|
||||
}
|
||||
|
||||
std::string CreateJobGroupRequest::getStrategyJson()const
|
||||
{
|
||||
return strategyJson_;
|
||||
void CreateJobGroupRequest::setScriptId(const std::string &scriptId) {
|
||||
scriptId_ = scriptId;
|
||||
setParameter(std::string("ScriptId"), scriptId);
|
||||
}
|
||||
|
||||
void CreateJobGroupRequest::setStrategyJson(const std::string& strategyJson)
|
||||
{
|
||||
strategyJson_ = strategyJson;
|
||||
setParameter("StrategyJson", strategyJson);
|
||||
std::string CreateJobGroupRequest::getStrategyJson() const {
|
||||
return strategyJson_;
|
||||
}
|
||||
|
||||
long CreateJobGroupRequest::getRingingDuration()const
|
||||
{
|
||||
return ringingDuration_;
|
||||
void CreateJobGroupRequest::setStrategyJson(const std::string &strategyJson) {
|
||||
strategyJson_ = strategyJson;
|
||||
setParameter(std::string("StrategyJson"), strategyJson);
|
||||
}
|
||||
|
||||
void CreateJobGroupRequest::setRingingDuration(long ringingDuration)
|
||||
{
|
||||
ringingDuration_ = ringingDuration;
|
||||
setParameter("RingingDuration", std::to_string(ringingDuration));
|
||||
long CreateJobGroupRequest::getRingingDuration() const {
|
||||
return ringingDuration_;
|
||||
}
|
||||
|
||||
std::string CreateJobGroupRequest::getScenarioId()const
|
||||
{
|
||||
return scenarioId_;
|
||||
void CreateJobGroupRequest::setRingingDuration(long ringingDuration) {
|
||||
ringingDuration_ = ringingDuration;
|
||||
setParameter(std::string("RingingDuration"), std::to_string(ringingDuration));
|
||||
}
|
||||
|
||||
void CreateJobGroupRequest::setScenarioId(const std::string& scenarioId)
|
||||
{
|
||||
scenarioId_ = scenarioId;
|
||||
setParameter("ScenarioId", scenarioId);
|
||||
std::string CreateJobGroupRequest::getScenarioId() const {
|
||||
return scenarioId_;
|
||||
}
|
||||
|
||||
std::string CreateJobGroupRequest::getPriority()const
|
||||
{
|
||||
return priority_;
|
||||
void CreateJobGroupRequest::setScenarioId(const std::string &scenarioId) {
|
||||
scenarioId_ = scenarioId;
|
||||
setParameter(std::string("ScenarioId"), scenarioId);
|
||||
}
|
||||
|
||||
void CreateJobGroupRequest::setPriority(const std::string& priority)
|
||||
{
|
||||
priority_ = priority;
|
||||
setParameter("Priority", priority);
|
||||
std::string CreateJobGroupRequest::getPriority() const {
|
||||
return priority_;
|
||||
}
|
||||
|
||||
std::string CreateJobGroupRequest::getJobGroupDescription()const
|
||||
{
|
||||
return jobGroupDescription_;
|
||||
void CreateJobGroupRequest::setPriority(const std::string &priority) {
|
||||
priority_ = priority;
|
||||
setParameter(std::string("Priority"), priority);
|
||||
}
|
||||
|
||||
void CreateJobGroupRequest::setJobGroupDescription(const std::string& jobGroupDescription)
|
||||
{
|
||||
jobGroupDescription_ = jobGroupDescription;
|
||||
setParameter("JobGroupDescription", jobGroupDescription);
|
||||
std::string CreateJobGroupRequest::getJobGroupDescription() const {
|
||||
return jobGroupDescription_;
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateJobGroupRequest::getCallingNumber()const
|
||||
{
|
||||
return callingNumber_;
|
||||
void CreateJobGroupRequest::setJobGroupDescription(const std::string &jobGroupDescription) {
|
||||
jobGroupDescription_ = jobGroupDescription;
|
||||
setParameter(std::string("JobGroupDescription"), jobGroupDescription);
|
||||
}
|
||||
|
||||
void CreateJobGroupRequest::setCallingNumber(const std::vector<std::string>& callingNumber)
|
||||
{
|
||||
callingNumber_ = callingNumber;
|
||||
for(int dep1 = 0; dep1!= callingNumber.size(); dep1++) {
|
||||
setParameter("CallingNumber."+ std::to_string(dep1), callingNumber.at(dep1));
|
||||
}
|
||||
std::vector<std::string> CreateJobGroupRequest::getCallingNumber() const {
|
||||
return callingNumber_;
|
||||
}
|
||||
|
||||
std::string CreateJobGroupRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
void CreateJobGroupRequest::setCallingNumber(const std::vector<std::string> &callingNumber) {
|
||||
callingNumber_ = callingNumber;
|
||||
}
|
||||
|
||||
void CreateJobGroupRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
std::string CreateJobGroupRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
long CreateJobGroupRequest::getMinConcurrency()const
|
||||
{
|
||||
return minConcurrency_;
|
||||
void CreateJobGroupRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
void CreateJobGroupRequest::setMinConcurrency(long minConcurrency)
|
||||
{
|
||||
minConcurrency_ = minConcurrency;
|
||||
setParameter("MinConcurrency", std::to_string(minConcurrency));
|
||||
long CreateJobGroupRequest::getMinConcurrency() const {
|
||||
return minConcurrency_;
|
||||
}
|
||||
|
||||
void CreateJobGroupRequest::setMinConcurrency(long minConcurrency) {
|
||||
minConcurrency_ = minConcurrency;
|
||||
setParameter(std::string("MinConcurrency"), std::to_string(minConcurrency));
|
||||
}
|
||||
|
||||
|
||||
@@ -1,40 +1,36 @@
|
||||
/*
|
||||
* 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/outboundbot/model/CreateNumberDistrictInfoDownloadUrlRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::CreateNumberDistrictInfoDownloadUrlRequest;
|
||||
|
||||
CreateNumberDistrictInfoDownloadUrlRequest::CreateNumberDistrictInfoDownloadUrlRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "CreateNumberDistrictInfoDownloadUrl")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateNumberDistrictInfoDownloadUrlRequest::~CreateNumberDistrictInfoDownloadUrlRequest()
|
||||
{}
|
||||
|
||||
std::string CreateNumberDistrictInfoDownloadUrlRequest::getVersionId()const
|
||||
{
|
||||
return versionId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/CreateNumberDistrictInfoDownloadUrlRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::CreateNumberDistrictInfoDownloadUrlRequest;
|
||||
|
||||
CreateNumberDistrictInfoDownloadUrlRequest::CreateNumberDistrictInfoDownloadUrlRequest()
|
||||
: RpcServiceRequest("outboundbot", "2019-12-26", "CreateNumberDistrictInfoDownloadUrl") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateNumberDistrictInfoDownloadUrlRequest::setVersionId(const std::string& versionId)
|
||||
{
|
||||
versionId_ = versionId;
|
||||
setParameter("VersionId", versionId);
|
||||
CreateNumberDistrictInfoDownloadUrlRequest::~CreateNumberDistrictInfoDownloadUrlRequest() {}
|
||||
|
||||
std::string CreateNumberDistrictInfoDownloadUrlRequest::getVersionId() const {
|
||||
return versionId_;
|
||||
}
|
||||
|
||||
void CreateNumberDistrictInfoDownloadUrlRequest::setVersionId(const std::string &versionId) {
|
||||
versionId_ = versionId;
|
||||
setParameter(std::string("VersionId"), versionId);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* 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/outboundbot/model/CreateNumberDistrictInfoParsingTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::CreateNumberDistrictInfoParsingTaskRequest;
|
||||
|
||||
CreateNumberDistrictInfoParsingTaskRequest::CreateNumberDistrictInfoParsingTaskRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "CreateNumberDistrictInfoParsingTask")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateNumberDistrictInfoParsingTaskRequest::~CreateNumberDistrictInfoParsingTaskRequest()
|
||||
{}
|
||||
|
||||
long CreateNumberDistrictInfoParsingTaskRequest::getFileSize()const
|
||||
{
|
||||
return fileSize_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/CreateNumberDistrictInfoParsingTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::CreateNumberDistrictInfoParsingTaskRequest;
|
||||
|
||||
CreateNumberDistrictInfoParsingTaskRequest::CreateNumberDistrictInfoParsingTaskRequest()
|
||||
: RpcServiceRequest("outboundbot", "2019-12-26", "CreateNumberDistrictInfoParsingTask") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateNumberDistrictInfoParsingTaskRequest::setFileSize(long fileSize)
|
||||
{
|
||||
fileSize_ = fileSize;
|
||||
setParameter("FileSize", std::to_string(fileSize));
|
||||
CreateNumberDistrictInfoParsingTaskRequest::~CreateNumberDistrictInfoParsingTaskRequest() {}
|
||||
|
||||
long CreateNumberDistrictInfoParsingTaskRequest::getFileSize() const {
|
||||
return fileSize_;
|
||||
}
|
||||
|
||||
std::string CreateNumberDistrictInfoParsingTaskRequest::getFilePath()const
|
||||
{
|
||||
return filePath_;
|
||||
void CreateNumberDistrictInfoParsingTaskRequest::setFileSize(long fileSize) {
|
||||
fileSize_ = fileSize;
|
||||
setParameter(std::string("FileSize"), std::to_string(fileSize));
|
||||
}
|
||||
|
||||
void CreateNumberDistrictInfoParsingTaskRequest::setFilePath(const std::string& filePath)
|
||||
{
|
||||
filePath_ = filePath;
|
||||
setParameter("FilePath", filePath);
|
||||
std::string CreateNumberDistrictInfoParsingTaskRequest::getFilePath() const {
|
||||
return filePath_;
|
||||
}
|
||||
|
||||
void CreateNumberDistrictInfoParsingTaskRequest::setFilePath(const std::string &filePath) {
|
||||
filePath_ = filePath;
|
||||
setParameter(std::string("FilePath"), filePath);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,73 +1,63 @@
|
||||
/*
|
||||
* 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/outboundbot/model/CreateOutboundCallNumberRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::CreateOutboundCallNumberRequest;
|
||||
|
||||
CreateOutboundCallNumberRequest::CreateOutboundCallNumberRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "CreateOutboundCallNumber")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateOutboundCallNumberRequest::~CreateOutboundCallNumberRequest()
|
||||
{}
|
||||
|
||||
int CreateOutboundCallNumberRequest::getRateLimitCount()const
|
||||
{
|
||||
return rateLimitCount_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/CreateOutboundCallNumberRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::CreateOutboundCallNumberRequest;
|
||||
|
||||
CreateOutboundCallNumberRequest::CreateOutboundCallNumberRequest()
|
||||
: RpcServiceRequest("outboundbot", "2019-12-26", "CreateOutboundCallNumber") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateOutboundCallNumberRequest::setRateLimitCount(int rateLimitCount)
|
||||
{
|
||||
rateLimitCount_ = rateLimitCount;
|
||||
setParameter("RateLimitCount", std::to_string(rateLimitCount));
|
||||
CreateOutboundCallNumberRequest::~CreateOutboundCallNumberRequest() {}
|
||||
|
||||
int CreateOutboundCallNumberRequest::getRateLimitCount() const {
|
||||
return rateLimitCount_;
|
||||
}
|
||||
|
||||
std::string CreateOutboundCallNumberRequest::getNumber()const
|
||||
{
|
||||
return number_;
|
||||
void CreateOutboundCallNumberRequest::setRateLimitCount(int rateLimitCount) {
|
||||
rateLimitCount_ = rateLimitCount;
|
||||
setParameter(std::string("RateLimitCount"), std::to_string(rateLimitCount));
|
||||
}
|
||||
|
||||
void CreateOutboundCallNumberRequest::setNumber(const std::string& number)
|
||||
{
|
||||
number_ = number;
|
||||
setParameter("Number", number);
|
||||
std::string CreateOutboundCallNumberRequest::getNumber() const {
|
||||
return number_;
|
||||
}
|
||||
|
||||
std::string CreateOutboundCallNumberRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
void CreateOutboundCallNumberRequest::setNumber(const std::string &number) {
|
||||
number_ = number;
|
||||
setParameter(std::string("Number"), number);
|
||||
}
|
||||
|
||||
void CreateOutboundCallNumberRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
std::string CreateOutboundCallNumberRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
int CreateOutboundCallNumberRequest::getRateLimitPeriod()const
|
||||
{
|
||||
return rateLimitPeriod_;
|
||||
void CreateOutboundCallNumberRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
void CreateOutboundCallNumberRequest::setRateLimitPeriod(int rateLimitPeriod)
|
||||
{
|
||||
rateLimitPeriod_ = rateLimitPeriod;
|
||||
setParameter("RateLimitPeriod", std::to_string(rateLimitPeriod));
|
||||
int CreateOutboundCallNumberRequest::getRateLimitPeriod() const {
|
||||
return rateLimitPeriod_;
|
||||
}
|
||||
|
||||
void CreateOutboundCallNumberRequest::setRateLimitPeriod(int rateLimitPeriod) {
|
||||
rateLimitPeriod_ = rateLimitPeriod;
|
||||
setParameter(std::string("RateLimitPeriod"), std::to_string(rateLimitPeriod));
|
||||
}
|
||||
|
||||
|
||||
@@ -39,16 +39,16 @@ void CreateOutboundCallNumberResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
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();
|
||||
if(!value["OutboundCallNumberId"].isNull())
|
||||
outboundCallNumberId_ = value["OutboundCallNumberId"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,165 +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/outboundbot/model/CreateScriptRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::CreateScriptRequest;
|
||||
|
||||
CreateScriptRequest::CreateScriptRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "CreateScript")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateScriptRequest::~CreateScriptRequest()
|
||||
{}
|
||||
|
||||
std::string CreateScriptRequest::getTtsConfig()const
|
||||
{
|
||||
return ttsConfig_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/CreateScriptRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::CreateScriptRequest;
|
||||
|
||||
CreateScriptRequest::CreateScriptRequest()
|
||||
: RpcServiceRequest("outboundbot", "2019-12-26", "CreateScript") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateScriptRequest::setTtsConfig(const std::string& ttsConfig)
|
||||
{
|
||||
ttsConfig_ = ttsConfig;
|
||||
setParameter("TtsConfig", ttsConfig);
|
||||
CreateScriptRequest::~CreateScriptRequest() {}
|
||||
|
||||
std::string CreateScriptRequest::getTtsConfig() const {
|
||||
return ttsConfig_;
|
||||
}
|
||||
|
||||
std::string CreateScriptRequest::getIndustry()const
|
||||
{
|
||||
return industry_;
|
||||
void CreateScriptRequest::setTtsConfig(const std::string &ttsConfig) {
|
||||
ttsConfig_ = ttsConfig;
|
||||
setParameter(std::string("TtsConfig"), ttsConfig);
|
||||
}
|
||||
|
||||
void CreateScriptRequest::setIndustry(const std::string& industry)
|
||||
{
|
||||
industry_ = industry;
|
||||
setParameter("Industry", industry);
|
||||
std::string CreateScriptRequest::getIndustry() const {
|
||||
return industry_;
|
||||
}
|
||||
|
||||
std::string CreateScriptRequest::getScriptName()const
|
||||
{
|
||||
return scriptName_;
|
||||
void CreateScriptRequest::setIndustry(const std::string &industry) {
|
||||
industry_ = industry;
|
||||
setParameter(std::string("Industry"), industry);
|
||||
}
|
||||
|
||||
void CreateScriptRequest::setScriptName(const std::string& scriptName)
|
||||
{
|
||||
scriptName_ = scriptName;
|
||||
setParameter("ScriptName", scriptName);
|
||||
std::string CreateScriptRequest::getScriptName() const {
|
||||
return scriptName_;
|
||||
}
|
||||
|
||||
std::string CreateScriptRequest::getScene()const
|
||||
{
|
||||
return scene_;
|
||||
void CreateScriptRequest::setScriptName(const std::string &scriptName) {
|
||||
scriptName_ = scriptName;
|
||||
setParameter(std::string("ScriptName"), scriptName);
|
||||
}
|
||||
|
||||
void CreateScriptRequest::setScene(const std::string& scene)
|
||||
{
|
||||
scene_ = scene;
|
||||
setParameter("Scene", scene);
|
||||
std::string CreateScriptRequest::getScene() const {
|
||||
return scene_;
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateScriptRequest::getScriptWaveform()const
|
||||
{
|
||||
return scriptWaveform_;
|
||||
void CreateScriptRequest::setScene(const std::string &scene) {
|
||||
scene_ = scene;
|
||||
setParameter(std::string("Scene"), scene);
|
||||
}
|
||||
|
||||
void CreateScriptRequest::setScriptWaveform(const std::vector<std::string>& scriptWaveform)
|
||||
{
|
||||
scriptWaveform_ = scriptWaveform;
|
||||
for(int dep1 = 0; dep1!= scriptWaveform.size(); dep1++) {
|
||||
setParameter("ScriptWaveform."+ std::to_string(dep1), scriptWaveform.at(dep1));
|
||||
}
|
||||
std::vector<std::string> CreateScriptRequest::getScriptWaveform() const {
|
||||
return scriptWaveform_;
|
||||
}
|
||||
|
||||
std::string CreateScriptRequest::getAsrConfig()const
|
||||
{
|
||||
return asrConfig_;
|
||||
void CreateScriptRequest::setScriptWaveform(const std::vector<std::string> &scriptWaveform) {
|
||||
scriptWaveform_ = scriptWaveform;
|
||||
}
|
||||
|
||||
void CreateScriptRequest::setAsrConfig(const std::string& asrConfig)
|
||||
{
|
||||
asrConfig_ = asrConfig;
|
||||
setParameter("AsrConfig", asrConfig);
|
||||
std::string CreateScriptRequest::getAsrConfig() const {
|
||||
return asrConfig_;
|
||||
}
|
||||
|
||||
bool CreateScriptRequest::getNewBargeInEnable()const
|
||||
{
|
||||
return newBargeInEnable_;
|
||||
void CreateScriptRequest::setAsrConfig(const std::string &asrConfig) {
|
||||
asrConfig_ = asrConfig;
|
||||
setParameter(std::string("AsrConfig"), asrConfig);
|
||||
}
|
||||
|
||||
void CreateScriptRequest::setNewBargeInEnable(bool newBargeInEnable)
|
||||
{
|
||||
newBargeInEnable_ = newBargeInEnable;
|
||||
setParameter("NewBargeInEnable", newBargeInEnable ? "true" : "false");
|
||||
bool CreateScriptRequest::getNewBargeInEnable() const {
|
||||
return newBargeInEnable_;
|
||||
}
|
||||
|
||||
bool CreateScriptRequest::getMiniPlaybackEnable()const
|
||||
{
|
||||
return miniPlaybackEnable_;
|
||||
void CreateScriptRequest::setNewBargeInEnable(bool newBargeInEnable) {
|
||||
newBargeInEnable_ = newBargeInEnable;
|
||||
setParameter(std::string("NewBargeInEnable"), newBargeInEnable ? "true" : "false");
|
||||
}
|
||||
|
||||
void CreateScriptRequest::setMiniPlaybackEnable(bool miniPlaybackEnable)
|
||||
{
|
||||
miniPlaybackEnable_ = miniPlaybackEnable;
|
||||
setParameter("MiniPlaybackEnable", miniPlaybackEnable ? "true" : "false");
|
||||
bool CreateScriptRequest::getMiniPlaybackEnable() const {
|
||||
return miniPlaybackEnable_;
|
||||
}
|
||||
|
||||
std::string CreateScriptRequest::getChatbotId()const
|
||||
{
|
||||
return chatbotId_;
|
||||
void CreateScriptRequest::setMiniPlaybackEnable(bool miniPlaybackEnable) {
|
||||
miniPlaybackEnable_ = miniPlaybackEnable;
|
||||
setParameter(std::string("MiniPlaybackEnable"), miniPlaybackEnable ? "true" : "false");
|
||||
}
|
||||
|
||||
void CreateScriptRequest::setChatbotId(const std::string& chatbotId)
|
||||
{
|
||||
chatbotId_ = chatbotId;
|
||||
setParameter("ChatbotId", chatbotId);
|
||||
std::string CreateScriptRequest::getChatbotId() const {
|
||||
return chatbotId_;
|
||||
}
|
||||
|
||||
std::string CreateScriptRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
void CreateScriptRequest::setChatbotId(const std::string &chatbotId) {
|
||||
chatbotId_ = chatbotId;
|
||||
setParameter(std::string("ChatbotId"), chatbotId);
|
||||
}
|
||||
|
||||
void CreateScriptRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
std::string CreateScriptRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string CreateScriptRequest::getScriptDescription()const
|
||||
{
|
||||
return scriptDescription_;
|
||||
void CreateScriptRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
void CreateScriptRequest::setScriptDescription(const std::string& scriptDescription)
|
||||
{
|
||||
scriptDescription_ = scriptDescription;
|
||||
setParameter("ScriptDescription", scriptDescription);
|
||||
std::string CreateScriptRequest::getScriptDescription() const {
|
||||
return scriptDescription_;
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateScriptRequest::getScriptContent()const
|
||||
{
|
||||
return scriptContent_;
|
||||
void CreateScriptRequest::setScriptDescription(const std::string &scriptDescription) {
|
||||
scriptDescription_ = scriptDescription;
|
||||
setParameter(std::string("ScriptDescription"), scriptDescription);
|
||||
}
|
||||
|
||||
void CreateScriptRequest::setScriptContent(const std::vector<std::string>& scriptContent)
|
||||
{
|
||||
scriptContent_ = scriptContent;
|
||||
for(int dep1 = 0; dep1!= scriptContent.size(); dep1++) {
|
||||
setParameter("ScriptContent."+ std::to_string(dep1), scriptContent.at(dep1));
|
||||
}
|
||||
std::vector<std::string> CreateScriptRequest::getScriptContent() const {
|
||||
return scriptContent_;
|
||||
}
|
||||
|
||||
void CreateScriptRequest::setScriptContent(const std::vector<std::string> &scriptContent) {
|
||||
scriptContent_ = scriptContent;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,84 +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/outboundbot/model/CreateScriptWaveformRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::CreateScriptWaveformRequest;
|
||||
|
||||
CreateScriptWaveformRequest::CreateScriptWaveformRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "CreateScriptWaveform")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateScriptWaveformRequest::~CreateScriptWaveformRequest()
|
||||
{}
|
||||
|
||||
std::string CreateScriptWaveformRequest::getScriptId()const
|
||||
{
|
||||
return scriptId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/CreateScriptWaveformRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::CreateScriptWaveformRequest;
|
||||
|
||||
CreateScriptWaveformRequest::CreateScriptWaveformRequest()
|
||||
: RpcServiceRequest("outboundbot", "2019-12-26", "CreateScriptWaveform") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateScriptWaveformRequest::setScriptId(const std::string& scriptId)
|
||||
{
|
||||
scriptId_ = scriptId;
|
||||
setParameter("ScriptId", scriptId);
|
||||
CreateScriptWaveformRequest::~CreateScriptWaveformRequest() {}
|
||||
|
||||
std::string CreateScriptWaveformRequest::getScriptId() const {
|
||||
return scriptId_;
|
||||
}
|
||||
|
||||
std::string CreateScriptWaveformRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
void CreateScriptWaveformRequest::setScriptId(const std::string &scriptId) {
|
||||
scriptId_ = scriptId;
|
||||
setParameter(std::string("ScriptId"), scriptId);
|
||||
}
|
||||
|
||||
void CreateScriptWaveformRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
std::string CreateScriptWaveformRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string CreateScriptWaveformRequest::getFileName()const
|
||||
{
|
||||
return fileName_;
|
||||
void CreateScriptWaveformRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
void CreateScriptWaveformRequest::setFileName(const std::string& fileName)
|
||||
{
|
||||
fileName_ = fileName;
|
||||
setParameter("FileName", fileName);
|
||||
std::string CreateScriptWaveformRequest::getFileName() const {
|
||||
return fileName_;
|
||||
}
|
||||
|
||||
std::string CreateScriptWaveformRequest::getScriptContent()const
|
||||
{
|
||||
return scriptContent_;
|
||||
void CreateScriptWaveformRequest::setFileName(const std::string &fileName) {
|
||||
fileName_ = fileName;
|
||||
setParameter(std::string("FileName"), fileName);
|
||||
}
|
||||
|
||||
void CreateScriptWaveformRequest::setScriptContent(const std::string& scriptContent)
|
||||
{
|
||||
scriptContent_ = scriptContent;
|
||||
setParameter("ScriptContent", scriptContent);
|
||||
std::string CreateScriptWaveformRequest::getScriptContent() const {
|
||||
return scriptContent_;
|
||||
}
|
||||
|
||||
std::string CreateScriptWaveformRequest::getFileId()const
|
||||
{
|
||||
return fileId_;
|
||||
void CreateScriptWaveformRequest::setScriptContent(const std::string &scriptContent) {
|
||||
scriptContent_ = scriptContent;
|
||||
setParameter(std::string("ScriptContent"), scriptContent);
|
||||
}
|
||||
|
||||
void CreateScriptWaveformRequest::setFileId(const std::string& fileId)
|
||||
{
|
||||
fileId_ = fileId;
|
||||
setParameter("FileId", fileId);
|
||||
std::string CreateScriptWaveformRequest::getFileId() const {
|
||||
return fileId_;
|
||||
}
|
||||
|
||||
void CreateScriptWaveformRequest::setFileId(const std::string &fileId) {
|
||||
fileId_ = fileId;
|
||||
setParameter(std::string("FileId"), fileId);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,16 +39,16 @@ void CreateScriptWaveformResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
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();
|
||||
if(!value["ScriptWaveformId"].isNull())
|
||||
scriptWaveformId_ = value["ScriptWaveformId"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,73 +1,63 @@
|
||||
/*
|
||||
* 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/outboundbot/model/CreateTagRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::CreateTagRequest;
|
||||
|
||||
CreateTagRequest::CreateTagRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "CreateTag")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateTagRequest::~CreateTagRequest()
|
||||
{}
|
||||
|
||||
std::string CreateTagRequest::getTagGroup()const
|
||||
{
|
||||
return tagGroup_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/CreateTagRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::CreateTagRequest;
|
||||
|
||||
CreateTagRequest::CreateTagRequest()
|
||||
: RpcServiceRequest("outboundbot", "2019-12-26", "CreateTag") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateTagRequest::setTagGroup(const std::string& tagGroup)
|
||||
{
|
||||
tagGroup_ = tagGroup;
|
||||
setParameter("TagGroup", tagGroup);
|
||||
CreateTagRequest::~CreateTagRequest() {}
|
||||
|
||||
std::string CreateTagRequest::getTagGroup() const {
|
||||
return tagGroup_;
|
||||
}
|
||||
|
||||
std::string CreateTagRequest::getScriptId()const
|
||||
{
|
||||
return scriptId_;
|
||||
void CreateTagRequest::setTagGroup(const std::string &tagGroup) {
|
||||
tagGroup_ = tagGroup;
|
||||
setParameter(std::string("TagGroup"), tagGroup);
|
||||
}
|
||||
|
||||
void CreateTagRequest::setScriptId(const std::string& scriptId)
|
||||
{
|
||||
scriptId_ = scriptId;
|
||||
setParameter("ScriptId", scriptId);
|
||||
std::string CreateTagRequest::getScriptId() const {
|
||||
return scriptId_;
|
||||
}
|
||||
|
||||
std::string CreateTagRequest::getTagName()const
|
||||
{
|
||||
return tagName_;
|
||||
void CreateTagRequest::setScriptId(const std::string &scriptId) {
|
||||
scriptId_ = scriptId;
|
||||
setParameter(std::string("ScriptId"), scriptId);
|
||||
}
|
||||
|
||||
void CreateTagRequest::setTagName(const std::string& tagName)
|
||||
{
|
||||
tagName_ = tagName;
|
||||
setParameter("TagName", tagName);
|
||||
std::string CreateTagRequest::getTagName() const {
|
||||
return tagName_;
|
||||
}
|
||||
|
||||
std::string CreateTagRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
void CreateTagRequest::setTagName(const std::string &tagName) {
|
||||
tagName_ = tagName;
|
||||
setParameter(std::string("TagName"), tagName);
|
||||
}
|
||||
|
||||
void CreateTagRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
std::string CreateTagRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void CreateTagRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void CreateTagResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
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();
|
||||
if(!value["TagId"].isNull())
|
||||
tagId_ = value["TagId"].asString();
|
||||
|
||||
|
||||
@@ -1,315 +1,261 @@
|
||||
/*
|
||||
* 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/outboundbot/model/CreateTaskExportTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::CreateTaskExportTaskRequest;
|
||||
|
||||
CreateTaskExportTaskRequest::CreateTaskExportTaskRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "CreateTaskExportTask")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
CreateTaskExportTaskRequest::~CreateTaskExportTaskRequest()
|
||||
{}
|
||||
|
||||
bool CreateTaskExportTaskRequest::getHasAnswered()const
|
||||
{
|
||||
return hasAnswered_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/CreateTaskExportTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::CreateTaskExportTaskRequest;
|
||||
|
||||
CreateTaskExportTaskRequest::CreateTaskExportTaskRequest()
|
||||
: RpcServiceRequest("outboundbot", "2019-12-26", "CreateTaskExportTask") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
void CreateTaskExportTaskRequest::setHasAnswered(bool hasAnswered)
|
||||
{
|
||||
hasAnswered_ = hasAnswered;
|
||||
setParameter("HasAnswered", hasAnswered ? "true" : "false");
|
||||
CreateTaskExportTaskRequest::~CreateTaskExportTaskRequest() {}
|
||||
|
||||
bool CreateTaskExportTaskRequest::getHasAnswered() const {
|
||||
return hasAnswered_;
|
||||
}
|
||||
|
||||
long CreateTaskExportTaskRequest::getActualTimeLte()const
|
||||
{
|
||||
return actualTimeLte_;
|
||||
void CreateTaskExportTaskRequest::setHasAnswered(bool hasAnswered) {
|
||||
hasAnswered_ = hasAnswered;
|
||||
setParameter(std::string("HasAnswered"), hasAnswered ? "true" : "false");
|
||||
}
|
||||
|
||||
void CreateTaskExportTaskRequest::setActualTimeLte(long actualTimeLte)
|
||||
{
|
||||
actualTimeLte_ = actualTimeLte;
|
||||
setParameter("ActualTimeLte", std::to_string(actualTimeLte));
|
||||
long CreateTaskExportTaskRequest::getActualTimeLte() const {
|
||||
return actualTimeLte_;
|
||||
}
|
||||
|
||||
std::string CreateTaskExportTaskRequest::getOtherId()const
|
||||
{
|
||||
return otherId_;
|
||||
void CreateTaskExportTaskRequest::setActualTimeLte(long actualTimeLte) {
|
||||
actualTimeLte_ = actualTimeLte;
|
||||
setParameter(std::string("ActualTimeLte"), std::to_string(actualTimeLte));
|
||||
}
|
||||
|
||||
void CreateTaskExportTaskRequest::setOtherId(const std::string& otherId)
|
||||
{
|
||||
otherId_ = otherId;
|
||||
setParameter("OtherId", otherId);
|
||||
std::string CreateTaskExportTaskRequest::getOtherId() const {
|
||||
return otherId_;
|
||||
}
|
||||
|
||||
long CreateTaskExportTaskRequest::getTaskCreateTimeLte()const
|
||||
{
|
||||
return taskCreateTimeLte_;
|
||||
void CreateTaskExportTaskRequest::setOtherId(const std::string &otherId) {
|
||||
otherId_ = otherId;
|
||||
setParameter(std::string("OtherId"), otherId);
|
||||
}
|
||||
|
||||
void CreateTaskExportTaskRequest::setTaskCreateTimeLte(long taskCreateTimeLte)
|
||||
{
|
||||
taskCreateTimeLte_ = taskCreateTimeLte;
|
||||
setParameter("TaskCreateTimeLte", std::to_string(taskCreateTimeLte));
|
||||
long CreateTaskExportTaskRequest::getTaskCreateTimeLte() const {
|
||||
return taskCreateTimeLte_;
|
||||
}
|
||||
|
||||
std::string CreateTaskExportTaskRequest::getJobId()const
|
||||
{
|
||||
return jobId_;
|
||||
void CreateTaskExportTaskRequest::setTaskCreateTimeLte(long taskCreateTimeLte) {
|
||||
taskCreateTimeLte_ = taskCreateTimeLte;
|
||||
setParameter(std::string("TaskCreateTimeLte"), std::to_string(taskCreateTimeLte));
|
||||
}
|
||||
|
||||
void CreateTaskExportTaskRequest::setJobId(const std::string& jobId)
|
||||
{
|
||||
jobId_ = jobId;
|
||||
setParameter("JobId", jobId);
|
||||
std::string CreateTaskExportTaskRequest::getJobId() const {
|
||||
return jobId_;
|
||||
}
|
||||
|
||||
long CreateTaskExportTaskRequest::getTaskCreateTimeGte()const
|
||||
{
|
||||
return taskCreateTimeGte_;
|
||||
void CreateTaskExportTaskRequest::setJobId(const std::string &jobId) {
|
||||
jobId_ = jobId;
|
||||
setParameter(std::string("JobId"), jobId);
|
||||
}
|
||||
|
||||
void CreateTaskExportTaskRequest::setTaskCreateTimeGte(long taskCreateTimeGte)
|
||||
{
|
||||
taskCreateTimeGte_ = taskCreateTimeGte;
|
||||
setParameter("TaskCreateTimeGte", std::to_string(taskCreateTimeGte));
|
||||
long CreateTaskExportTaskRequest::getTaskCreateTimeGte() const {
|
||||
return taskCreateTimeGte_;
|
||||
}
|
||||
|
||||
std::string CreateTaskExportTaskRequest::getCalledNumber()const
|
||||
{
|
||||
return calledNumber_;
|
||||
void CreateTaskExportTaskRequest::setTaskCreateTimeGte(long taskCreateTimeGte) {
|
||||
taskCreateTimeGte_ = taskCreateTimeGte;
|
||||
setParameter(std::string("TaskCreateTimeGte"), std::to_string(taskCreateTimeGte));
|
||||
}
|
||||
|
||||
void CreateTaskExportTaskRequest::setCalledNumber(const std::string& calledNumber)
|
||||
{
|
||||
calledNumber_ = calledNumber;
|
||||
setParameter("CalledNumber", calledNumber);
|
||||
std::string CreateTaskExportTaskRequest::getCalledNumber() const {
|
||||
return calledNumber_;
|
||||
}
|
||||
|
||||
std::string CreateTaskExportTaskRequest::getUserIdMatch()const
|
||||
{
|
||||
return userIdMatch_;
|
||||
void CreateTaskExportTaskRequest::setCalledNumber(const std::string &calledNumber) {
|
||||
calledNumber_ = calledNumber;
|
||||
setParameter(std::string("CalledNumber"), calledNumber);
|
||||
}
|
||||
|
||||
void CreateTaskExportTaskRequest::setUserIdMatch(const std::string& userIdMatch)
|
||||
{
|
||||
userIdMatch_ = userIdMatch;
|
||||
setParameter("UserIdMatch", userIdMatch);
|
||||
std::string CreateTaskExportTaskRequest::getUserIdMatch() const {
|
||||
return userIdMatch_;
|
||||
}
|
||||
|
||||
int CreateTaskExportTaskRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
void CreateTaskExportTaskRequest::setUserIdMatch(const std::string &userIdMatch) {
|
||||
userIdMatch_ = userIdMatch;
|
||||
setParameter(std::string("UserIdMatch"), userIdMatch);
|
||||
}
|
||||
|
||||
void CreateTaskExportTaskRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
int CreateTaskExportTaskRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
std::string CreateTaskExportTaskRequest::getScriptNameQuery()const
|
||||
{
|
||||
return scriptNameQuery_;
|
||||
void CreateTaskExportTaskRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
void CreateTaskExportTaskRequest::setScriptNameQuery(const std::string& scriptNameQuery)
|
||||
{
|
||||
scriptNameQuery_ = scriptNameQuery;
|
||||
setParameter("ScriptNameQuery", scriptNameQuery);
|
||||
std::string CreateTaskExportTaskRequest::getScriptNameQuery() const {
|
||||
return scriptNameQuery_;
|
||||
}
|
||||
|
||||
int CreateTaskExportTaskRequest::getPageIndex()const
|
||||
{
|
||||
return pageIndex_;
|
||||
void CreateTaskExportTaskRequest::setScriptNameQuery(const std::string &scriptNameQuery) {
|
||||
scriptNameQuery_ = scriptNameQuery;
|
||||
setParameter(std::string("ScriptNameQuery"), scriptNameQuery);
|
||||
}
|
||||
|
||||
void CreateTaskExportTaskRequest::setPageIndex(int pageIndex)
|
||||
{
|
||||
pageIndex_ = pageIndex;
|
||||
setParameter("PageIndex", std::to_string(pageIndex));
|
||||
int CreateTaskExportTaskRequest::getPageIndex() const {
|
||||
return pageIndex_;
|
||||
}
|
||||
|
||||
std::string CreateTaskExportTaskRequest::getSortOrder()const
|
||||
{
|
||||
return sortOrder_;
|
||||
void CreateTaskExportTaskRequest::setPageIndex(int pageIndex) {
|
||||
pageIndex_ = pageIndex;
|
||||
setParameter(std::string("PageIndex"), std::to_string(pageIndex));
|
||||
}
|
||||
|
||||
void CreateTaskExportTaskRequest::setSortOrder(const std::string& sortOrder)
|
||||
{
|
||||
sortOrder_ = sortOrder;
|
||||
setParameter("SortOrder", sortOrder);
|
||||
std::string CreateTaskExportTaskRequest::getSortOrder() const {
|
||||
return sortOrder_;
|
||||
}
|
||||
|
||||
std::string CreateTaskExportTaskRequest::getTaskStatusStringList()const
|
||||
{
|
||||
return taskStatusStringList_;
|
||||
void CreateTaskExportTaskRequest::setSortOrder(const std::string &sortOrder) {
|
||||
sortOrder_ = sortOrder;
|
||||
setParameter(std::string("SortOrder"), sortOrder);
|
||||
}
|
||||
|
||||
void CreateTaskExportTaskRequest::setTaskStatusStringList(const std::string& taskStatusStringList)
|
||||
{
|
||||
taskStatusStringList_ = taskStatusStringList;
|
||||
setParameter("TaskStatusStringList", taskStatusStringList);
|
||||
std::string CreateTaskExportTaskRequest::getTaskStatusStringList() const {
|
||||
return taskStatusStringList_;
|
||||
}
|
||||
|
||||
std::string CreateTaskExportTaskRequest::getJobGroupNameQuery()const
|
||||
{
|
||||
return jobGroupNameQuery_;
|
||||
void CreateTaskExportTaskRequest::setTaskStatusStringList(const std::string &taskStatusStringList) {
|
||||
taskStatusStringList_ = taskStatusStringList;
|
||||
setParameter(std::string("TaskStatusStringList"), taskStatusStringList);
|
||||
}
|
||||
|
||||
void CreateTaskExportTaskRequest::setJobGroupNameQuery(const std::string& jobGroupNameQuery)
|
||||
{
|
||||
jobGroupNameQuery_ = jobGroupNameQuery;
|
||||
setParameter("JobGroupNameQuery", jobGroupNameQuery);
|
||||
std::string CreateTaskExportTaskRequest::getJobGroupNameQuery() const {
|
||||
return jobGroupNameQuery_;
|
||||
}
|
||||
|
||||
std::string CreateTaskExportTaskRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
void CreateTaskExportTaskRequest::setJobGroupNameQuery(const std::string &jobGroupNameQuery) {
|
||||
jobGroupNameQuery_ = jobGroupNameQuery;
|
||||
setParameter(std::string("JobGroupNameQuery"), jobGroupNameQuery);
|
||||
}
|
||||
|
||||
void CreateTaskExportTaskRequest::setTaskId(const std::string& taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setParameter("TaskId", taskId);
|
||||
std::string CreateTaskExportTaskRequest::getTaskId() const {
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
bool CreateTaskExportTaskRequest::getHasHangUpByRejection()const
|
||||
{
|
||||
return hasHangUpByRejection_;
|
||||
void CreateTaskExportTaskRequest::setTaskId(const std::string &taskId) {
|
||||
taskId_ = taskId;
|
||||
setParameter(std::string("TaskId"), taskId);
|
||||
}
|
||||
|
||||
void CreateTaskExportTaskRequest::setHasHangUpByRejection(bool hasHangUpByRejection)
|
||||
{
|
||||
hasHangUpByRejection_ = hasHangUpByRejection;
|
||||
setParameter("HasHangUpByRejection", hasHangUpByRejection ? "true" : "false");
|
||||
bool CreateTaskExportTaskRequest::getHasHangUpByRejection() const {
|
||||
return hasHangUpByRejection_;
|
||||
}
|
||||
|
||||
bool CreateTaskExportTaskRequest::getHasReachedEndOfFlow()const
|
||||
{
|
||||
return hasReachedEndOfFlow_;
|
||||
void CreateTaskExportTaskRequest::setHasHangUpByRejection(bool hasHangUpByRejection) {
|
||||
hasHangUpByRejection_ = hasHangUpByRejection;
|
||||
setParameter(std::string("HasHangUpByRejection"), hasHangUpByRejection ? "true" : "false");
|
||||
}
|
||||
|
||||
void CreateTaskExportTaskRequest::setHasReachedEndOfFlow(bool hasReachedEndOfFlow)
|
||||
{
|
||||
hasReachedEndOfFlow_ = hasReachedEndOfFlow;
|
||||
setParameter("HasReachedEndOfFlow", hasReachedEndOfFlow ? "true" : "false");
|
||||
bool CreateTaskExportTaskRequest::getHasReachedEndOfFlow() const {
|
||||
return hasReachedEndOfFlow_;
|
||||
}
|
||||
|
||||
std::string CreateTaskExportTaskRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
void CreateTaskExportTaskRequest::setHasReachedEndOfFlow(bool hasReachedEndOfFlow) {
|
||||
hasReachedEndOfFlow_ = hasReachedEndOfFlow;
|
||||
setParameter(std::string("HasReachedEndOfFlow"), hasReachedEndOfFlow ? "true" : "false");
|
||||
}
|
||||
|
||||
void CreateTaskExportTaskRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
std::string CreateTaskExportTaskRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
long CreateTaskExportTaskRequest::getRecordingDurationGte()const
|
||||
{
|
||||
return recordingDurationGte_;
|
||||
void CreateTaskExportTaskRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
void CreateTaskExportTaskRequest::setRecordingDurationGte(long recordingDurationGte)
|
||||
{
|
||||
recordingDurationGte_ = recordingDurationGte;
|
||||
setParameter("RecordingDurationGte", std::to_string(recordingDurationGte));
|
||||
long CreateTaskExportTaskRequest::getRecordingDurationGte() const {
|
||||
return recordingDurationGte_;
|
||||
}
|
||||
|
||||
long CreateTaskExportTaskRequest::getCallDurationLte()const
|
||||
{
|
||||
return callDurationLte_;
|
||||
void CreateTaskExportTaskRequest::setRecordingDurationGte(long recordingDurationGte) {
|
||||
recordingDurationGte_ = recordingDurationGte;
|
||||
setParameter(std::string("RecordingDurationGte"), std::to_string(recordingDurationGte));
|
||||
}
|
||||
|
||||
void CreateTaskExportTaskRequest::setCallDurationLte(long callDurationLte)
|
||||
{
|
||||
callDurationLte_ = callDurationLte;
|
||||
setParameter("CallDurationLte", std::to_string(callDurationLte));
|
||||
long CreateTaskExportTaskRequest::getCallDurationLte() const {
|
||||
return callDurationLte_;
|
||||
}
|
||||
|
||||
std::string CreateTaskExportTaskRequest::getJobGroupId()const
|
||||
{
|
||||
return jobGroupId_;
|
||||
void CreateTaskExportTaskRequest::setCallDurationLte(long callDurationLte) {
|
||||
callDurationLte_ = callDurationLte;
|
||||
setParameter(std::string("CallDurationLte"), std::to_string(callDurationLte));
|
||||
}
|
||||
|
||||
void CreateTaskExportTaskRequest::setJobGroupId(const std::string& jobGroupId)
|
||||
{
|
||||
jobGroupId_ = jobGroupId;
|
||||
setParameter("JobGroupId", jobGroupId);
|
||||
std::string CreateTaskExportTaskRequest::getJobGroupId() const {
|
||||
return jobGroupId_;
|
||||
}
|
||||
|
||||
std::string CreateTaskExportTaskRequest::getSortBy()const
|
||||
{
|
||||
return sortBy_;
|
||||
void CreateTaskExportTaskRequest::setJobGroupId(const std::string &jobGroupId) {
|
||||
jobGroupId_ = jobGroupId;
|
||||
setParameter(std::string("JobGroupId"), jobGroupId);
|
||||
}
|
||||
|
||||
void CreateTaskExportTaskRequest::setSortBy(const std::string& sortBy)
|
||||
{
|
||||
sortBy_ = sortBy;
|
||||
setParameter("SortBy", sortBy);
|
||||
std::string CreateTaskExportTaskRequest::getSortBy() const {
|
||||
return sortBy_;
|
||||
}
|
||||
|
||||
std::string CreateTaskExportTaskRequest::getJobStatusStringList()const
|
||||
{
|
||||
return jobStatusStringList_;
|
||||
void CreateTaskExportTaskRequest::setSortBy(const std::string &sortBy) {
|
||||
sortBy_ = sortBy;
|
||||
setParameter(std::string("SortBy"), sortBy);
|
||||
}
|
||||
|
||||
void CreateTaskExportTaskRequest::setJobStatusStringList(const std::string& jobStatusStringList)
|
||||
{
|
||||
jobStatusStringList_ = jobStatusStringList;
|
||||
setParameter("JobStatusStringList", jobStatusStringList);
|
||||
std::string CreateTaskExportTaskRequest::getJobStatusStringList() const {
|
||||
return jobStatusStringList_;
|
||||
}
|
||||
|
||||
long CreateTaskExportTaskRequest::getActualTimeGte()const
|
||||
{
|
||||
return actualTimeGte_;
|
||||
void CreateTaskExportTaskRequest::setJobStatusStringList(const std::string &jobStatusStringList) {
|
||||
jobStatusStringList_ = jobStatusStringList;
|
||||
setParameter(std::string("JobStatusStringList"), jobStatusStringList);
|
||||
}
|
||||
|
||||
void CreateTaskExportTaskRequest::setActualTimeGte(long actualTimeGte)
|
||||
{
|
||||
actualTimeGte_ = actualTimeGte;
|
||||
setParameter("ActualTimeGte", std::to_string(actualTimeGte));
|
||||
long CreateTaskExportTaskRequest::getActualTimeGte() const {
|
||||
return actualTimeGte_;
|
||||
}
|
||||
|
||||
long CreateTaskExportTaskRequest::getCallDurationGte()const
|
||||
{
|
||||
return callDurationGte_;
|
||||
void CreateTaskExportTaskRequest::setActualTimeGte(long actualTimeGte) {
|
||||
actualTimeGte_ = actualTimeGte;
|
||||
setParameter(std::string("ActualTimeGte"), std::to_string(actualTimeGte));
|
||||
}
|
||||
|
||||
void CreateTaskExportTaskRequest::setCallDurationGte(long callDurationGte)
|
||||
{
|
||||
callDurationGte_ = callDurationGte;
|
||||
setParameter("CallDurationGte", std::to_string(callDurationGte));
|
||||
long CreateTaskExportTaskRequest::getCallDurationGte() const {
|
||||
return callDurationGte_;
|
||||
}
|
||||
|
||||
long CreateTaskExportTaskRequest::getRecordingDurationLte()const
|
||||
{
|
||||
return recordingDurationLte_;
|
||||
void CreateTaskExportTaskRequest::setCallDurationGte(long callDurationGte) {
|
||||
callDurationGte_ = callDurationGte;
|
||||
setParameter(std::string("CallDurationGte"), std::to_string(callDurationGte));
|
||||
}
|
||||
|
||||
void CreateTaskExportTaskRequest::setRecordingDurationLte(long recordingDurationLte)
|
||||
{
|
||||
recordingDurationLte_ = recordingDurationLte;
|
||||
setParameter("RecordingDurationLte", std::to_string(recordingDurationLte));
|
||||
long CreateTaskExportTaskRequest::getRecordingDurationLte() const {
|
||||
return recordingDurationLte_;
|
||||
}
|
||||
|
||||
void CreateTaskExportTaskRequest::setRecordingDurationLte(long recordingDurationLte) {
|
||||
recordingDurationLte_ = recordingDurationLte;
|
||||
setParameter(std::string("RecordingDurationLte"), std::to_string(recordingDurationLte));
|
||||
}
|
||||
|
||||
|
||||
@@ -1,29 +1,27 @@
|
||||
/*
|
||||
* 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/outboundbot/model/DeleteAllNumberDistrictInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::DeleteAllNumberDistrictInfoRequest;
|
||||
|
||||
DeleteAllNumberDistrictInfoRequest::DeleteAllNumberDistrictInfoRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "DeleteAllNumberDistrictInfo")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteAllNumberDistrictInfoRequest::~DeleteAllNumberDistrictInfoRequest()
|
||||
{}
|
||||
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/DeleteAllNumberDistrictInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::DeleteAllNumberDistrictInfoRequest;
|
||||
|
||||
DeleteAllNumberDistrictInfoRequest::DeleteAllNumberDistrictInfoRequest()
|
||||
: RpcServiceRequest("outboundbot", "2019-12-26", "DeleteAllNumberDistrictInfo") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteAllNumberDistrictInfoRequest::~DeleteAllNumberDistrictInfoRequest() {}
|
||||
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* 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/outboundbot/model/DeleteContactBlockListRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::DeleteContactBlockListRequest;
|
||||
|
||||
DeleteContactBlockListRequest::DeleteContactBlockListRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "DeleteContactBlockList")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteContactBlockListRequest::~DeleteContactBlockListRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteContactBlockListRequest::getContactBlockListId()const
|
||||
{
|
||||
return contactBlockListId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/DeleteContactBlockListRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::DeleteContactBlockListRequest;
|
||||
|
||||
DeleteContactBlockListRequest::DeleteContactBlockListRequest()
|
||||
: RpcServiceRequest("outboundbot", "2019-12-26", "DeleteContactBlockList") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DeleteContactBlockListRequest::setContactBlockListId(const std::string& contactBlockListId)
|
||||
{
|
||||
contactBlockListId_ = contactBlockListId;
|
||||
setParameter("ContactBlockListId", contactBlockListId);
|
||||
DeleteContactBlockListRequest::~DeleteContactBlockListRequest() {}
|
||||
|
||||
std::string DeleteContactBlockListRequest::getContactBlockListId() const {
|
||||
return contactBlockListId_;
|
||||
}
|
||||
|
||||
std::string DeleteContactBlockListRequest::get_Operator()const
|
||||
{
|
||||
return _operator_;
|
||||
void DeleteContactBlockListRequest::setContactBlockListId(const std::string &contactBlockListId) {
|
||||
contactBlockListId_ = contactBlockListId;
|
||||
setParameter(std::string("ContactBlockListId"), contactBlockListId);
|
||||
}
|
||||
|
||||
void DeleteContactBlockListRequest::set_Operator(const std::string& _operator)
|
||||
{
|
||||
_operator_ = _operator;
|
||||
setParameter("_Operator", _operator);
|
||||
std::string DeleteContactBlockListRequest::get_Operator() const {
|
||||
return _operator_;
|
||||
}
|
||||
|
||||
std::string DeleteContactBlockListRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
void DeleteContactBlockListRequest::set_Operator(const std::string &_operator) {
|
||||
_operator_ = _operator;
|
||||
setParameter(std::string("Operator"), _operator);
|
||||
}
|
||||
|
||||
void DeleteContactBlockListRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
std::string DeleteContactBlockListRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DeleteContactBlockListRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,16 +39,16 @@ void DeleteContactBlockListResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["AffectedRows"].isNull())
|
||||
affectedRows_ = std::stoi(value["AffectedRows"].asString());
|
||||
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();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["AffectedRows"].isNull())
|
||||
affectedRows_ = std::stoi(value["AffectedRows"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* 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/outboundbot/model/DeleteContactWhiteListRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::DeleteContactWhiteListRequest;
|
||||
|
||||
DeleteContactWhiteListRequest::DeleteContactWhiteListRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "DeleteContactWhiteList")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteContactWhiteListRequest::~DeleteContactWhiteListRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteContactWhiteListRequest::get_Operator()const
|
||||
{
|
||||
return _operator_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/DeleteContactWhiteListRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::DeleteContactWhiteListRequest;
|
||||
|
||||
DeleteContactWhiteListRequest::DeleteContactWhiteListRequest()
|
||||
: RpcServiceRequest("outboundbot", "2019-12-26", "DeleteContactWhiteList") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DeleteContactWhiteListRequest::set_Operator(const std::string& _operator)
|
||||
{
|
||||
_operator_ = _operator;
|
||||
setParameter("_Operator", _operator);
|
||||
DeleteContactWhiteListRequest::~DeleteContactWhiteListRequest() {}
|
||||
|
||||
std::string DeleteContactWhiteListRequest::get_Operator() const {
|
||||
return _operator_;
|
||||
}
|
||||
|
||||
std::string DeleteContactWhiteListRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
void DeleteContactWhiteListRequest::set_Operator(const std::string &_operator) {
|
||||
_operator_ = _operator;
|
||||
setParameter(std::string("Operator"), _operator);
|
||||
}
|
||||
|
||||
void DeleteContactWhiteListRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
std::string DeleteContactWhiteListRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string DeleteContactWhiteListRequest::getContactWhiteListId()const
|
||||
{
|
||||
return contactWhiteListId_;
|
||||
void DeleteContactWhiteListRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
void DeleteContactWhiteListRequest::setContactWhiteListId(const std::string& contactWhiteListId)
|
||||
{
|
||||
contactWhiteListId_ = contactWhiteListId;
|
||||
setParameter("ContactWhiteListId", contactWhiteListId);
|
||||
std::string DeleteContactWhiteListRequest::getContactWhiteListId() const {
|
||||
return contactWhiteListId_;
|
||||
}
|
||||
|
||||
void DeleteContactWhiteListRequest::setContactWhiteListId(const std::string &contactWhiteListId) {
|
||||
contactWhiteListId_ = contactWhiteListId;
|
||||
setParameter(std::string("ContactWhiteListId"), contactWhiteListId);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,16 +39,16 @@ void DeleteContactWhiteListResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["AffectedRows"].isNull())
|
||||
affectedRows_ = std::stoi(value["AffectedRows"].asString());
|
||||
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();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["AffectedRows"].isNull())
|
||||
affectedRows_ = std::stoi(value["AffectedRows"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* 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/outboundbot/model/DeleteDialogueFlowRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::DeleteDialogueFlowRequest;
|
||||
|
||||
DeleteDialogueFlowRequest::DeleteDialogueFlowRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "DeleteDialogueFlow")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteDialogueFlowRequest::~DeleteDialogueFlowRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteDialogueFlowRequest::getScriptId()const
|
||||
{
|
||||
return scriptId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/DeleteDialogueFlowRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::DeleteDialogueFlowRequest;
|
||||
|
||||
DeleteDialogueFlowRequest::DeleteDialogueFlowRequest()
|
||||
: RpcServiceRequest("outboundbot", "2019-12-26", "DeleteDialogueFlow") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DeleteDialogueFlowRequest::setScriptId(const std::string& scriptId)
|
||||
{
|
||||
scriptId_ = scriptId;
|
||||
setParameter("ScriptId", scriptId);
|
||||
DeleteDialogueFlowRequest::~DeleteDialogueFlowRequest() {}
|
||||
|
||||
std::string DeleteDialogueFlowRequest::getScriptId() const {
|
||||
return scriptId_;
|
||||
}
|
||||
|
||||
std::string DeleteDialogueFlowRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
void DeleteDialogueFlowRequest::setScriptId(const std::string &scriptId) {
|
||||
scriptId_ = scriptId;
|
||||
setParameter(std::string("ScriptId"), scriptId);
|
||||
}
|
||||
|
||||
void DeleteDialogueFlowRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
std::string DeleteDialogueFlowRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string DeleteDialogueFlowRequest::getDialogueFlowId()const
|
||||
{
|
||||
return dialogueFlowId_;
|
||||
void DeleteDialogueFlowRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
void DeleteDialogueFlowRequest::setDialogueFlowId(const std::string& dialogueFlowId)
|
||||
{
|
||||
dialogueFlowId_ = dialogueFlowId;
|
||||
setParameter("DialogueFlowId", dialogueFlowId);
|
||||
std::string DeleteDialogueFlowRequest::getDialogueFlowId() const {
|
||||
return dialogueFlowId_;
|
||||
}
|
||||
|
||||
void DeleteDialogueFlowRequest::setDialogueFlowId(const std::string &dialogueFlowId) {
|
||||
dialogueFlowId_ = dialogueFlowId;
|
||||
setParameter(std::string("DialogueFlowId"), dialogueFlowId);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,10 +39,10 @@ void DeleteDialogueFlowResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* 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/outboundbot/model/DeleteGlobalQuestionRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::DeleteGlobalQuestionRequest;
|
||||
|
||||
DeleteGlobalQuestionRequest::DeleteGlobalQuestionRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "DeleteGlobalQuestion")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteGlobalQuestionRequest::~DeleteGlobalQuestionRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteGlobalQuestionRequest::getGlobalQuestionId()const
|
||||
{
|
||||
return globalQuestionId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/DeleteGlobalQuestionRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::DeleteGlobalQuestionRequest;
|
||||
|
||||
DeleteGlobalQuestionRequest::DeleteGlobalQuestionRequest()
|
||||
: RpcServiceRequest("outboundbot", "2019-12-26", "DeleteGlobalQuestion") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DeleteGlobalQuestionRequest::setGlobalQuestionId(const std::string& globalQuestionId)
|
||||
{
|
||||
globalQuestionId_ = globalQuestionId;
|
||||
setParameter("GlobalQuestionId", globalQuestionId);
|
||||
DeleteGlobalQuestionRequest::~DeleteGlobalQuestionRequest() {}
|
||||
|
||||
std::string DeleteGlobalQuestionRequest::getGlobalQuestionId() const {
|
||||
return globalQuestionId_;
|
||||
}
|
||||
|
||||
std::string DeleteGlobalQuestionRequest::getScriptId()const
|
||||
{
|
||||
return scriptId_;
|
||||
void DeleteGlobalQuestionRequest::setGlobalQuestionId(const std::string &globalQuestionId) {
|
||||
globalQuestionId_ = globalQuestionId;
|
||||
setParameter(std::string("GlobalQuestionId"), globalQuestionId);
|
||||
}
|
||||
|
||||
void DeleteGlobalQuestionRequest::setScriptId(const std::string& scriptId)
|
||||
{
|
||||
scriptId_ = scriptId;
|
||||
setParameter("ScriptId", scriptId);
|
||||
std::string DeleteGlobalQuestionRequest::getScriptId() const {
|
||||
return scriptId_;
|
||||
}
|
||||
|
||||
std::string DeleteGlobalQuestionRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
void DeleteGlobalQuestionRequest::setScriptId(const std::string &scriptId) {
|
||||
scriptId_ = scriptId;
|
||||
setParameter(std::string("ScriptId"), scriptId);
|
||||
}
|
||||
|
||||
void DeleteGlobalQuestionRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
std::string DeleteGlobalQuestionRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DeleteGlobalQuestionRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,10 +39,10 @@ void DeleteGlobalQuestionResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
|
||||
@@ -1,40 +1,36 @@
|
||||
/*
|
||||
* 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/outboundbot/model/DeleteInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::DeleteInstanceRequest;
|
||||
|
||||
DeleteInstanceRequest::DeleteInstanceRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "DeleteInstance")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteInstanceRequest::~DeleteInstanceRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteInstanceRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/DeleteInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::DeleteInstanceRequest;
|
||||
|
||||
DeleteInstanceRequest::DeleteInstanceRequest()
|
||||
: RpcServiceRequest("outboundbot", "2019-12-26", "DeleteInstance") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DeleteInstanceRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
DeleteInstanceRequest::~DeleteInstanceRequest() {}
|
||||
|
||||
std::string DeleteInstanceRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DeleteInstanceRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,10 +39,10 @@ void DeleteInstanceResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* 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/outboundbot/model/DeleteIntentRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::DeleteIntentRequest;
|
||||
|
||||
DeleteIntentRequest::DeleteIntentRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "DeleteIntent")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteIntentRequest::~DeleteIntentRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteIntentRequest::getIntentId()const
|
||||
{
|
||||
return intentId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/DeleteIntentRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::DeleteIntentRequest;
|
||||
|
||||
DeleteIntentRequest::DeleteIntentRequest()
|
||||
: RpcServiceRequest("outboundbot", "2019-12-26", "DeleteIntent") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DeleteIntentRequest::setIntentId(const std::string& intentId)
|
||||
{
|
||||
intentId_ = intentId;
|
||||
setParameter("IntentId", intentId);
|
||||
DeleteIntentRequest::~DeleteIntentRequest() {}
|
||||
|
||||
std::string DeleteIntentRequest::getIntentId() const {
|
||||
return intentId_;
|
||||
}
|
||||
|
||||
std::string DeleteIntentRequest::getScriptId()const
|
||||
{
|
||||
return scriptId_;
|
||||
void DeleteIntentRequest::setIntentId(const std::string &intentId) {
|
||||
intentId_ = intentId;
|
||||
setParameter(std::string("IntentId"), intentId);
|
||||
}
|
||||
|
||||
void DeleteIntentRequest::setScriptId(const std::string& scriptId)
|
||||
{
|
||||
scriptId_ = scriptId;
|
||||
setParameter("ScriptId", scriptId);
|
||||
std::string DeleteIntentRequest::getScriptId() const {
|
||||
return scriptId_;
|
||||
}
|
||||
|
||||
std::string DeleteIntentRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
void DeleteIntentRequest::setScriptId(const std::string &scriptId) {
|
||||
scriptId_ = scriptId;
|
||||
setParameter(std::string("ScriptId"), scriptId);
|
||||
}
|
||||
|
||||
void DeleteIntentRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
std::string DeleteIntentRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DeleteIntentRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,10 +39,10 @@ void DeleteIntentResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* 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/outboundbot/model/DeleteJobGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::DeleteJobGroupRequest;
|
||||
|
||||
DeleteJobGroupRequest::DeleteJobGroupRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "DeleteJobGroup")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteJobGroupRequest::~DeleteJobGroupRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteJobGroupRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/DeleteJobGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::DeleteJobGroupRequest;
|
||||
|
||||
DeleteJobGroupRequest::DeleteJobGroupRequest()
|
||||
: RpcServiceRequest("outboundbot", "2019-12-26", "DeleteJobGroup") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DeleteJobGroupRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
DeleteJobGroupRequest::~DeleteJobGroupRequest() {}
|
||||
|
||||
std::string DeleteJobGroupRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string DeleteJobGroupRequest::getJobGroupId()const
|
||||
{
|
||||
return jobGroupId_;
|
||||
void DeleteJobGroupRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
void DeleteJobGroupRequest::setJobGroupId(const std::string& jobGroupId)
|
||||
{
|
||||
jobGroupId_ = jobGroupId;
|
||||
setParameter("JobGroupId", jobGroupId);
|
||||
std::string DeleteJobGroupRequest::getJobGroupId() const {
|
||||
return jobGroupId_;
|
||||
}
|
||||
|
||||
void DeleteJobGroupRequest::setJobGroupId(const std::string &jobGroupId) {
|
||||
jobGroupId_ = jobGroupId;
|
||||
setParameter(std::string("JobGroupId"), jobGroupId);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,10 +39,10 @@ void DeleteJobGroupResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* 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/outboundbot/model/DeleteOutboundCallNumberRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::DeleteOutboundCallNumberRequest;
|
||||
|
||||
DeleteOutboundCallNumberRequest::DeleteOutboundCallNumberRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "DeleteOutboundCallNumber")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteOutboundCallNumberRequest::~DeleteOutboundCallNumberRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteOutboundCallNumberRequest::getOutboundCallNumberId()const
|
||||
{
|
||||
return outboundCallNumberId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/DeleteOutboundCallNumberRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::DeleteOutboundCallNumberRequest;
|
||||
|
||||
DeleteOutboundCallNumberRequest::DeleteOutboundCallNumberRequest()
|
||||
: RpcServiceRequest("outboundbot", "2019-12-26", "DeleteOutboundCallNumber") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DeleteOutboundCallNumberRequest::setOutboundCallNumberId(const std::string& outboundCallNumberId)
|
||||
{
|
||||
outboundCallNumberId_ = outboundCallNumberId;
|
||||
setParameter("OutboundCallNumberId", outboundCallNumberId);
|
||||
DeleteOutboundCallNumberRequest::~DeleteOutboundCallNumberRequest() {}
|
||||
|
||||
std::string DeleteOutboundCallNumberRequest::getOutboundCallNumberId() const {
|
||||
return outboundCallNumberId_;
|
||||
}
|
||||
|
||||
std::string DeleteOutboundCallNumberRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
void DeleteOutboundCallNumberRequest::setOutboundCallNumberId(const std::string &outboundCallNumberId) {
|
||||
outboundCallNumberId_ = outboundCallNumberId;
|
||||
setParameter(std::string("OutboundCallNumberId"), outboundCallNumberId);
|
||||
}
|
||||
|
||||
void DeleteOutboundCallNumberRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
std::string DeleteOutboundCallNumberRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DeleteOutboundCallNumberRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,10 +39,10 @@ void DeleteOutboundCallNumberResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* 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/outboundbot/model/DeleteScriptRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::DeleteScriptRequest;
|
||||
|
||||
DeleteScriptRequest::DeleteScriptRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "DeleteScript")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteScriptRequest::~DeleteScriptRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteScriptRequest::getScriptId()const
|
||||
{
|
||||
return scriptId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/DeleteScriptRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::DeleteScriptRequest;
|
||||
|
||||
DeleteScriptRequest::DeleteScriptRequest()
|
||||
: RpcServiceRequest("outboundbot", "2019-12-26", "DeleteScript") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DeleteScriptRequest::setScriptId(const std::string& scriptId)
|
||||
{
|
||||
scriptId_ = scriptId;
|
||||
setParameter("ScriptId", scriptId);
|
||||
DeleteScriptRequest::~DeleteScriptRequest() {}
|
||||
|
||||
std::string DeleteScriptRequest::getScriptId() const {
|
||||
return scriptId_;
|
||||
}
|
||||
|
||||
std::string DeleteScriptRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
void DeleteScriptRequest::setScriptId(const std::string &scriptId) {
|
||||
scriptId_ = scriptId;
|
||||
setParameter(std::string("ScriptId"), scriptId);
|
||||
}
|
||||
|
||||
void DeleteScriptRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
std::string DeleteScriptRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DeleteScriptRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,10 +39,10 @@ void DeleteScriptResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* 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/outboundbot/model/DeleteScriptWaveformRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::DeleteScriptWaveformRequest;
|
||||
|
||||
DeleteScriptWaveformRequest::DeleteScriptWaveformRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "DeleteScriptWaveform")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteScriptWaveformRequest::~DeleteScriptWaveformRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteScriptWaveformRequest::getScriptWaveformId()const
|
||||
{
|
||||
return scriptWaveformId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/DeleteScriptWaveformRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::DeleteScriptWaveformRequest;
|
||||
|
||||
DeleteScriptWaveformRequest::DeleteScriptWaveformRequest()
|
||||
: RpcServiceRequest("outboundbot", "2019-12-26", "DeleteScriptWaveform") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DeleteScriptWaveformRequest::setScriptWaveformId(const std::string& scriptWaveformId)
|
||||
{
|
||||
scriptWaveformId_ = scriptWaveformId;
|
||||
setParameter("ScriptWaveformId", scriptWaveformId);
|
||||
DeleteScriptWaveformRequest::~DeleteScriptWaveformRequest() {}
|
||||
|
||||
std::string DeleteScriptWaveformRequest::getScriptWaveformId() const {
|
||||
return scriptWaveformId_;
|
||||
}
|
||||
|
||||
std::string DeleteScriptWaveformRequest::getScriptId()const
|
||||
{
|
||||
return scriptId_;
|
||||
void DeleteScriptWaveformRequest::setScriptWaveformId(const std::string &scriptWaveformId) {
|
||||
scriptWaveformId_ = scriptWaveformId;
|
||||
setParameter(std::string("ScriptWaveformId"), scriptWaveformId);
|
||||
}
|
||||
|
||||
void DeleteScriptWaveformRequest::setScriptId(const std::string& scriptId)
|
||||
{
|
||||
scriptId_ = scriptId;
|
||||
setParameter("ScriptId", scriptId);
|
||||
std::string DeleteScriptWaveformRequest::getScriptId() const {
|
||||
return scriptId_;
|
||||
}
|
||||
|
||||
std::string DeleteScriptWaveformRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
void DeleteScriptWaveformRequest::setScriptId(const std::string &scriptId) {
|
||||
scriptId_ = scriptId;
|
||||
setParameter(std::string("ScriptId"), scriptId);
|
||||
}
|
||||
|
||||
void DeleteScriptWaveformRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
std::string DeleteScriptWaveformRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DeleteScriptWaveformRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,10 +39,10 @@ void DeleteScriptWaveformResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* 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/outboundbot/model/DescribeDialogueNodeStatisticsRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::DescribeDialogueNodeStatisticsRequest;
|
||||
|
||||
DescribeDialogueNodeStatisticsRequest::DescribeDialogueNodeStatisticsRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "DescribeDialogueNodeStatistics")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDialogueNodeStatisticsRequest::~DescribeDialogueNodeStatisticsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeDialogueNodeStatisticsRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/DescribeDialogueNodeStatisticsRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::DescribeDialogueNodeStatisticsRequest;
|
||||
|
||||
DescribeDialogueNodeStatisticsRequest::DescribeDialogueNodeStatisticsRequest()
|
||||
: RpcServiceRequest("outboundbot", "2019-12-26", "DescribeDialogueNodeStatistics") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DescribeDialogueNodeStatisticsRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
DescribeDialogueNodeStatisticsRequest::~DescribeDialogueNodeStatisticsRequest() {}
|
||||
|
||||
std::string DescribeDialogueNodeStatisticsRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string DescribeDialogueNodeStatisticsRequest::getJobGroupId()const
|
||||
{
|
||||
return jobGroupId_;
|
||||
void DescribeDialogueNodeStatisticsRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
void DescribeDialogueNodeStatisticsRequest::setJobGroupId(const std::string& jobGroupId)
|
||||
{
|
||||
jobGroupId_ = jobGroupId;
|
||||
setParameter("JobGroupId", jobGroupId);
|
||||
std::string DescribeDialogueNodeStatisticsRequest::getJobGroupId() const {
|
||||
return jobGroupId_;
|
||||
}
|
||||
|
||||
int DescribeDialogueNodeStatisticsRequest::getLimit()const
|
||||
{
|
||||
return limit_;
|
||||
void DescribeDialogueNodeStatisticsRequest::setJobGroupId(const std::string &jobGroupId) {
|
||||
jobGroupId_ = jobGroupId;
|
||||
setParameter(std::string("JobGroupId"), jobGroupId);
|
||||
}
|
||||
|
||||
void DescribeDialogueNodeStatisticsRequest::setLimit(int limit)
|
||||
{
|
||||
limit_ = limit;
|
||||
setParameter("Limit", std::to_string(limit));
|
||||
int DescribeDialogueNodeStatisticsRequest::getLimit() const {
|
||||
return limit_;
|
||||
}
|
||||
|
||||
void DescribeDialogueNodeStatisticsRequest::setLimit(int limit) {
|
||||
limit_ = limit;
|
||||
setParameter(std::string("Limit"), std::to_string(limit));
|
||||
}
|
||||
|
||||
|
||||
@@ -43,38 +43,38 @@ void DescribeDialogueNodeStatisticsResult::parse(const std::string &payload)
|
||||
for (auto valueNoAnswerDialogueNodesNoAnswerDialogueNode : allNoAnswerDialogueNodesNode)
|
||||
{
|
||||
NoAnswerDialogueNode noAnswerDialogueNodesObject;
|
||||
if(!valueNoAnswerDialogueNodesNoAnswerDialogueNode["Id"].isNull())
|
||||
noAnswerDialogueNodesObject.id = valueNoAnswerDialogueNodesNoAnswerDialogueNode["Id"].asString();
|
||||
if(!valueNoAnswerDialogueNodesNoAnswerDialogueNode["InstanceId"].isNull())
|
||||
noAnswerDialogueNodesObject.instanceId = valueNoAnswerDialogueNodesNoAnswerDialogueNode["InstanceId"].asString();
|
||||
if(!valueNoAnswerDialogueNodesNoAnswerDialogueNode["GroupId"].isNull())
|
||||
noAnswerDialogueNodesObject.groupId = valueNoAnswerDialogueNodesNoAnswerDialogueNode["GroupId"].asString();
|
||||
if(!valueNoAnswerDialogueNodesNoAnswerDialogueNode["NodeId"].isNull())
|
||||
noAnswerDialogueNodesObject.nodeId = valueNoAnswerDialogueNodesNoAnswerDialogueNode["NodeId"].asString();
|
||||
if(!valueNoAnswerDialogueNodesNoAnswerDialogueNode["NodeName"].isNull())
|
||||
noAnswerDialogueNodesObject.nodeName = valueNoAnswerDialogueNodesNoAnswerDialogueNode["NodeName"].asString();
|
||||
if(!valueNoAnswerDialogueNodesNoAnswerDialogueNode["HitNum"].isNull())
|
||||
noAnswerDialogueNodesObject.hitNum = std::stoi(valueNoAnswerDialogueNodesNoAnswerDialogueNode["HitNum"].asString());
|
||||
if(!valueNoAnswerDialogueNodesNoAnswerDialogueNode["HangUpNum"].isNull())
|
||||
noAnswerDialogueNodesObject.hangUpNum = std::stoi(valueNoAnswerDialogueNodesNoAnswerDialogueNode["HangUpNum"].asString());
|
||||
if(!valueNoAnswerDialogueNodesNoAnswerDialogueNode["NoAnswerNum"].isNull())
|
||||
noAnswerDialogueNodesObject.noAnswerNum = std::stoi(valueNoAnswerDialogueNodesNoAnswerDialogueNode["NoAnswerNum"].asString());
|
||||
if(!valueNoAnswerDialogueNodesNoAnswerDialogueNode["GroupId"].isNull())
|
||||
noAnswerDialogueNodesObject.groupId = valueNoAnswerDialogueNodesNoAnswerDialogueNode["GroupId"].asString();
|
||||
if(!valueNoAnswerDialogueNodesNoAnswerDialogueNode["NodeName"].isNull())
|
||||
noAnswerDialogueNodesObject.nodeName = valueNoAnswerDialogueNodesNoAnswerDialogueNode["NodeName"].asString();
|
||||
if(!valueNoAnswerDialogueNodesNoAnswerDialogueNode["HangUpNum"].isNull())
|
||||
noAnswerDialogueNodesObject.hangUpNum = std::stoi(valueNoAnswerDialogueNodesNoAnswerDialogueNode["HangUpNum"].asString());
|
||||
if(!valueNoAnswerDialogueNodesNoAnswerDialogueNode["InstanceId"].isNull())
|
||||
noAnswerDialogueNodesObject.instanceId = valueNoAnswerDialogueNodesNoAnswerDialogueNode["InstanceId"].asString();
|
||||
if(!valueNoAnswerDialogueNodesNoAnswerDialogueNode["HitNum"].isNull())
|
||||
noAnswerDialogueNodesObject.hitNum = std::stoi(valueNoAnswerDialogueNodesNoAnswerDialogueNode["HitNum"].asString());
|
||||
if(!valueNoAnswerDialogueNodesNoAnswerDialogueNode["Id"].isNull())
|
||||
noAnswerDialogueNodesObject.id = valueNoAnswerDialogueNodesNoAnswerDialogueNode["Id"].asString();
|
||||
if(!valueNoAnswerDialogueNodesNoAnswerDialogueNode["NodeId"].isNull())
|
||||
noAnswerDialogueNodesObject.nodeId = valueNoAnswerDialogueNodesNoAnswerDialogueNode["NodeId"].asString();
|
||||
noAnswerDialogueNodes_.push_back(noAnswerDialogueNodesObject);
|
||||
}
|
||||
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();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["GroupId"].isNull())
|
||||
groupId_ = value["GroupId"].asString();
|
||||
if(!value["InstanceId"].isNull())
|
||||
instanceId_ = value["InstanceId"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["TotalCompleted"].isNull())
|
||||
totalCompleted_ = std::stoi(value["TotalCompleted"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["InstanceId"].isNull())
|
||||
instanceId_ = value["InstanceId"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* 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/outboundbot/model/DescribeDsReportsRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::DescribeDsReportsRequest;
|
||||
|
||||
DescribeDsReportsRequest::DescribeDsReportsRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "DescribeDsReports")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDsReportsRequest::~DescribeDsReportsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeDsReportsRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/DescribeDsReportsRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::DescribeDsReportsRequest;
|
||||
|
||||
DescribeDsReportsRequest::DescribeDsReportsRequest()
|
||||
: RpcServiceRequest("outboundbot", "2019-12-26", "DescribeDsReports") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DescribeDsReportsRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
DescribeDsReportsRequest::~DescribeDsReportsRequest() {}
|
||||
|
||||
std::string DescribeDsReportsRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string DescribeDsReportsRequest::getJobGroupId()const
|
||||
{
|
||||
return jobGroupId_;
|
||||
void DescribeDsReportsRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
void DescribeDsReportsRequest::setJobGroupId(const std::string& jobGroupId)
|
||||
{
|
||||
jobGroupId_ = jobGroupId;
|
||||
setParameter("JobGroupId", jobGroupId);
|
||||
std::string DescribeDsReportsRequest::getJobGroupId() const {
|
||||
return jobGroupId_;
|
||||
}
|
||||
|
||||
void DescribeDsReportsRequest::setJobGroupId(const std::string &jobGroupId) {
|
||||
jobGroupId_ = jobGroupId;
|
||||
setParameter(std::string("JobGroupId"), jobGroupId);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void DescribeDsReportsResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
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();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["DsReports"].isNull())
|
||||
dsReports_ = value["DsReports"].asString();
|
||||
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* 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/outboundbot/model/DescribeGlobalQuestionRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::DescribeGlobalQuestionRequest;
|
||||
|
||||
DescribeGlobalQuestionRequest::DescribeGlobalQuestionRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "DescribeGlobalQuestion")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeGlobalQuestionRequest::~DescribeGlobalQuestionRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeGlobalQuestionRequest::getGlobalQuestionId()const
|
||||
{
|
||||
return globalQuestionId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/DescribeGlobalQuestionRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::DescribeGlobalQuestionRequest;
|
||||
|
||||
DescribeGlobalQuestionRequest::DescribeGlobalQuestionRequest()
|
||||
: RpcServiceRequest("outboundbot", "2019-12-26", "DescribeGlobalQuestion") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DescribeGlobalQuestionRequest::setGlobalQuestionId(const std::string& globalQuestionId)
|
||||
{
|
||||
globalQuestionId_ = globalQuestionId;
|
||||
setParameter("GlobalQuestionId", globalQuestionId);
|
||||
DescribeGlobalQuestionRequest::~DescribeGlobalQuestionRequest() {}
|
||||
|
||||
std::string DescribeGlobalQuestionRequest::getGlobalQuestionId() const {
|
||||
return globalQuestionId_;
|
||||
}
|
||||
|
||||
std::string DescribeGlobalQuestionRequest::getScriptId()const
|
||||
{
|
||||
return scriptId_;
|
||||
void DescribeGlobalQuestionRequest::setGlobalQuestionId(const std::string &globalQuestionId) {
|
||||
globalQuestionId_ = globalQuestionId;
|
||||
setParameter(std::string("GlobalQuestionId"), globalQuestionId);
|
||||
}
|
||||
|
||||
void DescribeGlobalQuestionRequest::setScriptId(const std::string& scriptId)
|
||||
{
|
||||
scriptId_ = scriptId;
|
||||
setParameter("ScriptId", scriptId);
|
||||
std::string DescribeGlobalQuestionRequest::getScriptId() const {
|
||||
return scriptId_;
|
||||
}
|
||||
|
||||
std::string DescribeGlobalQuestionRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
void DescribeGlobalQuestionRequest::setScriptId(const std::string &scriptId) {
|
||||
scriptId_ = scriptId;
|
||||
setParameter(std::string("ScriptId"), scriptId);
|
||||
}
|
||||
|
||||
void DescribeGlobalQuestionRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
std::string DescribeGlobalQuestionRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DescribeGlobalQuestionRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,22 +40,22 @@ void DescribeGlobalQuestionResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto globalQuestionNode = value["GlobalQuestion"];
|
||||
if(!globalQuestionNode["Answers"].isNull())
|
||||
globalQuestion_.answers = globalQuestionNode["Answers"].asString();
|
||||
if(!globalQuestionNode["GlobalQuestionId"].isNull())
|
||||
globalQuestion_.globalQuestionId = globalQuestionNode["GlobalQuestionId"].asString();
|
||||
if(!globalQuestionNode["GlobalQuestionName"].isNull())
|
||||
globalQuestion_.globalQuestionName = globalQuestionNode["GlobalQuestionName"].asString();
|
||||
if(!globalQuestionNode["Answers"].isNull())
|
||||
globalQuestion_.answers = globalQuestionNode["Answers"].asString();
|
||||
if(!globalQuestionNode["GlobalQuestionType"].isNull())
|
||||
globalQuestion_.globalQuestionType = globalQuestionNode["GlobalQuestionType"].asString();
|
||||
if(!globalQuestionNode["GlobalQuestionName"].isNull())
|
||||
globalQuestion_.globalQuestionName = globalQuestionNode["GlobalQuestionName"].asString();
|
||||
if(!globalQuestionNode["Questions"].isNull())
|
||||
globalQuestion_.questions = globalQuestionNode["Questions"].asString();
|
||||
if(!globalQuestionNode["ScriptId"].isNull())
|
||||
globalQuestion_.scriptId = globalQuestionNode["ScriptId"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* 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/outboundbot/model/DescribeGroupExecutingInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::DescribeGroupExecutingInfoRequest;
|
||||
|
||||
DescribeGroupExecutingInfoRequest::DescribeGroupExecutingInfoRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "DescribeGroupExecutingInfo")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeGroupExecutingInfoRequest::~DescribeGroupExecutingInfoRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeGroupExecutingInfoRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/DescribeGroupExecutingInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::DescribeGroupExecutingInfoRequest;
|
||||
|
||||
DescribeGroupExecutingInfoRequest::DescribeGroupExecutingInfoRequest()
|
||||
: RpcServiceRequest("outboundbot", "2019-12-26", "DescribeGroupExecutingInfo") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DescribeGroupExecutingInfoRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
DescribeGroupExecutingInfoRequest::~DescribeGroupExecutingInfoRequest() {}
|
||||
|
||||
std::string DescribeGroupExecutingInfoRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string DescribeGroupExecutingInfoRequest::getJobGroupId()const
|
||||
{
|
||||
return jobGroupId_;
|
||||
void DescribeGroupExecutingInfoRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
void DescribeGroupExecutingInfoRequest::setJobGroupId(const std::string& jobGroupId)
|
||||
{
|
||||
jobGroupId_ = jobGroupId;
|
||||
setParameter("JobGroupId", jobGroupId);
|
||||
std::string DescribeGroupExecutingInfoRequest::getJobGroupId() const {
|
||||
return jobGroupId_;
|
||||
}
|
||||
|
||||
void DescribeGroupExecutingInfoRequest::setJobGroupId(const std::string &jobGroupId) {
|
||||
jobGroupId_ = jobGroupId;
|
||||
setParameter(std::string("JobGroupId"), jobGroupId);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,51 +40,51 @@ void DescribeGroupExecutingInfoResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto executingInfoNode = value["ExecutingInfo"];
|
||||
if(!executingInfoNode["StartTime"].isNull())
|
||||
executingInfo_.startTime = std::stol(executingInfoNode["StartTime"].asString());
|
||||
if(!executingInfoNode["EndTime"].isNull())
|
||||
executingInfo_.endTime = std::stol(executingInfoNode["EndTime"].asString());
|
||||
if(!executingInfoNode["CallFailedNum"].isNull())
|
||||
executingInfo_.callFailedNum = std::stoi(executingInfoNode["CallFailedNum"].asString());
|
||||
if(!executingInfoNode["CallNum"].isNull())
|
||||
executingInfo_.callNum = std::stoi(executingInfoNode["CallNum"].asString());
|
||||
if(!executingInfoNode["CreatorName"].isNull())
|
||||
executingInfo_.creatorName = executingInfoNode["CreatorName"].asString();
|
||||
if(!executingInfoNode["FinishedNum"].isNull())
|
||||
executingInfo_.finishedNum = std::stoi(executingInfoNode["FinishedNum"].asString());
|
||||
if(!executingInfoNode["StartTime"].isNull())
|
||||
executingInfo_.startTime = std::stol(executingInfoNode["StartTime"].asString());
|
||||
if(!executingInfoNode["HangUpByClientNum"].isNull())
|
||||
executingInfo_.hangUpByClientNum = std::stoi(executingInfoNode["HangUpByClientNum"].asString());
|
||||
if(!executingInfoNode["TransferByIntentNum"].isNull())
|
||||
executingInfo_.transferByIntentNum = std::stoi(executingInfoNode["TransferByIntentNum"].asString());
|
||||
if(!executingInfoNode["CreatorName"].isNull())
|
||||
executingInfo_.creatorName = executingInfoNode["CreatorName"].asString();
|
||||
if(!executingInfoNode["TransferByNoAnswer"].isNull())
|
||||
executingInfo_.transferByNoAnswer = std::stoi(executingInfoNode["TransferByNoAnswer"].asString());
|
||||
if(!executingInfoNode["FinishedNum"].isNull())
|
||||
executingInfo_.finishedNum = std::stoi(executingInfoNode["FinishedNum"].asString());
|
||||
if(!executingInfoNode["TransferByIntentNum"].isNull())
|
||||
executingInfo_.transferByIntentNum = std::stoi(executingInfoNode["TransferByIntentNum"].asString());
|
||||
if(!executingInfoNode["CallNum"].isNull())
|
||||
executingInfo_.callNum = std::stoi(executingInfoNode["CallNum"].asString());
|
||||
if(!executingInfoNode["CallFailedNum"].isNull())
|
||||
executingInfo_.callFailedNum = std::stoi(executingInfoNode["CallFailedNum"].asString());
|
||||
auto jobsProgressNode = executingInfoNode["JobsProgress"];
|
||||
if(!jobsProgressNode["TotalJobs"].isNull())
|
||||
executingInfo_.jobsProgress.totalJobs = std::stoi(jobsProgressNode["TotalJobs"].asString());
|
||||
if(!jobsProgressNode["SchedulingNum"].isNull())
|
||||
executingInfo_.jobsProgress.schedulingNum = std::stoi(jobsProgressNode["SchedulingNum"].asString());
|
||||
if(!jobsProgressNode["TotalCompletedNum"].isNull())
|
||||
executingInfo_.jobsProgress.totalCompletedNum = std::stoi(jobsProgressNode["TotalCompletedNum"].asString());
|
||||
if(!jobsProgressNode["FailedNum"].isNull())
|
||||
executingInfo_.jobsProgress.failedNum = std::stoi(jobsProgressNode["FailedNum"].asString());
|
||||
if(!jobsProgressNode["PausedNum"].isNull())
|
||||
executingInfo_.jobsProgress.pausedNum = std::stoi(jobsProgressNode["PausedNum"].asString());
|
||||
if(!jobsProgressNode["CancelledNum"].isNull())
|
||||
executingInfo_.jobsProgress.cancelledNum = std::stoi(jobsProgressNode["CancelledNum"].asString());
|
||||
if(!jobsProgressNode["TotalJobs"].isNull())
|
||||
executingInfo_.jobsProgress.totalJobs = std::stoi(jobsProgressNode["TotalJobs"].asString());
|
||||
if(!jobsProgressNode["TotalNotAnsweredNum"].isNull())
|
||||
executingInfo_.jobsProgress.totalNotAnsweredNum = std::stoi(jobsProgressNode["TotalNotAnsweredNum"].asString());
|
||||
if(!jobsProgressNode["ExecutingNum"].isNull())
|
||||
executingInfo_.jobsProgress.executingNum = std::stoi(jobsProgressNode["ExecutingNum"].asString());
|
||||
if(!jobsProgressNode["PausedNum"].isNull())
|
||||
executingInfo_.jobsProgress.pausedNum = std::stoi(jobsProgressNode["PausedNum"].asString());
|
||||
if(!jobsProgressNode["SchedulingNum"].isNull())
|
||||
executingInfo_.jobsProgress.schedulingNum = std::stoi(jobsProgressNode["SchedulingNum"].asString());
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["GroupId"].isNull())
|
||||
groupId_ = value["GroupId"].asString();
|
||||
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();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["GroupId"].isNull())
|
||||
groupId_ = value["GroupId"].asString();
|
||||
if(!value["InstanceId"].isNull())
|
||||
instanceId_ = value["InstanceId"].asString();
|
||||
|
||||
|
||||
@@ -1,40 +1,36 @@
|
||||
/*
|
||||
* 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/outboundbot/model/DescribeInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::DescribeInstanceRequest;
|
||||
|
||||
DescribeInstanceRequest::DescribeInstanceRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "DescribeInstance")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeInstanceRequest::~DescribeInstanceRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeInstanceRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/DescribeInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::DescribeInstanceRequest;
|
||||
|
||||
DescribeInstanceRequest::DescribeInstanceRequest()
|
||||
: RpcServiceRequest("outboundbot", "2019-12-26", "DescribeInstance") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DescribeInstanceRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
DescribeInstanceRequest::~DescribeInstanceRequest() {}
|
||||
|
||||
std::string DescribeInstanceRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DescribeInstanceRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,41 +40,41 @@ void DescribeInstanceResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto instanceNode = value["Instance"];
|
||||
if(!instanceNode["CallCenterInstanceId"].isNull())
|
||||
instance_.callCenterInstanceId = instanceNode["CallCenterInstanceId"].asString();
|
||||
if(!instanceNode["CreationTime"].isNull())
|
||||
instance_.creationTime = std::stol(instanceNode["CreationTime"].asString());
|
||||
if(!instanceNode["InstanceDescription"].isNull())
|
||||
instance_.instanceDescription = instanceNode["InstanceDescription"].asString();
|
||||
if(!instanceNode["InstanceId"].isNull())
|
||||
instance_.instanceId = instanceNode["InstanceId"].asString();
|
||||
if(!instanceNode["InstanceName"].isNull())
|
||||
instance_.instanceName = instanceNode["InstanceName"].asString();
|
||||
if(!instanceNode["MaxConcurrentConversation"].isNull())
|
||||
instance_.maxConcurrentConversation = std::stoi(instanceNode["MaxConcurrentConversation"].asString());
|
||||
if(!instanceNode["NluServiceType"].isNull())
|
||||
instance_.nluServiceType = instanceNode["NluServiceType"].asString();
|
||||
if(!instanceNode["CallCenterInstanceId"].isNull())
|
||||
instance_.callCenterInstanceId = instanceNode["CallCenterInstanceId"].asString();
|
||||
if(!instanceNode["Owner"].isNull())
|
||||
instance_.owner = instanceNode["Owner"].asString();
|
||||
if(!instanceNode["NluServiceType"].isNull())
|
||||
instance_.nluServiceType = instanceNode["NluServiceType"].asString();
|
||||
if(!instanceNode["InstanceId"].isNull())
|
||||
instance_.instanceId = instanceNode["InstanceId"].asString();
|
||||
if(!instanceNode["CreatorId"].isNull())
|
||||
instance_.creatorId = std::stol(instanceNode["CreatorId"].asString());
|
||||
if(!instanceNode["CreatorName"].isNull())
|
||||
instance_.creatorName = instanceNode["CreatorName"].asString();
|
||||
if(!instanceNode["OwnerName"].isNull())
|
||||
instance_.ownerName = instanceNode["OwnerName"].asString();
|
||||
if(!instanceNode["InstanceDescription"].isNull())
|
||||
instance_.instanceDescription = instanceNode["InstanceDescription"].asString();
|
||||
if(!instanceNode["InstanceName"].isNull())
|
||||
instance_.instanceName = instanceNode["InstanceName"].asString();
|
||||
if(!instanceNode["CreatorName"].isNull())
|
||||
instance_.creatorName = instanceNode["CreatorName"].asString();
|
||||
if(!instanceNode["ResourceGroupId"].isNull())
|
||||
instance_.resourceGroupId = instanceNode["ResourceGroupId"].asString();
|
||||
if(!instanceNode["MaxConcurrentConversation"].isNull())
|
||||
instance_.maxConcurrentConversation = std::stoi(instanceNode["MaxConcurrentConversation"].asString());
|
||||
auto nluProfileNode = instanceNode["NluProfile"];
|
||||
if(!nluProfileNode["AccessKey"].isNull())
|
||||
instance_.nluProfile.accessKey = nluProfileNode["AccessKey"].asString();
|
||||
if(!nluProfileNode["Endpoint"].isNull())
|
||||
instance_.nluProfile.endpoint = nluProfileNode["Endpoint"].asString();
|
||||
if(!nluProfileNode["SecretKey"].isNull())
|
||||
instance_.nluProfile.secretKey = nluProfileNode["SecretKey"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!nluProfileNode["Endpoint"].isNull())
|
||||
instance_.nluProfile.endpoint = nluProfileNode["Endpoint"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* 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/outboundbot/model/DescribeIntentRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::DescribeIntentRequest;
|
||||
|
||||
DescribeIntentRequest::DescribeIntentRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "DescribeIntent")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeIntentRequest::~DescribeIntentRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeIntentRequest::getIntentId()const
|
||||
{
|
||||
return intentId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/DescribeIntentRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::DescribeIntentRequest;
|
||||
|
||||
DescribeIntentRequest::DescribeIntentRequest()
|
||||
: RpcServiceRequest("outboundbot", "2019-12-26", "DescribeIntent") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DescribeIntentRequest::setIntentId(const std::string& intentId)
|
||||
{
|
||||
intentId_ = intentId;
|
||||
setParameter("IntentId", intentId);
|
||||
DescribeIntentRequest::~DescribeIntentRequest() {}
|
||||
|
||||
std::string DescribeIntentRequest::getIntentId() const {
|
||||
return intentId_;
|
||||
}
|
||||
|
||||
std::string DescribeIntentRequest::getScriptId()const
|
||||
{
|
||||
return scriptId_;
|
||||
void DescribeIntentRequest::setIntentId(const std::string &intentId) {
|
||||
intentId_ = intentId;
|
||||
setParameter(std::string("IntentId"), intentId);
|
||||
}
|
||||
|
||||
void DescribeIntentRequest::setScriptId(const std::string& scriptId)
|
||||
{
|
||||
scriptId_ = scriptId;
|
||||
setParameter("ScriptId", scriptId);
|
||||
std::string DescribeIntentRequest::getScriptId() const {
|
||||
return scriptId_;
|
||||
}
|
||||
|
||||
std::string DescribeIntentRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
void DescribeIntentRequest::setScriptId(const std::string &scriptId) {
|
||||
scriptId_ = scriptId;
|
||||
setParameter(std::string("ScriptId"), scriptId);
|
||||
}
|
||||
|
||||
void DescribeIntentRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
std::string DescribeIntentRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DescribeIntentRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,26 +40,26 @@ void DescribeIntentResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto intentNode = value["Intent"];
|
||||
if(!intentNode["CreateTime"].isNull())
|
||||
intent_.createTime = std::stol(intentNode["CreateTime"].asString());
|
||||
if(!intentNode["Utterances"].isNull())
|
||||
intent_.utterances = intentNode["Utterances"].asString();
|
||||
if(!intentNode["IntentDescription"].isNull())
|
||||
intent_.intentDescription = intentNode["IntentDescription"].asString();
|
||||
if(!intentNode["IntentId"].isNull())
|
||||
intent_.intentId = intentNode["IntentId"].asString();
|
||||
if(!intentNode["IntentName"].isNull())
|
||||
intent_.intentName = intentNode["IntentName"].asString();
|
||||
if(!intentNode["UpdateTime"].isNull())
|
||||
intent_.updateTime = std::stol(intentNode["UpdateTime"].asString());
|
||||
if(!intentNode["CreateTime"].isNull())
|
||||
intent_.createTime = std::stol(intentNode["CreateTime"].asString());
|
||||
if(!intentNode["Keywords"].isNull())
|
||||
intent_.keywords = intentNode["Keywords"].asString();
|
||||
if(!intentNode["ScriptId"].isNull())
|
||||
intent_.scriptId = intentNode["ScriptId"].asString();
|
||||
if(!intentNode["UpdateTime"].isNull())
|
||||
intent_.updateTime = std::stol(intentNode["UpdateTime"].asString());
|
||||
if(!intentNode["Utterances"].isNull())
|
||||
intent_.utterances = intentNode["Utterances"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!intentNode["IntentId"].isNull())
|
||||
intent_.intentId = intentNode["IntentId"].asString();
|
||||
if(!intentNode["IntentName"].isNull())
|
||||
intent_.intentName = intentNode["IntentName"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* 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/outboundbot/model/DescribeIntentStatisticsRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::DescribeIntentStatisticsRequest;
|
||||
|
||||
DescribeIntentStatisticsRequest::DescribeIntentStatisticsRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "DescribeIntentStatistics")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeIntentStatisticsRequest::~DescribeIntentStatisticsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeIntentStatisticsRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/DescribeIntentStatisticsRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::DescribeIntentStatisticsRequest;
|
||||
|
||||
DescribeIntentStatisticsRequest::DescribeIntentStatisticsRequest()
|
||||
: RpcServiceRequest("outboundbot", "2019-12-26", "DescribeIntentStatistics") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DescribeIntentStatisticsRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
DescribeIntentStatisticsRequest::~DescribeIntentStatisticsRequest() {}
|
||||
|
||||
std::string DescribeIntentStatisticsRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string DescribeIntentStatisticsRequest::getJobGroupId()const
|
||||
{
|
||||
return jobGroupId_;
|
||||
void DescribeIntentStatisticsRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
void DescribeIntentStatisticsRequest::setJobGroupId(const std::string& jobGroupId)
|
||||
{
|
||||
jobGroupId_ = jobGroupId;
|
||||
setParameter("JobGroupId", jobGroupId);
|
||||
std::string DescribeIntentStatisticsRequest::getJobGroupId() const {
|
||||
return jobGroupId_;
|
||||
}
|
||||
|
||||
int DescribeIntentStatisticsRequest::getLimit()const
|
||||
{
|
||||
return limit_;
|
||||
void DescribeIntentStatisticsRequest::setJobGroupId(const std::string &jobGroupId) {
|
||||
jobGroupId_ = jobGroupId;
|
||||
setParameter(std::string("JobGroupId"), jobGroupId);
|
||||
}
|
||||
|
||||
void DescribeIntentStatisticsRequest::setLimit(int limit)
|
||||
{
|
||||
limit_ = limit;
|
||||
setParameter("Limit", std::to_string(limit));
|
||||
int DescribeIntentStatisticsRequest::getLimit() const {
|
||||
return limit_;
|
||||
}
|
||||
|
||||
void DescribeIntentStatisticsRequest::setLimit(int limit) {
|
||||
limit_ = limit;
|
||||
setParameter(std::string("Limit"), std::to_string(limit));
|
||||
}
|
||||
|
||||
|
||||
@@ -43,40 +43,40 @@ void DescribeIntentStatisticsResult::parse(const std::string &payload)
|
||||
for (auto valueProcessIntentsIntentStatisticsItem : allProcessIntentsNode)
|
||||
{
|
||||
IntentStatisticsItem processIntentsObject;
|
||||
if(!valueProcessIntentsIntentStatisticsItem["InstanceId"].isNull())
|
||||
processIntentsObject.instanceId = valueProcessIntentsIntentStatisticsItem["InstanceId"].asString();
|
||||
if(!valueProcessIntentsIntentStatisticsItem["Type"].isNull())
|
||||
processIntentsObject.type = valueProcessIntentsIntentStatisticsItem["Type"].asString();
|
||||
if(!valueProcessIntentsIntentStatisticsItem["GroupId"].isNull())
|
||||
processIntentsObject.groupId = valueProcessIntentsIntentStatisticsItem["GroupId"].asString();
|
||||
if(!valueProcessIntentsIntentStatisticsItem["HitAfterNoAnswer"].isNull())
|
||||
processIntentsObject.hitAfterNoAnswer = std::stoi(valueProcessIntentsIntentStatisticsItem["HitAfterNoAnswer"].asString());
|
||||
if(!valueProcessIntentsIntentStatisticsItem["InstanceId"].isNull())
|
||||
processIntentsObject.instanceId = valueProcessIntentsIntentStatisticsItem["InstanceId"].asString();
|
||||
if(!valueProcessIntentsIntentStatisticsItem["HitNum"].isNull())
|
||||
processIntentsObject.hitNum = std::stoi(valueProcessIntentsIntentStatisticsItem["HitNum"].asString());
|
||||
if(!valueProcessIntentsIntentStatisticsItem["IntentId"].isNull())
|
||||
processIntentsObject.intentId = valueProcessIntentsIntentStatisticsItem["IntentId"].asString();
|
||||
if(!valueProcessIntentsIntentStatisticsItem["IntentName"].isNull())
|
||||
processIntentsObject.intentName = valueProcessIntentsIntentStatisticsItem["IntentName"].asString();
|
||||
if(!valueProcessIntentsIntentStatisticsItem["Type"].isNull())
|
||||
processIntentsObject.type = valueProcessIntentsIntentStatisticsItem["Type"].asString();
|
||||
if(!valueProcessIntentsIntentStatisticsItem["HitNum"].isNull())
|
||||
processIntentsObject.hitNum = std::stoi(valueProcessIntentsIntentStatisticsItem["HitNum"].asString());
|
||||
if(!valueProcessIntentsIntentStatisticsItem["HitAfterNoAnswer"].isNull())
|
||||
processIntentsObject.hitAfterNoAnswer = std::stoi(valueProcessIntentsIntentStatisticsItem["HitAfterNoAnswer"].asString());
|
||||
processIntents_.push_back(processIntentsObject);
|
||||
}
|
||||
auto allGlobalIntentsNode = value["GlobalIntents"]["IntentStatisticsItem"];
|
||||
for (auto valueGlobalIntentsIntentStatisticsItem : allGlobalIntentsNode)
|
||||
{
|
||||
IntentStatisticsItem globalIntentsObject;
|
||||
if(!valueGlobalIntentsIntentStatisticsItem["InstanceId"].isNull())
|
||||
globalIntentsObject.instanceId = valueGlobalIntentsIntentStatisticsItem["InstanceId"].asString();
|
||||
if(!valueGlobalIntentsIntentStatisticsItem["Type"].isNull())
|
||||
globalIntentsObject.type = valueGlobalIntentsIntentStatisticsItem["Type"].asString();
|
||||
if(!valueGlobalIntentsIntentStatisticsItem["GroupId"].isNull())
|
||||
globalIntentsObject.groupId = valueGlobalIntentsIntentStatisticsItem["GroupId"].asString();
|
||||
if(!valueGlobalIntentsIntentStatisticsItem["HitAfterNoAnswer"].isNull())
|
||||
globalIntentsObject.hitAfterNoAnswer = std::stoi(valueGlobalIntentsIntentStatisticsItem["HitAfterNoAnswer"].asString());
|
||||
if(!valueGlobalIntentsIntentStatisticsItem["InstanceId"].isNull())
|
||||
globalIntentsObject.instanceId = valueGlobalIntentsIntentStatisticsItem["InstanceId"].asString();
|
||||
if(!valueGlobalIntentsIntentStatisticsItem["HitNum"].isNull())
|
||||
globalIntentsObject.hitNum = std::stoi(valueGlobalIntentsIntentStatisticsItem["HitNum"].asString());
|
||||
if(!valueGlobalIntentsIntentStatisticsItem["IntentId"].isNull())
|
||||
globalIntentsObject.intentId = valueGlobalIntentsIntentStatisticsItem["IntentId"].asString();
|
||||
if(!valueGlobalIntentsIntentStatisticsItem["IntentName"].isNull())
|
||||
globalIntentsObject.intentName = valueGlobalIntentsIntentStatisticsItem["IntentName"].asString();
|
||||
if(!valueGlobalIntentsIntentStatisticsItem["Type"].isNull())
|
||||
globalIntentsObject.type = valueGlobalIntentsIntentStatisticsItem["Type"].asString();
|
||||
if(!valueGlobalIntentsIntentStatisticsItem["HitNum"].isNull())
|
||||
globalIntentsObject.hitNum = std::stoi(valueGlobalIntentsIntentStatisticsItem["HitNum"].asString());
|
||||
if(!valueGlobalIntentsIntentStatisticsItem["HitAfterNoAnswer"].isNull())
|
||||
globalIntentsObject.hitAfterNoAnswer = std::stoi(valueGlobalIntentsIntentStatisticsItem["HitAfterNoAnswer"].asString());
|
||||
globalIntents_.push_back(globalIntentsObject);
|
||||
}
|
||||
auto allIntentsAfterNoAnswerNode = value["IntentsAfterNoAnswer"]["IntentStatisticsItem"];
|
||||
@@ -87,20 +87,20 @@ void DescribeIntentStatisticsResult::parse(const std::string &payload)
|
||||
intentsAfterNoAnswerObject.instanceId = valueIntentsAfterNoAnswerIntentStatisticsItem["InstanceId"].asString();
|
||||
intentsAfterNoAnswer_.push_back(intentsAfterNoAnswerObject);
|
||||
}
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["GroupId"].isNull())
|
||||
groupId_ = value["GroupId"].asString();
|
||||
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();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["InstanceId"].isNull())
|
||||
instanceId_ = value["InstanceId"].asString();
|
||||
if(!value["GroupId"].isNull())
|
||||
groupId_ = value["GroupId"].asString();
|
||||
if(!value["ProcessIntentNum"].isNull())
|
||||
processIntentNum_ = std::stoi(value["ProcessIntentNum"].asString());
|
||||
if(!value["InstanceId"].isNull())
|
||||
instanceId_ = value["InstanceId"].asString();
|
||||
if(!value["GlobalIntentNum"].isNull())
|
||||
globalIntentNum_ = std::stoi(value["GlobalIntentNum"].asString());
|
||||
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* 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/outboundbot/model/DescribeJobDataParsingTaskProgressRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::DescribeJobDataParsingTaskProgressRequest;
|
||||
|
||||
DescribeJobDataParsingTaskProgressRequest::DescribeJobDataParsingTaskProgressRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "DescribeJobDataParsingTaskProgress")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeJobDataParsingTaskProgressRequest::~DescribeJobDataParsingTaskProgressRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeJobDataParsingTaskProgressRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/DescribeJobDataParsingTaskProgressRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::DescribeJobDataParsingTaskProgressRequest;
|
||||
|
||||
DescribeJobDataParsingTaskProgressRequest::DescribeJobDataParsingTaskProgressRequest()
|
||||
: RpcServiceRequest("outboundbot", "2019-12-26", "DescribeJobDataParsingTaskProgress") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DescribeJobDataParsingTaskProgressRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
DescribeJobDataParsingTaskProgressRequest::~DescribeJobDataParsingTaskProgressRequest() {}
|
||||
|
||||
std::string DescribeJobDataParsingTaskProgressRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string DescribeJobDataParsingTaskProgressRequest::getJobDataParsingTaskId()const
|
||||
{
|
||||
return jobDataParsingTaskId_;
|
||||
void DescribeJobDataParsingTaskProgressRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
void DescribeJobDataParsingTaskProgressRequest::setJobDataParsingTaskId(const std::string& jobDataParsingTaskId)
|
||||
{
|
||||
jobDataParsingTaskId_ = jobDataParsingTaskId;
|
||||
setParameter("JobDataParsingTaskId", jobDataParsingTaskId);
|
||||
std::string DescribeJobDataParsingTaskProgressRequest::getJobDataParsingTaskId() const {
|
||||
return jobDataParsingTaskId_;
|
||||
}
|
||||
|
||||
void DescribeJobDataParsingTaskProgressRequest::setJobDataParsingTaskId(const std::string &jobDataParsingTaskId) {
|
||||
jobDataParsingTaskId_ = jobDataParsingTaskId;
|
||||
setParameter(std::string("JobDataParsingTaskId"), jobDataParsingTaskId);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* 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/outboundbot/model/DescribeJobGroupExportTaskProgressRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::DescribeJobGroupExportTaskProgressRequest;
|
||||
|
||||
DescribeJobGroupExportTaskProgressRequest::DescribeJobGroupExportTaskProgressRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "DescribeJobGroupExportTaskProgress")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeJobGroupExportTaskProgressRequest::~DescribeJobGroupExportTaskProgressRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeJobGroupExportTaskProgressRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/DescribeJobGroupExportTaskProgressRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::DescribeJobGroupExportTaskProgressRequest;
|
||||
|
||||
DescribeJobGroupExportTaskProgressRequest::DescribeJobGroupExportTaskProgressRequest()
|
||||
: RpcServiceRequest("outboundbot", "2019-12-26", "DescribeJobGroupExportTaskProgress") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DescribeJobGroupExportTaskProgressRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
DescribeJobGroupExportTaskProgressRequest::~DescribeJobGroupExportTaskProgressRequest() {}
|
||||
|
||||
std::string DescribeJobGroupExportTaskProgressRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string DescribeJobGroupExportTaskProgressRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
void DescribeJobGroupExportTaskProgressRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
void DescribeJobGroupExportTaskProgressRequest::setTaskId(const std::string& taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setParameter("TaskId", taskId);
|
||||
std::string DescribeJobGroupExportTaskProgressRequest::getTaskId() const {
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void DescribeJobGroupExportTaskProgressRequest::setTaskId(const std::string &taskId) {
|
||||
taskId_ = taskId;
|
||||
setParameter(std::string("TaskId"), taskId);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,18 +39,18 @@ void DescribeJobGroupExportTaskProgressResult::parse(const std::string &payload)
|
||||
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_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["FileHttpUrl"].isNull())
|
||||
fileHttpUrl_ = value["FileHttpUrl"].asString();
|
||||
if(!value["Progress"].isNull())
|
||||
progress_ = std::stof(value["Progress"].asString());
|
||||
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();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,64 +1,53 @@
|
||||
/*
|
||||
* 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/outboundbot/model/DescribeJobGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::DescribeJobGroupRequest;
|
||||
|
||||
DescribeJobGroupRequest::DescribeJobGroupRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "DescribeJobGroup")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeJobGroupRequest::~DescribeJobGroupRequest()
|
||||
{}
|
||||
|
||||
std::vector<std::string> DescribeJobGroupRequest::getBriefTypes()const
|
||||
{
|
||||
return briefTypes_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/DescribeJobGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::DescribeJobGroupRequest;
|
||||
|
||||
DescribeJobGroupRequest::DescribeJobGroupRequest()
|
||||
: RpcServiceRequest("outboundbot", "2019-12-26", "DescribeJobGroup") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DescribeJobGroupRequest::setBriefTypes(const std::vector<std::string>& briefTypes)
|
||||
{
|
||||
briefTypes_ = briefTypes;
|
||||
for(int dep1 = 0; dep1!= briefTypes.size(); dep1++) {
|
||||
setParameter("BriefTypes."+ std::to_string(dep1), briefTypes.at(dep1));
|
||||
}
|
||||
DescribeJobGroupRequest::~DescribeJobGroupRequest() {}
|
||||
|
||||
std::vector<std::string> DescribeJobGroupRequest::getBriefTypes() const {
|
||||
return briefTypes_;
|
||||
}
|
||||
|
||||
std::string DescribeJobGroupRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
void DescribeJobGroupRequest::setBriefTypes(const std::vector<std::string> &briefTypes) {
|
||||
briefTypes_ = briefTypes;
|
||||
}
|
||||
|
||||
void DescribeJobGroupRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
std::string DescribeJobGroupRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string DescribeJobGroupRequest::getJobGroupId()const
|
||||
{
|
||||
return jobGroupId_;
|
||||
void DescribeJobGroupRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
void DescribeJobGroupRequest::setJobGroupId(const std::string& jobGroupId)
|
||||
{
|
||||
jobGroupId_ = jobGroupId;
|
||||
setParameter("JobGroupId", jobGroupId);
|
||||
std::string DescribeJobGroupRequest::getJobGroupId() const {
|
||||
return jobGroupId_;
|
||||
}
|
||||
|
||||
void DescribeJobGroupRequest::setJobGroupId(const std::string &jobGroupId) {
|
||||
jobGroupId_ = jobGroupId;
|
||||
setParameter(std::string("JobGroupId"), jobGroupId);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,51 +1,54 @@
|
||||
/*
|
||||
* 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/outboundbot/model/DescribeJobRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::DescribeJobRequest;
|
||||
|
||||
DescribeJobRequest::DescribeJobRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "DescribeJob")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeJobRequest::~DescribeJobRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeJobRequest::getJobId()const
|
||||
{
|
||||
return jobId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/DescribeJobRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::DescribeJobRequest;
|
||||
|
||||
DescribeJobRequest::DescribeJobRequest()
|
||||
: RpcServiceRequest("outboundbot", "2019-12-26", "DescribeJob") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DescribeJobRequest::setJobId(const std::string& jobId)
|
||||
{
|
||||
jobId_ = jobId;
|
||||
setParameter("JobId", jobId);
|
||||
DescribeJobRequest::~DescribeJobRequest() {}
|
||||
|
||||
std::string DescribeJobRequest::getJobId() const {
|
||||
return jobId_;
|
||||
}
|
||||
|
||||
std::string DescribeJobRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
void DescribeJobRequest::setJobId(const std::string &jobId) {
|
||||
jobId_ = jobId;
|
||||
setParameter(std::string("JobId"), jobId);
|
||||
}
|
||||
|
||||
void DescribeJobRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
std::string DescribeJobRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DescribeJobRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
bool DescribeJobRequest::getWithScript() const {
|
||||
return withScript_;
|
||||
}
|
||||
|
||||
void DescribeJobRequest::setWithScript(bool withScript) {
|
||||
withScript_ = withScript;
|
||||
setParameter(std::string("WithScript"), withScript ? "true" : "false");
|
||||
}
|
||||
|
||||
|
||||
@@ -164,6 +164,8 @@ void DescribeJobResult::parse(const std::string &payload)
|
||||
conversationObject.speaker = jobNodeTasksTaskConversationConversationDetail["Speaker"].asString();
|
||||
if(!jobNodeTasksTaskConversationConversationDetail["Script"].isNull())
|
||||
conversationObject.script = jobNodeTasksTaskConversationConversationDetail["Script"].asString();
|
||||
if(!jobNodeTasksTaskConversationConversationDetail["SequenceId"].isNull())
|
||||
conversationObject.sequenceId = jobNodeTasksTaskConversationConversationDetail["SequenceId"].asString();
|
||||
auto allSummary1Node = jobNodeTasksTaskConversationConversationDetail["Summary"]["SummaryItem"];
|
||||
for (auto jobNodeTasksTaskConversationConversationDetailSummarySummaryItem : allSummary1Node)
|
||||
{
|
||||
@@ -197,6 +199,35 @@ void DescribeJobResult::parse(const std::string &payload)
|
||||
taskObject.contact3.referenceId = contact3Node["ReferenceId"].asString();
|
||||
job_.tasks.push_back(taskObject);
|
||||
}
|
||||
auto scriptNode = jobNode["Script"];
|
||||
if(!scriptNode["Status"].isNull())
|
||||
job_.script.status = scriptNode["Status"].asString();
|
||||
if(!scriptNode["UpdateTime"].isNull())
|
||||
job_.script.updateTime = std::stol(scriptNode["UpdateTime"].asString());
|
||||
if(!scriptNode["ChatbotId"].isNull())
|
||||
job_.script.chatbotId = scriptNode["ChatbotId"].asString();
|
||||
if(!scriptNode["ScriptId"].isNull())
|
||||
job_.script.scriptId = scriptNode["ScriptId"].asString();
|
||||
if(!scriptNode["IsDebugDrafted"].isNull())
|
||||
job_.script.isDebugDrafted = scriptNode["IsDebugDrafted"].asString() == "true";
|
||||
if(!scriptNode["Industry"].isNull())
|
||||
job_.script.industry = scriptNode["Industry"].asString();
|
||||
if(!scriptNode["ScriptDescription"].isNull())
|
||||
job_.script.scriptDescription = scriptNode["ScriptDescription"].asString();
|
||||
if(!scriptNode["MiniPlaybackConfigEnabled"].isNull())
|
||||
job_.script.miniPlaybackConfigEnabled = scriptNode["MiniPlaybackConfigEnabled"].asString() == "true";
|
||||
if(!scriptNode["IsDrafted"].isNull())
|
||||
job_.script.isDrafted = scriptNode["IsDrafted"].asString() == "true";
|
||||
if(!scriptNode["TtsConfig"].isNull())
|
||||
job_.script.ttsConfig = scriptNode["TtsConfig"].asString();
|
||||
if(!scriptNode["DebugStatus"].isNull())
|
||||
job_.script.debugStatus = scriptNode["DebugStatus"].asString();
|
||||
if(!scriptNode["AsrConfig"].isNull())
|
||||
job_.script.asrConfig = scriptNode["AsrConfig"].asString();
|
||||
if(!scriptNode["Scene"].isNull())
|
||||
job_.script.scene = scriptNode["Scene"].asString();
|
||||
if(!scriptNode["Name"].isNull())
|
||||
job_.script.name = scriptNode["Name"].asString();
|
||||
auto allCallingNumbers = jobNode["CallingNumbers"]["String"];
|
||||
for (auto value : allCallingNumbers)
|
||||
job_.callingNumbers.push_back(value.asString());
|
||||
|
||||
@@ -1,29 +1,27 @@
|
||||
/*
|
||||
* 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/outboundbot/model/DescribeNumberDistrictInfoStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::DescribeNumberDistrictInfoStatusRequest;
|
||||
|
||||
DescribeNumberDistrictInfoStatusRequest::DescribeNumberDistrictInfoStatusRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "DescribeNumberDistrictInfoStatus")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeNumberDistrictInfoStatusRequest::~DescribeNumberDistrictInfoStatusRequest()
|
||||
{}
|
||||
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/DescribeNumberDistrictInfoStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::DescribeNumberDistrictInfoStatusRequest;
|
||||
|
||||
DescribeNumberDistrictInfoStatusRequest::DescribeNumberDistrictInfoStatusRequest()
|
||||
: RpcServiceRequest("outboundbot", "2019-12-26", "DescribeNumberDistrictInfoStatus") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeNumberDistrictInfoStatusRequest::~DescribeNumberDistrictInfoStatusRequest() {}
|
||||
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* 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/outboundbot/model/DescribeScriptRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::DescribeScriptRequest;
|
||||
|
||||
DescribeScriptRequest::DescribeScriptRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "DescribeScript")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeScriptRequest::~DescribeScriptRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeScriptRequest::getScriptId()const
|
||||
{
|
||||
return scriptId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/DescribeScriptRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::DescribeScriptRequest;
|
||||
|
||||
DescribeScriptRequest::DescribeScriptRequest()
|
||||
: RpcServiceRequest("outboundbot", "2019-12-26", "DescribeScript") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DescribeScriptRequest::setScriptId(const std::string& scriptId)
|
||||
{
|
||||
scriptId_ = scriptId;
|
||||
setParameter("ScriptId", scriptId);
|
||||
DescribeScriptRequest::~DescribeScriptRequest() {}
|
||||
|
||||
std::string DescribeScriptRequest::getScriptId() const {
|
||||
return scriptId_;
|
||||
}
|
||||
|
||||
std::string DescribeScriptRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
void DescribeScriptRequest::setScriptId(const std::string &scriptId) {
|
||||
scriptId_ = scriptId;
|
||||
setParameter(std::string("ScriptId"), scriptId);
|
||||
}
|
||||
|
||||
void DescribeScriptRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
std::string DescribeScriptRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DescribeScriptRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* 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/outboundbot/model/DescribeScriptVoiceConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::DescribeScriptVoiceConfigRequest;
|
||||
|
||||
DescribeScriptVoiceConfigRequest::DescribeScriptVoiceConfigRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "DescribeScriptVoiceConfig")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeScriptVoiceConfigRequest::~DescribeScriptVoiceConfigRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeScriptVoiceConfigRequest::getScriptId()const
|
||||
{
|
||||
return scriptId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/DescribeScriptVoiceConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::DescribeScriptVoiceConfigRequest;
|
||||
|
||||
DescribeScriptVoiceConfigRequest::DescribeScriptVoiceConfigRequest()
|
||||
: RpcServiceRequest("outboundbot", "2019-12-26", "DescribeScriptVoiceConfig") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DescribeScriptVoiceConfigRequest::setScriptId(const std::string& scriptId)
|
||||
{
|
||||
scriptId_ = scriptId;
|
||||
setParameter("ScriptId", scriptId);
|
||||
DescribeScriptVoiceConfigRequest::~DescribeScriptVoiceConfigRequest() {}
|
||||
|
||||
std::string DescribeScriptVoiceConfigRequest::getScriptId() const {
|
||||
return scriptId_;
|
||||
}
|
||||
|
||||
std::string DescribeScriptVoiceConfigRequest::getScriptVoiceConfigId()const
|
||||
{
|
||||
return scriptVoiceConfigId_;
|
||||
void DescribeScriptVoiceConfigRequest::setScriptId(const std::string &scriptId) {
|
||||
scriptId_ = scriptId;
|
||||
setParameter(std::string("ScriptId"), scriptId);
|
||||
}
|
||||
|
||||
void DescribeScriptVoiceConfigRequest::setScriptVoiceConfigId(const std::string& scriptVoiceConfigId)
|
||||
{
|
||||
scriptVoiceConfigId_ = scriptVoiceConfigId;
|
||||
setParameter("ScriptVoiceConfigId", scriptVoiceConfigId);
|
||||
std::string DescribeScriptVoiceConfigRequest::getScriptVoiceConfigId() const {
|
||||
return scriptVoiceConfigId_;
|
||||
}
|
||||
|
||||
std::string DescribeScriptVoiceConfigRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
void DescribeScriptVoiceConfigRequest::setScriptVoiceConfigId(const std::string &scriptVoiceConfigId) {
|
||||
scriptVoiceConfigId_ = scriptVoiceConfigId;
|
||||
setParameter(std::string("ScriptVoiceConfigId"), scriptVoiceConfigId);
|
||||
}
|
||||
|
||||
void DescribeScriptVoiceConfigRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
std::string DescribeScriptVoiceConfigRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DescribeScriptVoiceConfigRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,24 +40,24 @@ void DescribeScriptVoiceConfigResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto scriptVoiceConfigNode = value["ScriptVoiceConfig"];
|
||||
if(!scriptVoiceConfigNode["InstanceId"].isNull())
|
||||
scriptVoiceConfig_.instanceId = scriptVoiceConfigNode["InstanceId"].asString();
|
||||
if(!scriptVoiceConfigNode["ScriptContent"].isNull())
|
||||
scriptVoiceConfig_.scriptContent = scriptVoiceConfigNode["ScriptContent"].asString();
|
||||
if(!scriptVoiceConfigNode["ScriptId"].isNull())
|
||||
scriptVoiceConfig_.scriptId = scriptVoiceConfigNode["ScriptId"].asString();
|
||||
if(!scriptVoiceConfigNode["Type"].isNull())
|
||||
scriptVoiceConfig_.type = scriptVoiceConfigNode["Type"].asString();
|
||||
if(!scriptVoiceConfigNode["ScriptVoiceConfigId"].isNull())
|
||||
scriptVoiceConfig_.scriptVoiceConfigId = scriptVoiceConfigNode["ScriptVoiceConfigId"].asString();
|
||||
if(!scriptVoiceConfigNode["ScriptContent"].isNull())
|
||||
scriptVoiceConfig_.scriptContent = scriptVoiceConfigNode["ScriptContent"].asString();
|
||||
if(!scriptVoiceConfigNode["InstanceId"].isNull())
|
||||
scriptVoiceConfig_.instanceId = scriptVoiceConfigNode["InstanceId"].asString();
|
||||
if(!scriptVoiceConfigNode["ScriptId"].isNull())
|
||||
scriptVoiceConfig_.scriptId = scriptVoiceConfigNode["ScriptId"].asString();
|
||||
if(!scriptVoiceConfigNode["ScriptWaveformRelation"].isNull())
|
||||
scriptVoiceConfig_.scriptWaveformRelation = scriptVoiceConfigNode["ScriptWaveformRelation"].asString();
|
||||
if(!scriptVoiceConfigNode["Source"].isNull())
|
||||
scriptVoiceConfig_.source = scriptVoiceConfigNode["Source"].asString();
|
||||
if(!scriptVoiceConfigNode["Type"].isNull())
|
||||
scriptVoiceConfig_.type = scriptVoiceConfigNode["Type"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* 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/outboundbot/model/DescribeTTSConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::DescribeTTSConfigRequest;
|
||||
|
||||
DescribeTTSConfigRequest::DescribeTTSConfigRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "DescribeTTSConfig")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeTTSConfigRequest::~DescribeTTSConfigRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeTTSConfigRequest::getScriptId()const
|
||||
{
|
||||
return scriptId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/DescribeTTSConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::DescribeTTSConfigRequest;
|
||||
|
||||
DescribeTTSConfigRequest::DescribeTTSConfigRequest()
|
||||
: RpcServiceRequest("outboundbot", "2019-12-26", "DescribeTTSConfig") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DescribeTTSConfigRequest::setScriptId(const std::string& scriptId)
|
||||
{
|
||||
scriptId_ = scriptId;
|
||||
setParameter("ScriptId", scriptId);
|
||||
DescribeTTSConfigRequest::~DescribeTTSConfigRequest() {}
|
||||
|
||||
std::string DescribeTTSConfigRequest::getScriptId() const {
|
||||
return scriptId_;
|
||||
}
|
||||
|
||||
std::string DescribeTTSConfigRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
void DescribeTTSConfigRequest::setScriptId(const std::string &scriptId) {
|
||||
scriptId_ = scriptId;
|
||||
setParameter(std::string("ScriptId"), scriptId);
|
||||
}
|
||||
|
||||
void DescribeTTSConfigRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
std::string DescribeTTSConfigRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DescribeTTSConfigRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,95 +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/outboundbot/model/DescribeTTSDemoRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::DescribeTTSDemoRequest;
|
||||
|
||||
DescribeTTSDemoRequest::DescribeTTSDemoRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "DescribeTTSDemo")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeTTSDemoRequest::~DescribeTTSDemoRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeTTSDemoRequest::getVoice()const
|
||||
{
|
||||
return voice_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/DescribeTTSDemoRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::DescribeTTSDemoRequest;
|
||||
|
||||
DescribeTTSDemoRequest::DescribeTTSDemoRequest()
|
||||
: RpcServiceRequest("outboundbot", "2019-12-26", "DescribeTTSDemo") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DescribeTTSDemoRequest::setVoice(const std::string& voice)
|
||||
{
|
||||
voice_ = voice;
|
||||
setParameter("Voice", voice);
|
||||
DescribeTTSDemoRequest::~DescribeTTSDemoRequest() {}
|
||||
|
||||
std::string DescribeTTSDemoRequest::getVoice() const {
|
||||
return voice_;
|
||||
}
|
||||
|
||||
int DescribeTTSDemoRequest::getVolume()const
|
||||
{
|
||||
return volume_;
|
||||
void DescribeTTSDemoRequest::setVoice(const std::string &voice) {
|
||||
voice_ = voice;
|
||||
setParameter(std::string("Voice"), voice);
|
||||
}
|
||||
|
||||
void DescribeTTSDemoRequest::setVolume(int volume)
|
||||
{
|
||||
volume_ = volume;
|
||||
setParameter("Volume", std::to_string(volume));
|
||||
int DescribeTTSDemoRequest::getVolume() const {
|
||||
return volume_;
|
||||
}
|
||||
|
||||
std::string DescribeTTSDemoRequest::getScriptId()const
|
||||
{
|
||||
return scriptId_;
|
||||
void DescribeTTSDemoRequest::setVolume(int volume) {
|
||||
volume_ = volume;
|
||||
setParameter(std::string("Volume"), std::to_string(volume));
|
||||
}
|
||||
|
||||
void DescribeTTSDemoRequest::setScriptId(const std::string& scriptId)
|
||||
{
|
||||
scriptId_ = scriptId;
|
||||
setParameter("ScriptId", scriptId);
|
||||
std::string DescribeTTSDemoRequest::getScriptId() const {
|
||||
return scriptId_;
|
||||
}
|
||||
|
||||
std::string DescribeTTSDemoRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
void DescribeTTSDemoRequest::setScriptId(const std::string &scriptId) {
|
||||
scriptId_ = scriptId;
|
||||
setParameter(std::string("ScriptId"), scriptId);
|
||||
}
|
||||
|
||||
void DescribeTTSDemoRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
std::string DescribeTTSDemoRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string DescribeTTSDemoRequest::getText()const
|
||||
{
|
||||
return text_;
|
||||
void DescribeTTSDemoRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
void DescribeTTSDemoRequest::setText(const std::string& text)
|
||||
{
|
||||
text_ = text;
|
||||
setParameter("Text", text);
|
||||
std::string DescribeTTSDemoRequest::getText() const {
|
||||
return text_;
|
||||
}
|
||||
|
||||
int DescribeTTSDemoRequest::getSpeechRate()const
|
||||
{
|
||||
return speechRate_;
|
||||
void DescribeTTSDemoRequest::setText(const std::string &text) {
|
||||
text_ = text;
|
||||
setParameter(std::string("Text"), text);
|
||||
}
|
||||
|
||||
void DescribeTTSDemoRequest::setSpeechRate(int speechRate)
|
||||
{
|
||||
speechRate_ = speechRate;
|
||||
setParameter("SpeechRate", std::to_string(speechRate));
|
||||
int DescribeTTSDemoRequest::getSpeechRate() const {
|
||||
return speechRate_;
|
||||
}
|
||||
|
||||
void DescribeTTSDemoRequest::setSpeechRate(int speechRate) {
|
||||
speechRate_ = speechRate;
|
||||
setParameter(std::string("SpeechRate"), std::to_string(speechRate));
|
||||
}
|
||||
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* 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/outboundbot/model/DescribeTagHitsSummaryRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::DescribeTagHitsSummaryRequest;
|
||||
|
||||
DescribeTagHitsSummaryRequest::DescribeTagHitsSummaryRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "DescribeTagHitsSummary")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeTagHitsSummaryRequest::~DescribeTagHitsSummaryRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeTagHitsSummaryRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/DescribeTagHitsSummaryRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::DescribeTagHitsSummaryRequest;
|
||||
|
||||
DescribeTagHitsSummaryRequest::DescribeTagHitsSummaryRequest()
|
||||
: RpcServiceRequest("outboundbot", "2019-12-26", "DescribeTagHitsSummary") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DescribeTagHitsSummaryRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
DescribeTagHitsSummaryRequest::~DescribeTagHitsSummaryRequest() {}
|
||||
|
||||
std::string DescribeTagHitsSummaryRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string DescribeTagHitsSummaryRequest::getJobGroupId()const
|
||||
{
|
||||
return jobGroupId_;
|
||||
void DescribeTagHitsSummaryRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
void DescribeTagHitsSummaryRequest::setJobGroupId(const std::string& jobGroupId)
|
||||
{
|
||||
jobGroupId_ = jobGroupId;
|
||||
setParameter("JobGroupId", jobGroupId);
|
||||
std::string DescribeTagHitsSummaryRequest::getJobGroupId() const {
|
||||
return jobGroupId_;
|
||||
}
|
||||
|
||||
void DescribeTagHitsSummaryRequest::setJobGroupId(const std::string &jobGroupId) {
|
||||
jobGroupId_ = jobGroupId;
|
||||
setParameter(std::string("JobGroupId"), jobGroupId);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,14 +43,14 @@ void DescribeTagHitsSummaryResult::parse(const std::string &payload)
|
||||
for (auto valueTagGroupsTagGroup : allTagGroupsNode)
|
||||
{
|
||||
TagGroup tagGroupsObject;
|
||||
if(!valueTagGroupsTagGroup["Id"].isNull())
|
||||
tagGroupsObject.id = valueTagGroupsTagGroup["Id"].asString();
|
||||
if(!valueTagGroupsTagGroup["ScriptId"].isNull())
|
||||
tagGroupsObject.scriptId = valueTagGroupsTagGroup["ScriptId"].asString();
|
||||
if(!valueTagGroupsTagGroup["TagGroup"].isNull())
|
||||
tagGroupsObject.tagGroup = valueTagGroupsTagGroup["TagGroup"].asString();
|
||||
if(!valueTagGroupsTagGroup["TagGroupIndex"].isNull())
|
||||
tagGroupsObject.tagGroupIndex = std::stoi(valueTagGroupsTagGroup["TagGroupIndex"].asString());
|
||||
if(!valueTagGroupsTagGroup["TagGroup"].isNull())
|
||||
tagGroupsObject.tagGroup = valueTagGroupsTagGroup["TagGroup"].asString();
|
||||
if(!valueTagGroupsTagGroup["ScriptId"].isNull())
|
||||
tagGroupsObject.scriptId = valueTagGroupsTagGroup["ScriptId"].asString();
|
||||
if(!valueTagGroupsTagGroup["Id"].isNull())
|
||||
tagGroupsObject.id = valueTagGroupsTagGroup["Id"].asString();
|
||||
tagGroups_.push_back(tagGroupsObject);
|
||||
}
|
||||
auto allTagHitsListNode = value["TagHitsList"]["TagHits"];
|
||||
@@ -65,10 +65,10 @@ void DescribeTagHitsSummaryResult::parse(const std::string &payload)
|
||||
tagHitsListObject.tagName = valueTagHitsListTagHits["TagName"].asString();
|
||||
tagHitsList_.push_back(tagHitsListObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
|
||||
@@ -1,40 +1,36 @@
|
||||
/*
|
||||
* 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/outboundbot/model/DescribeTenantBindNumberRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::DescribeTenantBindNumberRequest;
|
||||
|
||||
DescribeTenantBindNumberRequest::DescribeTenantBindNumberRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "DescribeTenantBindNumber")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeTenantBindNumberRequest::~DescribeTenantBindNumberRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeTenantBindNumberRequest::getNumber()const
|
||||
{
|
||||
return number_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/DescribeTenantBindNumberRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::DescribeTenantBindNumberRequest;
|
||||
|
||||
DescribeTenantBindNumberRequest::DescribeTenantBindNumberRequest()
|
||||
: RpcServiceRequest("outboundbot", "2019-12-26", "DescribeTenantBindNumber") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DescribeTenantBindNumberRequest::setNumber(const std::string& number)
|
||||
{
|
||||
number_ = number;
|
||||
setParameter("Number", number);
|
||||
DescribeTenantBindNumberRequest::~DescribeTenantBindNumberRequest() {}
|
||||
|
||||
std::string DescribeTenantBindNumberRequest::getNumber() const {
|
||||
return number_;
|
||||
}
|
||||
|
||||
void DescribeTenantBindNumberRequest::setNumber(const std::string &number) {
|
||||
number_ = number;
|
||||
setParameter(std::string("Number"), number);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,150 +1,126 @@
|
||||
/*
|
||||
* 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/outboundbot/model/DialogueRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::DialogueRequest;
|
||||
|
||||
DialogueRequest::DialogueRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "Dialogue")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DialogueRequest::~DialogueRequest()
|
||||
{}
|
||||
|
||||
std::string DialogueRequest::getCallId()const
|
||||
{
|
||||
return callId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/DialogueRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::DialogueRequest;
|
||||
|
||||
DialogueRequest::DialogueRequest()
|
||||
: RpcServiceRequest("outboundbot", "2019-12-26", "Dialogue") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DialogueRequest::setCallId(const std::string& callId)
|
||||
{
|
||||
callId_ = callId;
|
||||
setParameter("CallId", callId);
|
||||
DialogueRequest::~DialogueRequest() {}
|
||||
|
||||
std::string DialogueRequest::getCallId() const {
|
||||
return callId_;
|
||||
}
|
||||
|
||||
long DialogueRequest::getInstanceOwnerId()const
|
||||
{
|
||||
return instanceOwnerId_;
|
||||
void DialogueRequest::setCallId(const std::string &callId) {
|
||||
callId_ = callId;
|
||||
setParameter(std::string("CallId"), callId);
|
||||
}
|
||||
|
||||
void DialogueRequest::setInstanceOwnerId(long instanceOwnerId)
|
||||
{
|
||||
instanceOwnerId_ = instanceOwnerId;
|
||||
setParameter("InstanceOwnerId", std::to_string(instanceOwnerId));
|
||||
long DialogueRequest::getInstanceOwnerId() const {
|
||||
return instanceOwnerId_;
|
||||
}
|
||||
|
||||
std::string DialogueRequest::getCalledNumber()const
|
||||
{
|
||||
return calledNumber_;
|
||||
void DialogueRequest::setInstanceOwnerId(long instanceOwnerId) {
|
||||
instanceOwnerId_ = instanceOwnerId;
|
||||
setParameter(std::string("InstanceOwnerId"), std::to_string(instanceOwnerId));
|
||||
}
|
||||
|
||||
void DialogueRequest::setCalledNumber(const std::string& calledNumber)
|
||||
{
|
||||
calledNumber_ = calledNumber;
|
||||
setParameter("CalledNumber", calledNumber);
|
||||
std::string DialogueRequest::getCalledNumber() const {
|
||||
return calledNumber_;
|
||||
}
|
||||
|
||||
std::string DialogueRequest::getCallType()const
|
||||
{
|
||||
return callType_;
|
||||
void DialogueRequest::setCalledNumber(const std::string &calledNumber) {
|
||||
calledNumber_ = calledNumber;
|
||||
setParameter(std::string("CalledNumber"), calledNumber);
|
||||
}
|
||||
|
||||
void DialogueRequest::setCallType(const std::string& callType)
|
||||
{
|
||||
callType_ = callType;
|
||||
setParameter("CallType", callType);
|
||||
std::string DialogueRequest::getCallType() const {
|
||||
return callType_;
|
||||
}
|
||||
|
||||
std::string DialogueRequest::getScenarioId()const
|
||||
{
|
||||
return scenarioId_;
|
||||
void DialogueRequest::setCallType(const std::string &callType) {
|
||||
callType_ = callType;
|
||||
setParameter(std::string("CallType"), callType);
|
||||
}
|
||||
|
||||
void DialogueRequest::setScenarioId(const std::string& scenarioId)
|
||||
{
|
||||
scenarioId_ = scenarioId;
|
||||
setParameter("ScenarioId", scenarioId);
|
||||
std::string DialogueRequest::getScenarioId() const {
|
||||
return scenarioId_;
|
||||
}
|
||||
|
||||
std::string DialogueRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
void DialogueRequest::setScenarioId(const std::string &scenarioId) {
|
||||
scenarioId_ = scenarioId;
|
||||
setParameter(std::string("ScenarioId"), scenarioId);
|
||||
}
|
||||
|
||||
void DialogueRequest::setTaskId(const std::string& taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setParameter("TaskId", taskId);
|
||||
std::string DialogueRequest::getTaskId() const {
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
std::string DialogueRequest::getUtterance()const
|
||||
{
|
||||
return utterance_;
|
||||
void DialogueRequest::setTaskId(const std::string &taskId) {
|
||||
taskId_ = taskId;
|
||||
setParameter(std::string("TaskId"), taskId);
|
||||
}
|
||||
|
||||
void DialogueRequest::setUtterance(const std::string& utterance)
|
||||
{
|
||||
utterance_ = utterance;
|
||||
setParameter("Utterance", utterance);
|
||||
std::string DialogueRequest::getUtterance() const {
|
||||
return utterance_;
|
||||
}
|
||||
|
||||
std::string DialogueRequest::getActionParams()const
|
||||
{
|
||||
return actionParams_;
|
||||
void DialogueRequest::setUtterance(const std::string &utterance) {
|
||||
utterance_ = utterance;
|
||||
setParameter(std::string("Utterance"), utterance);
|
||||
}
|
||||
|
||||
void DialogueRequest::setActionParams(const std::string& actionParams)
|
||||
{
|
||||
actionParams_ = actionParams;
|
||||
setParameter("ActionParams", actionParams);
|
||||
std::string DialogueRequest::getActionParams() const {
|
||||
return actionParams_;
|
||||
}
|
||||
|
||||
std::string DialogueRequest::getCallingNumber()const
|
||||
{
|
||||
return callingNumber_;
|
||||
void DialogueRequest::setActionParams(const std::string &actionParams) {
|
||||
actionParams_ = actionParams;
|
||||
setParameter(std::string("ActionParams"), actionParams);
|
||||
}
|
||||
|
||||
void DialogueRequest::setCallingNumber(const std::string& callingNumber)
|
||||
{
|
||||
callingNumber_ = callingNumber;
|
||||
setParameter("CallingNumber", callingNumber);
|
||||
std::string DialogueRequest::getCallingNumber() const {
|
||||
return callingNumber_;
|
||||
}
|
||||
|
||||
std::string DialogueRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
void DialogueRequest::setCallingNumber(const std::string &callingNumber) {
|
||||
callingNumber_ = callingNumber;
|
||||
setParameter(std::string("CallingNumber"), callingNumber);
|
||||
}
|
||||
|
||||
void DialogueRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
std::string DialogueRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string DialogueRequest::getActionKey()const
|
||||
{
|
||||
return actionKey_;
|
||||
void DialogueRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
void DialogueRequest::setActionKey(const std::string& actionKey)
|
||||
{
|
||||
actionKey_ = actionKey;
|
||||
setParameter("ActionKey", actionKey);
|
||||
std::string DialogueRequest::getActionKey() const {
|
||||
return actionKey_;
|
||||
}
|
||||
|
||||
void DialogueRequest::setActionKey(const std::string &actionKey) {
|
||||
actionKey_ = actionKey;
|
||||
setParameter(std::string("ActionKey"), actionKey);
|
||||
}
|
||||
|
||||
|
||||
@@ -48,10 +48,10 @@ void DialogueResult::parse(const std::string &payload)
|
||||
feedback_.content = feedbackNode["Content"].asString();
|
||||
if(!feedbackNode["Interruptible"].isNull())
|
||||
feedback_.interruptible = feedbackNode["Interruptible"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
|
||||
@@ -1,40 +1,36 @@
|
||||
/*
|
||||
* 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/outboundbot/model/DismissNumberDistrictInfoParsingResultRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::DismissNumberDistrictInfoParsingResultRequest;
|
||||
|
||||
DismissNumberDistrictInfoParsingResultRequest::DismissNumberDistrictInfoParsingResultRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "DismissNumberDistrictInfoParsingResult")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DismissNumberDistrictInfoParsingResultRequest::~DismissNumberDistrictInfoParsingResultRequest()
|
||||
{}
|
||||
|
||||
std::string DismissNumberDistrictInfoParsingResultRequest::getVersionId()const
|
||||
{
|
||||
return versionId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/DismissNumberDistrictInfoParsingResultRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::DismissNumberDistrictInfoParsingResultRequest;
|
||||
|
||||
DismissNumberDistrictInfoParsingResultRequest::DismissNumberDistrictInfoParsingResultRequest()
|
||||
: RpcServiceRequest("outboundbot", "2019-12-26", "DismissNumberDistrictInfoParsingResult") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DismissNumberDistrictInfoParsingResultRequest::setVersionId(const std::string& versionId)
|
||||
{
|
||||
versionId_ = versionId;
|
||||
setParameter("VersionId", versionId);
|
||||
DismissNumberDistrictInfoParsingResultRequest::~DismissNumberDistrictInfoParsingResultRequest() {}
|
||||
|
||||
std::string DismissNumberDistrictInfoParsingResultRequest::getVersionId() const {
|
||||
return versionId_;
|
||||
}
|
||||
|
||||
void DismissNumberDistrictInfoParsingResultRequest::setVersionId(const std::string &versionId) {
|
||||
versionId_ = versionId;
|
||||
setParameter(std::string("VersionId"), versionId);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* 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/outboundbot/model/DownloadRecordingRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::DownloadRecordingRequest;
|
||||
|
||||
DownloadRecordingRequest::DownloadRecordingRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "DownloadRecording")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DownloadRecordingRequest::~DownloadRecordingRequest()
|
||||
{}
|
||||
|
||||
std::string DownloadRecordingRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/DownloadRecordingRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::DownloadRecordingRequest;
|
||||
|
||||
DownloadRecordingRequest::DownloadRecordingRequest()
|
||||
: RpcServiceRequest("outboundbot", "2019-12-26", "DownloadRecording") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DownloadRecordingRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
DownloadRecordingRequest::~DownloadRecordingRequest() {}
|
||||
|
||||
std::string DownloadRecordingRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string DownloadRecordingRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
void DownloadRecordingRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
void DownloadRecordingRequest::setTaskId(const std::string& taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setParameter("TaskId", taskId);
|
||||
std::string DownloadRecordingRequest::getTaskId() const {
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void DownloadRecordingRequest::setTaskId(const std::string &taskId) {
|
||||
taskId_ = taskId;
|
||||
setParameter(std::string("TaskId"), taskId);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,14 +40,14 @@ void DownloadRecordingResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto downloadParamsNode = value["DownloadParams"];
|
||||
if(!downloadParamsNode["FileName"].isNull())
|
||||
downloadParams_.fileName = downloadParamsNode["FileName"].asString();
|
||||
if(!downloadParamsNode["SignatureUrl"].isNull())
|
||||
downloadParams_.signatureUrl = downloadParamsNode["SignatureUrl"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!downloadParamsNode["FileName"].isNull())
|
||||
downloadParams_.fileName = downloadParamsNode["FileName"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* 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/outboundbot/model/DuplicateScriptRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::DuplicateScriptRequest;
|
||||
|
||||
DuplicateScriptRequest::DuplicateScriptRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "DuplicateScript")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DuplicateScriptRequest::~DuplicateScriptRequest()
|
||||
{}
|
||||
|
||||
std::string DuplicateScriptRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/DuplicateScriptRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::DuplicateScriptRequest;
|
||||
|
||||
DuplicateScriptRequest::DuplicateScriptRequest()
|
||||
: RpcServiceRequest("outboundbot", "2019-12-26", "DuplicateScript") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DuplicateScriptRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
DuplicateScriptRequest::~DuplicateScriptRequest() {}
|
||||
|
||||
std::string DuplicateScriptRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string DuplicateScriptRequest::getSourceScriptId()const
|
||||
{
|
||||
return sourceScriptId_;
|
||||
void DuplicateScriptRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
void DuplicateScriptRequest::setSourceScriptId(const std::string& sourceScriptId)
|
||||
{
|
||||
sourceScriptId_ = sourceScriptId;
|
||||
setParameter("SourceScriptId", sourceScriptId);
|
||||
std::string DuplicateScriptRequest::getSourceScriptId() const {
|
||||
return sourceScriptId_;
|
||||
}
|
||||
|
||||
std::string DuplicateScriptRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
void DuplicateScriptRequest::setSourceScriptId(const std::string &sourceScriptId) {
|
||||
sourceScriptId_ = sourceScriptId;
|
||||
setParameter(std::string("SourceScriptId"), sourceScriptId);
|
||||
}
|
||||
|
||||
void DuplicateScriptRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
std::string DuplicateScriptRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void DuplicateScriptRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,16 +39,16 @@ void DuplicateScriptResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
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();
|
||||
if(!value["ScriptId"].isNull())
|
||||
scriptId_ = value["ScriptId"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* 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/outboundbot/model/ExportScriptRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::ExportScriptRequest;
|
||||
|
||||
ExportScriptRequest::ExportScriptRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "ExportScript")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ExportScriptRequest::~ExportScriptRequest()
|
||||
{}
|
||||
|
||||
std::string ExportScriptRequest::getScriptId()const
|
||||
{
|
||||
return scriptId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/ExportScriptRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::ExportScriptRequest;
|
||||
|
||||
ExportScriptRequest::ExportScriptRequest()
|
||||
: RpcServiceRequest("outboundbot", "2019-12-26", "ExportScript") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void ExportScriptRequest::setScriptId(const std::string& scriptId)
|
||||
{
|
||||
scriptId_ = scriptId;
|
||||
setParameter("ScriptId", scriptId);
|
||||
ExportScriptRequest::~ExportScriptRequest() {}
|
||||
|
||||
std::string ExportScriptRequest::getScriptId() const {
|
||||
return scriptId_;
|
||||
}
|
||||
|
||||
std::string ExportScriptRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
void ExportScriptRequest::setScriptId(const std::string &scriptId) {
|
||||
scriptId_ = scriptId;
|
||||
setParameter(std::string("ScriptId"), scriptId);
|
||||
}
|
||||
|
||||
void ExportScriptRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
std::string ExportScriptRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void ExportScriptRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
|
||||
@@ -42,10 +42,10 @@ void ExportScriptResult::parse(const std::string &payload)
|
||||
auto downloadParamsNode = value["DownloadParams"];
|
||||
if(!downloadParamsNode["SignatureUrl"].isNull())
|
||||
downloadParams_.signatureUrl = downloadParamsNode["SignatureUrl"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
|
||||
45
outboundbot/src/model/GenerateUploadUrlRequest.cc
Normal file
45
outboundbot/src/model/GenerateUploadUrlRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* 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/outboundbot/model/GenerateUploadUrlRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::GenerateUploadUrlRequest;
|
||||
|
||||
GenerateUploadUrlRequest::GenerateUploadUrlRequest()
|
||||
: RpcServiceRequest("outboundbot", "2019-12-26", "GenerateUploadUrl") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GenerateUploadUrlRequest::~GenerateUploadUrlRequest() {}
|
||||
|
||||
std::string GenerateUploadUrlRequest::getFileName() const {
|
||||
return fileName_;
|
||||
}
|
||||
|
||||
void GenerateUploadUrlRequest::setFileName(const std::string &fileName) {
|
||||
fileName_ = fileName;
|
||||
setParameter(std::string("FileName"), fileName);
|
||||
}
|
||||
|
||||
std::string GenerateUploadUrlRequest::getKey() const {
|
||||
return key_;
|
||||
}
|
||||
|
||||
void GenerateUploadUrlRequest::setKey(const std::string &key) {
|
||||
key_ = key;
|
||||
setParameter(std::string("Key"), key);
|
||||
}
|
||||
|
||||
94
outboundbot/src/model/GenerateUploadUrlResult.cc
Normal file
94
outboundbot/src/model/GenerateUploadUrlResult.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/outboundbot/model/GenerateUploadUrlResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::OutboundBot;
|
||||
using namespace AlibabaCloud::OutboundBot::Model;
|
||||
|
||||
GenerateUploadUrlResult::GenerateUploadUrlResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GenerateUploadUrlResult::GenerateUploadUrlResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GenerateUploadUrlResult::~GenerateUploadUrlResult()
|
||||
{}
|
||||
|
||||
void GenerateUploadUrlResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["AccessId"].isNull())
|
||||
data_.accessId = dataNode["AccessId"].asString();
|
||||
if(!dataNode["Policy"].isNull())
|
||||
data_.policy = dataNode["Policy"].asString();
|
||||
if(!dataNode["Signature"].isNull())
|
||||
data_.signature = dataNode["Signature"].asString();
|
||||
if(!dataNode["Folder"].isNull())
|
||||
data_.folder = dataNode["Folder"].asString();
|
||||
if(!dataNode["Host"].isNull())
|
||||
data_.host = dataNode["Host"].asString();
|
||||
if(!dataNode["Expire"].isNull())
|
||||
data_.expire = std::stoi(dataNode["Expire"].asString());
|
||||
if(!dataNode["Success"].isNull())
|
||||
data_.success = dataNode["Success"].asString() == "true";
|
||||
if(!dataNode["Message"].isNull())
|
||||
data_.message = dataNode["Message"].asString();
|
||||
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();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string GenerateUploadUrlResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int GenerateUploadUrlResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
GenerateUploadUrlResult::Data GenerateUploadUrlResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GenerateUploadUrlResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GenerateUploadUrlResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* 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/outboundbot/model/GetAfterAnswerDelayPlaybackRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::GetAfterAnswerDelayPlaybackRequest;
|
||||
|
||||
GetAfterAnswerDelayPlaybackRequest::GetAfterAnswerDelayPlaybackRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "GetAfterAnswerDelayPlayback")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetAfterAnswerDelayPlaybackRequest::~GetAfterAnswerDelayPlaybackRequest()
|
||||
{}
|
||||
|
||||
int GetAfterAnswerDelayPlaybackRequest::getStrategyLevel()const
|
||||
{
|
||||
return strategyLevel_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/GetAfterAnswerDelayPlaybackRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::GetAfterAnswerDelayPlaybackRequest;
|
||||
|
||||
GetAfterAnswerDelayPlaybackRequest::GetAfterAnswerDelayPlaybackRequest()
|
||||
: RpcServiceRequest("outboundbot", "2019-12-26", "GetAfterAnswerDelayPlayback") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetAfterAnswerDelayPlaybackRequest::setStrategyLevel(int strategyLevel)
|
||||
{
|
||||
strategyLevel_ = strategyLevel;
|
||||
setParameter("StrategyLevel", std::to_string(strategyLevel));
|
||||
GetAfterAnswerDelayPlaybackRequest::~GetAfterAnswerDelayPlaybackRequest() {}
|
||||
|
||||
int GetAfterAnswerDelayPlaybackRequest::getStrategyLevel() const {
|
||||
return strategyLevel_;
|
||||
}
|
||||
|
||||
std::string GetAfterAnswerDelayPlaybackRequest::getEntryId()const
|
||||
{
|
||||
return entryId_;
|
||||
void GetAfterAnswerDelayPlaybackRequest::setStrategyLevel(int strategyLevel) {
|
||||
strategyLevel_ = strategyLevel;
|
||||
setParameter(std::string("StrategyLevel"), std::to_string(strategyLevel));
|
||||
}
|
||||
|
||||
void GetAfterAnswerDelayPlaybackRequest::setEntryId(const std::string& entryId)
|
||||
{
|
||||
entryId_ = entryId;
|
||||
setParameter("EntryId", entryId);
|
||||
std::string GetAfterAnswerDelayPlaybackRequest::getEntryId() const {
|
||||
return entryId_;
|
||||
}
|
||||
|
||||
void GetAfterAnswerDelayPlaybackRequest::setEntryId(const std::string &entryId) {
|
||||
entryId_ = entryId;
|
||||
setParameter(std::string("EntryId"), entryId);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void GetAfterAnswerDelayPlaybackResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
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();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["AfterAnswerDelayPlayback"].isNull())
|
||||
afterAnswerDelayPlayback_ = std::stoi(value["AfterAnswerDelayPlayback"].asString());
|
||||
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* 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/outboundbot/model/GetAsrServerInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::GetAsrServerInfoRequest;
|
||||
|
||||
GetAsrServerInfoRequest::GetAsrServerInfoRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "GetAsrServerInfo")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetAsrServerInfoRequest::~GetAsrServerInfoRequest()
|
||||
{}
|
||||
|
||||
int GetAsrServerInfoRequest::getStrategyLevel()const
|
||||
{
|
||||
return strategyLevel_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/GetAsrServerInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::GetAsrServerInfoRequest;
|
||||
|
||||
GetAsrServerInfoRequest::GetAsrServerInfoRequest()
|
||||
: RpcServiceRequest("outboundbot", "2019-12-26", "GetAsrServerInfo") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetAsrServerInfoRequest::setStrategyLevel(int strategyLevel)
|
||||
{
|
||||
strategyLevel_ = strategyLevel;
|
||||
setParameter("StrategyLevel", std::to_string(strategyLevel));
|
||||
GetAsrServerInfoRequest::~GetAsrServerInfoRequest() {}
|
||||
|
||||
int GetAsrServerInfoRequest::getStrategyLevel() const {
|
||||
return strategyLevel_;
|
||||
}
|
||||
|
||||
std::string GetAsrServerInfoRequest::getEntryId()const
|
||||
{
|
||||
return entryId_;
|
||||
void GetAsrServerInfoRequest::setStrategyLevel(int strategyLevel) {
|
||||
strategyLevel_ = strategyLevel;
|
||||
setParameter(std::string("StrategyLevel"), std::to_string(strategyLevel));
|
||||
}
|
||||
|
||||
void GetAsrServerInfoRequest::setEntryId(const std::string& entryId)
|
||||
{
|
||||
entryId_ = entryId;
|
||||
setParameter("EntryId", entryId);
|
||||
std::string GetAsrServerInfoRequest::getEntryId() const {
|
||||
return entryId_;
|
||||
}
|
||||
|
||||
void GetAsrServerInfoRequest::setEntryId(const std::string &entryId) {
|
||||
entryId_ = entryId;
|
||||
setParameter(std::string("EntryId"), entryId);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void GetAsrServerInfoResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user