AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
CreateFlowDefinitionRequest.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/sagemaker/SageMakerRequest.h>
10#include <aws/sagemaker/SageMaker_EXPORTS.h>
11#include <aws/sagemaker/model/FlowDefinitionOutputConfig.h>
12#include <aws/sagemaker/model/HumanLoopActivationConfig.h>
13#include <aws/sagemaker/model/HumanLoopConfig.h>
14#include <aws/sagemaker/model/HumanLoopRequestSource.h>
15#include <aws/sagemaker/model/Tag.h>
16
17#include <utility>
18
19namespace Aws {
20namespace SageMaker {
21namespace Model {
22
26 public:
27 AWS_SAGEMAKER_API CreateFlowDefinitionRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateFlowDefinition"; }
34
35 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
36
38
40
43 inline const Aws::String& GetFlowDefinitionName() const { return m_flowDefinitionName; }
44 inline bool FlowDefinitionNameHasBeenSet() const { return m_flowDefinitionNameHasBeenSet; }
45 template <typename FlowDefinitionNameT = Aws::String>
46 void SetFlowDefinitionName(FlowDefinitionNameT&& value) {
47 m_flowDefinitionNameHasBeenSet = true;
48 m_flowDefinitionName = std::forward<FlowDefinitionNameT>(value);
49 }
50 template <typename FlowDefinitionNameT = Aws::String>
52 SetFlowDefinitionName(std::forward<FlowDefinitionNameT>(value));
53 return *this;
54 }
56
58
62 inline const HumanLoopRequestSource& GetHumanLoopRequestSource() const { return m_humanLoopRequestSource; }
63 inline bool HumanLoopRequestSourceHasBeenSet() const { return m_humanLoopRequestSourceHasBeenSet; }
64 template <typename HumanLoopRequestSourceT = HumanLoopRequestSource>
65 void SetHumanLoopRequestSource(HumanLoopRequestSourceT&& value) {
66 m_humanLoopRequestSourceHasBeenSet = true;
67 m_humanLoopRequestSource = std::forward<HumanLoopRequestSourceT>(value);
68 }
69 template <typename HumanLoopRequestSourceT = HumanLoopRequestSource>
70 CreateFlowDefinitionRequest& WithHumanLoopRequestSource(HumanLoopRequestSourceT&& value) {
71 SetHumanLoopRequestSource(std::forward<HumanLoopRequestSourceT>(value));
72 return *this;
73 }
75
77
81 inline const HumanLoopActivationConfig& GetHumanLoopActivationConfig() const { return m_humanLoopActivationConfig; }
82 inline bool HumanLoopActivationConfigHasBeenSet() const { return m_humanLoopActivationConfigHasBeenSet; }
83 template <typename HumanLoopActivationConfigT = HumanLoopActivationConfig>
84 void SetHumanLoopActivationConfig(HumanLoopActivationConfigT&& value) {
85 m_humanLoopActivationConfigHasBeenSet = true;
86 m_humanLoopActivationConfig = std::forward<HumanLoopActivationConfigT>(value);
87 }
88 template <typename HumanLoopActivationConfigT = HumanLoopActivationConfig>
89 CreateFlowDefinitionRequest& WithHumanLoopActivationConfig(HumanLoopActivationConfigT&& value) {
90 SetHumanLoopActivationConfig(std::forward<HumanLoopActivationConfigT>(value));
91 return *this;
92 }
94
96
100 inline const HumanLoopConfig& GetHumanLoopConfig() const { return m_humanLoopConfig; }
101 inline bool HumanLoopConfigHasBeenSet() const { return m_humanLoopConfigHasBeenSet; }
102 template <typename HumanLoopConfigT = HumanLoopConfig>
103 void SetHumanLoopConfig(HumanLoopConfigT&& value) {
104 m_humanLoopConfigHasBeenSet = true;
105 m_humanLoopConfig = std::forward<HumanLoopConfigT>(value);
106 }
107 template <typename HumanLoopConfigT = HumanLoopConfig>
109 SetHumanLoopConfig(std::forward<HumanLoopConfigT>(value));
110 return *this;
111 }
113
115
119 inline const FlowDefinitionOutputConfig& GetOutputConfig() const { return m_outputConfig; }
120 inline bool OutputConfigHasBeenSet() const { return m_outputConfigHasBeenSet; }
121 template <typename OutputConfigT = FlowDefinitionOutputConfig>
122 void SetOutputConfig(OutputConfigT&& value) {
123 m_outputConfigHasBeenSet = true;
124 m_outputConfig = std::forward<OutputConfigT>(value);
125 }
126 template <typename OutputConfigT = FlowDefinitionOutputConfig>
128 SetOutputConfig(std::forward<OutputConfigT>(value));
129 return *this;
130 }
132
134
139 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
140 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
141 template <typename RoleArnT = Aws::String>
142 void SetRoleArn(RoleArnT&& value) {
143 m_roleArnHasBeenSet = true;
144 m_roleArn = std::forward<RoleArnT>(value);
145 }
146 template <typename RoleArnT = Aws::String>
148 SetRoleArn(std::forward<RoleArnT>(value));
149 return *this;
150 }
152
154
159 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
160 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
161 template <typename TagsT = Aws::Vector<Tag>>
162 void SetTags(TagsT&& value) {
163 m_tagsHasBeenSet = true;
164 m_tags = std::forward<TagsT>(value);
165 }
166 template <typename TagsT = Aws::Vector<Tag>>
168 SetTags(std::forward<TagsT>(value));
169 return *this;
170 }
171 template <typename TagsT = Tag>
173 m_tagsHasBeenSet = true;
174 m_tags.emplace_back(std::forward<TagsT>(value));
175 return *this;
176 }
178 private:
179 Aws::String m_flowDefinitionName;
180
181 HumanLoopRequestSource m_humanLoopRequestSource;
182
183 HumanLoopActivationConfig m_humanLoopActivationConfig;
184
185 HumanLoopConfig m_humanLoopConfig;
186
187 FlowDefinitionOutputConfig m_outputConfig;
188
189 Aws::String m_roleArn;
190
191 Aws::Vector<Tag> m_tags;
192 bool m_flowDefinitionNameHasBeenSet = false;
193 bool m_humanLoopRequestSourceHasBeenSet = false;
194 bool m_humanLoopActivationConfigHasBeenSet = false;
195 bool m_humanLoopConfigHasBeenSet = false;
196 bool m_outputConfigHasBeenSet = false;
197 bool m_roleArnHasBeenSet = false;
198 bool m_tagsHasBeenSet = false;
199};
200
201} // namespace Model
202} // namespace SageMaker
203} // namespace Aws
void SetHumanLoopActivationConfig(HumanLoopActivationConfigT &&value)
CreateFlowDefinitionRequest & AddTags(TagsT &&value)
CreateFlowDefinitionRequest & WithRoleArn(RoleArnT &&value)
CreateFlowDefinitionRequest & WithHumanLoopActivationConfig(HumanLoopActivationConfigT &&value)
AWS_SAGEMAKER_API CreateFlowDefinitionRequest()=default
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
CreateFlowDefinitionRequest & WithHumanLoopRequestSource(HumanLoopRequestSourceT &&value)
const HumanLoopActivationConfig & GetHumanLoopActivationConfig() const
void SetHumanLoopRequestSource(HumanLoopRequestSourceT &&value)
CreateFlowDefinitionRequest & WithOutputConfig(OutputConfigT &&value)
const FlowDefinitionOutputConfig & GetOutputConfig() const
CreateFlowDefinitionRequest & WithHumanLoopConfig(HumanLoopConfigT &&value)
const HumanLoopRequestSource & GetHumanLoopRequestSource() const
CreateFlowDefinitionRequest & WithTags(TagsT &&value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateFlowDefinitionRequest & WithFlowDefinitionName(FlowDefinitionNameT &&value)
virtual const char * GetServiceRequestName() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector