AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
WorkflowConfiguration.h
1
6#pragma once
7#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/imagebuilder/model/OnWorkflowFailure.h>
11#include <aws/imagebuilder/model/WorkflowParameter.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace imagebuilder
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_IMAGEBUILDER_API WorkflowConfiguration() = default;
39 AWS_IMAGEBUILDER_API WorkflowConfiguration(Aws::Utils::Json::JsonView jsonValue);
41 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetWorkflowArn() const { return m_workflowArn; }
49 inline bool WorkflowArnHasBeenSet() const { return m_workflowArnHasBeenSet; }
50 template<typename WorkflowArnT = Aws::String>
51 void SetWorkflowArn(WorkflowArnT&& value) { m_workflowArnHasBeenSet = true; m_workflowArn = std::forward<WorkflowArnT>(value); }
52 template<typename WorkflowArnT = Aws::String>
53 WorkflowConfiguration& WithWorkflowArn(WorkflowArnT&& value) { SetWorkflowArn(std::forward<WorkflowArnT>(value)); return *this;}
55
57
61 inline const Aws::Vector<WorkflowParameter>& GetParameters() const { return m_parameters; }
62 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
63 template<typename ParametersT = Aws::Vector<WorkflowParameter>>
64 void SetParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters = std::forward<ParametersT>(value); }
65 template<typename ParametersT = Aws::Vector<WorkflowParameter>>
66 WorkflowConfiguration& WithParameters(ParametersT&& value) { SetParameters(std::forward<ParametersT>(value)); return *this;}
67 template<typename ParametersT = WorkflowParameter>
68 WorkflowConfiguration& AddParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters.emplace_back(std::forward<ParametersT>(value)); return *this; }
70
72
80 inline const Aws::String& GetParallelGroup() const { return m_parallelGroup; }
81 inline bool ParallelGroupHasBeenSet() const { return m_parallelGroupHasBeenSet; }
82 template<typename ParallelGroupT = Aws::String>
83 void SetParallelGroup(ParallelGroupT&& value) { m_parallelGroupHasBeenSet = true; m_parallelGroup = std::forward<ParallelGroupT>(value); }
84 template<typename ParallelGroupT = Aws::String>
85 WorkflowConfiguration& WithParallelGroup(ParallelGroupT&& value) { SetParallelGroup(std::forward<ParallelGroupT>(value)); return *this;}
87
89
92 inline OnWorkflowFailure GetOnFailure() const { return m_onFailure; }
93 inline bool OnFailureHasBeenSet() const { return m_onFailureHasBeenSet; }
94 inline void SetOnFailure(OnWorkflowFailure value) { m_onFailureHasBeenSet = true; m_onFailure = value; }
95 inline WorkflowConfiguration& WithOnFailure(OnWorkflowFailure value) { SetOnFailure(value); return *this;}
97 private:
98
99 Aws::String m_workflowArn;
100 bool m_workflowArnHasBeenSet = false;
101
103 bool m_parametersHasBeenSet = false;
104
105 Aws::String m_parallelGroup;
106 bool m_parallelGroupHasBeenSet = false;
107
109 bool m_onFailureHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace imagebuilder
114} // namespace Aws
const Aws::Vector< WorkflowParameter > & GetParameters() const
AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
WorkflowConfiguration & WithWorkflowArn(WorkflowArnT &&value)
AWS_IMAGEBUILDER_API WorkflowConfiguration()=default
WorkflowConfiguration & WithParallelGroup(ParallelGroupT &&value)
WorkflowConfiguration & WithOnFailure(OnWorkflowFailure value)
WorkflowConfiguration & WithParameters(ParametersT &&value)
WorkflowConfiguration & AddParameters(ParametersT &&value)
AWS_IMAGEBUILDER_API WorkflowConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_IMAGEBUILDER_API WorkflowConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue