Generate SDK by new Generator

This commit is contained in:
wb-hx510875
2019-09-18 11:18:56 +08:00
parent be86048a76
commit f3eaf1d292
9054 changed files with 325898 additions and 381375 deletions

View File

@@ -25,6 +25,28 @@ CreateFlowRequest::CreateFlowRequest() :
CreateFlowRequest::~CreateFlowRequest()
{}
std::string CreateFlowRequest::getDescription()const
{
return description_;
}
void CreateFlowRequest::setDescription(const std::string& description)
{
description_ = description;
setCoreParameter("Description", description);
}
std::string CreateFlowRequest::getType()const
{
return type_;
}
void CreateFlowRequest::setType(const std::string& type)
{
type_ = type;
setCoreParameter("Type", type);
}
std::string CreateFlowRequest::getRequestId()const
{
return requestId_;
@@ -58,17 +80,6 @@ void CreateFlowRequest::setName(const std::string& name)
setCoreParameter("Name", name);
}
std::string CreateFlowRequest::getDescription()const
{
return description_;
}
void CreateFlowRequest::setDescription(const std::string& description)
{
description_ = description;
setCoreParameter("Description", description);
}
std::string CreateFlowRequest::getDefinition()const
{
return definition_;
@@ -80,14 +91,3 @@ void CreateFlowRequest::setDefinition(const std::string& definition)
setCoreParameter("Definition", definition);
}
std::string CreateFlowRequest::getType()const
{
return type_;
}
void CreateFlowRequest::setType(const std::string& type)
{
type_ = type;
setCoreParameter("Type", type);
}

View File

@@ -35,13 +35,9 @@ CreateFlowResult::~CreateFlowResult()
void CreateFlowResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Reader reader;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Name"].isNull())
name_ = value["Name"].asString();

View File

@@ -35,13 +35,9 @@ DeleteFlowResult::~DeleteFlowResult()
void DeleteFlowResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Reader reader;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -35,13 +35,9 @@ DescribeExecutionResult::~DescribeExecutionResult()
void DescribeExecutionResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Reader reader;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Name"].isNull())
name_ = value["Name"].asString();

View File

@@ -35,13 +35,9 @@ DescribeFlowResult::~DescribeFlowResult()
void DescribeFlowResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Reader reader;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Name"].isNull())
name_ = value["Name"].asString();

View File

@@ -35,13 +35,9 @@ GetExecutionHistoryResult::~GetExecutionHistoryResult()
void GetExecutionHistoryResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Reader reader;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allEvents = value["Events"]["EventsItem"];
for (auto value : allEvents)

View File

@@ -35,13 +35,9 @@ ListExecutionsResult::~ListExecutionsResult()
void ListExecutionsResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Reader reader;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allExecutions = value["Executions"]["ExecutionsItem"];
for (auto value : allExecutions)

View File

@@ -35,13 +35,9 @@ ListFlowsResult::~ListFlowsResult()
void ListFlowsResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Reader reader;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allFlows = value["Flows"]["FlowsItem"];
for (auto value : allFlows)

View File

@@ -25,17 +25,6 @@ ReportTaskFailedRequest::ReportTaskFailedRequest() :
ReportTaskFailedRequest::~ReportTaskFailedRequest()
{}
std::string ReportTaskFailedRequest::getRequestId()const
{
return requestId_;
}
void ReportTaskFailedRequest::setRequestId(const std::string& requestId)
{
requestId_ = requestId;
setCoreParameter("RequestId", requestId);
}
std::string ReportTaskFailedRequest::getCause()const
{
return cause_;
@@ -47,17 +36,6 @@ void ReportTaskFailedRequest::setCause(const std::string& cause)
setCoreParameter("Cause", cause);
}
std::string ReportTaskFailedRequest::getTaskToken()const
{
return taskToken_;
}
void ReportTaskFailedRequest::setTaskToken(const std::string& taskToken)
{
taskToken_ = taskToken;
setCoreParameter("TaskToken", taskToken);
}
std::string ReportTaskFailedRequest::getError()const
{
return error_;
@@ -69,3 +47,25 @@ void ReportTaskFailedRequest::setError(const std::string& error)
setCoreParameter("Error", error);
}
std::string ReportTaskFailedRequest::getRequestId()const
{
return requestId_;
}
void ReportTaskFailedRequest::setRequestId(const std::string& requestId)
{
requestId_ = requestId;
setCoreParameter("RequestId", requestId);
}
std::string ReportTaskFailedRequest::getTaskToken()const
{
return taskToken_;
}
void ReportTaskFailedRequest::setTaskToken(const std::string& taskToken)
{
taskToken_ = taskToken;
setCoreParameter("TaskToken", taskToken);
}

View File

