AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
UpdateAgentAliasRequest.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/bedrock-agent/model/AliasInvocationState.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/bedrock-agent/model/AgentAliasRoutingConfigurationListItem.h>
13#include <utility>
14
15namespace Aws
16{
17namespace BedrockAgent
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_BEDROCKAGENT_API UpdateAgentAliasRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "UpdateAgentAlias"; }
34
35 AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override;
36
37
39
42 inline const Aws::String& GetAgentAliasId() const { return m_agentAliasId; }
43 inline bool AgentAliasIdHasBeenSet() const { return m_agentAliasIdHasBeenSet; }
44 template<typename AgentAliasIdT = Aws::String>
45 void SetAgentAliasId(AgentAliasIdT&& value) { m_agentAliasIdHasBeenSet = true; m_agentAliasId = std::forward<AgentAliasIdT>(value); }
46 template<typename AgentAliasIdT = Aws::String>
47 UpdateAgentAliasRequest& WithAgentAliasId(AgentAliasIdT&& value) { SetAgentAliasId(std::forward<AgentAliasIdT>(value)); return *this;}
49
51
54 inline const Aws::String& GetAgentAliasName() const { return m_agentAliasName; }
55 inline bool AgentAliasNameHasBeenSet() const { return m_agentAliasNameHasBeenSet; }
56 template<typename AgentAliasNameT = Aws::String>
57 void SetAgentAliasName(AgentAliasNameT&& value) { m_agentAliasNameHasBeenSet = true; m_agentAliasName = std::forward<AgentAliasNameT>(value); }
58 template<typename AgentAliasNameT = Aws::String>
59 UpdateAgentAliasRequest& WithAgentAliasName(AgentAliasNameT&& value) { SetAgentAliasName(std::forward<AgentAliasNameT>(value)); return *this;}
61
63
66 inline const Aws::String& GetAgentId() const { return m_agentId; }
67 inline bool AgentIdHasBeenSet() const { return m_agentIdHasBeenSet; }
68 template<typename AgentIdT = Aws::String>
69 void SetAgentId(AgentIdT&& value) { m_agentIdHasBeenSet = true; m_agentId = std::forward<AgentIdT>(value); }
70 template<typename AgentIdT = Aws::String>
71 UpdateAgentAliasRequest& WithAgentId(AgentIdT&& value) { SetAgentId(std::forward<AgentIdT>(value)); return *this;}
73
75
82 inline AliasInvocationState GetAliasInvocationState() const { return m_aliasInvocationState; }
83 inline bool AliasInvocationStateHasBeenSet() const { return m_aliasInvocationStateHasBeenSet; }
84 inline void SetAliasInvocationState(AliasInvocationState value) { m_aliasInvocationStateHasBeenSet = true; m_aliasInvocationState = value; }
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) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
96 template<typename DescriptionT = Aws::String>
97 UpdateAgentAliasRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
99
101
104 inline const Aws::Vector<AgentAliasRoutingConfigurationListItem>& GetRoutingConfiguration() const { return m_routingConfiguration; }
105 inline bool RoutingConfigurationHasBeenSet() const { return m_routingConfigurationHasBeenSet; }
106 template<typename RoutingConfigurationT = Aws::Vector<AgentAliasRoutingConfigurationListItem>>
107 void SetRoutingConfiguration(RoutingConfigurationT&& value) { m_routingConfigurationHasBeenSet = true; m_routingConfiguration = std::forward<RoutingConfigurationT>(value); }
108 template<typename RoutingConfigurationT = Aws::Vector<AgentAliasRoutingConfigurationListItem>>
109 UpdateAgentAliasRequest& WithRoutingConfiguration(RoutingConfigurationT&& value) { SetRoutingConfiguration(std::forward<RoutingConfigurationT>(value)); return *this;}
110 template<typename RoutingConfigurationT = AgentAliasRoutingConfigurationListItem>
111 UpdateAgentAliasRequest& AddRoutingConfiguration(RoutingConfigurationT&& value) { m_routingConfigurationHasBeenSet = true; m_routingConfiguration.emplace_back(std::forward<RoutingConfigurationT>(value)); return *this; }
113 private:
114
115 Aws::String m_agentAliasId;
116 bool m_agentAliasIdHasBeenSet = false;
117
118 Aws::String m_agentAliasName;
119 bool m_agentAliasNameHasBeenSet = false;
120
121 Aws::String m_agentId;
122 bool m_agentIdHasBeenSet = false;
123
125 bool m_aliasInvocationStateHasBeenSet = false;
126
127 Aws::String m_description;
128 bool m_descriptionHasBeenSet = false;
129
131 bool m_routingConfigurationHasBeenSet = false;
132 };
133
134} // namespace Model
135} // namespace BedrockAgent
136} // 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