AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateFlowRequest.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/bedrock-agent/BedrockAgentRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/bedrock-agent/model/FlowDefinition.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace BedrockAgent
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_BEDROCKAGENT_API CreateFlowRequest() = 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 "CreateFlow"; }
34
35 AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override;
36
37
39
46 inline const Aws::String& GetClientToken() const { return m_clientToken; }
47 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
48 template<typename ClientTokenT = Aws::String>
49 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
50 template<typename ClientTokenT = Aws::String>
51 CreateFlowRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
53
55
58 inline const Aws::String& GetCustomerEncryptionKeyArn() const { return m_customerEncryptionKeyArn; }
59 inline bool CustomerEncryptionKeyArnHasBeenSet() const { return m_customerEncryptionKeyArnHasBeenSet; }
60 template<typename CustomerEncryptionKeyArnT = Aws::String>
61 void SetCustomerEncryptionKeyArn(CustomerEncryptionKeyArnT&& value) { m_customerEncryptionKeyArnHasBeenSet = true; m_customerEncryptionKeyArn = std::forward<CustomerEncryptionKeyArnT>(value); }
62 template<typename CustomerEncryptionKeyArnT = Aws::String>
63 CreateFlowRequest& WithCustomerEncryptionKeyArn(CustomerEncryptionKeyArnT&& value) { SetCustomerEncryptionKeyArn(std::forward<CustomerEncryptionKeyArnT>(value)); return *this;}
65
67
70 inline const FlowDefinition& GetDefinition() const { return m_definition; }
71 inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
72 template<typename DefinitionT = FlowDefinition>
73 void SetDefinition(DefinitionT&& value) { m_definitionHasBeenSet = true; m_definition = std::forward<DefinitionT>(value); }
74 template<typename DefinitionT = FlowDefinition>
75 CreateFlowRequest& WithDefinition(DefinitionT&& value) { SetDefinition(std::forward<DefinitionT>(value)); return *this;}
77
79
82 inline const Aws::String& GetDescription() const { return m_description; }
83 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
84 template<typename DescriptionT = Aws::String>
85 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
86 template<typename DescriptionT = Aws::String>
87 CreateFlowRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
89
91
98 inline const Aws::String& GetExecutionRoleArn() const { return m_executionRoleArn; }
99 inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; }
100 template<typename ExecutionRoleArnT = Aws::String>
101 void SetExecutionRoleArn(ExecutionRoleArnT&& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = std::forward<ExecutionRoleArnT>(value); }
102 template<typename ExecutionRoleArnT = Aws::String>
103 CreateFlowRequest& WithExecutionRoleArn(ExecutionRoleArnT&& value) { SetExecutionRoleArn(std::forward<ExecutionRoleArnT>(value)); return *this;}
105
107
110 inline const Aws::String& GetName() const { return m_name; }
111 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
112 template<typename NameT = Aws::String>
113 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
114 template<typename NameT = Aws::String>
115 CreateFlowRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
117
119
124 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
125 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
126 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
127 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
128 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
129 CreateFlowRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
130 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
131 CreateFlowRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
132 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
133 }
135 private:
136
138 bool m_clientTokenHasBeenSet = true;
139
140 Aws::String m_customerEncryptionKeyArn;
141 bool m_customerEncryptionKeyArnHasBeenSet = false;
142
143 FlowDefinition m_definition;
144 bool m_definitionHasBeenSet = false;
145
146 Aws::String m_description;
147 bool m_descriptionHasBeenSet = false;
148
149 Aws::String m_executionRoleArn;
150 bool m_executionRoleArnHasBeenSet = false;
151
152 Aws::String m_name;
153 bool m_nameHasBeenSet = false;
154
156 bool m_tagsHasBeenSet = false;
157 };
158
159} // namespace Model
160} // namespace BedrockAgent
161} // 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