AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
WorkflowConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
10#include <aws/imagebuilder/model/OnWorkflowFailure.h>
11#include <aws/imagebuilder/model/WorkflowParameter.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace imagebuilder {
23namespace Model {
24
32 public:
33 AWS_IMAGEBUILDER_API WorkflowConfiguration() = default;
34 AWS_IMAGEBUILDER_API WorkflowConfiguration(Aws::Utils::Json::JsonView jsonValue);
36 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetWorkflowArn() const { return m_workflowArn; }
43 inline bool WorkflowArnHasBeenSet() const { return m_workflowArnHasBeenSet; }
44 template <typename WorkflowArnT = Aws::String>
45 void SetWorkflowArn(WorkflowArnT&& value) {
46 m_workflowArnHasBeenSet = true;
47 m_workflowArn = std::forward<WorkflowArnT>(value);
48 }
49 template <typename WorkflowArnT = Aws::String>
50 WorkflowConfiguration& WithWorkflowArn(WorkflowArnT&& value) {
51 SetWorkflowArn(std::forward<WorkflowArnT>(value));
52 return *this;
53 }
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) {
65 m_parametersHasBeenSet = true;
66 m_parameters = std::forward<ParametersT>(value);
67 }
68 template <typename ParametersT = Aws::Vector<WorkflowParameter>>
69 WorkflowConfiguration& WithParameters(ParametersT&& value) {
70 SetParameters(std::forward<ParametersT>(value));
71 return *this;
72 }
73 template <typename ParametersT = WorkflowParameter>
74 WorkflowConfiguration& AddParameters(ParametersT&& value) {
75 m_parametersHasBeenSet = true;
76 m_parameters.emplace_back(std::forward<ParametersT>(value));
77 return *this;
78 }
80
82
90 inline const Aws::String& GetParallelGroup() const { return m_parallelGroup; }
91 inline bool ParallelGroupHasBeenSet() const { return m_parallelGroupHasBeenSet; }
92 template <typename ParallelGroupT = Aws::String>
93 void SetParallelGroup(ParallelGroupT&& value) {
94 m_parallelGroupHasBeenSet = true;
95 m_parallelGroup = std::forward<ParallelGroupT>(value);
96 }
97 template <typename ParallelGroupT = Aws::String>
98 WorkflowConfiguration& WithParallelGroup(ParallelGroupT&& value) {
99 SetParallelGroup(std::forward<ParallelGroupT>(value));
100 return *this;
101 }
103
105
108 inline OnWorkflowFailure GetOnFailure() const { return m_onFailure; }
109 inline bool OnFailureHasBeenSet() const { return m_onFailureHasBeenSet; }
110 inline void SetOnFailure(OnWorkflowFailure value) {
111 m_onFailureHasBeenSet = true;
112 m_onFailure = value;
113 }
115 SetOnFailure(value);
116 return *this;
117 }
119 private:
120 Aws::String m_workflowArn;
121
123
124 Aws::String m_parallelGroup;
125
127 bool m_workflowArnHasBeenSet = false;
128 bool m_parametersHasBeenSet = false;
129 bool m_parallelGroupHasBeenSet = false;
130 bool m_onFailureHasBeenSet = false;
131};
132
133} // namespace Model
134} // namespace imagebuilder
135} // 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