Supported new features for outbound.

This commit is contained in:
sdk-team
2021-06-25 06:29:05 +00:00
parent 9b0afb4553
commit c89b84b7de
188 changed files with 12465 additions and 245 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -64,6 +64,28 @@ void AssignJobsRequest::setInstanceId(const std::string& instanceId)
setParameter("InstanceId", instanceId);
}
std::string AssignJobsRequest::getRosterType()const
{
return rosterType_;
}
void AssignJobsRequest::setRosterType(const std::string& rosterType)
{
rosterType_ = rosterType;
setParameter("RosterType", rosterType);
}
std::string AssignJobsRequest::getJobDataParsingTaskId()const
{
return jobDataParsingTaskId_;
}
void AssignJobsRequest::setJobDataParsingTaskId(const std::string& jobDataParsingTaskId)
{
jobDataParsingTaskId_ = jobDataParsingTaskId;
setParameter("JobDataParsingTaskId", jobDataParsingTaskId);
}
std::string AssignJobsRequest::getStrategyJson()const
{
return strategyJson_;
@@ -86,3 +108,14 @@ void AssignJobsRequest::setJobGroupId(const std::string& jobGroupId)
setParameter("JobGroupId", jobGroupId);
}
bool AssignJobsRequest::getIsAsynchrony()const
{
return isAsynchrony_;
}
void AssignJobsRequest::setIsAsynchrony(bool isAsynchrony)
{
isAsynchrony_ = isAsynchrony;
setParameter("IsAsynchrony", isAsynchrony ? "true" : "false");
}

View File

@@ -39,6 +39,9 @@ void AssignJobsResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allJobsId = value["JobsId"]["JobsId"];
for (const auto &item : allJobsId)
jobsId_.push_back(item.asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["HttpStatusCode"].isNull())
@@ -52,6 +55,11 @@ void AssignJobsResult::parse(const std::string &payload)
}
std::vector<std::string> AssignJobsResult::getJobsId()const
{
return jobsId_;
}
std::string AssignJobsResult::getJobGroupId()const
{
return jobGroupId_;

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/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_;
}
void ChangeResourceGroupRequest::setResourceId(const std::string& resourceId)
{
resourceId_ = resourceId;
setParameter("ResourceId", resourceId);
}
std::string ChangeResourceGroupRequest::getNewResourceGroupId()const
{
return newResourceGroupId_;
}
void ChangeResourceGroupRequest::setNewResourceGroupId(const std::string& newResourceGroupId)
{
newResourceGroupId_ = newResourceGroupId;
setParameter("NewResourceGroupId", newResourceGroupId);
}

View File

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

View File

