Files
aliyun-openapi-cpp-sdk/dms-enterprise/include/alibabacloud/dms-enterprise/model/PreviewWorkflowResult.h
2023-09-28 06:29:00 +00:00

76 lines
2.0 KiB
C++

/*
* 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.
*/
#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_PREVIEWWORKFLOWRESULT_H_
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_PREVIEWWORKFLOWRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
namespace AlibabaCloud
{
namespace Dms_enterprise
{
namespace Model
{
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT PreviewWorkflowResult : public ServiceResult
{
public:
struct WorkflowDetail
{
struct WorkflowNode
{
struct AuditUser
{
long userId;
std::string realName;
std::string nickName;
};
std::string comment;
std::vector<WorkflowNode::AuditUser> auditUserList;
std::string nodeName;
std::string nodeType;
};
std::vector<WorkflowNode> workflowNodeList;
std::string comment;
std::string wfCateName;
};
PreviewWorkflowResult();
explicit PreviewWorkflowResult(const std::string &payload);
~PreviewWorkflowResult();
WorkflowDetail getWorkflowDetail()const;
std::string getErrorCode()const;
std::string getErrorMessage()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
WorkflowDetail workflowDetail_;
std::string errorCode_;
std::string errorMessage_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_PREVIEWWORKFLOWRESULT_H_