@@ -35,13 +35,9 @@ ReportTaskFailedResult::~ReportTaskFailedResult()
void ReportTaskFailedResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Reader reader;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["EventId"].isNull())
eventId_ = std::stol(value["EventId"].asString());

View File

@@ -35,13 +35,9 @@ ReportTaskSucceededResult::~ReportTaskSucceededResult()
void ReportTaskSucceededResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Reader reader;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["EventId"].isNull())
eventId_ = std::stol(value["EventId"].asString());

View File

@@ -25,17 +25,6 @@ StartExecutionRequest::StartExecutionRequest() :
StartExecutionRequest::~StartExecutionRequest()
{}
std::string StartExecutionRequest::getInput()const
{
return input_;
}
void StartExecutionRequest::setInput(const std::string& input)
{
input_ = input;
setCoreParameter("Input", input);
}
std::string StartExecutionRequest::getExecutionName()const
{
return executionName_;
@@ -47,6 +36,17 @@ void StartExecutionRequest::setExecutionName(const std::string& executionName)
setCoreParameter("ExecutionName", executionName);
}
std::string StartExecutionRequest::getInput()const
{
return input_;
}
void StartExecutionRequest::setInput(const std::string& input)
{
input_ = input;
setCoreParameter("Input", input);
}
std::string StartExecutionRequest::getRequestId()const
{
return requestId_;

View File

@@ -35,13 +35,9 @@ StartExecutionResult::~StartExecutionResult()
void StartExecutionResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Reader reader;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Name"].isNull())
name_ = value["Name"].asString();

View File

@@ -36,17 +36,6 @@ void StopExecutionRequest::setExecutionName(const std::string& executionName)
setCoreParameter("ExecutionName", executionName);
}
std::string StopExecutionRequest::getRequestId()const
{
return requestId_;
}
void StopExecutionRequest::setRequestId(const std::string& requestId)
{
requestId_ = requestId;
setCoreParameter("RequestId", requestId);
}
std::string StopExecutionRequest::getCause()const
{
return cause_;
@@ -58,17 +47,6 @@ void StopExecutionRequest::setCause(const std::string& cause)
setCoreParameter("Cause", cause);
}
std::string StopExecutionRequest::getFlowName()const
{
return flowName_;
}
void StopExecutionRequest::setFlowName(const std::string& flowName)
{
flowName_ = flowName;
setCoreParameter("FlowName", flowName);
}
std::string StopExecutionRequest::getError()const
{
return error_;
@@ -80,3 +58,25 @@ void StopExecutionRequest::setError(const std::string& error)
setCoreParameter("Error", error);
}
std::string StopExecutionRequest::getRequestId()const
{
return requestId_;
}
void StopExecutionRequest::setRequestId(const std::string& requestId)
{
requestId_ = requestId;
setCoreParameter("RequestId", requestId);
}
std::string StopExecutionRequest::getFlowName()const
{
return flowName_;
}
void StopExecutionRequest::setFlowName(const std::string& flowName)
{
flowName_ = flowName;
setCoreParameter("FlowName", flowName);
}

View File

@@ -35,13 +35,9 @@ StopExecutionResult::~StopExecutionResult()
void StopExecutionResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Reader reader;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Name"].isNull())
name_ = value["Name"].asString();

View File

@@ -25,6 +25,28 @@ UpdateFlowRequest::UpdateFlowRequest() :
UpdateFlowRequest::~UpdateFlowRequest()
{}
std::string UpdateFlowRequest::getDescription()const
{
return description_;
}
void UpdateFlowRequest::setDescription(const std::string& description)
{
description_ = description;
setCoreParameter("Description", description);
}
std::string UpdateFlowRequest::getType()const
{
return type_;
}
void UpdateFlowRequest::setType(const std::string& type)
{
type_ = type;
setCoreParameter("Type", type);
}
std::string UpdateFlowRequest::getRequestId()const
{
return requestId_;
@@ -58,17 +80,6 @@ void UpdateFlowRequest::setName(const std::string& name)
setCoreParameter("Name", name);
}
std::string UpdateFlowRequest::getDescription()const
{
return description_;
}
void UpdateFlowRequest::setDescription(const std::string& description)
{
description_ = description;
setCoreParameter("Description", description);
}
std::string UpdateFlowRequest::getDefinition()const
{
return definition_;
@@ -80,14 +91,3 @@ void UpdateFlowRequest::setDefinition(const std::string& definition)
setCoreParameter("Definition", definition);
}
std::string UpdateFlowRequest::getType()const
{
return type_;
}
void UpdateFlowRequest::setType(const std::string& type)
{
type_ = type;
setCoreParameter("Type", type);
}

View File

@@ -35,13 +35,9 @@ UpdateFlowResult::~UpdateFlowResult()
void UpdateFlowResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Reader reader;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Name"].isNull())
name_ = value["Name"].asString();