Supported new features for outbound.
This commit is contained in:
@@ -1,130 +1,107 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/CreateBatchJobsRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::CreateBatchJobsRequest;
|
||||
|
||||
CreateBatchJobsRequest::CreateBatchJobsRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "CreateBatchJobs")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateBatchJobsRequest::~CreateBatchJobsRequest()
|
||||
{}
|
||||
|
||||
std::string CreateBatchJobsRequest::getJobFilePath()const
|
||||
{
|
||||
return jobFilePath_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/CreateBatchJobsRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::CreateBatchJobsRequest;
|
||||
|
||||
CreateBatchJobsRequest::CreateBatchJobsRequest()
|
||||
: RpcServiceRequest("outboundbot", "2019-12-26", "CreateBatchJobs") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateBatchJobsRequest::setJobFilePath(const std::string& jobFilePath)
|
||||
{
|
||||
jobFilePath_ = jobFilePath;
|
||||
setParameter("JobFilePath", jobFilePath);
|
||||
CreateBatchJobsRequest::~CreateBatchJobsRequest() {}
|
||||
|
||||
std::string CreateBatchJobsRequest::getJobFilePath() const {
|
||||
return jobFilePath_;
|
||||
}
|
||||
|
||||
std::string CreateBatchJobsRequest::getScriptId()const
|
||||
{
|
||||
return scriptId_;
|
||||
void CreateBatchJobsRequest::setJobFilePath(const std::string &jobFilePath) {
|
||||
jobFilePath_ = jobFilePath;
|
||||
setParameter(std::string("JobFilePath"), jobFilePath);
|
||||
}
|
||||
|
||||
void CreateBatchJobsRequest::setScriptId(const std::string& scriptId)
|
||||
{
|
||||
scriptId_ = scriptId;
|
||||
setParameter("ScriptId", scriptId);
|
||||
std::string CreateBatchJobsRequest::getScriptId() const {
|
||||
return scriptId_;
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateBatchJobsRequest::getCallingNumber()const
|
||||
{
|
||||
return callingNumber_;
|
||||
void CreateBatchJobsRequest::setScriptId(const std::string &scriptId) {
|
||||
scriptId_ = scriptId;
|
||||
setParameter(std::string("ScriptId"), scriptId);
|
||||
}
|
||||
|
||||
void CreateBatchJobsRequest::setCallingNumber(const std::vector<std::string>& callingNumber)
|
||||
{
|
||||
callingNumber_ = callingNumber;
|
||||
for(int dep1 = 0; dep1!= callingNumber.size(); dep1++) {
|
||||
setParameter("CallingNumber."+ std::to_string(dep1), callingNumber.at(dep1));
|
||||
}
|
||||
std::vector<std::string> CreateBatchJobsRequest::getCallingNumber() const {
|
||||
return callingNumber_;
|
||||
}
|
||||
|
||||
std::string CreateBatchJobsRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
void CreateBatchJobsRequest::setCallingNumber(const std::vector<std::string> &callingNumber) {
|
||||
callingNumber_ = callingNumber;
|
||||
}
|
||||
|
||||
void CreateBatchJobsRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
std::string CreateBatchJobsRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
bool CreateBatchJobsRequest::getSubmitted()const
|
||||
{
|
||||
return submitted_;
|
||||
void CreateBatchJobsRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
void CreateBatchJobsRequest::setSubmitted(bool submitted)
|
||||
{
|
||||
submitted_ = submitted;
|
||||
setParameter("Submitted", submitted ? "true" : "false");
|
||||
bool CreateBatchJobsRequest::getSubmitted() const {
|
||||
return submitted_;
|
||||
}
|
||||
|
||||
std::string CreateBatchJobsRequest::getBatchJobName()const
|
||||
{
|
||||
return batchJobName_;
|
||||
void CreateBatchJobsRequest::setSubmitted(bool submitted) {
|
||||
submitted_ = submitted;
|
||||
setParameter(std::string("Submitted"), submitted ? "true" : "false");
|
||||
}
|
||||
|
||||
void CreateBatchJobsRequest::setBatchJobName(const std::string& batchJobName)
|
||||
{
|
||||
batchJobName_ = batchJobName;
|
||||
setParameter("BatchJobName", batchJobName);
|
||||
std::string CreateBatchJobsRequest::getBatchJobName() const {
|
||||
return batchJobName_;
|
||||
}
|
||||
|
||||
std::string CreateBatchJobsRequest::getStrategyJson()const
|
||||
{
|
||||
return strategyJson_;
|
||||
void CreateBatchJobsRequest::setBatchJobName(const std::string &batchJobName) {
|
||||
batchJobName_ = batchJobName;
|
||||
setParameter(std::string("BatchJobName"), batchJobName);
|
||||
}
|
||||
|
||||
void CreateBatchJobsRequest::setStrategyJson(const std::string& strategyJson)
|
||||
{
|
||||
strategyJson_ = strategyJson;
|
||||
setParameter("StrategyJson", strategyJson);
|
||||
std::string CreateBatchJobsRequest::getStrategyJson() const {
|
||||
return strategyJson_;
|
||||
}
|
||||
|
||||
std::string CreateBatchJobsRequest::getBatchJobDescription()const
|
||||
{
|
||||
return batchJobDescription_;
|
||||
void CreateBatchJobsRequest::setStrategyJson(const std::string &strategyJson) {
|
||||
strategyJson_ = strategyJson;
|
||||
setParameter(std::string("StrategyJson"), strategyJson);
|
||||
}
|
||||
|
||||
void CreateBatchJobsRequest::setBatchJobDescription(const std::string& batchJobDescription)
|
||||
{
|
||||
batchJobDescription_ = batchJobDescription;
|
||||
setParameter("BatchJobDescription", batchJobDescription);
|
||||
std::string CreateBatchJobsRequest::getBatchJobDescription() const {
|
||||
return batchJobDescription_;
|
||||
}
|
||||
|
||||
std::string CreateBatchJobsRequest::getScenarioId()const
|
||||
{
|
||||
return scenarioId_;
|
||||
void CreateBatchJobsRequest::setBatchJobDescription(const std::string &batchJobDescription) {
|
||||
batchJobDescription_ = batchJobDescription;
|
||||
setParameter(std::string("BatchJobDescription"), batchJobDescription);
|
||||
}
|
||||
|
||||
void CreateBatchJobsRequest::setScenarioId(const std::string& scenarioId)
|
||||
{
|
||||
scenarioId_ = scenarioId;
|
||||
setParameter("ScenarioId", scenarioId);
|
||||
std::string CreateBatchJobsRequest::getScenarioId() const {
|
||||
return scenarioId_;
|
||||
}
|
||||
|
||||
void CreateBatchJobsRequest::setScenarioId(const std::string &scenarioId) {
|
||||
scenarioId_ = scenarioId;
|
||||
setParameter(std::string("ScenarioId"), scenarioId);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user