AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
FlowDefinition.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/customer-profiles/CustomerProfiles_EXPORTS.h>
10#include <aws/customer-profiles/model/SourceFlowConfig.h>
11#include <aws/customer-profiles/model/Task.h>
12#include <aws/customer-profiles/model/TriggerConfig.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CustomerProfiles {
24namespace Model {
25
34 public:
35 AWS_CUSTOMERPROFILES_API FlowDefinition() = default;
36 AWS_CUSTOMERPROFILES_API FlowDefinition(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CUSTOMERPROFILES_API FlowDefinition& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetDescription() const { return m_description; }
45 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
46 template <typename DescriptionT = Aws::String>
47 void SetDescription(DescriptionT&& value) {
48 m_descriptionHasBeenSet = true;
49 m_description = std::forward<DescriptionT>(value);
50 }
51 template <typename DescriptionT = Aws::String>
52 FlowDefinition& WithDescription(DescriptionT&& value) {
53 SetDescription(std::forward<DescriptionT>(value));
54 return *this;
55 }
57
59
63 inline const Aws::String& GetFlowName() const { return m_flowName; }
64 inline bool FlowNameHasBeenSet() const { return m_flowNameHasBeenSet; }
65 template <typename FlowNameT = Aws::String>
66 void SetFlowName(FlowNameT&& value) {
67 m_flowNameHasBeenSet = true;
68 m_flowName = std::forward<FlowNameT>(value);
69 }
70 template <typename FlowNameT = Aws::String>
71 FlowDefinition& WithFlowName(FlowNameT&& value) {
72 SetFlowName(std::forward<FlowNameT>(value));
73 return *this;
74 }
76
78
82 inline const Aws::String& GetKmsArn() const { return m_kmsArn; }
83 inline bool KmsArnHasBeenSet() const { return m_kmsArnHasBeenSet; }
84 template <typename KmsArnT = Aws::String>
85 void SetKmsArn(KmsArnT&& value) {
86 m_kmsArnHasBeenSet = true;
87 m_kmsArn = std::forward<KmsArnT>(value);
88 }
89 template <typename KmsArnT = Aws::String>
90 FlowDefinition& WithKmsArn(KmsArnT&& value) {
91 SetKmsArn(std::forward<KmsArnT>(value));
92 return *this;
93 }
95
97
101 inline const SourceFlowConfig& GetSourceFlowConfig() const { return m_sourceFlowConfig; }
102 inline bool SourceFlowConfigHasBeenSet() const { return m_sourceFlowConfigHasBeenSet; }
103 template <typename SourceFlowConfigT = SourceFlowConfig>
104 void SetSourceFlowConfig(SourceFlowConfigT&& value) {
105 m_sourceFlowConfigHasBeenSet = true;
106 m_sourceFlowConfig = std::forward<SourceFlowConfigT>(value);
107 }
108 template <typename SourceFlowConfigT = SourceFlowConfig>
109 FlowDefinition& WithSourceFlowConfig(SourceFlowConfigT&& value) {
110 SetSourceFlowConfig(std::forward<SourceFlowConfigT>(value));
111 return *this;
112 }
114
116
120 inline const Aws::Vector<Task>& GetTasks() const { return m_tasks; }
121 inline bool TasksHasBeenSet() const { return m_tasksHasBeenSet; }
122 template <typename TasksT = Aws::Vector<Task>>
123 void SetTasks(TasksT&& value) {
124 m_tasksHasBeenSet = true;
125 m_tasks = std::forward<TasksT>(value);
126 }
127 template <typename TasksT = Aws::Vector<Task>>
128 FlowDefinition& WithTasks(TasksT&& value) {
129 SetTasks(std::forward<TasksT>(value));
130 return *this;
131 }
132 template <typename TasksT = Task>
133 FlowDefinition& AddTasks(TasksT&& value) {
134 m_tasksHasBeenSet = true;
135 m_tasks.emplace_back(std::forward<TasksT>(value));
136 return *this;
137 }
139
141
144 inline const TriggerConfig& GetTriggerConfig() const { return m_triggerConfig; }
145 inline bool TriggerConfigHasBeenSet() const { return m_triggerConfigHasBeenSet; }
146 template <typename TriggerConfigT = TriggerConfig>
147 void SetTriggerConfig(TriggerConfigT&& value) {
148 m_triggerConfigHasBeenSet = true;
149 m_triggerConfig = std::forward<TriggerConfigT>(value);
150 }
151 template <typename TriggerConfigT = TriggerConfig>
152 FlowDefinition& WithTriggerConfig(TriggerConfigT&& value) {
153 SetTriggerConfig(std::forward<TriggerConfigT>(value));
154 return *this;
155 }
157 private:
158 Aws::String m_description;
159
160 Aws::String m_flowName;
161
162 Aws::String m_kmsArn;
163
164 SourceFlowConfig m_sourceFlowConfig;
165
166 Aws::Vector<Task> m_tasks;
167
168 TriggerConfig m_triggerConfig;
169 bool m_descriptionHasBeenSet = false;
170 bool m_flowNameHasBeenSet = false;
171 bool m_kmsArnHasBeenSet = false;
172 bool m_sourceFlowConfigHasBeenSet = false;
173 bool m_tasksHasBeenSet = false;
174 bool m_triggerConfigHasBeenSet = false;
175};
176
177} // namespace Model
178} // namespace CustomerProfiles
179} // namespace Aws
const TriggerConfig & GetTriggerConfig() const
FlowDefinition & WithSourceFlowConfig(SourceFlowConfigT &&value)
AWS_CUSTOMERPROFILES_API FlowDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
FlowDefinition & WithDescription(DescriptionT &&value)
FlowDefinition & WithTriggerConfig(TriggerConfigT &&value)
AWS_CUSTOMERPROFILES_API FlowDefinition()=default
AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CUSTOMERPROFILES_API FlowDefinition(Aws::Utils::Json::JsonView jsonValue)
FlowDefinition & WithFlowName(FlowNameT &&value)
const Aws::Vector< Task > & GetTasks() const
void SetTriggerConfig(TriggerConfigT &&value)
FlowDefinition & WithTasks(TasksT &&value)
void SetSourceFlowConfig(SourceFlowConfigT &&value)
FlowDefinition & AddTasks(TasksT &&value)
FlowDefinition & WithKmsArn(KmsArnT &&value)
const Aws::String & GetDescription() const
const SourceFlowConfig & GetSourceFlowConfig() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue