AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateAgentAliasRequest.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/core/utils/memory/stl/AWSMap.h>
12#include <aws/bedrock-agent/model/AgentAliasRoutingConfigurationListItem.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace BedrockAgent
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_BEDROCKAGENT_API CreateAgentAliasRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateAgentAlias"; }
35
36 AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override;
37
38
40
43 inline const Aws::String& GetAgentAliasName() const{ return m_agentAliasName; }
44 inline bool AgentAliasNameHasBeenSet() const { return m_agentAliasNameHasBeenSet; }
45 inline void SetAgentAliasName(const Aws::String& value) { m_agentAliasNameHasBeenSet = true; m_agentAliasName = value; }
46 inline void SetAgentAliasName(Aws::String&& value) { m_agentAliasNameHasBeenSet = true; m_agentAliasName = std::move(value); }
47 inline void SetAgentAliasName(const char* value) { m_agentAliasNameHasBeenSet = true; m_agentAliasName.assign(value); }
48 inline CreateAgentAliasRequest& WithAgentAliasName(const Aws::String& value) { SetAgentAliasName(value); return *this;}
49 inline CreateAgentAliasRequest& WithAgentAliasName(Aws::String&& value) { SetAgentAliasName(std::move(value)); return *this;}
50 inline CreateAgentAliasRequest& WithAgentAliasName(const char* value) { SetAgentAliasName(value); return *this;}
52
54
57 inline const Aws::String& GetAgentId() const{ return m_agentId; }
58 inline bool AgentIdHasBeenSet() const { return m_agentIdHasBeenSet; }
59 inline void SetAgentId(const Aws::String& value) { m_agentIdHasBeenSet = true; m_agentId = value; }
60 inline void SetAgentId(Aws::String&& value) { m_agentIdHasBeenSet = true; m_agentId = std::move(value); }
61 inline void SetAgentId(const char* value) { m_agentIdHasBeenSet = true; m_agentId.assign(value); }
62 inline CreateAgentAliasRequest& WithAgentId(const Aws::String& value) { SetAgentId(value); return *this;}
63 inline CreateAgentAliasRequest& WithAgentId(Aws::String&& value) { SetAgentId(std::move(value)); return *this;}
64 inline CreateAgentAliasRequest& WithAgentId(const char* value) { SetAgentId(value); return *this;}
66
68
75 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
76 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
77 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
78 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
79 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
80 inline CreateAgentAliasRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
81 inline CreateAgentAliasRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
82 inline CreateAgentAliasRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
84
86
89 inline const Aws::String& GetDescription() const{ return m_description; }
90 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
91 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
92 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
93 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
94 inline CreateAgentAliasRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
95 inline CreateAgentAliasRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
96 inline CreateAgentAliasRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
98
100
103 inline const Aws::Vector<AgentAliasRoutingConfigurationListItem>& GetRoutingConfiguration() const{ return m_routingConfiguration; }
104 inline bool RoutingConfigurationHasBeenSet() const { return m_routingConfigurationHasBeenSet; }
105 inline void SetRoutingConfiguration(const Aws::Vector<AgentAliasRoutingConfigurationListItem>& value) { m_routingConfigurationHasBeenSet = true; m_routingConfiguration = value; }
106 inline void SetRoutingConfiguration(Aws::Vector<AgentAliasRoutingConfigurationListItem>&& value) { m_routingConfigurationHasBeenSet = true; m_routingConfiguration = std::move(value); }
109 inline CreateAgentAliasRequest& AddRoutingConfiguration(const AgentAliasRoutingConfigurationListItem& value) { m_routingConfigurationHasBeenSet = true; m_routingConfiguration.push_back(value); return *this; }
110 inline CreateAgentAliasRequest& AddRoutingConfiguration(AgentAliasRoutingConfigurationListItem&& value) { m_routingConfigurationHasBeenSet = true; m_routingConfiguration.push_back(std::move(value)); return *this; }
112
114
117 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
118 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
119 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
120 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
121 inline CreateAgentAliasRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
122 inline CreateAgentAliasRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
123 inline CreateAgentAliasRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
124 inline CreateAgentAliasRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
125 inline CreateAgentAliasRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
126 inline CreateAgentAliasRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
127 inline CreateAgentAliasRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
128 inline CreateAgentAliasRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
129 inline CreateAgentAliasRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
131 private:
132
133 Aws::String m_agentAliasName;
134 bool m_agentAliasNameHasBeenSet = false;
135
136 Aws::String m_agentId;
137 bool m_agentIdHasBeenSet = false;
138
139 Aws::String m_clientToken;
140 bool m_clientTokenHasBeenSet = false;
141
142 Aws::String m_description;
143 bool m_descriptionHasBeenSet = false;
144
146 bool m_routingConfigurationHasBeenSet = false;
147
149 bool m_tagsHasBeenSet = false;
150 };
151
152} // namespace Model
153} // namespace BedrockAgent
154} // namespace Aws
CreateAgentAliasRequest & WithAgentId(Aws::String &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateAgentAliasRequest & WithAgentAliasName(const Aws::String &value)
CreateAgentAliasRequest & AddTags(const char *key, const char *value)
CreateAgentAliasRequest & WithAgentAliasName(Aws::String &&value)
CreateAgentAliasRequest & AddTags(const Aws::String &key, Aws::String &&value)
AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override
CreateAgentAliasRequest & AddRoutingConfiguration(const AgentAliasRoutingConfigurationListItem &value)
CreateAgentAliasRequest & AddRoutingConfiguration(AgentAliasRoutingConfigurationListItem &&value)
CreateAgentAliasRequest & WithRoutingConfiguration(const Aws::Vector< AgentAliasRoutingConfigurationListItem > &value)
CreateAgentAliasRequest & WithDescription(Aws::String &&value)
CreateAgentAliasRequest & AddTags(const char *key, Aws::String &&value)
CreateAgentAliasRequest & WithAgentAliasName(const char *value)
CreateAgentAliasRequest & WithDescription(const char *value)
virtual const char * GetServiceRequestName() const override
CreateAgentAliasRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateAgentAliasRequest & WithAgentId(const Aws::String &value)
CreateAgentAliasRequest & WithClientToken(const char *value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateAgentAliasRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateAgentAliasRequest & AddTags(Aws::String &&key, const char *value)
void SetRoutingConfiguration(Aws::Vector< AgentAliasRoutingConfigurationListItem > &&value)
CreateAgentAliasRequest & WithAgentId(const char *value)
CreateAgentAliasRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateAgentAliasRequest & WithRoutingConfiguration(Aws::Vector< AgentAliasRoutingConfigurationListItem > &&value)
const Aws::Vector< AgentAliasRoutingConfigurationListItem > & GetRoutingConfiguration() const
CreateAgentAliasRequest & WithClientToken(Aws::String &&value)
CreateAgentAliasRequest & AddTags(const Aws::String &key, const Aws::String &value)
void SetRoutingConfiguration(const Aws::Vector< AgentAliasRoutingConfigurationListItem > &value)
CreateAgentAliasRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateAgentAliasRequest & WithClientToken(const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateAgentAliasRequest & WithDescription(const Aws::String &value)
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