@@ -0,0 +1,119 @@
/*
* 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::getDescription()const
{
return description_;
}
void CreateBatchRepeatJobRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
std::string CreateBatchRepeatJobRequest::getScriptId()const
{
return scriptId_;
}
void CreateBatchRepeatJobRequest::setScriptId(const std::string& scriptId)
{
scriptId_ = scriptId;
setParameter("ScriptId", scriptId);
}
std::vector<std::string> CreateBatchRepeatJobRequest::getCallingNumber()const
{
return callingNumber_;
}
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::string CreateBatchRepeatJobRequest::getInstanceId()const
{
return instanceId_;
}
void CreateBatchRepeatJobRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string CreateBatchRepeatJobRequest::getFilterStatus()const
{
return filterStatus_;
}
void CreateBatchRepeatJobRequest::setFilterStatus(const std::string& filterStatus)
{
filterStatus_ = filterStatus;
setParameter("FilterStatus", filterStatus);
}
std::string CreateBatchRepeatJobRequest::getStrategyJson()const
{
return strategyJson_;
}
void CreateBatchRepeatJobRequest::setStrategyJson(const std::string& strategyJson)
{
strategyJson_ = strategyJson;
setParameter("StrategyJson", strategyJson);
}
std::string CreateBatchRepeatJobRequest::getName()const
{
return name_;
}
void CreateBatchRepeatJobRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
std::string CreateBatchRepeatJobRequest::getSourceGroupId()const
{
return sourceGroupId_;
}
void CreateBatchRepeatJobRequest::setSourceGroupId(const std::string& sourceGroupId)
{
sourceGroupId_ = sourceGroupId;
setParameter("SourceGroupId", sourceGroupId);
}

View File

@@ -0,0 +1,80 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/outboundbot/model/CreateBatchRepeatJobResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
CreateBatchRepeatJobResult::CreateBatchRepeatJobResult() :
ServiceResult()
{}
CreateBatchRepeatJobResult::CreateBatchRepeatJobResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateBatchRepeatJobResult::~CreateBatchRepeatJobResult()
{}
void CreateBatchRepeatJobResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto jobGroupNode = value["JobGroup"];
if(!jobGroupNode["Id"].isNull())
jobGroup_.id = jobGroupNode["Id"].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());
}
CreateBatchRepeatJobResult::JobGroup CreateBatchRepeatJobResult::getJobGroup()const
{
return jobGroup_;
}
std::string CreateBatchRepeatJobResult::getMessage()const
{
return message_;
}
int CreateBatchRepeatJobResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string CreateBatchRepeatJobResult::getCode()const
{
return code_;
}
bool CreateBatchRepeatJobResult::getSuccess()const
{
return success_;
}

View File

@@ -49,6 +49,17 @@ void CreateInstanceRequest::setSecretKey(const std::string& secretKey)
setParameter("SecretKey", secretKey);
}
std::string CreateInstanceRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void CreateInstanceRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string CreateInstanceRequest::getEndpoint()const
{
return endpoint_;

View File

@@ -52,15 +52,23 @@ void CreateInstanceResult::parse(const std::string &payload)
instance_.instanceName = instanceNode["InstanceName"].asString();
if(!instanceNode["MaxConcurrentConversation"].isNull())
instance_.maxConcurrentConversation = std::stoi(instanceNode["MaxConcurrentConversation"].asString());
if(!instanceNode["Owner"].isNull())
instance_.owner = instanceNode["Owner"].asString();
if(!instanceNode["NluServiceType"].isNull())
instance_.nluServiceType = instanceNode["NluServiceType"].asString();
if(!instanceNode["Owner"].isNull())
instance_.owner = instanceNode["Owner"].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["ResourceGroupId"].isNull())
instance_.resourceGroupId = instanceNode["ResourceGroupId"].asString();
auto nluProfileNode = instanceNode["NluProfile"];
if(!nluProfileNode["Endpoint"].isNull())
instance_.nluProfile.endpoint = nluProfileNode["Endpoint"].asString();
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())

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/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_;
}
void CreateJobDataParsingTaskRequest::setJobFilePath(const std::string& jobFilePath)
{
jobFilePath_ = jobFilePath;
setParameter("JobFilePath", jobFilePath);
}
std::string CreateJobDataParsingTaskRequest::getInstanceId()const
{
return instanceId_;
}
void CreateJobDataParsingTaskRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}

View File

@@ -0,0 +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/CreateJobDataParsingTaskResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
CreateJobDataParsingTaskResult::CreateJobDataParsingTaskResult() :
ServiceResult()
{}
CreateJobDataParsingTaskResult::CreateJobDataParsingTaskResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateJobDataParsingTaskResult::~CreateJobDataParsingTaskResult()
{}
void CreateJobDataParsingTaskResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = 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();
}
std::string CreateJobDataParsingTaskResult::getJobDataParsingTaskId()const
{
return jobDataParsingTaskId_;
}
std::string CreateJobDataParsingTaskResult::getMessage()const
{
return message_;
}
int CreateJobDataParsingTaskResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string CreateJobDataParsingTaskResult::getCode()const
{
return code_;
}
bool CreateJobDataParsingTaskResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,64 @@
/*
* 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_;
}
void CreateJobGroupExportTaskRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string CreateJobGroupExportTaskRequest::getJobGroupId()const
{
return jobGroupId_;
}
void CreateJobGroupExportTaskRequest::setJobGroupId(const std::string& jobGroupId)
{
jobGroupId_ = jobGroupId;
setParameter("JobGroupId", jobGroupId);
}
std::vector<std::string> CreateJobGroupExportTaskRequest::getOption()const
{
return option_;
}
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));
}
}

View File

@@ -0,0 +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/CreateJobGroupExportTaskResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
CreateJobGroupExportTaskResult::CreateJobGroupExportTaskResult() :
ServiceResult()
{}
CreateJobGroupExportTaskResult::CreateJobGroupExportTaskResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateJobGroupExportTaskResult::~CreateJobGroupExportTaskResult()
{}
void CreateJobGroupExportTaskResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = 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();
}
std::string CreateJobGroupExportTaskResult::getTaskId()const
{
return taskId_;
}
std::string CreateJobGroupExportTaskResult::getMessage()const
{
return message_;
}
int CreateJobGroupExportTaskResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string CreateJobGroupExportTaskResult::getCode()const
{
return code_;
}
bool CreateJobGroupExportTaskResult::getSuccess()const
{
return success_;
}

View File

@@ -42,6 +42,8 @@ void CreateJobGroupResult::parse(const std::string &payload)
auto jobGroupNode = value["JobGroup"];
if(!jobGroupNode["CreationTime"].isNull())
jobGroup_.creationTime = std::stol(jobGroupNode["CreationTime"].asString());
if(!jobGroupNode["JobDataParsingTaskId"].isNull())
jobGroup_.jobDataParsingTaskId = jobGroupNode["JobDataParsingTaskId"].asString();
if(!jobGroupNode["JobFilePath"].isNull())
jobGroup_.jobFilePath = jobGroupNode["JobFilePath"].asString();
if(!jobGroupNode["JobGroupDescription"].isNull())
@@ -50,8 +52,23 @@ void CreateJobGroupResult::parse(const std::string &payload)
jobGroup_.jobGroupId = jobGroupNode["JobGroupId"].asString();
if(!jobGroupNode["JobGroupName"].isNull())
jobGroup_.jobGroupName = jobGroupNode["JobGroupName"].asString();
if(!jobGroupNode["ModifyTime"].isNull())
jobGroup_.modifyTime = jobGroupNode["ModifyTime"].asString();
if(!jobGroupNode["ScenarioId"].isNull())
jobGroup_.scenarioId = jobGroupNode["ScenarioId"].asString();
if(!jobGroupNode["ScriptName"].isNull())
jobGroup_.scriptName = jobGroupNode["ScriptName"].asString();
if(!jobGroupNode["ScriptVersion"].isNull())
jobGroup_.scriptVersion = jobGroupNode["ScriptVersion"].asString();
if(!jobGroupNode["Status"].isNull())
jobGroup_.status = jobGroupNode["Status"].asString();
auto exportProgressNode = jobGroupNode["ExportProgress"];
if(!exportProgressNode["FileHttpUrl"].isNull())
jobGroup_.exportProgress.fileHttpUrl = exportProgressNode["FileHttpUrl"].asString();
if(!exportProgressNode["Progress"].isNull())
jobGroup_.exportProgress.progress = exportProgressNode["Progress"].asString();
if(!exportProgressNode["Status"].isNull())
jobGroup_.exportProgress.status = exportProgressNode["Status"].asString();
auto strategyNode = jobGroupNode["Strategy"];
if(!strategyNode["Customized"].isNull())
jobGroup_.strategy.customized = strategyNode["Customized"].asString();

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/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_;
}
void DeleteContactBlockListRequest::setContactBlockListId(const std::string& contactBlockListId)
{
contactBlockListId_ = contactBlockListId;
setParameter("ContactBlockListId", contactBlockListId);
}
std::string DeleteContactBlockListRequest::get_Operator()const
{
return _operator_;
}
void DeleteContactBlockListRequest::set_Operator(const std::string& _operator)
{
_operator_ = _operator;
setParameter("_Operator", _operator);
}
std::string DeleteContactBlockListRequest::getInstanceId()const
{
return instanceId_;
}
void DeleteContactBlockListRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}

View File

@@ -0,0 +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/DeleteContactBlockListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
DeleteContactBlockListResult::DeleteContactBlockListResult() :
ServiceResult()
{}
DeleteContactBlockListResult::DeleteContactBlockListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteContactBlockListResult::~DeleteContactBlockListResult()
{}
void DeleteContactBlockListResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = 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());
}
std::string DeleteContactBlockListResult::getMessage()const
{
return message_;
}
int DeleteContactBlockListResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
int DeleteContactBlockListResult::getAffectedRows()const
{
return affectedRows_;
}
std::string DeleteContactBlockListResult::getCode()const
{
return code_;
}
bool DeleteContactBlockListResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/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_;
}
void DeleteContactWhiteListRequest::set_Operator(const std::string& _operator)
{
_operator_ = _operator;
setParameter("_Operator", _operator);
}
std::string DeleteContactWhiteListRequest::getInstanceId()const
{
return instanceId_;
}
void DeleteContactWhiteListRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string DeleteContactWhiteListRequest::getContactWhiteListId()const
{
return contactWhiteListId_;
}
void DeleteContactWhiteListRequest::setContactWhiteListId(const std::string& contactWhiteListId)
{
contactWhiteListId_ = contactWhiteListId;
setParameter("ContactWhiteListId", contactWhiteListId);
}

View File

@@ -0,0 +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/DeleteContactWhiteListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
DeleteContactWhiteListResult::DeleteContactWhiteListResult() :
ServiceResult()
{}
DeleteContactWhiteListResult::DeleteContactWhiteListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteContactWhiteListResult::~DeleteContactWhiteListResult()
{}
void DeleteContactWhiteListResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = 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());
}
std::string DeleteContactWhiteListResult::getMessage()const
{
return message_;
}
int DeleteContactWhiteListResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
int DeleteContactWhiteListResult::getAffectedRows()const
{
return affectedRows_;
}
std::string DeleteContactWhiteListResult::getCode()const
{
return code_;
}
bool DeleteContactWhiteListResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/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_;
}
void DescribeDialogueNodeStatisticsRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string DescribeDialogueNodeStatisticsRequest::getJobGroupId()const
{
return jobGroupId_;
}
void DescribeDialogueNodeStatisticsRequest::setJobGroupId(const std::string& jobGroupId)
{
jobGroupId_ = jobGroupId;
setParameter("JobGroupId", jobGroupId);
}
int DescribeDialogueNodeStatisticsRequest::getLimit()const
{
return limit_;
}
void DescribeDialogueNodeStatisticsRequest::setLimit(int limit)
{
limit_ = limit;
setParameter("Limit", std::to_string(limit));
}

View File

@@ -0,0 +1,120 @@
/*
* 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/DescribeDialogueNodeStatisticsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
DescribeDialogueNodeStatisticsResult::DescribeDialogueNodeStatisticsResult() :
ServiceResult()
{}
DescribeDialogueNodeStatisticsResult::DescribeDialogueNodeStatisticsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDialogueNodeStatisticsResult::~DescribeDialogueNodeStatisticsResult()
{}
void DescribeDialogueNodeStatisticsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allNoAnswerDialogueNodesNode = value["NoAnswerDialogueNodes"]["NoAnswerDialogueNode"];
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());
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["TotalCompleted"].isNull())
totalCompleted_ = std::stoi(value["TotalCompleted"].asString());
}
std::string DescribeDialogueNodeStatisticsResult::getMessage()const
{
return message_;
}
std::vector<DescribeDialogueNodeStatisticsResult::NoAnswerDialogueNode> DescribeDialogueNodeStatisticsResult::getNoAnswerDialogueNodes()const
{
return noAnswerDialogueNodes_;
}
std::string DescribeDialogueNodeStatisticsResult::getInstanceId()const
{
return instanceId_;
}
int DescribeDialogueNodeStatisticsResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
int DescribeDialogueNodeStatisticsResult::getTotalCompleted()const
{
return totalCompleted_;
}
std::string DescribeDialogueNodeStatisticsResult::getCode()const
{
return code_;
}
bool DescribeDialogueNodeStatisticsResult::getSuccess()const
{
return success_;
}
std::string DescribeDialogueNodeStatisticsResult::getGroupId()const
{
return groupId_;
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/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_;
}
void DescribeDsReportsRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string DescribeDsReportsRequest::getJobGroupId()const
{
return jobGroupId_;
}
void DescribeDsReportsRequest::setJobGroupId(const std::string& jobGroupId)
{
jobGroupId_ = jobGroupId;
setParameter("JobGroupId", jobGroupId);
}

View File

@@ -0,0 +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/DescribeDsReportsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
DescribeDsReportsResult::DescribeDsReportsResult() :
ServiceResult()
{}
DescribeDsReportsResult::DescribeDsReportsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDsReportsResult::~DescribeDsReportsResult()
{}
void DescribeDsReportsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = 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();
}
std::string DescribeDsReportsResult::getMessage()const
{
return message_;
}
int DescribeDsReportsResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string DescribeDsReportsResult::getDsReports()const
{
return dsReports_;
}
std::string DescribeDsReportsResult::getCode()const
{
return code_;
}
bool DescribeDsReportsResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/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_;
}
void DescribeGroupExecutingInfoRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string DescribeGroupExecutingInfoRequest::getJobGroupId()const
{
return jobGroupId_;
}
void DescribeGroupExecutingInfoRequest::setJobGroupId(const std::string& jobGroupId)
{
jobGroupId_ = jobGroupId;
setParameter("JobGroupId", jobGroupId);
}

View File

@@ -0,0 +1,127 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/outboundbot/model/DescribeGroupExecutingInfoResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
DescribeGroupExecutingInfoResult::DescribeGroupExecutingInfoResult() :
ServiceResult()
{}
DescribeGroupExecutingInfoResult::DescribeGroupExecutingInfoResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeGroupExecutingInfoResult::~DescribeGroupExecutingInfoResult()
{}
void DescribeGroupExecutingInfoResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
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["HangUpByClientNum"].isNull())
executingInfo_.hangUpByClientNum = std::stoi(executingInfoNode["HangUpByClientNum"].asString());
if(!executingInfoNode["TransferByIntentNum"].isNull())
executingInfo_.transferByIntentNum = std::stoi(executingInfoNode["TransferByIntentNum"].asString());
if(!executingInfoNode["TransferByNoAnswer"].isNull())
executingInfo_.transferByNoAnswer = std::stoi(executingInfoNode["TransferByNoAnswer"].asString());
auto jobsProgressNode = executingInfoNode["JobsProgress"];
if(!jobsProgressNode["TotalJobs"].isNull())
executingInfo_.jobsProgress.totalJobs = std::stoi(jobsProgressNode["TotalJobs"].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["CancelledNum"].isNull())
executingInfo_.jobsProgress.cancelledNum = std::stoi(jobsProgressNode["CancelledNum"].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["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();
}
std::string DescribeGroupExecutingInfoResult::getMessage()const
{
return message_;
}
std::string DescribeGroupExecutingInfoResult::getInstanceId()const
{
return instanceId_;
}
DescribeGroupExecutingInfoResult::ExecutingInfo DescribeGroupExecutingInfoResult::getExecutingInfo()const
{
return executingInfo_;
}
int DescribeGroupExecutingInfoResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string DescribeGroupExecutingInfoResult::getCode()const
{
return code_;
}
bool DescribeGroupExecutingInfoResult::getSuccess()const
{
return success_;
}
std::string DescribeGroupExecutingInfoResult::getGroupId()const
{
return groupId_;
}

View File

@@ -52,15 +52,23 @@ void DescribeInstanceResult::parse(const std::string &payload)
instance_.instanceName = instanceNode["InstanceName"].asString();
if(!instanceNode["MaxConcurrentConversation"].isNull())
instance_.maxConcurrentConversation = std::stoi(instanceNode["MaxConcurrentConversation"].asString());
if(!instanceNode["Owner"].isNull())
instance_.owner = instanceNode["Owner"].asString();
if(!instanceNode["NluServiceType"].isNull())
instance_.nluServiceType = instanceNode["NluServiceType"].asString();
if(!instanceNode["Owner"].isNull())
instance_.owner = instanceNode["Owner"].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["ResourceGroupId"].isNull())
instance_.resourceGroupId = instanceNode["ResourceGroupId"].asString();
auto nluProfileNode = instanceNode["NluProfile"];
if(!nluProfileNode["Endpoint"].isNull())
instance_.nluProfile.endpoint = nluProfileNode["Endpoint"].asString();
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())

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/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_;
}
void DescribeIntentStatisticsRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string DescribeIntentStatisticsRequest::getJobGroupId()const
{
return jobGroupId_;
}
void DescribeIntentStatisticsRequest::setJobGroupId(const std::string& jobGroupId)
{
jobGroupId_ = jobGroupId;
setParameter("JobGroupId", jobGroupId);
}
int DescribeIntentStatisticsRequest::getLimit()const
{
return limit_;
}
void DescribeIntentStatisticsRequest::setLimit(int limit)
{
limit_ = limit;
setParameter("Limit", std::to_string(limit));
}

View File

@@ -0,0 +1,163 @@
/*
* 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/DescribeIntentStatisticsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
DescribeIntentStatisticsResult::DescribeIntentStatisticsResult() :
ServiceResult()
{}
DescribeIntentStatisticsResult::DescribeIntentStatisticsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeIntentStatisticsResult::~DescribeIntentStatisticsResult()
{}
void DescribeIntentStatisticsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allProcessIntentsNode = value["ProcessIntents"]["IntentStatisticsItem"];
for (auto valueProcessIntentsIntentStatisticsItem : allProcessIntentsNode)
{
IntentStatisticsItem processIntentsObject;
if(!valueProcessIntentsIntentStatisticsItem["InstanceId"].isNull())
processIntentsObject.instanceId = valueProcessIntentsIntentStatisticsItem["InstanceId"].asString();
if(!valueProcessIntentsIntentStatisticsItem["GroupId"].isNull())
processIntentsObject.groupId = valueProcessIntentsIntentStatisticsItem["GroupId"].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["GroupId"].isNull())
globalIntentsObject.groupId = valueGlobalIntentsIntentStatisticsItem["GroupId"].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"];
for (auto valueIntentsAfterNoAnswerIntentStatisticsItem : allIntentsAfterNoAnswerNode)
{
IntentStatisticsItem1 intentsAfterNoAnswerObject;
if(!valueIntentsAfterNoAnswerIntentStatisticsItem["InstanceId"].isNull())
intentsAfterNoAnswerObject.instanceId = valueIntentsAfterNoAnswerIntentStatisticsItem["InstanceId"].asString();
intentsAfterNoAnswer_.push_back(intentsAfterNoAnswerObject);
}
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["GlobalIntentNum"].isNull())
globalIntentNum_ = std::stoi(value["GlobalIntentNum"].asString());
}
std::vector<DescribeIntentStatisticsResult::IntentStatisticsItem1> DescribeIntentStatisticsResult::getIntentsAfterNoAnswer()const
{
return intentsAfterNoAnswer_;
}
int DescribeIntentStatisticsResult::getGlobalIntentNum()const
{
return globalIntentNum_;
}
std::vector<DescribeIntentStatisticsResult::IntentStatisticsItem> DescribeIntentStatisticsResult::getProcessIntents()const
{
return processIntents_;
}
std::string DescribeIntentStatisticsResult::getMessage()const
{
return message_;
}
std::string DescribeIntentStatisticsResult::getInstanceId()const
{
return instanceId_;
}
int DescribeIntentStatisticsResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string DescribeIntentStatisticsResult::getCode()const
{
return code_;
}
int DescribeIntentStatisticsResult::getProcessIntentNum()const
{
return processIntentNum_;
}
std::vector<DescribeIntentStatisticsResult::IntentStatisticsItem> DescribeIntentStatisticsResult::getGlobalIntents()const
{
return globalIntents_;
}
bool DescribeIntentStatisticsResult::getSuccess()const
{
return success_;
}
std::string DescribeIntentStatisticsResult::getGroupId()const
{
return groupId_;
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/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_;
}
void DescribeJobDataParsingTaskProgressRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string DescribeJobDataParsingTaskProgressRequest::getJobDataParsingTaskId()const
{
return jobDataParsingTaskId_;
}
void DescribeJobDataParsingTaskProgressRequest::setJobDataParsingTaskId(const std::string& jobDataParsingTaskId)
{
jobDataParsingTaskId_ = jobDataParsingTaskId;
setParameter("JobDataParsingTaskId", jobDataParsingTaskId);
}

View File

@@ -0,0 +1,88 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/outboundbot/model/DescribeJobDataParsingTaskProgressResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
DescribeJobDataParsingTaskProgressResult::DescribeJobDataParsingTaskProgressResult() :
ServiceResult()
{}
DescribeJobDataParsingTaskProgressResult::DescribeJobDataParsingTaskProgressResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeJobDataParsingTaskProgressResult::~DescribeJobDataParsingTaskProgressResult()
{}
void DescribeJobDataParsingTaskProgressResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto progressNode = value["Progress"];
if(!progressNode["Status"].isNull())
progress_.status = progressNode["Status"].asString();
if(!progressNode["FailErrorCode"].isNull())
progress_.failErrorCode = progressNode["FailErrorCode"].asString();
if(!progressNode["FailReason"].isNull())
progress_.failReason = progressNode["FailReason"].asString();
if(!progressNode["TotalJobCount"].isNull())
progress_.totalJobCount = std::stoi(progressNode["TotalJobCount"].asString());
if(!progressNode["HandledJobCount"].isNull())
progress_.handledJobCount = std::stoi(progressNode["HandledJobCount"].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());
}
DescribeJobDataParsingTaskProgressResult::Progress DescribeJobDataParsingTaskProgressResult::getProgress()const
{
return progress_;
}
std::string DescribeJobDataParsingTaskProgressResult::getMessage()const
{
return message_;
}
int DescribeJobDataParsingTaskProgressResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string DescribeJobDataParsingTaskProgressResult::getCode()const
{
return code_;
}
bool DescribeJobDataParsingTaskProgressResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/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_;
}
void DescribeJobGroupExportTaskProgressRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string DescribeJobGroupExportTaskProgressRequest::getTaskId()const
{
return taskId_;
}
void DescribeJobGroupExportTaskProgressRequest::setTaskId(const std::string& taskId)
{
taskId_ = taskId;
setParameter("TaskId", taskId);
}

View File

@@ -0,0 +1,86 @@
/*
* 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/DescribeJobGroupExportTaskProgressResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
DescribeJobGroupExportTaskProgressResult::DescribeJobGroupExportTaskProgressResult() :
ServiceResult()
{}
DescribeJobGroupExportTaskProgressResult::DescribeJobGroupExportTaskProgressResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeJobGroupExportTaskProgressResult::~DescribeJobGroupExportTaskProgressResult()
{}
void DescribeJobGroupExportTaskProgressResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = 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());
}
float DescribeJobGroupExportTaskProgressResult::getProgress()const
{
return progress_;
}
std::string DescribeJobGroupExportTaskProgressResult::getMessage()const
{
return message_;
}
int DescribeJobGroupExportTaskProgressResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string DescribeJobGroupExportTaskProgressResult::getFileHttpUrl()const
{
return fileHttpUrl_;
}
std::string DescribeJobGroupExportTaskProgressResult::getCode()const
{
return code_;
}
bool DescribeJobGroupExportTaskProgressResult::getSuccess()const
{
return success_;
}

View File

@@ -42,6 +42,8 @@ void DescribeJobGroupResult::parse(const std::string &payload)
auto jobGroupNode = value["JobGroup"];
if(!jobGroupNode["CreationTime"].isNull())
jobGroup_.creationTime = std::stol(jobGroupNode["CreationTime"].asString());
if(!jobGroupNode["JobDataParsingTaskId"].isNull())
jobGroup_.jobDataParsingTaskId = jobGroupNode["JobDataParsingTaskId"].asString();
if(!jobGroupNode["JobFilePath"].isNull())
jobGroup_.jobFilePath = jobGroupNode["JobFilePath"].asString();
if(!jobGroupNode["JobGroupDescription"].isNull())
@@ -50,12 +52,25 @@ void DescribeJobGroupResult::parse(const std::string &payload)
jobGroup_.jobGroupId = jobGroupNode["JobGroupId"].asString();
if(!jobGroupNode["JobGroupName"].isNull())
jobGroup_.jobGroupName = jobGroupNode["JobGroupName"].asString();
if(!jobGroupNode["ModifyTime"].isNull())
jobGroup_.modifyTime = jobGroupNode["ModifyTime"].asString();
if(!jobGroupNode["ScenarioId"].isNull())
jobGroup_.scenarioId = jobGroupNode["ScenarioId"].asString();
if(!jobGroupNode["ScriptId"].isNull())
jobGroup_.scriptId = jobGroupNode["ScriptId"].asString();
if(!jobGroupNode["ScriptName"].isNull())
jobGroup_.scriptName = jobGroupNode["ScriptName"].asString();
if(!jobGroupNode["ScriptVersion"].isNull())
jobGroup_.scriptVersion = jobGroupNode["ScriptVersion"].asString();
if(!jobGroupNode["Status"].isNull())
jobGroup_.status = jobGroupNode["Status"].asString();
auto exportProgressNode = jobGroupNode["ExportProgress"];
if(!exportProgressNode["FileHttpUrl"].isNull())
jobGroup_.exportProgress.fileHttpUrl = exportProgressNode["FileHttpUrl"].asString();
if(!exportProgressNode["Progress"].isNull())
jobGroup_.exportProgress.progress = exportProgressNode["Progress"].asString();
if(!exportProgressNode["Status"].isNull())
jobGroup_.exportProgress.status = exportProgressNode["Status"].asString();
auto progressNode = jobGroupNode["Progress"];
if(!progressNode["Cancelled"].isNull())
jobGroup_.progress.cancelled = std::stoi(progressNode["Cancelled"].asString());
@@ -139,6 +154,17 @@ void DescribeJobGroupResult::parse(const std::string &payload)
auto allRepeatDays = strategyNode["RepeatDays"]["Integer"];
for (auto value : allRepeatDays)
jobGroup_.strategy.repeatDays.push_back(value.asString());
auto resultNode = jobGroupNode["Result"];
if(!resultNode["NoInteractNum"].isNull())
jobGroup_.result.noInteractNum = std::stoi(resultNode["NoInteractNum"].asString());
if(!resultNode["FinishedNum"].isNull())
jobGroup_.result.finishedNum = std::stoi(resultNode["FinishedNum"].asString());
if(!resultNode["ClientHangupNum"].isNull())
jobGroup_.result.clientHangupNum = std::stoi(resultNode["ClientHangupNum"].asString());
if(!resultNode["TimeoutHangupNum"].isNull())
jobGroup_.result.timeoutHangupNum = std::stoi(resultNode["TimeoutHangupNum"].asString());
if(!resultNode["UnrecognizedNum"].isNull())
jobGroup_.result.unrecognizedNum = std::stoi(resultNode["UnrecognizedNum"].asString());
auto allCallingNumbers = jobGroupNode["CallingNumbers"]["String"];
for (auto value : allCallingNumbers)
jobGroup_.callingNumbers.push_back(value.asString());

View File

@@ -58,6 +58,18 @@ void DescribeJobResult::parse(const std::string &payload)
job_.strategyId = jobNode["StrategyId"].asString();
if(!jobNode["SystemPriority"].isNull())
job_.systemPriority = std::stoi(jobNode["SystemPriority"].asString());
if(!jobNode["InstanceId"].isNull())
job_.instanceId = jobNode["InstanceId"].asString();
if(!jobNode["DsReport"].isNull())
job_.dsReport = jobNode["DsReport"].asString();
if(!jobNode["EndReason"].isNull())
job_.endReason = std::stoi(jobNode["EndReason"].asString());
if(!jobNode["ActualTime"].isNull())
job_.actualTime = std::stol(jobNode["ActualTime"].asString());
if(!jobNode["CalledNumber"].isNull())
job_.calledNumber = jobNode["CalledNumber"].asString();
if(!jobNode["NextExecutionTime"].isNull())
job_.nextExecutionTime = std::stol(jobNode["NextExecutionTime"].asString());
auto allContactsNode = jobNode["Contacts"]["Contact"];
for (auto jobNodeContactsContact : allContactsNode)
{
@@ -130,6 +142,8 @@ void DescribeJobResult::parse(const std::string &payload)
taskObject.status = jobNodeTasksTask["Status"].asString();
if(!jobNodeTasksTask["TaskId"].isNull())
taskObject.taskId = jobNodeTasksTask["TaskId"].asString();
if(!jobNodeTasksTask["EndTime"].isNull())
taskObject.endTime = std::stol(jobNodeTasksTask["EndTime"].asString());
auto allConversationNode = jobNodeTasksTask["Conversation"]["ConversationDetail"];
for (auto jobNodeTasksTaskConversationConversationDetail : allConversationNode)
{
@@ -140,6 +154,10 @@ void DescribeJobResult::parse(const std::string &payload)
conversationObject.speaker = jobNodeTasksTaskConversationConversationDetail["Speaker"].asString();
if(!jobNodeTasksTaskConversationConversationDetail["Timestamp"].isNull())
conversationObject.timestamp = std::stol(jobNodeTasksTaskConversationConversationDetail["Timestamp"].asString());
if(!jobNodeTasksTaskConversationConversationDetail["Action"].isNull())
conversationObject.action = jobNodeTasksTaskConversationConversationDetail["Action"].asString();
if(!jobNodeTasksTaskConversationConversationDetail["ActionParams"].isNull())
conversationObject.actionParams = jobNodeTasksTaskConversationConversationDetail["ActionParams"].asString();
auto allSummary1Node = jobNodeTasksTaskConversationConversationDetail["Summary"]["SummaryItem"];
for (auto jobNodeTasksTaskConversationConversationDetailSummarySummaryItem : allSummary1Node)
{

View File

@@ -60,6 +60,12 @@ void DescribeScriptResult::parse(const std::string &payload)
script_.status = scriptNode["Status"].asString();
if(!scriptNode["UpdateTime"].isNull())
script_.updateTime = std::stol(scriptNode["UpdateTime"].asString());
if(!scriptNode["ChatbotId"].isNull())
script_.chatbotId = scriptNode["ChatbotId"].asString();
if(!scriptNode["AsrConfig"].isNull())
script_.asrConfig = scriptNode["AsrConfig"].asString();
if(!scriptNode["TtsConfig"].isNull())
script_.ttsConfig = scriptNode["TtsConfig"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["HttpStatusCode"].isNull())

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/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_;
}
void GetAfterAnswerDelayPlaybackRequest::setStrategyLevel(int strategyLevel)
{
strategyLevel_ = strategyLevel;
setParameter("StrategyLevel", std::to_string(strategyLevel));
}
std::string GetAfterAnswerDelayPlaybackRequest::getEntryId()const
{
return entryId_;
}
void GetAfterAnswerDelayPlaybackRequest::setEntryId(const std::string& entryId)
{
entryId_ = entryId;
setParameter("EntryId", entryId);
}

View File

@@ -0,0 +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/GetAfterAnswerDelayPlaybackResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
GetAfterAnswerDelayPlaybackResult::GetAfterAnswerDelayPlaybackResult() :
ServiceResult()
{}
GetAfterAnswerDelayPlaybackResult::GetAfterAnswerDelayPlaybackResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetAfterAnswerDelayPlaybackResult::~GetAfterAnswerDelayPlaybackResult()
{}
void GetAfterAnswerDelayPlaybackResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = 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());
}
int GetAfterAnswerDelayPlaybackResult::getAfterAnswerDelayPlayback()const
{
return afterAnswerDelayPlayback_;
}
std::string GetAfterAnswerDelayPlaybackResult::getMessage()const
{
return message_;
}
int GetAfterAnswerDelayPlaybackResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string GetAfterAnswerDelayPlaybackResult::getCode()const
{
return code_;
}
bool GetAfterAnswerDelayPlaybackResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/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_;
}
void GetAsrServerInfoRequest::setStrategyLevel(int strategyLevel)
{
strategyLevel_ = strategyLevel;
setParameter("StrategyLevel", std::to_string(strategyLevel));
}
std::string GetAsrServerInfoRequest::getEntryId()const
{
return entryId_;
}
void GetAsrServerInfoRequest::setEntryId(const std::string& entryId)
{
entryId_ = entryId;
setParameter("EntryId", entryId);
}

View File

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

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/outboundbot/model/GetBaseStrategyPeriodRequest.h>
using AlibabaCloud::OutboundBot::Model::GetBaseStrategyPeriodRequest;
GetBaseStrategyPeriodRequest::GetBaseStrategyPeriodRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "GetBaseStrategyPeriod")
{
setMethod(HttpRequest::Method::Post);
}
GetBaseStrategyPeriodRequest::~GetBaseStrategyPeriodRequest()
{}
int GetBaseStrategyPeriodRequest::getStrategyLevel()const
{
return strategyLevel_;
}
void GetBaseStrategyPeriodRequest::setStrategyLevel(int strategyLevel)
{
strategyLevel_ = strategyLevel;
setParameter("StrategyLevel", std::to_string(strategyLevel));
}
std::string GetBaseStrategyPeriodRequest::getEntryId()const
{
return entryId_;
}
void GetBaseStrategyPeriodRequest::setEntryId(const std::string& entryId)
{
entryId_ = entryId;
setParameter("EntryId", entryId);
}

View File

@@ -0,0 +1,98 @@
/*
* 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/GetBaseStrategyPeriodResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
GetBaseStrategyPeriodResult::GetBaseStrategyPeriodResult() :
ServiceResult()
{}
GetBaseStrategyPeriodResult::GetBaseStrategyPeriodResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetBaseStrategyPeriodResult::~GetBaseStrategyPeriodResult()
{}
void GetBaseStrategyPeriodResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allWorkingTimeNode = value["WorkingTime"]["TimeFrame"];
for (auto valueWorkingTimeTimeFrame : allWorkingTimeNode)
{
TimeFrame workingTimeObject;
if(!valueWorkingTimeTimeFrame["BeginTimeMillis"].isNull())
workingTimeObject.beginTimeMillis = std::stol(valueWorkingTimeTimeFrame["BeginTimeMillis"].asString());
if(!valueWorkingTimeTimeFrame["BeginTime"].isNull())
workingTimeObject.beginTime = valueWorkingTimeTimeFrame["BeginTime"].asString();
if(!valueWorkingTimeTimeFrame["EndTimeMillis"].isNull())
workingTimeObject.endTimeMillis = std::stol(valueWorkingTimeTimeFrame["EndTimeMillis"].asString());
if(!valueWorkingTimeTimeFrame["EndTime"].isNull())
workingTimeObject.endTime = valueWorkingTimeTimeFrame["EndTime"].asString();
workingTime_.push_back(workingTimeObject);
}
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["OnlyWeekdays"].isNull())
onlyWeekdays_ = value["OnlyWeekdays"].asString() == "true";
}
std::vector<GetBaseStrategyPeriodResult::TimeFrame> GetBaseStrategyPeriodResult::getWorkingTime()const
{
return workingTime_;
}
std::string GetBaseStrategyPeriodResult::getMessage()const
{
return message_;
}
bool GetBaseStrategyPeriodResult::getOnlyWeekdays()const
{
return onlyWeekdays_;
}
int GetBaseStrategyPeriodResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string GetBaseStrategyPeriodResult::getCode()const
{
return code_;
}
bool GetBaseStrategyPeriodResult::getSuccess()const
{
return success_;
}

View File

@@ -14,60 +14,60 @@
* limitations under the License.
*/
#include <alibabacloud/outboundbot/model/ListMediaRequest.h>
#include <alibabacloud/outboundbot/model/GetContactBlockListRequest.h>
using AlibabaCloud::OutboundBot::Model::ListMediaRequest;
using AlibabaCloud::OutboundBot::Model::GetContactBlockListRequest;
ListMediaRequest::ListMediaRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "ListMedia")
GetContactBlockListRequest::GetContactBlockListRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "GetContactBlockList")
{
setMethod(HttpRequest::Method::Post);
}
ListMediaRequest::~ListMediaRequest()
GetContactBlockListRequest::~GetContactBlockListRequest()
{}
int ListMediaRequest::getPageNumber()const
bool GetContactBlockListRequest::getCountTotalRow()const
{
return countTotalRow_;
}
void GetContactBlockListRequest::setCountTotalRow(bool countTotalRow)
{
countTotalRow_ = countTotalRow;
setParameter("CountTotalRow", countTotalRow ? "true" : "false");
}
int GetContactBlockListRequest::getPageNumber()const
{
return pageNumber_;
}
void ListMediaRequest::setPageNumber(int pageNumber)
void GetContactBlockListRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string ListMediaRequest::getInstanceId()const
std::string GetContactBlockListRequest::getInstanceId()const
{
return instanceId_;
}
void ListMediaRequest::setInstanceId(const std::string& instanceId)
void GetContactBlockListRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
int ListMediaRequest::getPageSize()const
int GetContactBlockListRequest::getPageSize()const
{
return pageSize_;
}
void ListMediaRequest::setPageSize(int pageSize)
void GetContactBlockListRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string ListMediaRequest::getNamePrefix()const
{
return namePrefix_;
}
void ListMediaRequest::setNamePrefix(const std::string& namePrefix)
{
namePrefix_ = namePrefix;
setParameter("NamePrefix", namePrefix);
}

