AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateFlowRequest.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgentRequest.h>
8#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
9#include <aws/bedrock-agent/model/FlowDefinition.h>
10#include <aws/core/utils/UUID.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace BedrockAgent {
18namespace Model {
19
23 public:
24 AWS_BEDROCKAGENT_API CreateFlowRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateFlow"; }
31
32 AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::String& GetName() const { return m_name; }
39 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
40 template <typename NameT = Aws::String>
41 void SetName(NameT&& value) {
42 m_nameHasBeenSet = true;
43 m_name = std::forward<NameT>(value);
44 }
45 template <typename NameT = Aws::String>
46 CreateFlowRequest& WithName(NameT&& value) {
47 SetName(std::forward<NameT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetDescription() const { return m_description; }
57 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
58 template <typename DescriptionT = Aws::String>
59 void SetDescription(DescriptionT&& value) {
60 m_descriptionHasBeenSet = true;
61 m_description = std::forward<DescriptionT>(value);
62 }
63 template <typename DescriptionT = Aws::String>
64 CreateFlowRequest& WithDescription(DescriptionT&& value) {
65 SetDescription(std::forward<DescriptionT>(value));
66 return *this;
67 }
69
71
78 inline const Aws::String& GetExecutionRoleArn() const { return m_executionRoleArn; }
79 inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; }
80 template <typename ExecutionRoleArnT = Aws::String>
81 void SetExecutionRoleArn(ExecutionRoleArnT&& value) {
82 m_executionRoleArnHasBeenSet = true;
83 m_executionRoleArn = std::forward<ExecutionRoleArnT>(value);
84 }
85 template <typename ExecutionRoleArnT = Aws::String>
86 CreateFlowRequest& WithExecutionRoleArn(ExecutionRoleArnT&& value) {
87 SetExecutionRoleArn(std::forward<ExecutionRoleArnT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetCustomerEncryptionKeyArn() const { return m_customerEncryptionKeyArn; }
97 inline bool CustomerEncryptionKeyArnHasBeenSet() const { return m_customerEncryptionKeyArnHasBeenSet; }
98 template <typename CustomerEncryptionKeyArnT = Aws::String>
99 void SetCustomerEncryptionKeyArn(CustomerEncryptionKeyArnT&& value) {
100 m_customerEncryptionKeyArnHasBeenSet = true;
101 m_customerEncryptionKeyArn = std::forward<CustomerEncryptionKeyArnT>(value);
102 }
103 template <typename CustomerEncryptionKeyArnT = Aws::String>
104 CreateFlowRequest& WithCustomerEncryptionKeyArn(CustomerEncryptionKeyArnT&& value) {
105 SetCustomerEncryptionKeyArn(std::forward<CustomerEncryptionKeyArnT>(value));
106 return *this;
107 }
109
111
114 inline const FlowDefinition& GetDefinition() const { return m_definition; }
115 inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
116 template <typename DefinitionT = FlowDefinition>
117 void SetDefinition(DefinitionT&& value) {
118 m_definitionHasBeenSet = true;
119 m_definition = std::forward<DefinitionT>(value);
120 }
121 template <typename DefinitionT = FlowDefinition>
122 CreateFlowRequest& WithDefinition(DefinitionT&& value) {
123 SetDefinition(std::forward<DefinitionT>(value));
124 return *this;
125 }
127
129
136 inline const Aws::String& GetClientToken() const { return m_clientToken; }
137 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
138 template <typename ClientTokenT = Aws::String>
139 void SetClientToken(ClientTokenT&& value) {
140 m_clientTokenHasBeenSet = true;
141 m_clientToken = std::forward<ClientTokenT>(value);
142 }
143 template <typename ClientTokenT = Aws::String>
144 CreateFlowRequest& WithClientToken(ClientTokenT&& value) {
145 SetClientToken(std::forward<ClientTokenT>(value));
146 return *this;
147 }
149
151
156 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
157 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
158 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
159 void SetTags(TagsT&& value) {
160 m_tagsHasBeenSet = true;
161 m_tags = std::forward<TagsT>(value);
162 }
163 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
164 CreateFlowRequest& WithTags(TagsT&& value) {
165 SetTags(std::forward<TagsT>(value));
166 return *this;
167 }
168 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
169 CreateFlowRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
170 m_tagsHasBeenSet = true;
171 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
172 return *this;
173 }
175 private:
176 Aws::String m_name;
177
178 Aws::String m_description;
179
180 Aws::String m_executionRoleArn;
181
182 Aws::String m_customerEncryptionKeyArn;
183
184 FlowDefinition m_definition;
185
187
189 bool m_nameHasBeenSet = false;
190 bool m_descriptionHasBeenSet = false;
191 bool m_executionRoleArnHasBeenSet = false;
192 bool m_customerEncryptionKeyArnHasBeenSet = false;
193 bool m_definitionHasBeenSet = false;
194 bool m_clientTokenHasBeenSet = true;
195 bool m_tagsHasBeenSet = false;
196};
197
198} // namespace Model
199} // namespace BedrockAgent
200} // namespace Aws
CreateFlowRequest & WithDefinition(DefinitionT &&value)
AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override
const Aws::String & GetExecutionRoleArn() const
CreateFlowRequest & WithCustomerEncryptionKeyArn(CustomerEncryptionKeyArnT &&value)
const FlowDefinition & GetDefinition() const
CreateFlowRequest & WithName(NameT &&value)
void SetExecutionRoleArn(ExecutionRoleArnT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateFlowRequest & WithExecutionRoleArn(ExecutionRoleArnT &&value)
CreateFlowRequest & WithTags(TagsT &&value)
void SetCustomerEncryptionKeyArn(CustomerEncryptionKeyArnT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::String & GetCustomerEncryptionKeyArn() const
CreateFlowRequest & WithDescription(DescriptionT &&value)
CreateFlowRequest & WithClientToken(ClientTokenT &&value)
CreateFlowRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_BEDROCKAGENT_API CreateFlowRequest()=default
static Aws::Utils::UUID PseudoRandomUUID()
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String