AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
UpdateAgentAliasRequest.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/bedrock-agent/model/AliasInvocationState.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace BedrockAgent {
18namespace Model {
19
23 public:
24 AWS_BEDROCKAGENT_API UpdateAgentAliasRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "UpdateAgentAlias"; }
31
32 AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::String& GetAgentId() const { return m_agentId; }
39 inline bool AgentIdHasBeenSet() const { return m_agentIdHasBeenSet; }
40 template <typename AgentIdT = Aws::String>
41 void SetAgentId(AgentIdT&& value) {
42 m_agentIdHasBeenSet = true;
43 m_agentId = std::forward<AgentIdT>(value);
44 }
45 template <typename AgentIdT = Aws::String>
47 SetAgentId(std::forward<AgentIdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetAgentAliasId() const { return m_agentAliasId; }
57 inline bool AgentAliasIdHasBeenSet() const { return m_agentAliasIdHasBeenSet; }
58 template <typename AgentAliasIdT = Aws::String>
59 void SetAgentAliasId(AgentAliasIdT&& value) {
60 m_agentAliasIdHasBeenSet = true;
61 m_agentAliasId = std::forward<AgentAliasIdT>(value);
62 }
63 template <typename AgentAliasIdT = Aws::String>
64 UpdateAgentAliasRequest& WithAgentAliasId(AgentAliasIdT&& value) {
65 SetAgentAliasId(std::forward<AgentAliasIdT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetAgentAliasName() const { return m_agentAliasName; }
75 inline bool AgentAliasNameHasBeenSet() const { return m_agentAliasNameHasBeenSet; }
76 template <typename AgentAliasNameT = Aws::String>
77 void SetAgentAliasName(AgentAliasNameT&& value) {
78 m_agentAliasNameHasBeenSet = true;
79 m_agentAliasName = std::forward<AgentAliasNameT>(value);
80 }
81 template <typename AgentAliasNameT = Aws::String>
82 UpdateAgentAliasRequest& WithAgentAliasName(AgentAliasNameT&& value) {
83 SetAgentAliasName(std::forward<AgentAliasNameT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetDescription() const { return m_description; }
93 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
94 template <typename DescriptionT = Aws::String>
95 void SetDescription(DescriptionT&& value) {
96 m_descriptionHasBeenSet = true;
97 m_description = std::forward<DescriptionT>(value);
98 }
99 template <typename DescriptionT = Aws::String>
101 SetDescription(std::forward<DescriptionT>(value));
102 return *this;
103 }
105
107
110 inline const Aws::Vector<AgentAliasRoutingConfigurationListItem>& GetRoutingConfiguration() const { return m_routingConfiguration; }
111 inline bool RoutingConfigurationHasBeenSet() const { return m_routingConfigurationHasBeenSet; }
112 template <typename RoutingConfigurationT = Aws::Vector<AgentAliasRoutingConfigurationListItem>>
113 void SetRoutingConfiguration(RoutingConfigurationT&& value) {
114 m_routingConfigurationHasBeenSet = true;
115 m_routingConfiguration = std::forward<RoutingConfigurationT>(value);
116 }
117 template <typename RoutingConfigurationT = Aws::Vector<AgentAliasRoutingConfigurationListItem>>
118 UpdateAgentAliasRequest& WithRoutingConfiguration(RoutingConfigurationT&& value) {
119 SetRoutingConfiguration(std::forward<RoutingConfigurationT>(value));
120 return *this;
121 }
122 template <typename RoutingConfigurationT = AgentAliasRoutingConfigurationListItem>
123 UpdateAgentAliasRequest& AddRoutingConfiguration(RoutingConfigurationT&& value) {
124 m_routingConfigurationHasBeenSet = true;
125 m_routingConfiguration.emplace_back(std::forward<RoutingConfigurationT>(value));
126 return *this;
127 }
129
131
138 inline AliasInvocationState GetAliasInvocationState() const { return m_aliasInvocationState; }
139 inline bool AliasInvocationStateHasBeenSet() const { return m_aliasInvocationStateHasBeenSet; }
141 m_aliasInvocationStateHasBeenSet = true;
142 m_aliasInvocationState = value;
143 }
146 return *this;
147 }
149 private:
150 Aws::String m_agentId;
151
152 Aws::String m_agentAliasId;
153
154 Aws::String m_agentAliasName;
155
156 Aws::String m_description;
157
159
161 bool m_agentIdHasBeenSet = false;
162 bool m_agentAliasIdHasBeenSet = false;
163 bool m_agentAliasNameHasBeenSet = false;
164 bool m_descriptionHasBeenSet = false;
165 bool m_routingConfigurationHasBeenSet = false;
166 bool m_aliasInvocationStateHasBeenSet = false;
167};
168
169} // namespace Model
170} // namespace BedrockAgent
171} // namespace Aws
UpdateAgentAliasRequest & WithAliasInvocationState(AliasInvocationState value)
UpdateAgentAliasRequest & WithDescription(DescriptionT &&value)
UpdateAgentAliasRequest & WithAgentAliasId(AgentAliasIdT &&value)
AWS_BEDROCKAGENT_API UpdateAgentAliasRequest()=default
virtual const char * GetServiceRequestName() const override
UpdateAgentAliasRequest & WithAgentId(AgentIdT &&value)
AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override
UpdateAgentAliasRequest & WithRoutingConfiguration(RoutingConfigurationT &&value)
UpdateAgentAliasRequest & WithAgentAliasName(AgentAliasNameT &&value)
UpdateAgentAliasRequest & AddRoutingConfiguration(RoutingConfigurationT &&value)
void SetRoutingConfiguration(RoutingConfigurationT &&value)
const Aws::Vector< AgentAliasRoutingConfigurationListItem > & GetRoutingConfiguration() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector