AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateAgentAliasRequest.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/AgentAliasRoutingConfigurationListItem.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#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18namespace BedrockAgent {
19namespace Model {
20
24 public:
25 AWS_BEDROCKAGENT_API CreateAgentAliasRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateAgentAlias"; }
32
33 AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override;
34
36
39 inline const Aws::String& GetAgentId() const { return m_agentId; }
40 inline bool AgentIdHasBeenSet() const { return m_agentIdHasBeenSet; }
41 template <typename AgentIdT = Aws::String>
42 void SetAgentId(AgentIdT&& value) {
43 m_agentIdHasBeenSet = true;
44 m_agentId = std::forward<AgentIdT>(value);
45 }
46 template <typename AgentIdT = Aws::String>
48 SetAgentId(std::forward<AgentIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetAgentAliasName() const { return m_agentAliasName; }
58 inline bool AgentAliasNameHasBeenSet() const { return m_agentAliasNameHasBeenSet; }
59 template <typename AgentAliasNameT = Aws::String>
60 void SetAgentAliasName(AgentAliasNameT&& value) {
61 m_agentAliasNameHasBeenSet = true;
62 m_agentAliasName = std::forward<AgentAliasNameT>(value);
63 }
64 template <typename AgentAliasNameT = Aws::String>
65 CreateAgentAliasRequest& WithAgentAliasName(AgentAliasNameT&& value) {
66 SetAgentAliasName(std::forward<AgentAliasNameT>(value));
67 return *this;
68 }
70
72
79 inline const Aws::String& GetClientToken() const { return m_clientToken; }
80 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
81 template <typename ClientTokenT = Aws::String>
82 void SetClientToken(ClientTokenT&& value) {
83 m_clientTokenHasBeenSet = true;
84 m_clientToken = std::forward<ClientTokenT>(value);
85 }
86 template <typename ClientTokenT = Aws::String>
88 SetClientToken(std::forward<ClientTokenT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetDescription() const { return m_description; }
98 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
99 template <typename DescriptionT = Aws::String>
100 void SetDescription(DescriptionT&& value) {
101 m_descriptionHasBeenSet = true;
102 m_description = std::forward<DescriptionT>(value);
103 }
104 template <typename DescriptionT = Aws::String>
106 SetDescription(std::forward<DescriptionT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::Vector<AgentAliasRoutingConfigurationListItem>& GetRoutingConfiguration() const { return m_routingConfiguration; }
116 inline bool RoutingConfigurationHasBeenSet() const { return m_routingConfigurationHasBeenSet; }
117 template <typename RoutingConfigurationT = Aws::Vector<AgentAliasRoutingConfigurationListItem>>
118 void SetRoutingConfiguration(RoutingConfigurationT&& value) {
119 m_routingConfigurationHasBeenSet = true;
120 m_routingConfiguration = std::forward<RoutingConfigurationT>(value);
121 }
122 template <typename RoutingConfigurationT = Aws::Vector<AgentAliasRoutingConfigurationListItem>>
123 CreateAgentAliasRequest& WithRoutingConfiguration(RoutingConfigurationT&& value) {
124 SetRoutingConfiguration(std::forward<RoutingConfigurationT>(value));
125 return *this;
126 }
127 template <typename RoutingConfigurationT = AgentAliasRoutingConfigurationListItem>
128 CreateAgentAliasRequest& AddRoutingConfiguration(RoutingConfigurationT&& value) {
129 m_routingConfigurationHasBeenSet = true;
130 m_routingConfiguration.emplace_back(std::forward<RoutingConfigurationT>(value));
131 return *this;
132 }
134
136
139 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
140 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
141 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
142 void SetTags(TagsT&& value) {
143 m_tagsHasBeenSet = true;
144 m_tags = std::forward<TagsT>(value);
145 }
146 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
148 SetTags(std::forward<TagsT>(value));
149 return *this;
150 }
151 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
152 CreateAgentAliasRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
153 m_tagsHasBeenSet = true;
154 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
155 return *this;
156 }
158 private:
159 Aws::String m_agentId;
160
161 Aws::String m_agentAliasName;
162
164
165 Aws::String m_description;
166
168
170 bool m_agentIdHasBeenSet = false;
171 bool m_agentAliasNameHasBeenSet = false;
172 bool m_clientTokenHasBeenSet = true;
173 bool m_descriptionHasBeenSet = false;
174 bool m_routingConfigurationHasBeenSet = false;
175 bool m_tagsHasBeenSet = false;
176};
177
178} // namespace Model
179} // namespace BedrockAgent
180} // namespace Aws
CreateAgentAliasRequest & WithClientToken(ClientTokenT &&value)
AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override
CreateAgentAliasRequest & WithRoutingConfiguration(RoutingConfigurationT &&value)
CreateAgentAliasRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateAgentAliasRequest & AddRoutingConfiguration(RoutingConfigurationT &&value)
CreateAgentAliasRequest & WithTags(TagsT &&value)
virtual const char * GetServiceRequestName() const override
CreateAgentAliasRequest & WithDescription(DescriptionT &&value)
const Aws::Vector< AgentAliasRoutingConfigurationListItem > & GetRoutingConfiguration() const
CreateAgentAliasRequest & WithAgentAliasName(AgentAliasNameT &&value)
void SetRoutingConfiguration(RoutingConfigurationT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_BEDROCKAGENT_API CreateAgentAliasRequest()=default
CreateAgentAliasRequest & WithAgentId(AgentIdT &&value)
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