增加StartSyncExecution

This commit is contained in:
sdk-team
2023-10-26 15:51:54 +00:00
parent 879e8b9359
commit 2b84cadd9d
59 changed files with 1859 additions and 1793 deletions

View File

@@ -555,6 +555,42 @@ FnfClient::StartExecutionOutcomeCallable FnfClient::startExecutionCallable(const
return task->get_future();
}
FnfClient::StartSyncExecutionOutcome FnfClient::startSyncExecution(const StartSyncExecutionRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return StartSyncExecutionOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return StartSyncExecutionOutcome(StartSyncExecutionResult(outcome.result()));
else
return StartSyncExecutionOutcome(outcome.error());
}
void FnfClient::startSyncExecutionAsync(const StartSyncExecutionRequest& request, const StartSyncExecutionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, startSyncExecution(request), context);
};
asyncExecute(new Runnable(fn));
}
FnfClient::StartSyncExecutionOutcomeCallable FnfClient::startSyncExecutionCallable(const StartSyncExecutionRequest &request) const
{
auto task = std::make_shared<std::packaged_task<StartSyncExecutionOutcome()>>(
[this, request]()
{
return this->startSyncExecution(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
FnfClient::StopExecutionOutcome FnfClient::stopExecution(const StopExecutionRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -1,106 +1,99 @@
/*
* 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/fnf/model/CreateFlowRequest.h>
using AlibabaCloud::Fnf::Model::CreateFlowRequest;
CreateFlowRequest::CreateFlowRequest() :
RpcServiceRequest("fnf", "2019-03-15", "CreateFlow")
{
setMethod(HttpRequest::Method::Post);
}
CreateFlowRequest::~CreateFlowRequest()
{}
std::string CreateFlowRequest::getDescription()const
{
return description_;
*/
#include <alibabacloud/fnf/model/CreateFlowRequest.h>
using AlibabaCloud::Fnf::Model::CreateFlowRequest;
CreateFlowRequest::CreateFlowRequest()
: RpcServiceRequest("fnf", "2019-03-15", "CreateFlow") {
setMethod(HttpRequest::Method::Post);
}
void CreateFlowRequest::setDescription(const std::string& description)
{
description_ = description;
setBodyParameter("Description", description);
CreateFlowRequest::~CreateFlowRequest() {}
std::string CreateFlowRequest::getDescription() const {
return description_;
}
std::string CreateFlowRequest::getType()const
{
return type_;
void CreateFlowRequest::setDescription(const std::string &description) {
description_ = description;
setBodyParameter(std::string("Description"), description);
}
void CreateFlowRequest::setType(const std::string& type)
{
type_ = type;
setBodyParameter("Type", type);
std::string CreateFlowRequest::getType() const {
return type_;
}
std::string CreateFlowRequest::getRequestId()const
{
return requestId_;
void CreateFlowRequest::setType(const std::string &type) {
type_ = type;
setBodyParameter(std::string("Type"), type);
}
void CreateFlowRequest::setRequestId(const std::string& requestId)
{
requestId_ = requestId;
setParameter("RequestId", requestId);
std::string CreateFlowRequest::getRequestId() const {
return requestId_;
}
std::string CreateFlowRequest::getRoleArn()const
{
return roleArn_;
void CreateFlowRequest::setRequestId(const std::string &requestId) {
requestId_ = requestId;
setParameter(std::string("RequestId"), requestId);
}
void CreateFlowRequest::setRoleArn(const std::string& roleArn)
{
roleArn_ = roleArn;
setBodyParameter("RoleArn", roleArn);
std::string CreateFlowRequest::getRoleArn() const {
return roleArn_;
}
std::string CreateFlowRequest::getName()const
{
return name_;
void CreateFlowRequest::setRoleArn(const std::string &roleArn) {
roleArn_ = roleArn;
setBodyParameter(std::string("RoleArn"), roleArn);
}
void CreateFlowRequest::setName(const std::string& name)
{
name_ = name;
setBodyParameter("Name", name);
std::string CreateFlowRequest::getName() const {
return name_;
}
std::string CreateFlowRequest::getDefinition()const
{
return definition_;
void CreateFlowRequest::setName(const std::string &name) {
name_ = name;
setBodyParameter(std::string("Name"), name);
}
void CreateFlowRequest::setDefinition(const std::string& definition)
{
definition_ = definition;
setBodyParameter("Definition", definition);
std::string CreateFlowRequest::getDefinition() const {
return definition_;
}
std::string CreateFlowRequest::getExternalStorageLocation()const
{
return externalStorageLocation_;
void CreateFlowRequest::setDefinition(const std::string &definition) {
definition_ = definition;
setBodyParameter(std::string("Definition"), definition);
}
void CreateFlowRequest::setExternalStorageLocation(const std::string& externalStorageLocation)
{
externalStorageLocation_ = externalStorageLocation;
setBodyParameter("ExternalStorageLocation", externalStorageLocation);
std::string CreateFlowRequest::getExternalStorageLocation() const {
return externalStorageLocation_;
}
void CreateFlowRequest::setExternalStorageLocation(const std::string &externalStorageLocation) {
externalStorageLocation_ = externalStorageLocation;
setBodyParameter(std::string("ExternalStorageLocation"), externalStorageLocation);
}
std::string CreateFlowRequest::getExecutionMode() const {
return executionMode_;
}
void CreateFlowRequest::setExecutionMode(const std::string &executionMode) {
executionMode_ = executionMode;
setBodyParameter(std::string("ExecutionMode"), executionMode);
}

View File

@@ -39,24 +39,26 @@ void CreateFlowResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Name"].isNull())
name_ = value["Name"].asString();
if(!value["Description"].isNull())
description_ = value["Description"].asString();
if(!value["Definition"].isNull())
definition_ = value["Definition"].asString();
if(!value["Id"].isNull())
id_ = value["Id"].asString();
if(!value["Type"].isNull())
type_ = value["Type"].asString();
if(!value["Definition"].isNull())
definition_ = value["Definition"].asString();
if(!value["RoleArn"].isNull())
roleArn_ = value["RoleArn"].asString();
if(!value["Description"].isNull())
description_ = value["Description"].asString();
if(!value["ExternalStorageLocation"].isNull())
externalStorageLocation_ = value["ExternalStorageLocation"].asString();
if(!value["Name"].isNull())
name_ = value["Name"].asString();
if(!value["CreatedTime"].isNull())
createdTime_ = value["CreatedTime"].asString();
if(!value["LastModifiedTime"].isNull())
lastModifiedTime_ = value["LastModifiedTime"].asString();
if(!value["ExternalStorageLocation"].isNull())
externalStorageLocation_ = value["ExternalStorageLocation"].asString();
if(!value["Id"].isNull())
id_ = value["Id"].asString();
if(!value["ExecutionMode"].isNull())
executionMode_ = value["ExecutionMode"].asString();
}
@@ -85,6 +87,11 @@ std::string CreateFlowResult::getLastModifiedTime()const
return lastModifiedTime_;
}
std::string CreateFlowResult::getExecutionMode()const
{
return executionMode_;
}
std::string CreateFlowResult::getId()const
{
return id_;

View File

@@ -1,106 +1,90 @@
/*
* 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/fnf/model/CreateScheduleRequest.h>
using AlibabaCloud::Fnf::Model::CreateScheduleRequest;
CreateScheduleRequest::CreateScheduleRequest() :
RpcServiceRequest("fnf", "2019-03-15", "CreateSchedule")
{
setMethod(HttpRequest::Method::Post);
}
CreateScheduleRequest::~CreateScheduleRequest()
{}
std::string CreateScheduleRequest::getScheduleName()const
{
return scheduleName_;
*/
#include <alibabacloud/fnf/model/CreateScheduleRequest.h>
using AlibabaCloud::Fnf::Model::CreateScheduleRequest;
CreateScheduleRequest::CreateScheduleRequest()
: RpcServiceRequest("fnf", "2019-03-15", "CreateSchedule") {
setMethod(HttpRequest::Method::Post);
}
void CreateScheduleRequest::setScheduleName(const std::string& scheduleName)
{
scheduleName_ = scheduleName;
setBodyParameter("ScheduleName", scheduleName);
CreateScheduleRequest::~CreateScheduleRequest() {}
std::string CreateScheduleRequest::getScheduleName() const {
return scheduleName_;
}
std::string CreateScheduleRequest::getCronExpression()const
{
return cronExpression_;
void CreateScheduleRequest::setScheduleName(const std::string &scheduleName) {
scheduleName_ = scheduleName;
setBodyParameter(std::string("ScheduleName"), scheduleName);
}
void CreateScheduleRequest::setCronExpression(const std::string& cronExpression)
{
cronExpression_ = cronExpression;
setBodyParameter("CronExpression", cronExpression);
std::string CreateScheduleRequest::getCronExpression() const {
return cronExpression_;
}
std::string CreateScheduleRequest::getPayload()const
{
return payload_;
void CreateScheduleRequest::setCronExpression(const std::string &cronExpression) {
cronExpression_ = cronExpression;
setBodyParameter(std::string("CronExpression"), cronExpression);
}
void CreateScheduleRequest::setPayload(const std::string& payload)
{
payload_ = payload;
setBodyParameter("Payload", payload);
std::string CreateScheduleRequest::getPayload() const {
return payload_;
}
std::string CreateScheduleRequest::getRequestId()const
{
return requestId_;
void CreateScheduleRequest::setPayload(const std::string &payload) {
payload_ = payload;
setBodyParameter(std::string("Payload"), payload);
}
void CreateScheduleRequest::setRequestId(const std::string& requestId)
{
requestId_ = requestId;
setParameter("RequestId", requestId);
std::string CreateScheduleRequest::getRequestId() const {
return requestId_;
}
bool CreateScheduleRequest::getEnable()const
{
return enable_;
void CreateScheduleRequest::setRequestId(const std::string &requestId) {
requestId_ = requestId;
setParameter(std::string("RequestId"), requestId);
}
void CreateScheduleRequest::setEnable(bool enable)
{
enable_ = enable;
setBodyParameter("Enable", enable ? "true" : "false");
bool CreateScheduleRequest::getEnable() const {
return enable_;
}
std::string CreateScheduleRequest::getDescription()const
{
return description_;
void CreateScheduleRequest::setEnable(bool enable) {
enable_ = enable;
setBodyParameter(std::string("Enable"), enable ? "true" : "false");
}
void CreateScheduleRequest::setDescription(const std::string& description)
{
description_ = description;
setBodyParameter("Description", description);
std::string CreateScheduleRequest::getDescription() const {
return description_;
}
std::string CreateScheduleRequest::getFlowName()const
{
return flowName_;
void CreateScheduleRequest::setDescription(const std::string &description) {
description_ = description;
setBodyParameter(std::string("Description"), description);
}
void CreateScheduleRequest::setFlowName(const std::string& flowName)
{
flowName_ = flowName;
setBodyParameter("FlowName", flowName);
std::string CreateScheduleRequest::getFlowName() const {
return flowName_;
}
void CreateScheduleRequest::setFlowName(const std::string &flowName) {
flowName_ = flowName;
setBodyParameter(std::string("FlowName"), flowName);
}

View File

@@ -39,22 +39,22 @@ void CreateScheduleResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["ScheduleName"].isNull())
scheduleName_ = value["ScheduleName"].asString();
if(!value["Description"].isNull())
description_ = value["Description"].asString();
if(!value["ScheduleId"].isNull())
scheduleId_ = value["ScheduleId"].asString();
if(!value["Payload"].isNull())
payload_ = value["Payload"].asString();
if(!value["CronExpression"].isNull())
cronExpression_ = value["CronExpression"].asString();
if(!value["Enable"].isNull())
enable_ = value["Enable"].asString() == "true";
if(!value["ScheduleName"].isNull())
scheduleName_ = value["ScheduleName"].asString();
if(!value["CreatedTime"].isNull())
createdTime_ = value["CreatedTime"].asString();
if(!value["LastModifiedTime"].isNull())
lastModifiedTime_ = value["LastModifiedTime"].asString();
if(!value["CronExpression"].isNull())
cronExpression_ = value["CronExpression"].asString();
if(!value["Enable"].isNull())
enable_ = value["Enable"].asString() == "true";
}

View File

@@ -1,51 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/fnf/model/DeleteFlowRequest.h>
using AlibabaCloud::Fnf::Model::DeleteFlowRequest;
DeleteFlowRequest::DeleteFlowRequest() :
RpcServiceRequest("fnf", "2019-03-15", "DeleteFlow")
{
setMethod(HttpRequest::Method::Get);
}
DeleteFlowRequest::~DeleteFlowRequest()
{}
std::string DeleteFlowRequest::getRequestId()const
{
return requestId_;
*/
#include <alibabacloud/fnf/model/DeleteFlowRequest.h>
using AlibabaCloud::Fnf::Model::DeleteFlowRequest;
DeleteFlowRequest::DeleteFlowRequest()
: RpcServiceRequest("fnf", "2019-03-15", "DeleteFlow") {
setMethod(HttpRequest::Method::Get);
}
void DeleteFlowRequest::setRequestId(const std::string& requestId)
{
requestId_ = requestId;
setParameter("RequestId", requestId);
DeleteFlowRequest::~DeleteFlowRequest() {}
std::string DeleteFlowRequest::getRequestId() const {
return requestId_;
}
std::string DeleteFlowRequest::getName()const
{
return name_;
void DeleteFlowRequest::setRequestId(const std::string &requestId) {
requestId_ = requestId;
setParameter(std::string("RequestId"), requestId);
}
void DeleteFlowRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
std::string DeleteFlowRequest::getName() const {
return name_;
}
void DeleteFlowRequest::setName(const std::string &name) {
name_ = name;
setParameter(std::string("Name"), name);
}

View File

@@ -1,62 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/fnf/model/DeleteScheduleRequest.h>
using AlibabaCloud::Fnf::Model::DeleteScheduleRequest;
DeleteScheduleRequest::DeleteScheduleRequest() :
RpcServiceRequest("fnf", "2019-03-15", "DeleteSchedule")
{
setMethod(HttpRequest::Method::Get);
}
DeleteScheduleRequest::~DeleteScheduleRequest()
{}
std::string DeleteScheduleRequest::getScheduleName()const
{
return scheduleName_;
*/
#include <alibabacloud/fnf/model/DeleteScheduleRequest.h>
using AlibabaCloud::Fnf::Model::DeleteScheduleRequest;
DeleteScheduleRequest::DeleteScheduleRequest()
: RpcServiceRequest("fnf", "2019-03-15", "DeleteSchedule") {
setMethod(HttpRequest::Method::Get);
}
void DeleteScheduleRequest::setScheduleName(const std::string& scheduleName)
{
scheduleName_ = scheduleName;
setParameter("ScheduleName", scheduleName);
DeleteScheduleRequest::~DeleteScheduleRequest() {}
std::string DeleteScheduleRequest::getScheduleName() const {
return scheduleName_;
}
std::string DeleteScheduleRequest::getRequestId()const
{
return requestId_;
void DeleteScheduleRequest::setScheduleName(const std::string &scheduleName) {
scheduleName_ = scheduleName;
setParameter(std::string("ScheduleName"), scheduleName);
}
void DeleteScheduleRequest::setRequestId(const std::string& requestId)
{
requestId_ = requestId;
setParameter("RequestId", requestId);
std::string DeleteScheduleRequest::getRequestId() const {
return requestId_;
}
std::string DeleteScheduleRequest::getFlowName()const
{
return flowName_;
void DeleteScheduleRequest::setRequestId(const std::string &requestId) {
requestId_ = requestId;
setParameter(std::string("RequestId"), requestId);
}
void DeleteScheduleRequest::setFlowName(const std::string& flowName)
{
flowName_ = flowName;
setParameter("FlowName", flowName);
std::string DeleteScheduleRequest::getFlowName() const {
return flowName_;
}
void DeleteScheduleRequest::setFlowName(const std::string &flowName) {
flowName_ = flowName;
setParameter(std::string("FlowName"), flowName);
}

View File

@@ -1,73 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/fnf/model/DescribeExecutionRequest.h>
using AlibabaCloud::Fnf::Model::DescribeExecutionRequest;
DescribeExecutionRequest::DescribeExecutionRequest() :
RpcServiceRequest("fnf", "2019-03-15", "DescribeExecution")
{
setMethod(HttpRequest::Method::Get);
}
DescribeExecutionRequest::~DescribeExecutionRequest()
{}
std::string DescribeExecutionRequest::getExecutionName()const
{
return executionName_;
*/
#include <alibabacloud/fnf/model/DescribeExecutionRequest.h>
using AlibabaCloud::Fnf::Model::DescribeExecutionRequest;
DescribeExecutionRequest::DescribeExecutionRequest()
: RpcServiceRequest("fnf", "2019-03-15", "DescribeExecution") {
setMethod(HttpRequest::Method::Get);
}
void DescribeExecutionRequest::setExecutionName(const std::string& executionName)
{
executionName_ = executionName;
setParameter("ExecutionName", executionName);
DescribeExecutionRequest::~DescribeExecutionRequest() {}
std::string DescribeExecutionRequest::getExecutionName() const {
return executionName_;
}
int DescribeExecutionRequest::getWaitTimeSeconds()const
{
return waitTimeSeconds_;
void DescribeExecutionRequest::setExecutionName(const std::string &executionName) {
executionName_ = executionName;
setParameter(std::string("ExecutionName"), executionName);
}
void DescribeExecutionRequest::setWaitTimeSeconds(int waitTimeSeconds)
{
waitTimeSeconds_ = waitTimeSeconds;
setParameter("WaitTimeSeconds", std::to_string(waitTimeSeconds));
int DescribeExecutionRequest::getWaitTimeSeconds() const {
return waitTimeSeconds_;
}
std::string DescribeExecutionRequest::getRequestId()const
{
return requestId_;
void DescribeExecutionRequest::setWaitTimeSeconds(int waitTimeSeconds) {
waitTimeSeconds_ = waitTimeSeconds;
setParameter(std::string("WaitTimeSeconds"), std::to_string(waitTimeSeconds));
}
void DescribeExecutionRequest::setRequestId(const std::string& requestId)
{
requestId_ = requestId;
setParameter("RequestId", requestId);
std::string DescribeExecutionRequest::getRequestId() const {
return requestId_;
}
std::string DescribeExecutionRequest::getFlowName()const
{
return flowName_;
void DescribeExecutionRequest::setRequestId(const std::string &requestId) {
requestId_ = requestId;
setParameter(std::string("RequestId"), requestId);
}
void DescribeExecutionRequest::setFlowName(const std::string& flowName)
{
flowName_ = flowName;
setParameter("FlowName", flowName);
std::string DescribeExecutionRequest::getFlowName() const {
return flowName_;
}
void DescribeExecutionRequest::setFlowName(const std::string &flowName) {
flowName_ = flowName;
setParameter(std::string("FlowName"), flowName);
}

View File

@@ -39,26 +39,26 @@ void DescribeExecutionResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Name"].isNull())
name_ = value["Name"].asString();
if(!value["FlowName"].isNull())
flowName_ = value["FlowName"].asString();
if(!value["FlowDefinition"].isNull())
flowDefinition_ = value["FlowDefinition"].asString();
if(!value["Input"].isNull())
input_ = value["Input"].asString();
if(!value["Output"].isNull())
output_ = value["Output"].asString();
if(!value["Status"].isNull())
status_ = value["Status"].asString();
if(!value["StartedTime"].isNull())
startedTime_ = value["StartedTime"].asString();
if(!value["StoppedTime"].isNull())
stoppedTime_ = value["StoppedTime"].asString();
if(!value["StartedTime"].isNull())
startedTime_ = value["StartedTime"].asString();
if(!value["FlowDefinition"].isNull())
flowDefinition_ = value["FlowDefinition"].asString();
if(!value["ExternalInputUri"].isNull())
externalInputUri_ = value["ExternalInputUri"].asString();
if(!value["Output"].isNull())
output_ = value["Output"].asString();
if(!value["FlowName"].isNull())
flowName_ = value["FlowName"].asString();
if(!value["ExternalOutputUri"].isNull())
externalOutputUri_ = value["ExternalOutputUri"].asString();
if(!value["Name"].isNull())
name_ = value["Name"].asString();
if(!value["Input"].isNull())
input_ = value["Input"].asString();
}

View File

@@ -1,51 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/fnf/model/DescribeFlowRequest.h>
using AlibabaCloud::Fnf::Model::DescribeFlowRequest;
DescribeFlowRequest::DescribeFlowRequest() :
RpcServiceRequest("fnf", "2019-03-15", "DescribeFlow")
{
setMethod(HttpRequest::Method::Get);
}
DescribeFlowRequest::~DescribeFlowRequest()
{}
std::string DescribeFlowRequest::getRequestId()const
{
return requestId_;
*/
#include <alibabacloud/fnf/model/DescribeFlowRequest.h>
using AlibabaCloud::Fnf::Model::DescribeFlowRequest;
DescribeFlowRequest::DescribeFlowRequest()
: RpcServiceRequest("fnf", "2019-03-15", "DescribeFlow") {
setMethod(HttpRequest::Method::Get);
}
void DescribeFlowRequest::setRequestId(const std::string& requestId)
{
requestId_ = requestId;
setParameter("RequestId", requestId);
DescribeFlowRequest::~DescribeFlowRequest() {}
std::string DescribeFlowRequest::getRequestId() const {
return requestId_;
}
std::string DescribeFlowRequest::getName()const
{
return name_;
void DescribeFlowRequest::setRequestId(const std::string &requestId) {
requestId_ = requestId;
setParameter(std::string("RequestId"), requestId);
}
void DescribeFlowRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
std::string DescribeFlowRequest::getName() const {
return name_;
}
void DescribeFlowRequest::setName(const std::string &name) {
name_ = name;
setParameter(std::string("Name"), name);
}

View File

@@ -39,24 +39,26 @@ void DescribeFlowResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Name"].isNull())
name_ = value["Name"].asString();
if(!value["Description"].isNull())
description_ = value["Description"].asString();
if(!value["Definition"].isNull())
definition_ = value["Definition"].asString();
if(!value["Id"].isNull())
id_ = value["Id"].asString();
if(!value["Type"].isNull())
type_ = value["Type"].asString();
if(!value["Definition"].isNull())
definition_ = value["Definition"].asString();
if(!value["RoleArn"].isNull())
roleArn_ = value["RoleArn"].asString();
if(!value["Description"].isNull())
description_ = value["Description"].asString();
if(!value["ExternalStorageLocation"].isNull())
externalStorageLocation_ = value["ExternalStorageLocation"].asString();
if(!value["Name"].isNull())
name_ = value["Name"].asString();
if(!value["CreatedTime"].isNull())
createdTime_ = value["CreatedTime"].asString();
if(!value["LastModifiedTime"].isNull())
lastModifiedTime_ = value["LastModifiedTime"].asString();
if(!value["ExternalStorageLocation"].isNull())
externalStorageLocation_ = value["ExternalStorageLocation"].asString();
if(!value["Id"].isNull())
id_ = value["Id"].asString();
if(!value["ExecutionMode"].isNull())
executionMode_ = value["ExecutionMode"].asString();
}
@@ -85,6 +87,11 @@ std::string DescribeFlowResult::getLastModifiedTime()const
return lastModifiedTime_;
}
std::string DescribeFlowResult::getExecutionMode()const
{
return executionMode_;
}
std::string DescribeFlowResult::getId()const
{
return id_;

View File

@@ -1,62 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/fnf/model/DescribeScheduleRequest.h>
using AlibabaCloud::Fnf::Model::DescribeScheduleRequest;
DescribeScheduleRequest::DescribeScheduleRequest() :
RpcServiceRequest("fnf", "2019-03-15", "DescribeSchedule")
{
setMethod(HttpRequest::Method::Get);
}
DescribeScheduleRequest::~DescribeScheduleRequest()
{}
std::string DescribeScheduleRequest::getScheduleName()const
{
return scheduleName_;
*/
#include <alibabacloud/fnf/model/DescribeScheduleRequest.h>
using AlibabaCloud::Fnf::Model::DescribeScheduleRequest;
DescribeScheduleRequest::DescribeScheduleRequest()
: RpcServiceRequest("fnf", "2019-03-15", "DescribeSchedule") {
setMethod(HttpRequest::Method::Get);
}
void DescribeScheduleRequest::setScheduleName(const std::string& scheduleName)
{
scheduleName_ = scheduleName;
setParameter("ScheduleName", scheduleName);
DescribeScheduleRequest::~DescribeScheduleRequest() {}
std::string DescribeScheduleRequest::getScheduleName() const {
return scheduleName_;
}
std::string DescribeScheduleRequest::getRequestId()const
{
return requestId_;
void DescribeScheduleRequest::setScheduleName(const std::string &scheduleName) {
scheduleName_ = scheduleName;
setParameter(std::string("ScheduleName"), scheduleName);
}
void DescribeScheduleRequest::setRequestId(const std::string& requestId)
{
requestId_ = requestId;
setParameter("RequestId", requestId);
std::string DescribeScheduleRequest::getRequestId() const {
return requestId_;
}
std::string DescribeScheduleRequest::getFlowName()const
{
return flowName_;
void DescribeScheduleRequest::setRequestId(const std::string &requestId) {
requestId_ = requestId;
setParameter(std::string("RequestId"), requestId);
}
void DescribeScheduleRequest::setFlowName(const std::string& flowName)
{
flowName_ = flowName;
setParameter("FlowName", flowName);
std::string DescribeScheduleRequest::getFlowName() const {
return flowName_;
}
void DescribeScheduleRequest::setFlowName(const std::string &flowName) {
flowName_ = flowName;
setParameter(std::string("FlowName"), flowName);
}

View File

@@ -39,22 +39,22 @@ void DescribeScheduleResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["ScheduleName"].isNull())
scheduleName_ = value["ScheduleName"].asString();
if(!value["Description"].isNull())
description_ = value["Description"].asString();
if(!value["ScheduleId"].isNull())
scheduleId_ = value["ScheduleId"].asString();
if(!value["Payload"].isNull())
payload_ = value["Payload"].asString();
if(!value["CronExpression"].isNull())
cronExpression_ = value["CronExpression"].asString();
if(!value["Enable"].isNull())
enable_ = value["Enable"].asString() == "true";
if(!value["ScheduleName"].isNull())
scheduleName_ = value["ScheduleName"].asString();
if(!value["CreatedTime"].isNull())
createdTime_ = value["CreatedTime"].asString();
if(!value["LastModifiedTime"].isNull())
lastModifiedTime_ = value["LastModifiedTime"].asString();
if(!value["CronExpression"].isNull())
cronExpression_ = value["CronExpression"].asString();
if(!value["Enable"].isNull())
enable_ = value["Enable"].asString() == "true";
}

View File

@@ -1,84 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/fnf/model/GetExecutionHistoryRequest.h>
using AlibabaCloud::Fnf::Model::GetExecutionHistoryRequest;
GetExecutionHistoryRequest::GetExecutionHistoryRequest() :
RpcServiceRequest("fnf", "2019-03-15", "GetExecutionHistory")
{
setMethod(HttpRequest::Method::Get);
}
GetExecutionHistoryRequest::~GetExecutionHistoryRequest()
{}
std::string GetExecutionHistoryRequest::getExecutionName()const
{
return executionName_;
*/
#include <alibabacloud/fnf/model/GetExecutionHistoryRequest.h>
using AlibabaCloud::Fnf::Model::GetExecutionHistoryRequest;
GetExecutionHistoryRequest::GetExecutionHistoryRequest()
: RpcServiceRequest("fnf", "2019-03-15", "GetExecutionHistory") {
setMethod(HttpRequest::Method::Get);
}
void GetExecutionHistoryRequest::setExecutionName(const std::string& executionName)
{
executionName_ = executionName;
setParameter("ExecutionName", executionName);
GetExecutionHistoryRequest::~GetExecutionHistoryRequest() {}
std::string GetExecutionHistoryRequest::getExecutionName() const {
return executionName_;
}
std::string GetExecutionHistoryRequest::getNextToken()const
{
return nextToken_;
void GetExecutionHistoryRequest::setExecutionName(const std::string &executionName) {
executionName_ = executionName;
setParameter(std::string("ExecutionName"), executionName);
}
void GetExecutionHistoryRequest::setNextToken(const std::string& nextToken)
{
nextToken_ = nextToken;
setParameter("NextToken", nextToken);
std::string GetExecutionHistoryRequest::getNextToken() const {
return nextToken_;
}
std::string GetExecutionHistoryRequest::getRequestId()const
{
return requestId_;
void GetExecutionHistoryRequest::setNextToken(const std::string &nextToken) {
nextToken_ = nextToken;
setParameter(std::string("NextToken"), nextToken);
}
void GetExecutionHistoryRequest::setRequestId(const std::string& requestId)
{
requestId_ = requestId;
setParameter("RequestId", requestId);
std::string GetExecutionHistoryRequest::getRequestId() const {
return requestId_;
}
int GetExecutionHistoryRequest::getLimit()const
{
return limit_;
void GetExecutionHistoryRequest::setRequestId(const std::string &requestId) {
requestId_ = requestId;
setParameter(std::string("RequestId"), requestId);
}
void GetExecutionHistoryRequest::setLimit(int limit)
{
limit_ = limit;
setParameter("Limit", std::to_string(limit));
int GetExecutionHistoryRequest::getLimit() const {
return limit_;
}
std::string GetExecutionHistoryRequest::getFlowName()const
{
return flowName_;
void GetExecutionHistoryRequest::setLimit(int limit) {
limit_ = limit;
setParameter(std::string("Limit"), std::to_string(limit));
}
void GetExecutionHistoryRequest::setFlowName(const std::string& flowName)
{
flowName_ = flowName;
setParameter("FlowName", flowName);
std::string GetExecutionHistoryRequest::getFlowName() const {
return flowName_;
}
void GetExecutionHistoryRequest::setFlowName(const std::string &flowName) {
flowName_ = flowName;
setParameter(std::string("FlowName"), flowName);
}

View File

@@ -43,18 +43,18 @@ void GetExecutionHistoryResult::parse(const std::string &payload)
for (auto valueEventsEventsItem : allEventsNode)
{
EventsItem eventsObject;
if(!valueEventsEventsItem["StepName"].isNull())
eventsObject.stepName = valueEventsEventsItem["StepName"].asString();
if(!valueEventsEventsItem["Type"].isNull())
eventsObject.type = valueEventsEventsItem["Type"].asString();
if(!valueEventsEventsItem["EventId"].isNull())
eventsObject.eventId = std::stol(valueEventsEventsItem["EventId"].asString());
if(!valueEventsEventsItem["Time"].isNull())
eventsObject.time = valueEventsEventsItem["Time"].asString();
if(!valueEventsEventsItem["ScheduleEventId"].isNull())
eventsObject.scheduleEventId = std::stol(valueEventsEventsItem["ScheduleEventId"].asString());
if(!valueEventsEventsItem["EventDetail"].isNull())
eventsObject.eventDetail = valueEventsEventsItem["EventDetail"].asString();
if(!valueEventsEventsItem["Time"].isNull())
eventsObject.time = valueEventsEventsItem["Time"].asString();
if(!valueEventsEventsItem["StepName"].isNull())
eventsObject.stepName = valueEventsEventsItem["StepName"].asString();
events_.push_back(eventsObject);
}
if(!value["NextToken"].isNull())

View File

@@ -1,117 +1,99 @@
/*
* 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/fnf/model/ListExecutionsRequest.h>
using AlibabaCloud::Fnf::Model::ListExecutionsRequest;
ListExecutionsRequest::ListExecutionsRequest() :
RpcServiceRequest("fnf", "2019-03-15", "ListExecutions")
{
setMethod(HttpRequest::Method::Get);
}
ListExecutionsRequest::~ListExecutionsRequest()
{}
std::string ListExecutionsRequest::getStartedTimeBegin()const
{
return startedTimeBegin_;
*/
#include <alibabacloud/fnf/model/ListExecutionsRequest.h>
using AlibabaCloud::Fnf::Model::ListExecutionsRequest;
ListExecutionsRequest::ListExecutionsRequest()
: RpcServiceRequest("fnf", "2019-03-15", "ListExecutions") {
setMethod(HttpRequest::Method::Get);
}
void ListExecutionsRequest::setStartedTimeBegin(const std::string& startedTimeBegin)
{
startedTimeBegin_ = startedTimeBegin;
setParameter("StartedTimeBegin", startedTimeBegin);
ListExecutionsRequest::~ListExecutionsRequest() {}
std::string ListExecutionsRequest::getStartedTimeBegin() const {
return startedTimeBegin_;
}
std::string ListExecutionsRequest::getExecutionNamePrefix()const
{
return executionNamePrefix_;
void ListExecutionsRequest::setStartedTimeBegin(const std::string &startedTimeBegin) {
startedTimeBegin_ = startedTimeBegin;
setParameter(std::string("StartedTimeBegin"), startedTimeBegin);
}
void ListExecutionsRequest::setExecutionNamePrefix(const std::string& executionNamePrefix)
{
executionNamePrefix_ = executionNamePrefix;
setParameter("ExecutionNamePrefix", executionNamePrefix);
std::string ListExecutionsRequest::getExecutionNamePrefix() const {
return executionNamePrefix_;
}
std::string ListExecutionsRequest::getNextToken()const
{
return nextToken_;
void ListExecutionsRequest::setExecutionNamePrefix(const std::string &executionNamePrefix) {
executionNamePrefix_ = executionNamePrefix;
setParameter(std::string("ExecutionNamePrefix"), executionNamePrefix);
}
void ListExecutionsRequest::setNextToken(const std::string& nextToken)
{
nextToken_ = nextToken;
setParameter("NextToken", nextToken);
std::string ListExecutionsRequest::getNextToken() const {
return nextToken_;
}
std::string ListExecutionsRequest::getRequestId()const
{
return requestId_;
void ListExecutionsRequest::setNextToken(const std::string &nextToken) {
nextToken_ = nextToken;
setParameter(std::string("NextToken"), nextToken);
}
void ListExecutionsRequest::setRequestId(const std::string& requestId)
{
requestId_ = requestId;
setParameter("RequestId", requestId);
std::string ListExecutionsRequest::getRequestId() const {
return requestId_;
}
int ListExecutionsRequest::getLimit()const
{
return limit_;
void ListExecutionsRequest::setRequestId(const std::string &requestId) {
requestId_ = requestId;
setParameter(std::string("RequestId"), requestId);
}
void ListExecutionsRequest::setLimit(int limit)
{
limit_ = limit;
setParameter("Limit", std::to_string(limit));
int ListExecutionsRequest::getLimit() const {
return limit_;
}
std::string ListExecutionsRequest::getFlowName()const
{
return flowName_;
void ListExecutionsRequest::setLimit(int limit) {
limit_ = limit;
setParameter(std::string("Limit"), std::to_string(limit));
}
void ListExecutionsRequest::setFlowName(const std::string& flowName)
{
flowName_ = flowName;
setParameter("FlowName", flowName);
std::string ListExecutionsRequest::getFlowName() const {
return flowName_;
}
std::string ListExecutionsRequest::getStartedTimeEnd()const
{
return startedTimeEnd_;
void ListExecutionsRequest::setFlowName(const std::string &flowName) {
flowName_ = flowName;
setParameter(std::string("FlowName"), flowName);
}
void ListExecutionsRequest::setStartedTimeEnd(const std::string& startedTimeEnd)
{
startedTimeEnd_ = startedTimeEnd;
setParameter("StartedTimeEnd", startedTimeEnd);
std::string ListExecutionsRequest::getStartedTimeEnd() const {
return startedTimeEnd_;
}
std::string ListExecutionsRequest::getStatus()const
{
return status_;
void ListExecutionsRequest::setStartedTimeEnd(const std::string &startedTimeEnd) {
startedTimeEnd_ = startedTimeEnd;
setParameter(std::string("StartedTimeEnd"), startedTimeEnd);
}
void ListExecutionsRequest::setStatus(const std::string& status)
{
status_ = status;
setParameter("Status", status);
std::string ListExecutionsRequest::getStatus() const {
return status_;
}
void ListExecutionsRequest::setStatus(const std::string &status) {
status_ = status;
setParameter(std::string("Status"), status);
}

View File

@@ -43,26 +43,26 @@ void ListExecutionsResult::parse(const std::string &payload)
for (auto valueExecutionsExecutionsItem : allExecutionsNode)
{
ExecutionsItem executionsObject;
if(!valueExecutionsExecutionsItem["Name"].isNull())
executionsObject.name = valueExecutionsExecutionsItem["Name"].asString();
if(!valueExecutionsExecutionsItem["FlowName"].isNull())
executionsObject.flowName = valueExecutionsExecutionsItem["FlowName"].asString();
if(!valueExecutionsExecutionsItem["FlowDefinition"].isNull())
executionsObject.flowDefinition = valueExecutionsExecutionsItem["FlowDefinition"].asString();
if(!valueExecutionsExecutionsItem["Input"].isNull())
executionsObject.input = valueExecutionsExecutionsItem["Input"].asString();
if(!valueExecutionsExecutionsItem["Output"].isNull())
executionsObject.output = valueExecutionsExecutionsItem["Output"].asString();
if(!valueExecutionsExecutionsItem["Status"].isNull())
executionsObject.status = valueExecutionsExecutionsItem["Status"].asString();
if(!valueExecutionsExecutionsItem["StartedTime"].isNull())
executionsObject.startedTime = valueExecutionsExecutionsItem["StartedTime"].asString();
if(!valueExecutionsExecutionsItem["StoppedTime"].isNull())
executionsObject.stoppedTime = valueExecutionsExecutionsItem["StoppedTime"].asString();
if(!valueExecutionsExecutionsItem["StartedTime"].isNull())
executionsObject.startedTime = valueExecutionsExecutionsItem["StartedTime"].asString();
if(!valueExecutionsExecutionsItem["FlowDefinition"].isNull())
executionsObject.flowDefinition = valueExecutionsExecutionsItem["FlowDefinition"].asString();
if(!valueExecutionsExecutionsItem["ExternalInputUri"].isNull())
executionsObject.externalInputUri = valueExecutionsExecutionsItem["ExternalInputUri"].asString();
if(!valueExecutionsExecutionsItem["Output"].isNull())
executionsObject.output = valueExecutionsExecutionsItem["Output"].asString();
if(!valueExecutionsExecutionsItem["FlowName"].isNull())
executionsObject.flowName = valueExecutionsExecutionsItem["FlowName"].asString();
if(!valueExecutionsExecutionsItem["ExternalOutputUri"].isNull())
executionsObject.externalOutputUri = valueExecutionsExecutionsItem["ExternalOutputUri"].asString();
if(!valueExecutionsExecutionsItem["Name"].isNull())
executionsObject.name = valueExecutionsExecutionsItem["Name"].asString();
if(!valueExecutionsExecutionsItem["Input"].isNull())
executionsObject.input = valueExecutionsExecutionsItem["Input"].asString();
executions_.push_back(executionsObject);
}
if(!value["NextToken"].isNull())

View File

@@ -1,62 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/fnf/model/ListFlowsRequest.h>
using AlibabaCloud::Fnf::Model::ListFlowsRequest;
ListFlowsRequest::ListFlowsRequest() :
RpcServiceRequest("fnf", "2019-03-15", "ListFlows")
{
setMethod(HttpRequest::Method::Get);
}
ListFlowsRequest::~ListFlowsRequest()
{}
std::string ListFlowsRequest::getNextToken()const
{
return nextToken_;
*/
#include <alibabacloud/fnf/model/ListFlowsRequest.h>
using AlibabaCloud::Fnf::Model::ListFlowsRequest;
ListFlowsRequest::ListFlowsRequest()
: RpcServiceRequest("fnf", "2019-03-15", "ListFlows") {
setMethod(HttpRequest::Method::Get);
}
void ListFlowsRequest::setNextToken(const std::string& nextToken)
{
nextToken_ = nextToken;
setParameter("NextToken", nextToken);
ListFlowsRequest::~ListFlowsRequest() {}
std::string ListFlowsRequest::getNextToken() const {
return nextToken_;
}
std::string ListFlowsRequest::getRequestId()const
{
return requestId_;
void ListFlowsRequest::setNextToken(const std::string &nextToken) {
nextToken_ = nextToken;
setParameter(std::string("NextToken"), nextToken);
}
void ListFlowsRequest::setRequestId(const std::string& requestId)
{
requestId_ = requestId;
setParameter("RequestId", requestId);
std::string ListFlowsRequest::getRequestId() const {
return requestId_;
}
int ListFlowsRequest::getLimit()const
{
return limit_;
void ListFlowsRequest::setRequestId(const std::string &requestId) {
requestId_ = requestId;
setParameter(std::string("RequestId"), requestId);
}
void ListFlowsRequest::setLimit(int limit)
{
limit_ = limit;
setParameter("Limit", std::to_string(limit));
int ListFlowsRequest::getLimit() const {
return limit_;
}
void ListFlowsRequest::setLimit(int limit) {
limit_ = limit;
setParameter(std::string("Limit"), std::to_string(limit));
}

View File

@@ -43,24 +43,26 @@ void ListFlowsResult::parse(const std::string &payload)
for (auto valueFlowsFlowsItem : allFlowsNode)
{
FlowsItem flowsObject;
if(!valueFlowsFlowsItem["Name"].isNull())
flowsObject.name = valueFlowsFlowsItem["Name"].asString();
if(!valueFlowsFlowsItem["Description"].isNull())
flowsObject.description = valueFlowsFlowsItem["Description"].asString();
if(!valueFlowsFlowsItem["Definition"].isNull())
flowsObject.definition = valueFlowsFlowsItem["Definition"].asString();
if(!valueFlowsFlowsItem["Id"].isNull())
flowsObject.id = valueFlowsFlowsItem["Id"].asString();
if(!valueFlowsFlowsItem["Type"].isNull())
flowsObject.type = valueFlowsFlowsItem["Type"].asString();
if(!valueFlowsFlowsItem["Definition"].isNull())
flowsObject.definition = valueFlowsFlowsItem["Definition"].asString();
if(!valueFlowsFlowsItem["RoleArn"].isNull())
flowsObject.roleArn = valueFlowsFlowsItem["RoleArn"].asString();
if(!valueFlowsFlowsItem["Description"].isNull())
flowsObject.description = valueFlowsFlowsItem["Description"].asString();
if(!valueFlowsFlowsItem["ExternalStorageLocation"].isNull())
flowsObject.externalStorageLocation = valueFlowsFlowsItem["ExternalStorageLocation"].asString();
if(!valueFlowsFlowsItem["Name"].isNull())
flowsObject.name = valueFlowsFlowsItem["Name"].asString();
if(!valueFlowsFlowsItem["CreatedTime"].isNull())
flowsObject.createdTime = valueFlowsFlowsItem["CreatedTime"].asString();
if(!valueFlowsFlowsItem["LastModifiedTime"].isNull())
flowsObject.lastModifiedTime = valueFlowsFlowsItem["LastModifiedTime"].asString();
if(!valueFlowsFlowsItem["ExternalStorageLocation"].isNull())
flowsObject.externalStorageLocation = valueFlowsFlowsItem["ExternalStorageLocation"].asString();
if(!valueFlowsFlowsItem["Id"].isNull())
flowsObject.id = valueFlowsFlowsItem["Id"].asString();
if(!valueFlowsFlowsItem["ExecutionMode"].isNull())
flowsObject.executionMode = valueFlowsFlowsItem["ExecutionMode"].asString();
flows_.push_back(flowsObject);
}
if(!value["NextToken"].isNull())

View File

@@ -1,73 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/fnf/model/ListSchedulesRequest.h>
using AlibabaCloud::Fnf::Model::ListSchedulesRequest;
ListSchedulesRequest::ListSchedulesRequest() :
RpcServiceRequest("fnf", "2019-03-15", "ListSchedules")
{
setMethod(HttpRequest::Method::Get);
}
ListSchedulesRequest::~ListSchedulesRequest()
{}
std::string ListSchedulesRequest::getNextToken()const
{
return nextToken_;
*/
#include <alibabacloud/fnf/model/ListSchedulesRequest.h>
using AlibabaCloud::Fnf::Model::ListSchedulesRequest;
ListSchedulesRequest::ListSchedulesRequest()
: RpcServiceRequest("fnf", "2019-03-15", "ListSchedules") {
setMethod(HttpRequest::Method::Get);
}
void ListSchedulesRequest::setNextToken(const std::string& nextToken)
{
nextToken_ = nextToken;
setParameter("NextToken", nextToken);
ListSchedulesRequest::~ListSchedulesRequest() {}
std::string ListSchedulesRequest::getNextToken() const {
return nextToken_;
}
std::string ListSchedulesRequest::getRequestId()const
{
return requestId_;
void ListSchedulesRequest::setNextToken(const std::string &nextToken) {
nextToken_ = nextToken;
setParameter(std::string("NextToken"), nextToken);
}
void ListSchedulesRequest::setRequestId(const std::string& requestId)
{
requestId_ = requestId;
setParameter("RequestId", requestId);
std::string ListSchedulesRequest::getRequestId() const {
return requestId_;
}
int ListSchedulesRequest::getLimit()const
{
return limit_;
void ListSchedulesRequest::setRequestId(const std::string &requestId) {
requestId_ = requestId;
setParameter(std::string("RequestId"), requestId);
}
void ListSchedulesRequest::setLimit(int limit)
{
limit_ = limit;
setParameter("Limit", std::to_string(limit));
int ListSchedulesRequest::getLimit() const {
return limit_;
}
std::string ListSchedulesRequest::getFlowName()const
{
return flowName_;
void ListSchedulesRequest::setLimit(int limit) {
limit_ = limit;
setParameter(std::string("Limit"), std::to_string(limit));
}
void ListSchedulesRequest::setFlowName(const std::string& flowName)
{
flowName_ = flowName;
setParameter("FlowName", flowName);
std::string ListSchedulesRequest::getFlowName() const {
return flowName_;
}
void ListSchedulesRequest::setFlowName(const std::string &flowName) {
flowName_ = flowName;
setParameter(std::string("FlowName"), flowName);
}

View File

@@ -43,22 +43,22 @@ void ListSchedulesResult::parse(const std::string &payload)
for (auto valueSchedulesSchedulesItem : allSchedulesNode)
{
SchedulesItem schedulesObject;
if(!valueSchedulesSchedulesItem["ScheduleName"].isNull())
schedulesObject.scheduleName = valueSchedulesSchedulesItem["ScheduleName"].asString();
if(!valueSchedulesSchedulesItem["Description"].isNull())
schedulesObject.description = valueSchedulesSchedulesItem["Description"].asString();
if(!valueSchedulesSchedulesItem["ScheduleId"].isNull())
schedulesObject.scheduleId = valueSchedulesSchedulesItem["ScheduleId"].asString();
if(!valueSchedulesSchedulesItem["Payload"].isNull())
schedulesObject.payload = valueSchedulesSchedulesItem["Payload"].asString();
if(!valueSchedulesSchedulesItem["CronExpression"].isNull())
schedulesObject.cronExpression = valueSchedulesSchedulesItem["CronExpression"].asString();
if(!valueSchedulesSchedulesItem["Enable"].isNull())
schedulesObject.enable = valueSchedulesSchedulesItem["Enable"].asString() == "true";
if(!valueSchedulesSchedulesItem["ScheduleName"].isNull())
schedulesObject.scheduleName = valueSchedulesSchedulesItem["ScheduleName"].asString();
if(!valueSchedulesSchedulesItem["CreatedTime"].isNull())
schedulesObject.createdTime = valueSchedulesSchedulesItem["CreatedTime"].asString();
if(!valueSchedulesSchedulesItem["LastModifiedTime"].isNull())
schedulesObject.lastModifiedTime = valueSchedulesSchedulesItem["LastModifiedTime"].asString();
if(!valueSchedulesSchedulesItem["CronExpression"].isNull())
schedulesObject.cronExpression = valueSchedulesSchedulesItem["CronExpression"].asString();
if(!valueSchedulesSchedulesItem["Enable"].isNull())
schedulesObject.enable = valueSchedulesSchedulesItem["Enable"].asString() == "true";
schedules_.push_back(schedulesObject);
}
if(!value["NextToken"].isNull())

View File

@@ -1,73 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/fnf/model/ReportTaskFailedRequest.h>
using AlibabaCloud::Fnf::Model::ReportTaskFailedRequest;
ReportTaskFailedRequest::ReportTaskFailedRequest() :
RpcServiceRequest("fnf", "2019-03-15", "ReportTaskFailed")
{
setMethod(HttpRequest::Method::Post);
}
ReportTaskFailedRequest::~ReportTaskFailedRequest()
{}
std::string ReportTaskFailedRequest::getCause()const
{
return cause_;
*/
#include <alibabacloud/fnf/model/ReportTaskFailedRequest.h>
using AlibabaCloud::Fnf::Model::ReportTaskFailedRequest;
ReportTaskFailedRequest::ReportTaskFailedRequest()
: RpcServiceRequest("fnf", "2019-03-15", "ReportTaskFailed") {
setMethod(HttpRequest::Method::Post);
}
void ReportTaskFailedRequest::setCause(const std::string& cause)
{
cause_ = cause;
setBodyParameter("Cause", cause);
ReportTaskFailedRequest::~ReportTaskFailedRequest() {}
std::string ReportTaskFailedRequest::getCause() const {
return cause_;
}
std::string ReportTaskFailedRequest::getError()const
{
return error_;
void ReportTaskFailedRequest::setCause(const std::string &cause) {
cause_ = cause;
setBodyParameter(std::string("Cause"), cause);
}
void ReportTaskFailedRequest::setError(const std::string& error)
{
error_ = error;
setBodyParameter("Error", error);
std::string ReportTaskFailedRequest::getError() const {
return error_;
}
std::string ReportTaskFailedRequest::getRequestId()const
{
return requestId_;
void ReportTaskFailedRequest::setError(const std::string &error) {
error_ = error;
setBodyParameter(std::string("Error"), error);
}
void ReportTaskFailedRequest::setRequestId(const std::string& requestId)
{
requestId_ = requestId;
setParameter("RequestId", requestId);
std::string ReportTaskFailedRequest::getRequestId() const {
return requestId_;
}
std::string ReportTaskFailedRequest::getTaskToken()const
{
return taskToken_;
void ReportTaskFailedRequest::setRequestId(const std::string &requestId) {
requestId_ = requestId;
setParameter(std::string("RequestId"), requestId);
}
void ReportTaskFailedRequest::setTaskToken(const std::string& taskToken)
{
taskToken_ = taskToken;
setParameter("TaskToken", taskToken);
std::string ReportTaskFailedRequest::getTaskToken() const {
return taskToken_;
}
void ReportTaskFailedRequest::setTaskToken(const std::string &taskToken) {
taskToken_ = taskToken;
setParameter(std::string("TaskToken"), taskToken);
}

View File

@@ -1,62 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/fnf/model/ReportTaskSucceededRequest.h>
using AlibabaCloud::Fnf::Model::ReportTaskSucceededRequest;
ReportTaskSucceededRequest::ReportTaskSucceededRequest() :
RpcServiceRequest("fnf", "2019-03-15", "ReportTaskSucceeded")
{
setMethod(HttpRequest::Method::Post);
}
ReportTaskSucceededRequest::~ReportTaskSucceededRequest()
{}
std::string ReportTaskSucceededRequest::getOutput()const
{
return output_;
*/
#include <alibabacloud/fnf/model/ReportTaskSucceededRequest.h>
using AlibabaCloud::Fnf::Model::ReportTaskSucceededRequest;
ReportTaskSucceededRequest::ReportTaskSucceededRequest()
: RpcServiceRequest("fnf", "2019-03-15", "ReportTaskSucceeded") {
setMethod(HttpRequest::Method::Post);
}
void ReportTaskSucceededRequest::setOutput(const std::string& output)
{
output_ = output;
setBodyParameter("Output", output);
ReportTaskSucceededRequest::~ReportTaskSucceededRequest() {}
std::string ReportTaskSucceededRequest::getOutput() const {
return output_;
}
std::string ReportTaskSucceededRequest::getRequestId()const
{
return requestId_;
void ReportTaskSucceededRequest::setOutput(const std::string &output) {
output_ = output;
setBodyParameter(std::string("Output"), output);
}
void ReportTaskSucceededRequest::setRequestId(const std::string& requestId)
{
requestId_ = requestId;
setParameter("RequestId", requestId);
std::string ReportTaskSucceededRequest::getRequestId() const {
return requestId_;
}
std::string ReportTaskSucceededRequest::getTaskToken()const
{
return taskToken_;
void ReportTaskSucceededRequest::setRequestId(const std::string &requestId) {
requestId_ = requestId;
setParameter(std::string("RequestId"), requestId);
}
void ReportTaskSucceededRequest::setTaskToken(const std::string& taskToken)
{
taskToken_ = taskToken;
setParameter("TaskToken", taskToken);
std::string ReportTaskSucceededRequest::getTaskToken() const {
return taskToken_;
}
void ReportTaskSucceededRequest::setTaskToken(const std::string &taskToken) {
taskToken_ = taskToken;
setParameter(std::string("TaskToken"), taskToken);
}

View File

@@ -1,84 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/fnf/model/StartExecutionRequest.h>
using AlibabaCloud::Fnf::Model::StartExecutionRequest;
StartExecutionRequest::StartExecutionRequest() :
RpcServiceRequest("fnf", "2019-03-15", "StartExecution")
{
setMethod(HttpRequest::Method::Post);
}
StartExecutionRequest::~StartExecutionRequest()
{}
std::string StartExecutionRequest::getCallbackFnFTaskToken()const
{
return callbackFnFTaskToken_;
*/
#include <alibabacloud/fnf/model/StartExecutionRequest.h>
using AlibabaCloud::Fnf::Model::StartExecutionRequest;
StartExecutionRequest::StartExecutionRequest()
: RpcServiceRequest("fnf", "2019-03-15", "StartExecution") {
setMethod(HttpRequest::Method::Post);
}
void StartExecutionRequest::setCallbackFnFTaskToken(const std::string& callbackFnFTaskToken)
{
callbackFnFTaskToken_ = callbackFnFTaskToken;
setBodyParameter("CallbackFnFTaskToken", callbackFnFTaskToken);
StartExecutionRequest::~StartExecutionRequest() {}
std::string StartExecutionRequest::getCallbackFnFTaskToken() const {
return callbackFnFTaskToken_;
}
std::string StartExecutionRequest::getExecutionName()const
{
return executionName_;
void StartExecutionRequest::setCallbackFnFTaskToken(const std::string &callbackFnFTaskToken) {
callbackFnFTaskToken_ = callbackFnFTaskToken;
setBodyParameter(std::string("CallbackFnFTaskToken"), callbackFnFTaskToken);
}
void StartExecutionRequest::setExecutionName(const std::string& executionName)
{
executionName_ = executionName;
setBodyParameter("ExecutionName", executionName);
std::string StartExecutionRequest::getExecutionName() const {
return executionName_;
}
std::string StartExecutionRequest::getInput()const
{
return input_;
void StartExecutionRequest::setExecutionName(const std::string &executionName) {
executionName_ = executionName;
setBodyParameter(std::string("ExecutionName"), executionName);
}
void StartExecutionRequest::setInput(const std::string& input)
{
input_ = input;
setBodyParameter("Input", input);
std::string StartExecutionRequest::getInput() const {
return input_;
}
std::string StartExecutionRequest::getRequestId()const
{
return requestId_;
void StartExecutionRequest::setInput(const std::string &input) {
input_ = input;
setBodyParameter(std::string("Input"), input);
}
void StartExecutionRequest::setRequestId(const std::string& requestId)
{
requestId_ = requestId;
setParameter("RequestId", requestId);
std::string StartExecutionRequest::getRequestId() const {
return requestId_;
}
std::string StartExecutionRequest::getFlowName()const
{
return flowName_;
void StartExecutionRequest::setRequestId(const std::string &requestId) {
requestId_ = requestId;
setParameter(std::string("RequestId"), requestId);
}
void StartExecutionRequest::setFlowName(const std::string& flowName)
{
flowName_ = flowName;
setBodyParameter("FlowName", flowName);
std::string StartExecutionRequest::getFlowName() const {
return flowName_;
}
void StartExecutionRequest::setFlowName(const std::string &flowName) {
flowName_ = flowName;
setBodyParameter(std::string("FlowName"), flowName);
}

View File

@@ -39,26 +39,26 @@ void StartExecutionResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Name"].isNull())
name_ = value["Name"].asString();
if(!value["FlowName"].isNull())
flowName_ = value["FlowName"].asString();
if(!value["FlowDefinition"].isNull())
flowDefinition_ = value["FlowDefinition"].asString();
if(!value["Input"].isNull())
input_ = value["Input"].asString();
if(!value["Output"].isNull())
output_ = value["Output"].asString();
if(!value["Status"].isNull())
status_ = value["Status"].asString();
if(!value["StartedTime"].isNull())
startedTime_ = value["StartedTime"].asString();
if(!value["StoppedTime"].isNull())
stoppedTime_ = value["StoppedTime"].asString();
if(!value["StartedTime"].isNull())
startedTime_ = value["StartedTime"].asString();
if(!value["FlowDefinition"].isNull())
flowDefinition_ = value["FlowDefinition"].asString();
if(!value["ExternalInputUri"].isNull())
externalInputUri_ = value["ExternalInputUri"].asString();
if(!value["Output"].isNull())
output_ = value["Output"].asString();
if(!value["FlowName"].isNull())
flowName_ = value["FlowName"].asString();
if(!value["ExternalOutputUri"].isNull())
externalOutputUri_ = value["ExternalOutputUri"].asString();
if(!value["Name"].isNull())
name_ = value["Name"].asString();
if(!value["Input"].isNull())
input_ = value["Input"].asString();
}

View File

@@ -0,0 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/fnf/model/StartSyncExecutionRequest.h>
using AlibabaCloud::Fnf::Model::StartSyncExecutionRequest;
StartSyncExecutionRequest::StartSyncExecutionRequest()
: RpcServiceRequest("fnf", "2019-03-15", "StartSyncExecution") {
setMethod(HttpRequest::Method::Post);
}
StartSyncExecutionRequest::~StartSyncExecutionRequest() {}
std::string StartSyncExecutionRequest::getExecutionName() const {
return executionName_;
}
void StartSyncExecutionRequest::setExecutionName(const std::string &executionName) {
executionName_ = executionName;
setBodyParameter(std::string("ExecutionName"), executionName);
}
std::string StartSyncExecutionRequest::getInput() const {
return input_;
}
void StartSyncExecutionRequest::setInput(const std::string &input) {
input_ = input;
setBodyParameter(std::string("Input"), input);
}
std::string StartSyncExecutionRequest::getRequestId() const {
return requestId_;
}
void StartSyncExecutionRequest::setRequestId(const std::string &requestId) {
requestId_ = requestId;
setParameter(std::string("RequestId"), requestId);
}
std::string StartSyncExecutionRequest::getFlowName() const {
return flowName_;
}
void StartSyncExecutionRequest::setFlowName(const std::string &flowName) {
flowName_ = flowName;
setBodyParameter(std::string("FlowName"), flowName);
}

View File

@@ -0,0 +1,100 @@
/*
* 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/fnf/model/StartSyncExecutionResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Fnf;
using namespace AlibabaCloud::Fnf::Model;
StartSyncExecutionResult::StartSyncExecutionResult() :
ServiceResult()
{}
StartSyncExecutionResult::StartSyncExecutionResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
StartSyncExecutionResult::~StartSyncExecutionResult()
{}
void StartSyncExecutionResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["FlowName"].isNull())
flowName_ = value["FlowName"].asString();
if(!value["Name"].isNull())
name_ = value["Name"].asString();
if(!value["Status"].isNull())
status_ = value["Status"].asString();
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Output"].isNull())
output_ = value["Output"].asString();
if(!value["StartedTime"].isNull())
startedTime_ = value["StartedTime"].asString();
if(!value["StoppedTime"].isNull())
stoppedTime_ = value["StoppedTime"].asString();
}
std::string StartSyncExecutionResult::getStatus()const
{
return status_;
}
std::string StartSyncExecutionResult::getStoppedTime()const
{
return stoppedTime_;
}
std::string StartSyncExecutionResult::getFlowName()const
{
return flowName_;
}
std::string StartSyncExecutionResult::getOutput()const
{
return output_;
}
std::string StartSyncExecutionResult::getStartedTime()const
{
return startedTime_;
}
std::string StartSyncExecutionResult::getErrorCode()const
{
return errorCode_;
}
std::string StartSyncExecutionResult::getErrorMessage()const
{
return errorMessage_;
}
std::string StartSyncExecutionResult::getName()const
{
return name_;
}

View File

@@ -1,84 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/fnf/model/StopExecutionRequest.h>
using AlibabaCloud::Fnf::Model::StopExecutionRequest;
StopExecutionRequest::StopExecutionRequest() :
RpcServiceRequest("fnf", "2019-03-15", "StopExecution")
{
setMethod(HttpRequest::Method::Post);
}
StopExecutionRequest::~StopExecutionRequest()
{}
std::string StopExecutionRequest::getExecutionName()const
{
return executionName_;
*/
#include <alibabacloud/fnf/model/StopExecutionRequest.h>
using AlibabaCloud::Fnf::Model::StopExecutionRequest;
StopExecutionRequest::StopExecutionRequest()
: RpcServiceRequest("fnf", "2019-03-15", "StopExecution") {
setMethod(HttpRequest::Method::Post);
}
void StopExecutionRequest::setExecutionName(const std::string& executionName)
{
executionName_ = executionName;
setBodyParameter("ExecutionName", executionName);
StopExecutionRequest::~StopExecutionRequest() {}
std::string StopExecutionRequest::getExecutionName() const {
return executionName_;
}
std::string StopExecutionRequest::getCause()const
{
return cause_;
void StopExecutionRequest::setExecutionName(const std::string &executionName) {
executionName_ = executionName;
setBodyParameter(std::string("ExecutionName"), executionName);
}
void StopExecutionRequest::setCause(const std::string& cause)
{
cause_ = cause;
setBodyParameter("Cause", cause);
std::string StopExecutionRequest::getCause() const {
return cause_;
}
std::string StopExecutionRequest::getError()const
{
return error_;
void StopExecutionRequest::setCause(const std::string &cause) {
cause_ = cause;
setBodyParameter(std::string("Cause"), cause);
}
void StopExecutionRequest::setError(const std::string& error)
{
error_ = error;
setBodyParameter("Error", error);
std::string StopExecutionRequest::getError() const {
return error_;
}
std::string StopExecutionRequest::getRequestId()const
{
return requestId_;
void StopExecutionRequest::setError(const std::string &error) {
error_ = error;
setBodyParameter(std::string("Error"), error);
}
void StopExecutionRequest::setRequestId(const std::string& requestId)
{
requestId_ = requestId;
setParameter("RequestId", requestId);
std::string StopExecutionRequest::getRequestId() const {
return requestId_;
}
std::string StopExecutionRequest::getFlowName()const
{
return flowName_;
void StopExecutionRequest::setRequestId(const std::string &requestId) {
requestId_ = requestId;
setParameter(std::string("RequestId"), requestId);
}
void StopExecutionRequest::setFlowName(const std::string& flowName)
{
flowName_ = flowName;
setBodyParameter("FlowName", flowName);
std::string StopExecutionRequest::getFlowName() const {
return flowName_;
}
void StopExecutionRequest::setFlowName(const std::string &flowName) {
flowName_ = flowName;
setBodyParameter(std::string("FlowName"), flowName);
}

View File

@@ -39,26 +39,26 @@ void StopExecutionResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Name"].isNull())
name_ = value["Name"].asString();
if(!value["FlowName"].isNull())
flowName_ = value["FlowName"].asString();
if(!value["FlowDefinition"].isNull())
flowDefinition_ = value["FlowDefinition"].asString();
if(!value["Input"].isNull())
input_ = value["Input"].asString();
if(!value["Output"].isNull())
output_ = value["Output"].asString();
if(!value["Status"].isNull())
status_ = value["Status"].asString();
if(!value["StartedTime"].isNull())
startedTime_ = value["StartedTime"].asString();
if(!value["StoppedTime"].isNull())
stoppedTime_ = value["StoppedTime"].asString();
if(!value["StartedTime"].isNull())
startedTime_ = value["StartedTime"].asString();
if(!value["FlowDefinition"].isNull())
flowDefinition_ = value["FlowDefinition"].asString();
if(!value["ExternalInputUri"].isNull())
externalInputUri_ = value["ExternalInputUri"].asString();
if(!value["Output"].isNull())
output_ = value["Output"].asString();
if(!value["FlowName"].isNull())
flowName_ = value["FlowName"].asString();
if(!value["ExternalOutputUri"].isNull())
externalOutputUri_ = value["ExternalOutputUri"].asString();
if(!value["Name"].isNull())
name_ = value["Name"].asString();
if(!value["Input"].isNull())
input_ = value["Input"].asString();
}

View File

@@ -1,106 +1,90 @@
/*
* 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/fnf/model/UpdateFlowRequest.h>
using AlibabaCloud::Fnf::Model::UpdateFlowRequest;
UpdateFlowRequest::UpdateFlowRequest() :
RpcServiceRequest("fnf", "2019-03-15", "UpdateFlow")
{
setMethod(HttpRequest::Method::Post);
}
UpdateFlowRequest::~UpdateFlowRequest()
{}
std::string UpdateFlowRequest::getDescription()const
{
return description_;
*/
#include <alibabacloud/fnf/model/UpdateFlowRequest.h>
using AlibabaCloud::Fnf::Model::UpdateFlowRequest;
UpdateFlowRequest::UpdateFlowRequest()
: RpcServiceRequest("fnf", "2019-03-15", "UpdateFlow") {
setMethod(HttpRequest::Method::Post);
}
void UpdateFlowRequest::setDescription(const std::string& description)
{
description_ = description;
setBodyParameter("Description", description);
UpdateFlowRequest::~UpdateFlowRequest() {}
std::string UpdateFlowRequest::getDescription() const {
return description_;
}
std::string UpdateFlowRequest::getType()const
{
return type_;
void UpdateFlowRequest::setDescription(const std::string &description) {
description_ = description;
setBodyParameter(std::string("Description"), description);
}
void UpdateFlowRequest::setType(const std::string& type)
{
type_ = type;
setBodyParameter("Type", type);
std::string UpdateFlowRequest::getType() const {
return type_;
}
std::string UpdateFlowRequest::getRequestId()const
{
return requestId_;
void UpdateFlowRequest::setType(const std::string &type) {
type_ = type;
setBodyParameter(std::string("Type"), type);
}
void UpdateFlowRequest::setRequestId(const std::string& requestId)
{
requestId_ = requestId;
setParameter("RequestId", requestId);
std::string UpdateFlowRequest::getRequestId() const {
return requestId_;
}
std::string UpdateFlowRequest::getRoleArn()const
{
return roleArn_;
void UpdateFlowRequest::setRequestId(const std::string &requestId) {
requestId_ = requestId;
setParameter(std::string("RequestId"), requestId);
}
void UpdateFlowRequest::setRoleArn(const std::string& roleArn)
{
roleArn_ = roleArn;
setBodyParameter("RoleArn", roleArn);
std::string UpdateFlowRequest::getRoleArn() const {
return roleArn_;
}
std::string UpdateFlowRequest::getName()const
{
return name_;
void UpdateFlowRequest::setRoleArn(const std::string &roleArn) {
roleArn_ = roleArn;
setBodyParameter(std::string("RoleArn"), roleArn);
}
void UpdateFlowRequest::setName(const std::string& name)
{
name_ = name;
setBodyParameter("Name", name);
std::string UpdateFlowRequest::getName() const {
return name_;
}
std::string UpdateFlowRequest::getDefinition()const
{
return definition_;
void UpdateFlowRequest::setName(const std::string &name) {
name_ = name;
setBodyParameter(std::string("Name"), name);
}
void UpdateFlowRequest::setDefinition(const std::string& definition)
{
definition_ = definition;
setBodyParameter("Definition", definition);
std::string UpdateFlowRequest::getDefinition() const {
return definition_;
}
std::string UpdateFlowRequest::getExternalStorageLocation()const
{
return externalStorageLocation_;
void UpdateFlowRequest::setDefinition(const std::string &definition) {
definition_ = definition;
setBodyParameter(std::string("Definition"), definition);
}
void UpdateFlowRequest::setExternalStorageLocation(const std::string& externalStorageLocation)
{
externalStorageLocation_ = externalStorageLocation;
setBodyParameter("ExternalStorageLocation", externalStorageLocation);
std::string UpdateFlowRequest::getExternalStorageLocation() const {
return externalStorageLocation_;
}
void UpdateFlowRequest::setExternalStorageLocation(const std::string &externalStorageLocation) {
externalStorageLocation_ = externalStorageLocation;
setBodyParameter(std::string("ExternalStorageLocation"), externalStorageLocation);
}

View File

@@ -39,24 +39,24 @@ void UpdateFlowResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Name"].isNull())
name_ = value["Name"].asString();
if(!value["Description"].isNull())
description_ = value["Description"].asString();
if(!value["Definition"].isNull())
definition_ = value["Definition"].asString();
if(!value["Id"].isNull())
id_ = value["Id"].asString();
if(!value["Type"].isNull())
type_ = value["Type"].asString();
if(!value["Definition"].isNull())
definition_ = value["Definition"].asString();
if(!value["RoleArn"].isNull())
roleArn_ = value["RoleArn"].asString();
if(!value["Description"].isNull())
description_ = value["Description"].asString();
if(!value["ExternalStorageLocation"].isNull())
externalStorageLocation_ = value["ExternalStorageLocation"].asString();
if(!value["Name"].isNull())
name_ = value["Name"].asString();
if(!value["CreatedTime"].isNull())
createdTime_ = value["CreatedTime"].asString();
if(!value["LastModifiedTime"].isNull())
lastModifiedTime_ = value["LastModifiedTime"].asString();
if(!value["ExternalStorageLocation"].isNull())
externalStorageLocation_ = value["ExternalStorageLocation"].asString();
if(!value["Id"].isNull())
id_ = value["Id"].asString();
}

View File

@@ -1,106 +1,90 @@
/*
* 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/fnf/model/UpdateScheduleRequest.h>
using AlibabaCloud::Fnf::Model::UpdateScheduleRequest;
UpdateScheduleRequest::UpdateScheduleRequest() :
RpcServiceRequest("fnf", "2019-03-15", "UpdateSchedule")
{
setMethod(HttpRequest::Method::Post);
}
UpdateScheduleRequest::~UpdateScheduleRequest()
{}
std::string UpdateScheduleRequest::getScheduleName()const
{
return scheduleName_;
*/
#include <alibabacloud/fnf/model/UpdateScheduleRequest.h>
using AlibabaCloud::Fnf::Model::UpdateScheduleRequest;
UpdateScheduleRequest::UpdateScheduleRequest()
: RpcServiceRequest("fnf", "2019-03-15", "UpdateSchedule") {
setMethod(HttpRequest::Method::Post);
}
void UpdateScheduleRequest::setScheduleName(const std::string& scheduleName)
{
scheduleName_ = scheduleName;
setBodyParameter("ScheduleName", scheduleName);
UpdateScheduleRequest::~UpdateScheduleRequest() {}
std::string UpdateScheduleRequest::getScheduleName() const {
return scheduleName_;
}
std::string UpdateScheduleRequest::getCronExpression()const
{
return cronExpression_;
void UpdateScheduleRequest::setScheduleName(const std::string &scheduleName) {
scheduleName_ = scheduleName;
setBodyParameter(std::string("ScheduleName"), scheduleName);
}
void UpdateScheduleRequest::setCronExpression(const std::string& cronExpression)
{
cronExpression_ = cronExpression;
setBodyParameter("CronExpression", cronExpression);
std::string UpdateScheduleRequest::getCronExpression() const {
return cronExpression_;
}
std::string UpdateScheduleRequest::getPayload()const
{
return payload_;
void UpdateScheduleRequest::setCronExpression(const std::string &cronExpression) {
cronExpression_ = cronExpression;
setBodyParameter(std::string("CronExpression"), cronExpression);
}
void UpdateScheduleRequest::setPayload(const std::string& payload)
{
payload_ = payload;
setBodyParameter("Payload", payload);
std::string UpdateScheduleRequest::getPayload() const {
return payload_;
}
std::string UpdateScheduleRequest::getRequestId()const
{
return requestId_;
void UpdateScheduleRequest::setPayload(const std::string &payload) {
payload_ = payload;
setBodyParameter(std::string("Payload"), payload);
}
void UpdateScheduleRequest::setRequestId(const std::string& requestId)
{
requestId_ = requestId;
setParameter("RequestId", requestId);
std::string UpdateScheduleRequest::getRequestId() const {
return requestId_;
}
bool UpdateScheduleRequest::getEnable()const
{
return enable_;
void UpdateScheduleRequest::setRequestId(const std::string &requestId) {
requestId_ = requestId;
setParameter(std::string("RequestId"), requestId);
}
void UpdateScheduleRequest::setEnable(bool enable)
{
enable_ = enable;
setBodyParameter("Enable", enable ? "true" : "false");
bool UpdateScheduleRequest::getEnable() const {
return enable_;
}
std::string UpdateScheduleRequest::getDescription()const
{
return description_;
void UpdateScheduleRequest::setEnable(bool enable) {
enable_ = enable;
setBodyParameter(std::string("Enable"), enable ? "true" : "false");
}
void UpdateScheduleRequest::setDescription(const std::string& description)
{
description_ = description;
setBodyParameter("Description", description);
std::string UpdateScheduleRequest::getDescription() const {
return description_;
}
std::string UpdateScheduleRequest::getFlowName()const
{
return flowName_;
void UpdateScheduleRequest::setDescription(const std::string &description) {
description_ = description;
setBodyParameter(std::string("Description"), description);
}
void UpdateScheduleRequest::setFlowName(const std::string& flowName)
{
flowName_ = flowName;
setBodyParameter("FlowName", flowName);
std::string UpdateScheduleRequest::getFlowName() const {
return flowName_;
}
void UpdateScheduleRequest::setFlowName(const std::string &flowName) {
flowName_ = flowName;
setBodyParameter(std::string("FlowName"), flowName);
}

View File

@@ -39,22 +39,22 @@ void UpdateScheduleResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["ScheduleName"].isNull())
scheduleName_ = value["ScheduleName"].asString();
if(!value["Description"].isNull())
description_ = value["Description"].asString();
if(!value["ScheduleId"].isNull())
scheduleId_ = value["ScheduleId"].asString();
if(!value["Payload"].isNull())
payload_ = value["Payload"].asString();
if(!value["CronExpression"].isNull())
cronExpression_ = value["CronExpression"].asString();
if(!value["Enable"].isNull())
enable_ = value["Enable"].asString() == "true";
if(!value["ScheduleName"].isNull())
scheduleName_ = value["ScheduleName"].asString();
if(!value["CreatedTime"].isNull())
createdTime_ = value["CreatedTime"].asString();
if(!value["LastModifiedTime"].isNull())
lastModifiedTime_ = value["LastModifiedTime"].asString();
if(!value["CronExpression"].isNull())
cronExpression_ = value["CronExpression"].asString();
if(!value["Enable"].isNull())
enable_ = value["Enable"].asString() == "true";
}