AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateFlowAliasRequest.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/FlowAliasConcurrencyConfiguration.h>
10#include <aws/bedrock-agent/model/FlowAliasRoutingConfigurationListItem.h>
11#include <aws/core/utils/UUID.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15
16#include <utility>
17
18namespace Aws {
19namespace BedrockAgent {
20namespace Model {
21
25 public:
26 AWS_BEDROCKAGENT_API CreateFlowAliasRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateFlowAlias"; }
33
34 AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override;
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetDescription() const { return m_description; }
59 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
60 template <typename DescriptionT = Aws::String>
61 void SetDescription(DescriptionT&& value) {
62 m_descriptionHasBeenSet = true;
63 m_description = std::forward<DescriptionT>(value);
64 }
65 template <typename DescriptionT = Aws::String>
66 CreateFlowAliasRequest& WithDescription(DescriptionT&& value) {
67 SetDescription(std::forward<DescriptionT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::Vector<FlowAliasRoutingConfigurationListItem>& GetRoutingConfiguration() const { return m_routingConfiguration; }
77 inline bool RoutingConfigurationHasBeenSet() const { return m_routingConfigurationHasBeenSet; }
78 template <typename RoutingConfigurationT = Aws::Vector<FlowAliasRoutingConfigurationListItem>>
79 void SetRoutingConfiguration(RoutingConfigurationT&& value) {
80 m_routingConfigurationHasBeenSet = true;
81 m_routingConfiguration = std::forward<RoutingConfigurationT>(value);
82 }
83 template <typename RoutingConfigurationT = Aws::Vector<FlowAliasRoutingConfigurationListItem>>
84 CreateFlowAliasRequest& WithRoutingConfiguration(RoutingConfigurationT&& value) {
85 SetRoutingConfiguration(std::forward<RoutingConfigurationT>(value));
86 return *this;
87 }
88 template <typename RoutingConfigurationT = FlowAliasRoutingConfigurationListItem>
89 CreateFlowAliasRequest& AddRoutingConfiguration(RoutingConfigurationT&& value) {
90 m_routingConfigurationHasBeenSet = true;
91 m_routingConfiguration.emplace_back(std::forward<RoutingConfigurationT>(value));
92 return *this;
93 }
95
97
101 inline const FlowAliasConcurrencyConfiguration& GetConcurrencyConfiguration() const { return m_concurrencyConfiguration; }
102 inline bool ConcurrencyConfigurationHasBeenSet() const { return m_concurrencyConfigurationHasBeenSet; }
103 template <typename ConcurrencyConfigurationT = FlowAliasConcurrencyConfiguration>
104 void SetConcurrencyConfiguration(ConcurrencyConfigurationT&& value) {
105 m_concurrencyConfigurationHasBeenSet = true;
106 m_concurrencyConfiguration = std::forward<ConcurrencyConfigurationT>(value);
107 }
108 template <typename ConcurrencyConfigurationT = FlowAliasConcurrencyConfiguration>
109 CreateFlowAliasRequest& WithConcurrencyConfiguration(ConcurrencyConfigurationT&& value) {
110 SetConcurrencyConfiguration(std::forward<ConcurrencyConfigurationT>(value));
111 return *this;
112 }
114
116
119 inline const Aws::String& GetFlowIdentifier() const { return m_flowIdentifier; }
120 inline bool FlowIdentifierHasBeenSet() const { return m_flowIdentifierHasBeenSet; }
121 template <typename FlowIdentifierT = Aws::String>
122 void SetFlowIdentifier(FlowIdentifierT&& value) {
123 m_flowIdentifierHasBeenSet = true;
124 m_flowIdentifier = std::forward<FlowIdentifierT>(value);
125 }
126 template <typename FlowIdentifierT = Aws::String>
127 CreateFlowAliasRequest& WithFlowIdentifier(FlowIdentifierT&& value) {
128 SetFlowIdentifier(std::forward<FlowIdentifierT>(value));
129 return *this;
130 }
132
134
141 inline const Aws::String& GetClientToken() const { return m_clientToken; }
142 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
143 template <typename ClientTokenT = Aws::String>
144 void SetClientToken(ClientTokenT&& value) {
145 m_clientTokenHasBeenSet = true;
146 m_clientToken = std::forward<ClientTokenT>(value);
147 }
148 template <typename ClientTokenT = Aws::String>
150 SetClientToken(std::forward<ClientTokenT>(value));
151 return *this;
152 }
154
156
162 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
163 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
164 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
165 void SetTags(TagsT&& value) {
166 m_tagsHasBeenSet = true;
167 m_tags = std::forward<TagsT>(value);
168 }
169 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
171 SetTags(std::forward<TagsT>(value));
172 return *this;
173 }
174 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
175 CreateFlowAliasRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
176 m_tagsHasBeenSet = true;
177 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
178 return *this;
179 }
181 private:
182 Aws::String m_name;
183
184 Aws::String m_description;
185
187
188 FlowAliasConcurrencyConfiguration m_concurrencyConfiguration;
189
190 Aws::String m_flowIdentifier;
191
193
195 bool m_nameHasBeenSet = false;
196 bool m_descriptionHasBeenSet = false;
197 bool m_routingConfigurationHasBeenSet = false;
198 bool m_concurrencyConfigurationHasBeenSet = false;
199 bool m_flowIdentifierHasBeenSet = false;
200 bool m_clientTokenHasBeenSet = true;
201 bool m_tagsHasBeenSet = false;
202};
203
204} // namespace Model
205} // namespace BedrockAgent
206} // namespace Aws
void SetRoutingConfiguration(RoutingConfigurationT &&value)
CreateFlowAliasRequest & WithName(NameT &&value)
CreateFlowAliasRequest & AddRoutingConfiguration(RoutingConfigurationT &&value)
CreateFlowAliasRequest & WithTags(TagsT &&value)
AWS_BEDROCKAGENT_API CreateFlowAliasRequest()=default
CreateFlowAliasRequest & WithConcurrencyConfiguration(ConcurrencyConfigurationT &&value)
CreateFlowAliasRequest & WithClientToken(ClientTokenT &&value)
CreateFlowAliasRequest & WithDescription(DescriptionT &&value)
const Aws::Vector< FlowAliasRoutingConfigurationListItem > & GetRoutingConfiguration() const
CreateFlowAliasRequest & WithRoutingConfiguration(RoutingConfigurationT &&value)
CreateFlowAliasRequest & WithFlowIdentifier(FlowIdentifierT &&value)
CreateFlowAliasRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
void SetConcurrencyConfiguration(ConcurrencyConfigurationT &&value)
AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const FlowAliasConcurrencyConfiguration & GetConcurrencyConfiguration() const
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
std::vector< T, Aws::Allocator< T > > Vector