AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetWorkflowArn(const Aws::String& value) { m_workflowArnHasBeenSet = true; m_workflowArn = value; }
51 inline void SetWorkflowArn(Aws::String&& value) { m_workflowArnHasBeenSet = true; m_workflowArn = std::move(value); }
52 inline void SetWorkflowArn(const char* value) { m_workflowArnHasBeenSet = true; m_workflowArn.assign(value); }
53 inline WorkflowConfiguration& WithWorkflowArn(const Aws::String& value) { SetWorkflowArn(value); return *this;}
54 inline WorkflowConfiguration& WithWorkflowArn(Aws::String&& value) { SetWorkflowArn(std::move(value)); return *this;}
55 inline WorkflowConfiguration& WithWorkflowArn(const char* value) { SetWorkflowArn(value); return *this;}
57
59
63 inline const Aws::Vector<WorkflowParameter>& GetParameters() const{ return m_parameters; }
64 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
65 inline void SetParameters(const Aws::Vector<WorkflowParameter>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
66 inline void SetParameters(Aws::Vector<WorkflowParameter>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
68 inline WorkflowConfiguration& WithParameters(Aws::Vector<WorkflowParameter>&& value) { SetParameters(std::move(value)); return *this;}
69 inline WorkflowConfiguration& AddParameters(const WorkflowParameter& value) { m_parametersHasBeenSet = true; m_parameters.push_back(value); return *this; }
70 inline WorkflowConfiguration& AddParameters(WorkflowParameter&& value) { m_parametersHasBeenSet = true; m_parameters.push_back(std::move(value)); return *this; }
72
74
82 inline const Aws::String& GetParallelGroup() const{ return m_parallelGroup; }
83 inline bool ParallelGroupHasBeenSet() const { return m_parallelGroupHasBeenSet; }
84 inline void SetParallelGroup(const Aws::String& value) { m_parallelGroupHasBeenSet = true; m_parallelGroup = value; }
85 inline void SetParallelGroup(Aws::String&& value) { m_parallelGroupHasBeenSet = true; m_parallelGroup = std::move(value); }
86 inline void SetParallelGroup(const char* value) { m_parallelGroupHasBeenSet = true; m_parallelGroup.assign(value); }
87 inline WorkflowConfiguration& WithParallelGroup(const Aws::String& value) { SetParallelGroup(value); return *this;}
88 inline WorkflowConfiguration& WithParallelGroup(Aws::String&& value) { SetParallelGroup(std::move(value)); return *this;}
89 inline WorkflowConfiguration& WithParallelGroup(const char* value) { SetParallelGroup(value); return *this;}
91
93
96 inline const OnWorkflowFailure& GetOnFailure() const{ return m_onFailure; }
97 inline bool OnFailureHasBeenSet() const { return m_onFailureHasBeenSet; }
98 inline void SetOnFailure(const OnWorkflowFailure& value) { m_onFailureHasBeenSet = true; m_onFailure = value; }
99 inline void SetOnFailure(OnWorkflowFailure&& value) { m_onFailureHasBeenSet = true; m_onFailure = std::move(value); }
100 inline WorkflowConfiguration& WithOnFailure(const OnWorkflowFailure& value) { SetOnFailure(value); return *this;}
101 inline WorkflowConfiguration& WithOnFailure(OnWorkflowFailure&& value) { SetOnFailure(std::move(value)); return *this;}
103 private:
104
105 Aws::String m_workflowArn;
106 bool m_workflowArnHasBeenSet = false;
107
109 bool m_parametersHasBeenSet = false;
110
111 Aws::String m_parallelGroup;
112 bool m_parallelGroupHasBeenSet = false;
113
114 OnWorkflowFailure m_onFailure;
115 bool m_onFailureHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace imagebuilder
120} // namespace Aws
WorkflowConfiguration & WithOnFailure(OnWorkflowFailure &&value)
const Aws::Vector< WorkflowParameter > & GetParameters() const
AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
WorkflowConfiguration & AddParameters(const WorkflowParameter &value)
void SetOnFailure(const OnWorkflowFailure &value)
WorkflowConfiguration & WithWorkflowArn(const Aws::String &value)
WorkflowConfiguration & WithOnFailure(const OnWorkflowFailure &value)
WorkflowConfiguration & WithParameters(Aws::Vector< WorkflowParameter > &&value)
void SetParameters(const Aws::Vector< WorkflowParameter > &value)
WorkflowConfiguration & WithWorkflowArn(Aws::String &&value)
AWS_IMAGEBUILDER_API WorkflowConfiguration(Aws::Utils::Json::JsonView jsonValue)
WorkflowConfiguration & WithParallelGroup(const char *value)
WorkflowConfiguration & WithWorkflowArn(const char *value)
AWS_IMAGEBUILDER_API WorkflowConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
WorkflowConfiguration & WithParameters(const Aws::Vector< WorkflowParameter > &value)
void SetParameters(Aws::Vector< WorkflowParameter > &&value)
WorkflowConfiguration & WithParallelGroup(Aws::String &&value)
WorkflowConfiguration & AddParameters(WorkflowParameter &&value)
WorkflowConfiguration & WithParallelGroup(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue