AWS SDK for C++

AWS SDK for C++ Version 1.11.633

Loading...
Searching...
No Matches
CreateFlowAliasRequest.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/bedrock-agent/model/FlowAliasConcurrencyConfiguration.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/bedrock-agent/model/FlowAliasRoutingConfigurationListItem.h>
14#include <utility>
15#include <aws/core/utils/UUID.h>
16
17namespace Aws
18{
19namespace BedrockAgent
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_BEDROCKAGENT_API CreateFlowAliasRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateFlowAlias"; }
36
37 AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override;
38
39
41
44 inline const Aws::String& GetName() const { return m_name; }
45 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 template<typename NameT = Aws::String>
47 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
48 template<typename NameT = Aws::String>
49 CreateFlowAliasRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
60 template<typename DescriptionT = Aws::String>
61 CreateFlowAliasRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
63
65
68 inline const Aws::Vector<FlowAliasRoutingConfigurationListItem>& GetRoutingConfiguration() const { return m_routingConfiguration; }
69 inline bool RoutingConfigurationHasBeenSet() const { return m_routingConfigurationHasBeenSet; }
70 template<typename RoutingConfigurationT = Aws::Vector<FlowAliasRoutingConfigurationListItem>>
71 void SetRoutingConfiguration(RoutingConfigurationT&& value) { m_routingConfigurationHasBeenSet = true; m_routingConfiguration = std::forward<RoutingConfigurationT>(value); }
72 template<typename RoutingConfigurationT = Aws::Vector<FlowAliasRoutingConfigurationListItem>>
73 CreateFlowAliasRequest& WithRoutingConfiguration(RoutingConfigurationT&& value) { SetRoutingConfiguration(std::forward<RoutingConfigurationT>(value)); return *this;}
74 template<typename RoutingConfigurationT = FlowAliasRoutingConfigurationListItem>
75 CreateFlowAliasRequest& AddRoutingConfiguration(RoutingConfigurationT&& value) { m_routingConfigurationHasBeenSet = true; m_routingConfiguration.emplace_back(std::forward<RoutingConfigurationT>(value)); return *this; }
77
79
83 inline const FlowAliasConcurrencyConfiguration& GetConcurrencyConfiguration() const { return m_concurrencyConfiguration; }
84 inline bool ConcurrencyConfigurationHasBeenSet() const { return m_concurrencyConfigurationHasBeenSet; }
85 template<typename ConcurrencyConfigurationT = FlowAliasConcurrencyConfiguration>
86 void SetConcurrencyConfiguration(ConcurrencyConfigurationT&& value) { m_concurrencyConfigurationHasBeenSet = true; m_concurrencyConfiguration = std::forward<ConcurrencyConfigurationT>(value); }
87 template<typename ConcurrencyConfigurationT = FlowAliasConcurrencyConfiguration>
88 CreateFlowAliasRequest& WithConcurrencyConfiguration(ConcurrencyConfigurationT&& value) { SetConcurrencyConfiguration(std::forward<ConcurrencyConfigurationT>(value)); return *this;}
90
92
95 inline const Aws::String& GetFlowIdentifier() const { return m_flowIdentifier; }
96 inline bool FlowIdentifierHasBeenSet() const { return m_flowIdentifierHasBeenSet; }
97 template<typename FlowIdentifierT = Aws::String>
98 void SetFlowIdentifier(FlowIdentifierT&& value) { m_flowIdentifierHasBeenSet = true; m_flowIdentifier = std::forward<FlowIdentifierT>(value); }
99 template<typename FlowIdentifierT = Aws::String>
100 CreateFlowAliasRequest& WithFlowIdentifier(FlowIdentifierT&& value) { SetFlowIdentifier(std::forward<FlowIdentifierT>(value)); return *this;}
102
104
111 inline const Aws::String& GetClientToken() const { return m_clientToken; }
112 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
113 template<typename ClientTokenT = Aws::String>
114 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
115 template<typename ClientTokenT = Aws::String>
116 CreateFlowAliasRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
118
120
126 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
127 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
128 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
129 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
130 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
131 CreateFlowAliasRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
132 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
133 CreateFlowAliasRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
134 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
135 }
137 private:
138
139 Aws::String m_name;
140 bool m_nameHasBeenSet = false;
141
142 Aws::String m_description;
143 bool m_descriptionHasBeenSet = false;
144
146 bool m_routingConfigurationHasBeenSet = false;
147
148 FlowAliasConcurrencyConfiguration m_concurrencyConfiguration;
149 bool m_concurrencyConfigurationHasBeenSet = false;
150
151 Aws::String m_flowIdentifier;
152 bool m_flowIdentifierHasBeenSet = false;
153
155 bool m_clientTokenHasBeenSet = true;
156
158 bool m_tagsHasBeenSet = false;
159 };
160
161} // namespace Model
162} // namespace BedrockAgent
163} // 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