View File

@@ -0,0 +1,106 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/outboundbot/model/GetContactBlockListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
GetContactBlockListResult::GetContactBlockListResult() :
ServiceResult()
{}
GetContactBlockListResult::GetContactBlockListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetContactBlockListResult::~GetContactBlockListResult()
{}
void GetContactBlockListResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto contactBlocklistListNode = value["ContactBlocklistList"];
if(!contactBlocklistListNode["PageNumber"].isNull())
contactBlocklistList_.pageNumber = std::stoi(contactBlocklistListNode["PageNumber"].asString());
if(!contactBlocklistListNode["PageSize"].isNull())
contactBlocklistList_.pageSize = std::stoi(contactBlocklistListNode["PageSize"].asString());
if(!contactBlocklistListNode["TotalCount"].isNull())
contactBlocklistList_.totalCount = std::stoi(contactBlocklistListNode["TotalCount"].asString());
auto allListNode = contactBlocklistListNode["List"]["ContactBlockList"];
for (auto contactBlocklistListNodeListContactBlockList : allListNode)
{
ContactBlocklistList::ContactBlockList contactBlockListObject;
if(!contactBlocklistListNodeListContactBlockList["ContactBlockListId"].isNull())
contactBlockListObject.contactBlockListId = contactBlocklistListNodeListContactBlockList["ContactBlockListId"].asString();
if(!contactBlocklistListNodeListContactBlockList["InstanceId"].isNull())
contactBlockListObject.instanceId = contactBlocklistListNodeListContactBlockList["InstanceId"].asString();
if(!contactBlocklistListNodeListContactBlockList["CreationTime"].isNull())
contactBlockListObject.creationTime = std::stol(contactBlocklistListNodeListContactBlockList["CreationTime"].asString());
if(!contactBlocklistListNodeListContactBlockList["PhoneNumber"].isNull())
contactBlockListObject.phoneNumber = contactBlocklistListNodeListContactBlockList["PhoneNumber"].asString();
if(!contactBlocklistListNodeListContactBlockList["Name"].isNull())
contactBlockListObject.name = contactBlocklistListNodeListContactBlockList["Name"].asString();
if(!contactBlocklistListNodeListContactBlockList["Creator"].isNull())
contactBlockListObject.creator = contactBlocklistListNodeListContactBlockList["Creator"].asString();
if(!contactBlocklistListNodeListContactBlockList["Operator"].isNull())
contactBlockListObject._operator = contactBlocklistListNodeListContactBlockList["Operator"].asString();
if(!contactBlocklistListNodeListContactBlockList["Remark"].isNull())
contactBlockListObject.remark = contactBlocklistListNodeListContactBlockList["Remark"].asString();
contactBlocklistList_.list.push_back(contactBlockListObject);
}
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 GetContactBlockListResult::getMessage()const
{
return message_;
}
int GetContactBlockListResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string GetContactBlockListResult::getCode()const
{
return code_;
}
GetContactBlockListResult::ContactBlocklistList GetContactBlockListResult::getContactBlocklistList()const
{
return contactBlocklistList_;
}
bool GetContactBlockListResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/outboundbot/model/GetContactWhiteListRequest.h>
using AlibabaCloud::OutboundBot::Model::GetContactWhiteListRequest;
GetContactWhiteListRequest::GetContactWhiteListRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "GetContactWhiteList")
{
setMethod(HttpRequest::Method::Post);
}
GetContactWhiteListRequest::~GetContactWhiteListRequest()
{}
bool GetContactWhiteListRequest::getCountTotalRow()const
{
return countTotalRow_;
}
void GetContactWhiteListRequest::setCountTotalRow(bool countTotalRow)
{
countTotalRow_ = countTotalRow;
setParameter("CountTotalRow", countTotalRow ? "true" : "false");
}
int GetContactWhiteListRequest::getPageNumber()const
{
return pageNumber_;
}
void GetContactWhiteListRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string GetContactWhiteListRequest::getInstanceId()const
{
return instanceId_;
}
void GetContactWhiteListRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
int GetContactWhiteListRequest::getPageSize()const
{
return pageSize_;
}
void GetContactWhiteListRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}

View File

@@ -0,0 +1,106 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/outboundbot/model/GetContactWhiteListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
GetContactWhiteListResult::GetContactWhiteListResult() :
ServiceResult()
{}
GetContactWhiteListResult::GetContactWhiteListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetContactWhiteListResult::~GetContactWhiteListResult()
{}
void GetContactWhiteListResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto contactWhitelistListNode = value["ContactWhitelistList"];
if(!contactWhitelistListNode["PageSize"].isNull())
contactWhitelistList_.pageSize = std::stoi(contactWhitelistListNode["PageSize"].asString());
if(!contactWhitelistListNode["PageNumber"].isNull())
contactWhitelistList_.pageNumber = std::stoi(contactWhitelistListNode["PageNumber"].asString());
if(!contactWhitelistListNode["TotalCount"].isNull())
contactWhitelistList_.totalCount = std::stoi(contactWhitelistListNode["TotalCount"].asString());
auto allListNode = contactWhitelistListNode["List"]["ContactWhitelistList"];
for (auto contactWhitelistListNodeListContactWhitelistList : allListNode)
{
ContactWhitelistList::ContactWhitelistList1 contactWhitelistList1Object;
if(!contactWhitelistListNodeListContactWhitelistList["ContactWhiteListId"].isNull())
contactWhitelistList1Object.contactWhiteListId = contactWhitelistListNodeListContactWhitelistList["ContactWhiteListId"].asString();
if(!contactWhitelistListNodeListContactWhitelistList["InstanceId"].isNull())
contactWhitelistList1Object.instanceId = contactWhitelistListNodeListContactWhitelistList["InstanceId"].asString();
if(!contactWhitelistListNodeListContactWhitelistList["CreationTime"].isNull())
contactWhitelistList1Object.creationTime = std::stol(contactWhitelistListNodeListContactWhitelistList["CreationTime"].asString());
if(!contactWhitelistListNodeListContactWhitelistList["PhoneNumber"].isNull())
contactWhitelistList1Object.phoneNumber = contactWhitelistListNodeListContactWhitelistList["PhoneNumber"].asString();
if(!contactWhitelistListNodeListContactWhitelistList["Name"].isNull())
contactWhitelistList1Object.name = contactWhitelistListNodeListContactWhitelistList["Name"].asString();
if(!contactWhitelistListNodeListContactWhitelistList["Creator"].isNull())
contactWhitelistList1Object.creator = contactWhitelistListNodeListContactWhitelistList["Creator"].asString();
if(!contactWhitelistListNodeListContactWhitelistList["Operator"].isNull())
contactWhitelistList1Object._operator = contactWhitelistListNodeListContactWhitelistList["Operator"].asString();
if(!contactWhitelistListNodeListContactWhitelistList["Remark"].isNull())
contactWhitelistList1Object.remark = contactWhitelistListNodeListContactWhitelistList["Remark"].asString();
contactWhitelistList_.list.push_back(contactWhitelistList1Object);
}
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 GetContactWhiteListResult::getMessage()const
{
return message_;
}
int GetContactWhiteListResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
GetContactWhiteListResult::ContactWhitelistList GetContactWhiteListResult::getContactWhitelistList()const
{
return contactWhitelistList_;
}
std::string GetContactWhiteListResult::getCode()const
{
return code_;
}
bool GetContactWhiteListResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/outboundbot/model/GetEffectiveDaysRequest.h>
using AlibabaCloud::OutboundBot::Model::GetEffectiveDaysRequest;
GetEffectiveDaysRequest::GetEffectiveDaysRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "GetEffectiveDays")
{
setMethod(HttpRequest::Method::Post);
}
GetEffectiveDaysRequest::~GetEffectiveDaysRequest()
{}
int GetEffectiveDaysRequest::getStrategyLevel()const
{
return strategyLevel_;
}
void GetEffectiveDaysRequest::setStrategyLevel(int strategyLevel)
{
strategyLevel_ = strategyLevel;
setParameter("StrategyLevel", std::to_string(strategyLevel));
}
std::string GetEffectiveDaysRequest::getEntryId()const
{
return entryId_;
}
void GetEffectiveDaysRequest::setEntryId(const std::string& entryId)
{
entryId_ = entryId;
setParameter("EntryId", entryId);
}

View File

@@ -0,0 +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/GetEffectiveDaysResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
GetEffectiveDaysResult::GetEffectiveDaysResult() :
ServiceResult()
{}
GetEffectiveDaysResult::GetEffectiveDaysResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetEffectiveDaysResult::~GetEffectiveDaysResult()
{}
void GetEffectiveDaysResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["EffectiveDays"].isNull())
effectiveDays_ = std::stoi(value["EffectiveDays"].asString());
}
std::string GetEffectiveDaysResult::getMessage()const
{
return message_;
}
int GetEffectiveDaysResult::getEffectiveDays()const
{
return effectiveDays_;
}
int GetEffectiveDaysResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string GetEffectiveDaysResult::getCode()const
{
return code_;
}
bool GetEffectiveDaysResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/outboundbot/model/GetEmptyNumberNoMoreCallsInfoRequest.h>
using AlibabaCloud::OutboundBot::Model::GetEmptyNumberNoMoreCallsInfoRequest;
GetEmptyNumberNoMoreCallsInfoRequest::GetEmptyNumberNoMoreCallsInfoRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "GetEmptyNumberNoMoreCallsInfo")
{
setMethod(HttpRequest::Method::Post);
}
GetEmptyNumberNoMoreCallsInfoRequest::~GetEmptyNumberNoMoreCallsInfoRequest()
{}
int GetEmptyNumberNoMoreCallsInfoRequest::getStrategyLevel()const
{
return strategyLevel_;
}
void GetEmptyNumberNoMoreCallsInfoRequest::setStrategyLevel(int strategyLevel)
{
strategyLevel_ = strategyLevel;
setParameter("StrategyLevel", std::to_string(strategyLevel));
}
std::string GetEmptyNumberNoMoreCallsInfoRequest::getEntryId()const
{
return entryId_;
}
void GetEmptyNumberNoMoreCallsInfoRequest::setEntryId(const std::string& entryId)
{
entryId_ = entryId;
setParameter("EntryId", entryId);
}

View File

@@ -0,0 +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/GetEmptyNumberNoMoreCallsInfoResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
GetEmptyNumberNoMoreCallsInfoResult::GetEmptyNumberNoMoreCallsInfoResult() :
ServiceResult()
{}
GetEmptyNumberNoMoreCallsInfoResult::GetEmptyNumberNoMoreCallsInfoResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetEmptyNumberNoMoreCallsInfoResult::~GetEmptyNumberNoMoreCallsInfoResult()
{}
void GetEmptyNumberNoMoreCallsInfoResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["EmptyNumberNoMoreCalls"].isNull())
emptyNumberNoMoreCalls_ = value["EmptyNumberNoMoreCalls"].asString() == "true";
}
bool GetEmptyNumberNoMoreCallsInfoResult::getEmptyNumberNoMoreCalls()const
{
return emptyNumberNoMoreCalls_;
}
std::string GetEmptyNumberNoMoreCallsInfoResult::getMessage()const
{
return message_;
}
int GetEmptyNumberNoMoreCallsInfoResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string GetEmptyNumberNoMoreCallsInfoResult::getCode()const
{
return code_;
}
bool GetEmptyNumberNoMoreCallsInfoResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/outboundbot/model/GetMaxAttemptsPerDayRequest.h>
using AlibabaCloud::OutboundBot::Model::GetMaxAttemptsPerDayRequest;
GetMaxAttemptsPerDayRequest::GetMaxAttemptsPerDayRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "GetMaxAttemptsPerDay")
{
setMethod(HttpRequest::Method::Post);
}
GetMaxAttemptsPerDayRequest::~GetMaxAttemptsPerDayRequest()
{}
int GetMaxAttemptsPerDayRequest::getStrategyLevel()const
{
return strategyLevel_;
}
void GetMaxAttemptsPerDayRequest::setStrategyLevel(int strategyLevel)
{
strategyLevel_ = strategyLevel;
setParameter("StrategyLevel", std::to_string(strategyLevel));
}
std::string GetMaxAttemptsPerDayRequest::getEntryId()const
{
return entryId_;
}
void GetMaxAttemptsPerDayRequest::setEntryId(const std::string& entryId)
{
entryId_ = entryId;
setParameter("EntryId", entryId);
}

View File

@@ -0,0 +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/GetMaxAttemptsPerDayResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
GetMaxAttemptsPerDayResult::GetMaxAttemptsPerDayResult() :
ServiceResult()
{}
GetMaxAttemptsPerDayResult::GetMaxAttemptsPerDayResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetMaxAttemptsPerDayResult::~GetMaxAttemptsPerDayResult()
{}
void GetMaxAttemptsPerDayResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["MaxAttemptsPerDay"].isNull())
maxAttemptsPerDay_ = std::stoi(value["MaxAttemptsPerDay"].asString());
}
std::string GetMaxAttemptsPerDayResult::getMessage()const
{
return message_;
}
int GetMaxAttemptsPerDayResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
int GetMaxAttemptsPerDayResult::getMaxAttemptsPerDay()const
{
return maxAttemptsPerDay_;
}
std::string GetMaxAttemptsPerDayResult::getCode()const
{
return code_;
}
bool GetMaxAttemptsPerDayResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,42 @@
/*
* 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/GetSummaryInfoRequest.h>
using AlibabaCloud::OutboundBot::Model::GetSummaryInfoRequest;
GetSummaryInfoRequest::GetSummaryInfoRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "GetSummaryInfo")
{
setMethod(HttpRequest::Method::Post);
}
GetSummaryInfoRequest::~GetSummaryInfoRequest()
{}
std::vector<std::string> GetSummaryInfoRequest::getInstanceIdList()const
{
return instanceIdList_;
}
void GetSummaryInfoRequest::setInstanceIdList(const std::vector<std::string>& instanceIdList)
{
instanceIdList_ = instanceIdList;
for(int dep1 = 0; dep1!= instanceIdList.size(); dep1++) {
setParameter("InstanceIdList."+ std::to_string(dep1), instanceIdList.at(dep1));
}
}

View File

@@ -0,0 +1,91 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/outboundbot/model/GetSummaryInfoResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
GetSummaryInfoResult::GetSummaryInfoResult() :
ServiceResult()
{}
GetSummaryInfoResult::GetSummaryInfoResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetSummaryInfoResult::~GetSummaryInfoResult()
{}
void GetSummaryInfoResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allAgentBotInstanceSummaryListNode = value["AgentBotInstanceSummaryList"]["AgentBotInstanceSummary"];
for (auto valueAgentBotInstanceSummaryListAgentBotInstanceSummary : allAgentBotInstanceSummaryListNode)
{
AgentBotInstanceSummary agentBotInstanceSummaryListObject;
if(!valueAgentBotInstanceSummaryListAgentBotInstanceSummary["TotalCallTime"].isNull())
agentBotInstanceSummaryListObject.totalCallTime = std::stol(valueAgentBotInstanceSummaryListAgentBotInstanceSummary["TotalCallTime"].asString());
if(!valueAgentBotInstanceSummaryListAgentBotInstanceSummary["TotalCallCount"].isNull())
agentBotInstanceSummaryListObject.totalCallCount = std::stol(valueAgentBotInstanceSummaryListAgentBotInstanceSummary["TotalCallCount"].asString());
if(!valueAgentBotInstanceSummaryListAgentBotInstanceSummary["UsedRecordingStorageSpace"].isNull())
agentBotInstanceSummaryListObject.usedRecordingStorageSpace = std::stoi(valueAgentBotInstanceSummaryListAgentBotInstanceSummary["UsedRecordingStorageSpace"].asString());
if(!valueAgentBotInstanceSummaryListAgentBotInstanceSummary["InstanceId"].isNull())
agentBotInstanceSummaryListObject.instanceId = valueAgentBotInstanceSummaryListAgentBotInstanceSummary["InstanceId"].asString();
agentBotInstanceSummaryList_.push_back(agentBotInstanceSummaryListObject);
}
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 GetSummaryInfoResult::getMessage()const
{
return message_;
}
int GetSummaryInfoResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::vector<GetSummaryInfoResult::AgentBotInstanceSummary> GetSummaryInfoResult::getAgentBotInstanceSummaryList()const
{
return agentBotInstanceSummaryList_;
}
std::string GetSummaryInfoResult::getCode()const
{
return code_;
}
bool GetSummaryInfoResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/outboundbot/model/GetTaskByUuidRequest.h>
using AlibabaCloud::OutboundBot::Model::GetTaskByUuidRequest;
GetTaskByUuidRequest::GetTaskByUuidRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "GetTaskByUuid")
{
setMethod(HttpRequest::Method::Get);
}
GetTaskByUuidRequest::~GetTaskByUuidRequest()
{}
bool GetTaskByUuidRequest::getWithConversations()const
{
return withConversations_;
}
void GetTaskByUuidRequest::setWithConversations(bool withConversations)
{
withConversations_ = withConversations;
setParameter("WithConversations", withConversations ? "true" : "false");
}
std::string GetTaskByUuidRequest::getInstanceId()const
{
return instanceId_;
}
void GetTaskByUuidRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string GetTaskByUuidRequest::getTaskId()const
{
return taskId_;
}
void GetTaskByUuidRequest::setTaskId(const std::string& taskId)
{
taskId_ = taskId;
setParameter("TaskId", taskId);
}

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/outboundbot/model/GetTaskByUuidResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
GetTaskByUuidResult::GetTaskByUuidResult() :
ServiceResult()
{}
GetTaskByUuidResult::GetTaskByUuidResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetTaskByUuidResult::~GetTaskByUuidResult()
{}
void GetTaskByUuidResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto taskNode = value["Task"];
if(!taskNode["Id"].isNull())
task_.id = taskNode["Id"].asString();
if(!taskNode["JobId"].isNull())
task_.jobId = taskNode["JobId"].asString();
if(!taskNode["PlannedTime"].isNull())
task_.plannedTime = std::stol(taskNode["PlannedTime"].asString());
if(!taskNode["ActualTime"].isNull())
task_.actualTime = std::stol(taskNode["ActualTime"].asString());
if(!taskNode["EndTime"].isNull())
task_.endTime = std::stol(taskNode["EndTime"].asString());
if(!taskNode["CallingNumber"].isNull())
task_.callingNumber = taskNode["CallingNumber"].asString();
if(!taskNode["CalledNumber"].isNull())
task_.calledNumber = taskNode["CalledNumber"].asString();
if(!taskNode["CallId"].isNull())
task_.callId = taskNode["CallId"].asString();
if(!taskNode["EndReason"].isNull())
task_.endReason = std::stoi(taskNode["EndReason"].asString());
if(!taskNode["InstanceId"].isNull())
task_.instanceId = taskNode["InstanceId"].asString();
if(!taskNode["JobGroupId"].isNull())
task_.jobGroupId = taskNode["JobGroupId"].asString();
}
GetTaskByUuidResult::Task GetTaskByUuidResult::getTask()const
{
return task_;
}

View File

@@ -0,0 +1,29 @@
/*
* 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/GetVersionRequest.h>
using AlibabaCloud::OutboundBot::Model::GetVersionRequest;
GetVersionRequest::GetVersionRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "GetVersion")
{
setMethod(HttpRequest::Method::Post);
}
GetVersionRequest::~GetVersionRequest()
{}

View File

@@ -0,0 +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/GetVersionResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
GetVersionResult::GetVersionResult() :
ServiceResult()
{}
GetVersionResult::GetVersionResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetVersionResult::~GetVersionResult()
{}
void GetVersionResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["Version"].isNull())
version_ = value["Version"].asString();
}
std::string GetVersionResult::getMessage()const
{
return message_;
}
std::string GetVersionResult::getVersion()const
{
return version_;
}
int GetVersionResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string GetVersionResult::getCode()const
{
return code_;
}
bool GetVersionResult::getSuccess()const
{
return success_;
}

View File

@@ -27,3 +27,30 @@ ListInstancesRequest::ListInstancesRequest() :
ListInstancesRequest::~ListInstancesRequest()
{}
std::string ListInstancesRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void ListInstancesRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::vector<ListInstancesRequest::Tag> ListInstancesRequest::getTag()const
{
return tag_;
}
void ListInstancesRequest::setTag(const std::vector<Tag>& tag)
{
tag_ = tag;
for(int dep1 = 0; dep1!= tag.size(); dep1++) {
auto tagObj = tag.at(dep1);
std::string tagObjStr = "Tag." + std::to_string(dep1 + 1);
setParameter(tagObjStr + ".Value", tagObj.value);
setParameter(tagObjStr + ".Key", tagObj.key);
}
}

View File

@@ -57,15 +57,33 @@ void ListInstancesResult::parse(const std::string &payload)
instancesObject.isTemplateContainer = valueInstancesInstance["IsTemplateContainer"].asString() == "true";
if(!valueInstancesInstance["MaxConcurrentConversation"].isNull())
instancesObject.maxConcurrentConversation = std::stoi(valueInstancesInstance["MaxConcurrentConversation"].asString());
if(!valueInstancesInstance["Owner"].isNull())
instancesObject.owner = valueInstancesInstance["Owner"].asString();
if(!valueInstancesInstance["OwnerName"].isNull())
instancesObject.ownerName = valueInstancesInstance["OwnerName"].asString();
if(!valueInstancesInstance["CreatorId"].isNull())
instancesObject.creatorId = std::stol(valueInstancesInstance["CreatorId"].asString());
if(!valueInstancesInstance["CreatorName"].isNull())
instancesObject.creatorName = valueInstancesInstance["CreatorName"].asString();
if(!valueInstancesInstance["NluServiceType"].isNull())
instancesObject.nluServiceType = valueInstancesInstance["NluServiceType"].asString();
if(!valueInstancesInstance["Owner"].isNull())
instancesObject.owner = valueInstancesInstance["Owner"].asString();
if(!valueInstancesInstance["ResourceGroupId"].isNull())
instancesObject.resourceGroupId = valueInstancesInstance["ResourceGroupId"].asString();
auto allResourceTagsNode = valueInstancesInstance["ResourceTags"]["ResourceTag"];
for (auto valueInstancesInstanceResourceTagsResourceTag : allResourceTagsNode)
{
Instance::ResourceTag resourceTagsObject;
if(!valueInstancesInstanceResourceTagsResourceTag["Key"].isNull())
resourceTagsObject.key = valueInstancesInstanceResourceTagsResourceTag["Key"].asString();
if(!valueInstancesInstanceResourceTagsResourceTag["Value"].isNull())
resourceTagsObject.value = valueInstancesInstanceResourceTagsResourceTag["Value"].asString();
instancesObject.resourceTags.push_back(resourceTagsObject);
}
auto nluProfileNode = value["NluProfile"];
if(!nluProfileNode["Endpoint"].isNull())
instancesObject.nluProfile.endpoint = nluProfileNode["Endpoint"].asString();
if(!nluProfileNode["AccessKey"].isNull())
instancesObject.nluProfile.accessKey = nluProfileNode["AccessKey"].asString();
if(!nluProfileNode["Endpoint"].isNull())
instancesObject.nluProfile.endpoint = nluProfileNode["Endpoint"].asString();
if(!nluProfileNode["SecretKey"].isNull())
instancesObject.nluProfile.secretKey = nluProfileNode["SecretKey"].asString();
instances_.push_back(instancesObject);

View File

@@ -0,0 +1,40 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/outboundbot/model/ListJobGroupsAsyncRequest.h>
using AlibabaCloud::OutboundBot::Model::ListJobGroupsAsyncRequest;
ListJobGroupsAsyncRequest::ListJobGroupsAsyncRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "ListJobGroupsAsync")
{
setMethod(HttpRequest::Method::Get);
}
ListJobGroupsAsyncRequest::~ListJobGroupsAsyncRequest()
{}
std::string ListJobGroupsAsyncRequest::getAsyncTaskId()const
{
return asyncTaskId_;
}
void ListJobGroupsAsyncRequest::setAsyncTaskId(const std::string& asyncTaskId)
{
asyncTaskId_ = asyncTaskId;
setParameter("AsyncTaskId", asyncTaskId);
}

View File

@@ -0,0 +1,173 @@
/*
* 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/ListJobGroupsAsyncResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
ListJobGroupsAsyncResult::ListJobGroupsAsyncResult() :
ServiceResult()
{}
ListJobGroupsAsyncResult::ListJobGroupsAsyncResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListJobGroupsAsyncResult::~ListJobGroupsAsyncResult()
{}
void ListJobGroupsAsyncResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allJobGroupsNode = value["JobGroups"]["JobGroup"];
for (auto valueJobGroupsJobGroup : allJobGroupsNode)
{
JobGroup jobGroupsObject;
if(!valueJobGroupsJobGroup["JobGroupId"].isNull())
jobGroupsObject.jobGroupId = valueJobGroupsJobGroup["JobGroupId"].asString();
if(!valueJobGroupsJobGroup["JobGroupName"].isNull())
jobGroupsObject.jobGroupName = valueJobGroupsJobGroup["JobGroupName"].asString();
if(!valueJobGroupsJobGroup["JobGroupDescription"].isNull())
jobGroupsObject.jobGroupDescription = valueJobGroupsJobGroup["JobGroupDescription"].asString();
if(!valueJobGroupsJobGroup["ScriptId"].isNull())
jobGroupsObject.scriptId = valueJobGroupsJobGroup["ScriptId"].asString();
if(!valueJobGroupsJobGroup["ScriptName"].isNull())
jobGroupsObject.scriptName = valueJobGroupsJobGroup["ScriptName"].asString();
if(!valueJobGroupsJobGroup["CreationTime"].isNull())
jobGroupsObject.creationTime = std::stol(valueJobGroupsJobGroup["CreationTime"].asString());
if(!valueJobGroupsJobGroup["Status"].isNull())
jobGroupsObject.status = valueJobGroupsJobGroup["Status"].asString();
if(!valueJobGroupsJobGroup["JobDataParsingTaskId"].isNull())
jobGroupsObject.jobDataParsingTaskId = valueJobGroupsJobGroup["JobDataParsingTaskId"].asString();
if(!valueJobGroupsJobGroup["ModifyTime"].isNull())
jobGroupsObject.modifyTime = valueJobGroupsJobGroup["ModifyTime"].asString();
if(!valueJobGroupsJobGroup["ScriptVersion"].isNull())
jobGroupsObject.scriptVersion = valueJobGroupsJobGroup["ScriptVersion"].asString();
auto strategyNode = value["Strategy"];
if(!strategyNode["StartTime"].isNull())
jobGroupsObject.strategy.startTime = std::stol(strategyNode["StartTime"].asString());
if(!strategyNode["EndTime"].isNull())
jobGroupsObject.strategy.endTime = std::stol(strategyNode["EndTime"].asString());
auto progressNode = value["Progress"];
if(!progressNode["TotalJobs"].isNull())
jobGroupsObject.progress.totalJobs = std::stoi(progressNode["TotalJobs"].asString());
if(!progressNode["Status"].isNull())
jobGroupsObject.progress.status = progressNode["Status"].asString();
if(!progressNode["TotalNotAnswered"].isNull())
jobGroupsObject.progress.totalNotAnswered = std::stoi(progressNode["TotalNotAnswered"].asString());
if(!progressNode["TotalCompleted"].isNull())
jobGroupsObject.progress.totalCompleted = std::stoi(progressNode["TotalCompleted"].asString());
if(!progressNode["StartTime"].isNull())
jobGroupsObject.progress.startTime = std::stol(progressNode["StartTime"].asString());
if(!progressNode["Duration"].isNull())
jobGroupsObject.progress.duration = std::stoi(progressNode["Duration"].asString());
if(!progressNode["ExecutingNum"].isNull())
jobGroupsObject.progress.executingNum = std::stoi(progressNode["ExecutingNum"].asString());
if(!progressNode["CancelledNum"].isNull())
jobGroupsObject.progress.cancelledNum = std::stoi(progressNode["CancelledNum"].asString());
if(!progressNode["Scheduling"].isNull())
jobGroupsObject.progress.scheduling = std::stoi(progressNode["Scheduling"].asString());
if(!progressNode["FailedNum"].isNull())
jobGroupsObject.progress.failedNum = std::stoi(progressNode["FailedNum"].asString());
if(!progressNode["PausedNum"].isNull())
jobGroupsObject.progress.pausedNum = std::stoi(progressNode["PausedNum"].asString());
auto exportProgressNode = value["ExportProgress"];
if(!exportProgressNode["FileHttpUrl"].isNull())
jobGroupsObject.exportProgress.fileHttpUrl = exportProgressNode["FileHttpUrl"].asString();
if(!exportProgressNode["Progress"].isNull())
jobGroupsObject.exportProgress.progress = exportProgressNode["Progress"].asString();
if(!exportProgressNode["Status"].isNull())
jobGroupsObject.exportProgress.status = exportProgressNode["Status"].asString();
jobGroups_.push_back(jobGroupsObject);
}
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["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["Vaild"].isNull())
vaild_ = value["Vaild"].asString() == "true";
if(!value["Timeout"].isNull())
timeout_ = value["Timeout"].asString() == "true";
}
int ListJobGroupsAsyncResult::getTotalCount()const
{
return totalCount_;
}
std::string ListJobGroupsAsyncResult::getMessage()const
{
return message_;
}
int ListJobGroupsAsyncResult::getPageSize()const
{
return pageSize_;
}
int ListJobGroupsAsyncResult::getPageNumber()const
{
return pageNumber_;
}
bool ListJobGroupsAsyncResult::getTimeout()const
{
return timeout_;
}
int ListJobGroupsAsyncResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string ListJobGroupsAsyncResult::getCode()const
{
return code_;
}
std::vector<ListJobGroupsAsyncResult::JobGroup> ListJobGroupsAsyncResult::getJobGroups()const
{
return jobGroups_;
}
bool ListJobGroupsAsyncResult::getSuccess()const
{
return success_;
}
bool ListJobGroupsAsyncResult::getVaild()const
{
return vaild_;
}

View File

@@ -27,6 +27,28 @@ ListJobGroupsRequest::ListJobGroupsRequest() :
ListJobGroupsRequest::~ListJobGroupsRequest()
{}
bool ListJobGroupsRequest::getAsyncQuery()const
{
return asyncQuery_;
}
void ListJobGroupsRequest::setAsyncQuery(bool asyncQuery)
{
asyncQuery_ = asyncQuery;
setParameter("AsyncQuery", asyncQuery ? "true" : "false");
}
std::string ListJobGroupsRequest::getSearchText()const
{
return searchText_;
}
void ListJobGroupsRequest::setSearchText(const std::string& searchText)
{
searchText_ = searchText;
setParameter("SearchText", searchText);
}
long ListJobGroupsRequest::getEndTime()const
{
return endTime_;
@@ -71,6 +93,17 @@ void ListJobGroupsRequest::setInstanceId(const std::string& instanceId)
setParameter("InstanceId", instanceId);
}
std::string ListJobGroupsRequest::getJobGroupStatusFilter()const
{
return jobGroupStatusFilter_;
}
void ListJobGroupsRequest::setJobGroupStatusFilter(const std::string& jobGroupStatusFilter)
{
jobGroupStatusFilter_ = jobGroupStatusFilter;
setParameter("JobGroupStatusFilter", jobGroupStatusFilter);
}
int ListJobGroupsRequest::getPageSize()const
{
return pageSize_;

View File

@@ -62,6 +62,14 @@ void ListJobGroupsResult::parse(const std::string &payload)
jobGroupObject.scriptId = jobGroupsNodeListJobGroup["ScriptId"].asString();
if(!jobGroupsNodeListJobGroup["ScriptName"].isNull())
jobGroupObject.scriptName = jobGroupsNodeListJobGroup["ScriptName"].asString();
if(!jobGroupsNodeListJobGroup["JobDataParsingTaskId"].isNull())
jobGroupObject.jobDataParsingTaskId = jobGroupsNodeListJobGroup["JobDataParsingTaskId"].asString();
if(!jobGroupsNodeListJobGroup["ModifyTime"].isNull())
jobGroupObject.modifyTime = jobGroupsNodeListJobGroup["ModifyTime"].asString();
if(!jobGroupsNodeListJobGroup["ScriptVersion"].isNull())
jobGroupObject.scriptVersion = jobGroupsNodeListJobGroup["ScriptVersion"].asString();
if(!jobGroupsNodeListJobGroup["Status"].isNull())
jobGroupObject.status = jobGroupsNodeListJobGroup["Status"].asString();
auto progressNode = value["Progress"];
if(!progressNode["Duration"].isNull())
jobGroupObject.progress.duration = std::stoi(progressNode["Duration"].asString());
@@ -75,6 +83,23 @@ void ListJobGroupsResult::parse(const std::string &payload)
jobGroupObject.progress.totalJobs = std::stoi(progressNode["TotalJobs"].asString());
if(!progressNode["TotalNotAnswered"].isNull())
jobGroupObject.progress.totalNotAnswered = std::stoi(progressNode["TotalNotAnswered"].asString());
if(!progressNode["CancelledNum"].isNull())
jobGroupObject.progress.cancelledNum = std::stoi(progressNode["CancelledNum"].asString());
if(!progressNode["FailedNum"].isNull())
jobGroupObject.progress.failedNum = std::stoi(progressNode["FailedNum"].asString());
if(!progressNode["Scheduling"].isNull())
jobGroupObject.progress.scheduling = std::stoi(progressNode["Scheduling"].asString());
if(!progressNode["PausedNum"].isNull())
jobGroupObject.progress.pausedNum = std::stoi(progressNode["PausedNum"].asString());
if(!progressNode["ExecutingNum"].isNull())
jobGroupObject.progress.executingNum = std::stoi(progressNode["ExecutingNum"].asString());
auto exportProgressNode = value["ExportProgress"];
if(!exportProgressNode["FileHttpUrl"].isNull())
jobGroupObject.exportProgress.fileHttpUrl = exportProgressNode["FileHttpUrl"].asString();
if(!exportProgressNode["Progress"].isNull())
jobGroupObject.exportProgress.progress = exportProgressNode["Progress"].asString();
if(!exportProgressNode["Status"].isNull())
jobGroupObject.exportProgress.status = exportProgressNode["Status"].asString();
auto strategyNode = value["Strategy"];
if(!strategyNode["EndTime"].isNull())
jobGroupObject.strategy.endTime = std::stol(strategyNode["EndTime"].asString());
@@ -90,6 +115,8 @@ void ListJobGroupsResult::parse(const std::string &payload)
message_ = value["Message"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["AsyncTaskId"].isNull())
asyncTaskId_ = value["AsyncTaskId"].asString();
}
@@ -103,6 +130,11 @@ int ListJobGroupsResult::getHttpStatusCode()const
return httpStatusCode_;
}
std::string ListJobGroupsResult::getAsyncTaskId()const
{
return asyncTaskId_;
}
std::string ListJobGroupsResult::getCode()const
{
return code_;

View File

@@ -1,108 +0,0 @@
/*
* 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/ListMediaResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
ListMediaResult::ListMediaResult() :
ServiceResult()
{}
ListMediaResult::ListMediaResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListMediaResult::~ListMediaResult()
{}
void ListMediaResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allMediaListNode = value["MediaList"]["Media"];
for (auto valueMediaListMedia : allMediaListNode)
{
Media mediaListObject;
if(!valueMediaListMedia["MediaId"].isNull())
mediaListObject.mediaId = valueMediaListMedia["MediaId"].asString();
if(!valueMediaListMedia["Name"].isNull())
mediaListObject.name = valueMediaListMedia["Name"].asString();
mediaList_.push_back(mediaListObject);
}
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["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
}
std::vector<ListMediaResult::Media> ListMediaResult::getMediaList()const
{
return mediaList_;
}
int ListMediaResult::getTotalCount()const
{
return totalCount_;
}
std::string ListMediaResult::getMessage()const
{
return message_;
}
int ListMediaResult::getPageSize()const
{
return pageSize_;
}
int ListMediaResult::getPageNumber()const
{
return pageNumber_;
}
int ListMediaResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string ListMediaResult::getCode()const
{
return code_;
}
bool ListMediaResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/outboundbot/model/ListResourceTagsRequest.h>
using AlibabaCloud::OutboundBot::Model::ListResourceTagsRequest;
ListResourceTagsRequest::ListResourceTagsRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "ListResourceTags")
{
setMethod(HttpRequest::Method::Post);
}
ListResourceTagsRequest::~ListResourceTagsRequest()
{}
std::string ListResourceTagsRequest::getResourceType()const
{
return resourceType_;
}
void ListResourceTagsRequest::setResourceType(const std::string& resourceType)
{
resourceType_ = resourceType;
setParameter("ResourceType", resourceType);
}
int ListResourceTagsRequest::getPageNumber()const
{
return pageNumber_;
}
void ListResourceTagsRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
int ListResourceTagsRequest::getPageSize()const
{
return pageSize_;
}
void ListResourceTagsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}

View 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/ListResourceTagsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
ListResourceTagsResult::ListResourceTagsResult() :
ServiceResult()
{}
ListResourceTagsResult::ListResourceTagsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListResourceTagsResult::~ListResourceTagsResult()
{}
void ListResourceTagsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto resourceTagsNode = value["ResourceTags"];
if(!resourceTagsNode["TotalCount"].isNull())
resourceTags_.totalCount = std::stoi(resourceTagsNode["TotalCount"].asString());
if(!resourceTagsNode["PageNumber"].isNull())
resourceTags_.pageNumber = std::stoi(resourceTagsNode["PageNumber"].asString());
if(!resourceTagsNode["PageSize"].isNull())
resourceTags_.pageSize = std::stoi(resourceTagsNode["PageSize"].asString());
auto allListNode = resourceTagsNode["List"]["ResourceTag"];
for (auto resourceTagsNodeListResourceTag : allListNode)
{
ResourceTags::ResourceTag resourceTagObject;
if(!resourceTagsNodeListResourceTag["Key"].isNull())
resourceTagObject.key = resourceTagsNodeListResourceTag["Key"].asString();
if(!resourceTagsNodeListResourceTag["Value"].isNull())
resourceTagObject.value = resourceTagsNodeListResourceTag["Value"].asString();
resourceTags_.list.push_back(resourceTagObject);
}
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 ListResourceTagsResult::getMessage()const
{
return message_;
}
ListResourceTagsResult::ResourceTags ListResourceTagsResult::getResourceTags()const
{
return resourceTags_;
}
int ListResourceTagsResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string ListResourceTagsResult::getCode()const
{
return code_;
}
bool ListResourceTagsResult::getSuccess()const
{
return success_;
}

View File

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

View File

@@ -0,0 +1,98 @@
/*
* 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/ListTagResourcesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
ListTagResourcesResult::ListTagResourcesResult() :
ServiceResult()
{}
ListTagResourcesResult::ListTagResourcesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListTagResourcesResult::~ListTagResourcesResult()
{}
void ListTagResourcesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allTagResourcesNode = value["TagResources"]["TagResource"];
for (auto valueTagResourcesTagResource : allTagResourcesNode)
{
TagResource tagResourcesObject;
if(!valueTagResourcesTagResource["TagKey"].isNull())
tagResourcesObject.tagKey = valueTagResourcesTagResource["TagKey"].asString();
if(!valueTagResourcesTagResource["TagValue"].isNull())
tagResourcesObject.tagValue = valueTagResourcesTagResource["TagValue"].asString();
if(!valueTagResourcesTagResource["ResourceId"].isNull())
tagResourcesObject.resourceId = valueTagResourcesTagResource["ResourceId"].asString();
if(!valueTagResourcesTagResource["ResourceType"].isNull())
tagResourcesObject.resourceType = valueTagResourcesTagResource["ResourceType"].asString();
tagResources_.push_back(tagResourcesObject);
}
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["NextToken"].isNull())
nextToken_ = value["NextToken"].asString();
}
std::string ListTagResourcesResult::getMessage()const
{
return message_;
}
std::string ListTagResourcesResult::getNextToken()const
{
return nextToken_;
}
std::vector<ListTagResourcesResult::TagResource> ListTagResourcesResult::getTagResources()const
{
return tagResources_;
}
int ListTagResourcesResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string ListTagResourcesResult::getCode()const
{
return code_;
}
bool ListTagResourcesResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/outboundbot/model/ModifyEmptyNumberNoMoreCallsInfoRequest.h>
using AlibabaCloud::OutboundBot::Model::ModifyEmptyNumberNoMoreCallsInfoRequest;
ModifyEmptyNumberNoMoreCallsInfoRequest::ModifyEmptyNumberNoMoreCallsInfoRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "ModifyEmptyNumberNoMoreCallsInfo")
{
setMethod(HttpRequest::Method::Post);
}
ModifyEmptyNumberNoMoreCallsInfoRequest::~ModifyEmptyNumberNoMoreCallsInfoRequest()
{}
int ModifyEmptyNumberNoMoreCallsInfoRequest::getStrategyLevel()const
{
return strategyLevel_;
}
void ModifyEmptyNumberNoMoreCallsInfoRequest::setStrategyLevel(int strategyLevel)
{
strategyLevel_ = strategyLevel;
setParameter("StrategyLevel", std::to_string(strategyLevel));
}
bool ModifyEmptyNumberNoMoreCallsInfoRequest::getEmptyNumberNoMoreCalls()const
{
return emptyNumberNoMoreCalls_;
}
void ModifyEmptyNumberNoMoreCallsInfoRequest::setEmptyNumberNoMoreCalls(bool emptyNumberNoMoreCalls)
{
emptyNumberNoMoreCalls_ = emptyNumberNoMoreCalls;
setParameter("EmptyNumberNoMoreCalls", emptyNumberNoMoreCalls ? "true" : "false");
}
std::string ModifyEmptyNumberNoMoreCallsInfoRequest::getEntryId()const
{
return entryId_;
}
void ModifyEmptyNumberNoMoreCallsInfoRequest::setEntryId(const std::string& entryId)
{
entryId_ = entryId;
setParameter("EntryId", entryId);
}

View File

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

View File

@@ -52,15 +52,21 @@ void ModifyInstanceResult::parse(const std::string &payload)
instance_.instanceName = instanceNode["InstanceName"].asString();
if(!instanceNode["MaxConcurrentConversation"].isNull())
instance_.maxConcurrentConversation = std::stoi(instanceNode["MaxConcurrentConversation"].asString());
if(!instanceNode["Owner"].isNull())
instance_.owner = instanceNode["Owner"].asString();
if(!instanceNode["NluServiceType"].isNull())
instance_.nluServiceType = instanceNode["NluServiceType"].asString();
if(!instanceNode["Owner"].isNull())
instance_.owner = instanceNode["Owner"].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();
auto nluProfileNode = instanceNode["NluProfile"];
if(!nluProfileNode["Endpoint"].isNull())
instance_.nluProfile.endpoint = nluProfileNode["Endpoint"].asString();
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())

View File

@@ -42,6 +42,8 @@ void ModifyJobGroupResult::parse(const std::string &payload)
auto jobGroupNode = value["JobGroup"];
if(!jobGroupNode["CreationTime"].isNull())
jobGroup_.creationTime = std::stol(jobGroupNode["CreationTime"].asString());
if(!jobGroupNode["JobDataParsingTaskId"].isNull())
jobGroup_.jobDataParsingTaskId = jobGroupNode["JobDataParsingTaskId"].asString();
if(!jobGroupNode["JobFilePath"].isNull())
jobGroup_.jobFilePath = jobGroupNode["JobFilePath"].asString();
if(!jobGroupNode["JobGroupDescription"].isNull())
@@ -50,8 +52,23 @@ void ModifyJobGroupResult::parse(const std::string &payload)
jobGroup_.jobGroupId = jobGroupNode["JobGroupId"].asString();
if(!jobGroupNode["JobGroupName"].isNull())
jobGroup_.jobGroupName = jobGroupNode["JobGroupName"].asString();
if(!jobGroupNode["ModifyTime"].isNull())
jobGroup_.modifyTime = jobGroupNode["ModifyTime"].asString();
if(!jobGroupNode["ScenarioId"].isNull())
jobGroup_.scenarioId = jobGroupNode["ScenarioId"].asString();
if(!jobGroupNode["ScriptName"].isNull())
jobGroup_.scriptName = jobGroupNode["ScriptName"].asString();
if(!jobGroupNode["ScriptVersion"].isNull())
jobGroup_.scriptVersion = jobGroupNode["ScriptVersion"].asString();
if(!jobGroupNode["Status"].isNull())
jobGroup_.status = jobGroupNode["Status"].asString();
auto exportProgressNode = jobGroupNode["ExportProgress"];
if(!exportProgressNode["FileHttpUrl"].isNull())
jobGroup_.exportProgress.fileHttpUrl = exportProgressNode["FileHttpUrl"].asString();
if(!exportProgressNode["Progress"].isNull())
jobGroup_.exportProgress.progress = exportProgressNode["Progress"].asString();
if(!exportProgressNode["Status"].isNull())
jobGroup_.exportProgress.status = exportProgressNode["Status"].asString();
auto strategyNode = jobGroupNode["Strategy"];
if(!strategyNode["Customized"].isNull())
jobGroup_.strategy.customized = strategyNode["Customized"].asString();

View File

@@ -0,0 +1,128 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/outboundbot/model/QueryJobsWithResultRequest.h>
using AlibabaCloud::OutboundBot::Model::QueryJobsWithResultRequest;
QueryJobsWithResultRequest::QueryJobsWithResultRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "QueryJobsWithResult")
{
setMethod(HttpRequest::Method::Post);
}
QueryJobsWithResultRequest::~QueryJobsWithResultRequest()
{}
bool QueryJobsWithResultRequest::getHasReachedEndOfFlowFilter()const
{
return hasReachedEndOfFlowFilter_;
}
void QueryJobsWithResultRequest::setHasReachedEndOfFlowFilter(bool hasReachedEndOfFlowFilter)
{
hasReachedEndOfFlowFilter_ = hasReachedEndOfFlowFilter;
setParameter("HasReachedEndOfFlowFilter", hasReachedEndOfFlowFilter ? "true" : "false");
}
bool QueryJobsWithResultRequest::getHasAnsweredFilter()const
{
return hasAnsweredFilter_;
}
void QueryJobsWithResultRequest::setHasAnsweredFilter(bool hasAnsweredFilter)
{
hasAnsweredFilter_ = hasAnsweredFilter;
setParameter("HasAnsweredFilter", hasAnsweredFilter ? "true" : "false");
}
int QueryJobsWithResultRequest::getPageNumber()const
{
return pageNumber_;
}
void QueryJobsWithResultRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string QueryJobsWithResultRequest::getQueryText()const
{
return queryText_;
}
void QueryJobsWithResultRequest::setQueryText(const std::string& queryText)
{
queryText_ = queryText;
setParameter("QueryText", queryText);
}
bool QueryJobsWithResultRequest::getHasHangUpByRejectionFilter()const
{
return hasHangUpByRejectionFilter_;
}
void QueryJobsWithResultRequest::setHasHangUpByRejectionFilter(bool hasHangUpByRejectionFilter)
{
hasHangUpByRejectionFilter_ = hasHangUpByRejectionFilter;
setParameter("HasHangUpByRejectionFilter", hasHangUpByRejectionFilter ? "true" : "false");
}
std::string QueryJobsWithResultRequest::getInstanceId()const
{
return instanceId_;
}
void QueryJobsWithResultRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string QueryJobsWithResultRequest::getJobStatusFilter()const
{
return jobStatusFilter_;
}
void QueryJobsWithResultRequest::setJobStatusFilter(const std::string& jobStatusFilter)
{
jobStatusFilter_ = jobStatusFilter;
setParameter("JobStatusFilter", jobStatusFilter);
}
int QueryJobsWithResultRequest::getPageSize()const
{
return pageSize_;
}
void QueryJobsWithResultRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string QueryJobsWithResultRequest::getJobGroupId()const
{
return jobGroupId_;
}
void QueryJobsWithResultRequest::setJobGroupId(const std::string& jobGroupId)
{
jobGroupId_ = jobGroupId;
setParameter("JobGroupId", jobGroupId);
}

View File

@@ -0,0 +1,158 @@
/*
* 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/QueryJobsWithResultResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
QueryJobsWithResultResult::QueryJobsWithResultResult() :
ServiceResult()
{}
QueryJobsWithResultResult::QueryJobsWithResultResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryJobsWithResultResult::~QueryJobsWithResultResult()
{}
void QueryJobsWithResultResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto jobsNode = value["Jobs"];
if(!jobsNode["PageCount"].isNull())
jobs_.pageCount = std::stoi(jobsNode["PageCount"].asString());
if(!jobsNode["PageNumber"].isNull())
jobs_.pageNumber = std::stoi(jobsNode["PageNumber"].asString());
if(!jobsNode["PageSize"].isNull())
jobs_.pageSize = std::stoi(jobsNode["PageSize"].asString());
if(!jobsNode["RowCount"].isNull())
jobs_.rowCount = std::stoi(jobsNode["RowCount"].asString());
auto allListNode = jobsNode["List"]["Job"];
for (auto jobsNodeListJob : allListNode)
{
Jobs::Job jobObject;
if(!jobsNodeListJob["JobFailureReason"].isNull())
jobObject.jobFailureReason = jobsNodeListJob["JobFailureReason"].asString();
if(!jobsNodeListJob["StatusName"].isNull())
jobObject.statusName = jobsNodeListJob["StatusName"].asString();
if(!jobsNodeListJob["Id"].isNull())
jobObject.id = jobsNodeListJob["Id"].asString();
if(!jobsNodeListJob["Status"].isNull())
jobObject.status = jobsNodeListJob["Status"].asString();
auto latestTaskNode = value["LatestTask"];
if(!latestTaskNode["TaskEndReason"].isNull())
jobObject.latestTask.taskEndReason = latestTaskNode["TaskEndReason"].asString();
if(!latestTaskNode["CallDuration"].isNull())
jobObject.latestTask.callDuration = std::stoi(latestTaskNode["CallDuration"].asString());
if(!latestTaskNode["CallDurationDisplay"].isNull())
jobObject.latestTask.callDurationDisplay = latestTaskNode["CallDurationDisplay"].asString();
if(!latestTaskNode["StatusName"].isNull())
jobObject.latestTask.statusName = latestTaskNode["StatusName"].asString();
if(!latestTaskNode["HasAnswered"].isNull())
jobObject.latestTask.hasAnswered = latestTaskNode["HasAnswered"].asString() == "true";
if(!latestTaskNode["HasReachedEndOfFlow"].isNull())
jobObject.latestTask.hasReachedEndOfFlow = latestTaskNode["HasReachedEndOfFlow"].asString() == "true";
if(!latestTaskNode["CallTime"].isNull())
jobObject.latestTask.callTime = std::stol(latestTaskNode["CallTime"].asString());
if(!latestTaskNode["HasHangUpByRejection"].isNull())
jobObject.latestTask.hasHangUpByRejection = latestTaskNode["HasHangUpByRejection"].asString() == "true";
if(!latestTaskNode["Status"].isNull())
jobObject.latestTask.status = latestTaskNode["Status"].asString();
auto allExtrasNode = latestTaskNode["Extras"]["Extra"];
for (auto latestTaskNodeExtrasExtra : allExtrasNode)
{
Jobs::Job::LatestTask::Extra extraObject;
if(!latestTaskNodeExtrasExtra["Key"].isNull())
extraObject.key = latestTaskNodeExtrasExtra["Key"].asString();
if(!latestTaskNodeExtrasExtra["Value"].isNull())
extraObject.value = latestTaskNodeExtrasExtra["Value"].asString();
jobObject.latestTask.extras.push_back(extraObject);
}
auto contactNode = latestTaskNode["Contact"];
if(!contactNode["PreferredPhoneNumber"].isNull())
jobObject.latestTask.contact.preferredPhoneNumber = contactNode["PreferredPhoneNumber"].asString();
if(!contactNode["JobUuid"].isNull())
jobObject.latestTask.contact.jobUuid = contactNode["JobUuid"].asString();
if(!contactNode["PhoneNumber"].isNull())
jobObject.latestTask.contact.phoneNumber = contactNode["PhoneNumber"].asString();
if(!contactNode["Role"].isNull())
jobObject.latestTask.contact.role = contactNode["Role"].asString();
if(!contactNode["Round"].isNull())
jobObject.latestTask.contact.round = std::stoi(contactNode["Round"].asString());
if(!contactNode["Name"].isNull())
jobObject.latestTask.contact.name = contactNode["Name"].asString();
if(!contactNode["Id"].isNull())
jobObject.latestTask.contact.id = contactNode["Id"].asString();
if(!contactNode["State"].isNull())
jobObject.latestTask.contact.state = contactNode["State"].asString();
if(!contactNode["ReferenceId"].isNull())
jobObject.latestTask.contact.referenceId = contactNode["ReferenceId"].asString();
if(!contactNode["Honorific"].isNull())
jobObject.latestTask.contact.honorific = contactNode["Honorific"].asString();
jobs_.list.push_back(jobObject);
}
auto allVariableNames = value["VariableNames"]["VariableName"];
for (const auto &item : allVariableNames)
variableNames_.push_back(item.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::vector<std::string> QueryJobsWithResultResult::getVariableNames()const
{
return variableNames_;
}
std::string QueryJobsWithResultResult::getMessage()const
{
return message_;
}
QueryJobsWithResultResult::Jobs QueryJobsWithResultResult::getJobs()const
{
return jobs_;
}
int QueryJobsWithResultResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string QueryJobsWithResultResult::getCode()const
{
return code_;
}
bool QueryJobsWithResultResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/outboundbot/model/SaveAfterAnswerDelayPlaybackRequest.h>
using AlibabaCloud::OutboundBot::Model::SaveAfterAnswerDelayPlaybackRequest;
SaveAfterAnswerDelayPlaybackRequest::SaveAfterAnswerDelayPlaybackRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "SaveAfterAnswerDelayPlayback")
{
setMethod(HttpRequest::Method::Post);
}
SaveAfterAnswerDelayPlaybackRequest::~SaveAfterAnswerDelayPlaybackRequest()
{}
int SaveAfterAnswerDelayPlaybackRequest::getStrategyLevel()const
{
return strategyLevel_;
}
void SaveAfterAnswerDelayPlaybackRequest::setStrategyLevel(int strategyLevel)
{
strategyLevel_ = strategyLevel;
setParameter("StrategyLevel", std::to_string(strategyLevel));
}
std::string SaveAfterAnswerDelayPlaybackRequest::getEntryId()const
{
return entryId_;
}
void SaveAfterAnswerDelayPlaybackRequest::setEntryId(const std::string& entryId)
{
entryId_ = entryId;
setParameter("EntryId", entryId);
}
int SaveAfterAnswerDelayPlaybackRequest::getAfterAnswerDelayPlayback()const
{
return afterAnswerDelayPlayback_;
}
void SaveAfterAnswerDelayPlaybackRequest::setAfterAnswerDelayPlayback(int afterAnswerDelayPlayback)
{
afterAnswerDelayPlayback_ = afterAnswerDelayPlayback;
setParameter("AfterAnswerDelayPlayback", std::to_string(afterAnswerDelayPlayback));
}

View File

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

View File

@@ -0,0 +1,86 @@
/*
* 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/SaveBaseStrategyPeriodRequest.h>
using AlibabaCloud::OutboundBot::Model::SaveBaseStrategyPeriodRequest;
SaveBaseStrategyPeriodRequest::SaveBaseStrategyPeriodRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "SaveBaseStrategyPeriod")
{
setMethod(HttpRequest::Method::Post);
}
SaveBaseStrategyPeriodRequest::~SaveBaseStrategyPeriodRequest()
{}
int SaveBaseStrategyPeriodRequest::getStrategyLevel()const
{
return strategyLevel_;
}
void SaveBaseStrategyPeriodRequest::setStrategyLevel(int strategyLevel)
{
strategyLevel_ = strategyLevel;
setParameter("StrategyLevel", std::to_string(strategyLevel));
}
std::string SaveBaseStrategyPeriodRequest::getEntryId()const
{
return entryId_;
}
void SaveBaseStrategyPeriodRequest::setEntryId(const std::string& entryId)
{
entryId_ = entryId;
setParameter("EntryId", entryId);
}
bool SaveBaseStrategyPeriodRequest::getOnlyWeekdays()const
{
return onlyWeekdays_;
}
void SaveBaseStrategyPeriodRequest::setOnlyWeekdays(bool onlyWeekdays)
{
onlyWeekdays_ = onlyWeekdays;
setParameter("OnlyWeekdays", onlyWeekdays ? "true" : "false");
}
std::string SaveBaseStrategyPeriodRequest::getWorkingTimeFramesJson()const
{
return workingTimeFramesJson_;
}
void SaveBaseStrategyPeriodRequest::setWorkingTimeFramesJson(const std::string& workingTimeFramesJson)
{
workingTimeFramesJson_ = workingTimeFramesJson;
setParameter("WorkingTimeFramesJson", workingTimeFramesJson);
}
std::vector<std::string> SaveBaseStrategyPeriodRequest::getWorkingTime()const
{
return workingTime_;
}
void SaveBaseStrategyPeriodRequest::setWorkingTime(const std::vector<std::string>& workingTime)
{
workingTime_ = workingTime;
for(int dep1 = 0; dep1!= workingTime.size(); dep1++) {
setParameter("WorkingTime."+ std::to_string(dep1), workingTime.at(dep1));
}
}

View File

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

View File

@@ -0,0 +1,64 @@
/*
* 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/SaveContactBlockListRequest.h>
using AlibabaCloud::OutboundBot::Model::SaveContactBlockListRequest;
SaveContactBlockListRequest::SaveContactBlockListRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "SaveContactBlockList")
{
setMethod(HttpRequest::Method::Post);
}
SaveContactBlockListRequest::~SaveContactBlockListRequest()
{}
std::vector<std::string> SaveContactBlockListRequest::getContactBlockListList()const
{
return contactBlockListList_;
}
void SaveContactBlockListRequest::setContactBlockListList(const std::vector<std::string>& contactBlockListList)
{
contactBlockListList_ = contactBlockListList;
for(int dep1 = 0; dep1!= contactBlockListList.size(); dep1++) {
setParameter("ContactBlockListList."+ std::to_string(dep1), contactBlockListList.at(dep1));
}
}
std::string SaveContactBlockListRequest::getInstanceId()const
{
return instanceId_;
}
void SaveContactBlockListRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string SaveContactBlockListRequest::getContactBlockListsJson()const
{
return contactBlockListsJson_;
}
void SaveContactBlockListRequest::setContactBlockListsJson(const std::string& contactBlockListsJson)
{
contactBlockListsJson_ = contactBlockListsJson;
setParameter("ContactBlockListsJson", contactBlockListsJson);
}

View File

@@ -0,0 +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/SaveContactBlockListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
SaveContactBlockListResult::SaveContactBlockListResult() :
ServiceResult()
{}
SaveContactBlockListResult::SaveContactBlockListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SaveContactBlockListResult::~SaveContactBlockListResult()
{}
void SaveContactBlockListResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = 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());
}
std::string SaveContactBlockListResult::getMessage()const
{
return message_;
}
int SaveContactBlockListResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
int SaveContactBlockListResult::getAffectedRows()const
{
return affectedRows_;
}
std::string SaveContactBlockListResult::getCode()const
{
return code_;
}
bool SaveContactBlockListResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,64 @@
/*
* 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/SaveContactWhiteListRequest.h>
using AlibabaCloud::OutboundBot::Model::SaveContactWhiteListRequest;
SaveContactWhiteListRequest::SaveContactWhiteListRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "SaveContactWhiteList")
{
setMethod(HttpRequest::Method::Post);
}
SaveContactWhiteListRequest::~SaveContactWhiteListRequest()
{}
std::vector<std::string> SaveContactWhiteListRequest::getContactWhiteListList()const
{
return contactWhiteListList_;
}
void SaveContactWhiteListRequest::setContactWhiteListList(const std::vector<std::string>& contactWhiteListList)
{
contactWhiteListList_ = contactWhiteListList;
for(int dep1 = 0; dep1!= contactWhiteListList.size(); dep1++) {
setParameter("ContactWhiteListList."+ std::to_string(dep1), contactWhiteListList.at(dep1));
}
}
std::string SaveContactWhiteListRequest::getContactWhiteListsJson()const
{
return contactWhiteListsJson_;
}
void SaveContactWhiteListRequest::setContactWhiteListsJson(const std::string& contactWhiteListsJson)
{
contactWhiteListsJson_ = contactWhiteListsJson;
setParameter("ContactWhiteListsJson", contactWhiteListsJson);
}
std::string SaveContactWhiteListRequest::getInstanceId()const
{
return instanceId_;
}
void SaveContactWhiteListRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}

View File

@@ -0,0 +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/SaveContactWhiteListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
SaveContactWhiteListResult::SaveContactWhiteListResult() :
ServiceResult()
{}
SaveContactWhiteListResult::SaveContactWhiteListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SaveContactWhiteListResult::~SaveContactWhiteListResult()
{}
void SaveContactWhiteListResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = 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());
}
std::string SaveContactWhiteListResult::getMessage()const
{
return message_;
}
int SaveContactWhiteListResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
int SaveContactWhiteListResult::getAffectedRows()const
{
return affectedRows_;
}
std::string SaveContactWhiteListResult::getCode()const
{
return code_;
}
bool SaveContactWhiteListResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/outboundbot/model/SaveEffectiveDaysRequest.h>
using AlibabaCloud::OutboundBot::Model::SaveEffectiveDaysRequest;
SaveEffectiveDaysRequest::SaveEffectiveDaysRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "SaveEffectiveDays")
{
setMethod(HttpRequest::Method::Post);
}
SaveEffectiveDaysRequest::~SaveEffectiveDaysRequest()
{}
int SaveEffectiveDaysRequest::getEffectiveDays()const
{
return effectiveDays_;
}
void SaveEffectiveDaysRequest::setEffectiveDays(int effectiveDays)
{
effectiveDays_ = effectiveDays;
setParameter("EffectiveDays", std::to_string(effectiveDays));
}
int SaveEffectiveDaysRequest::getStrategyLevel()const
{
return strategyLevel_;
}
void SaveEffectiveDaysRequest::setStrategyLevel(int strategyLevel)
{
strategyLevel_ = strategyLevel;
setParameter("StrategyLevel", std::to_string(strategyLevel));
}
std::string SaveEffectiveDaysRequest::getEntryId()const
{
return entryId_;
}
void SaveEffectiveDaysRequest::setEntryId(const std::string& entryId)
{
entryId_ = entryId;
setParameter("EntryId", entryId);
}

View File

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

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/outboundbot/model/SaveMaxAttemptsPerDayRequest.h>
using AlibabaCloud::OutboundBot::Model::SaveMaxAttemptsPerDayRequest;
SaveMaxAttemptsPerDayRequest::SaveMaxAttemptsPerDayRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "SaveMaxAttemptsPerDay")
{
setMethod(HttpRequest::Method::Post);
}
SaveMaxAttemptsPerDayRequest::~SaveMaxAttemptsPerDayRequest()
{}
int SaveMaxAttemptsPerDayRequest::getMaxAttemptsPerDay()const
{
return maxAttemptsPerDay_;
}
void SaveMaxAttemptsPerDayRequest::setMaxAttemptsPerDay(int maxAttemptsPerDay)
{
maxAttemptsPerDay_ = maxAttemptsPerDay;
setParameter("MaxAttemptsPerDay", std::to_string(maxAttemptsPerDay));
}
int SaveMaxAttemptsPerDayRequest::getStrategyLevel()const
{
return strategyLevel_;
}
void SaveMaxAttemptsPerDayRequest::setStrategyLevel(int strategyLevel)
{
strategyLevel_ = strategyLevel;
setParameter("StrategyLevel", std::to_string(strategyLevel));
}
std::string SaveMaxAttemptsPerDayRequest::getEntryId()const
{
return entryId_;
}
void SaveMaxAttemptsPerDayRequest::setEntryId(const std::string& entryId)
{
entryId_ = entryId;
setParameter("EntryId", entryId);
}

View File

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

View File

@@ -0,0 +1,64 @@
/*
* 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/SuspendCallRequest.h>
using AlibabaCloud::OutboundBot::Model::SuspendCallRequest;
SuspendCallRequest::SuspendCallRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "SuspendCall")
{
setMethod(HttpRequest::Method::Post);
}
SuspendCallRequest::~SuspendCallRequest()
{}
std::string SuspendCallRequest::getGroupId()const
{
return groupId_;
}
void SuspendCallRequest::setGroupId(const std::string& groupId)
{
groupId_ = groupId;
setParameter("GroupId", groupId);
}
std::vector<std::string> SuspendCallRequest::getCalledNumbers()const
{
return calledNumbers_;
}
void SuspendCallRequest::setCalledNumbers(const std::vector<std::string>& calledNumbers)
{
calledNumbers_ = calledNumbers;
for(int dep1 = 0; dep1!= calledNumbers.size(); dep1++) {
setParameter("CalledNumbers."+ std::to_string(dep1), calledNumbers.at(dep1));
}
}
std::string SuspendCallRequest::getInstanceId()const
{
return instanceId_;
}
void SuspendCallRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}

View File

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

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/outboundbot/model/SuspendCallWithFileRequest.h>
using AlibabaCloud::OutboundBot::Model::SuspendCallWithFileRequest;
SuspendCallWithFileRequest::SuspendCallWithFileRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "SuspendCallWithFile")
{
setMethod(HttpRequest::Method::Post);
}
SuspendCallWithFileRequest::~SuspendCallWithFileRequest()
{}
std::string SuspendCallWithFileRequest::getGroupId()const
{
return groupId_;
}
void SuspendCallWithFileRequest::setGroupId(const std::string& groupId)
{
groupId_ = groupId;
setParameter("GroupId", groupId);
}
std::string SuspendCallWithFileRequest::getInstanceId()const
{
return instanceId_;
}
void SuspendCallWithFileRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string SuspendCallWithFileRequest::getFilePath()const
{
return filePath_;
}
void SuspendCallWithFileRequest::setFilePath(const std::string& filePath)
{
filePath_ = filePath;
setParameter("FilePath", filePath);
}

View File

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

View File

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

View File

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

View File

@@ -0,0 +1,88 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/outboundbot/model/UntagResourcesRequest.h>
using AlibabaCloud::OutboundBot::Model::UntagResourcesRequest;
UntagResourcesRequest::UntagResourcesRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "UntagResources")
{
setMethod(HttpRequest::Method::Post);
}
UntagResourcesRequest::~UntagResourcesRequest()
{}
bool UntagResourcesRequest::getAll()const
{
return all_;
}
void UntagResourcesRequest::setAll(bool all)
{
all_ = all;
setParameter("All", all ? "true" : "false");
}
std::vector<std::string> UntagResourcesRequest::getResourceId()const
{
return resourceId_;
}
void UntagResourcesRequest::setResourceId(const std::vector<std::string>& resourceId)
{
resourceId_ = resourceId;
for(int dep1 = 0; dep1!= resourceId.size(); dep1++) {
setParameter("ResourceId."+ std::to_string(dep1), resourceId.at(dep1));
}
}
std::string UntagResourcesRequest::getResourceType()const
{
return resourceType_;
}
void UntagResourcesRequest::setResourceType(const std::string& resourceType)
{
resourceType_ = resourceType;
setParameter("ResourceType", resourceType);
}
std::string UntagResourcesRequest::getRegionId()const
{
return regionId_;
}
void UntagResourcesRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::vector<std::string> UntagResourcesRequest::getTagKey()const
{
return tagKey_;
}
void UntagResourcesRequest::setTagKey(const std::vector<std::string>& tagKey)
{
tagKey_ = tagKey;
for(int dep1 = 0; dep1!= tagKey.size(); dep1++) {
setParameter("TagKey."+ std::to_string(dep1), tagKey.at(dep1));
}
}

View File

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