AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
AssociateAgentKnowledgeBaseRequest.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/KnowledgeBaseState.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace BedrockAgent {
16namespace Model {
17
21 public:
22 AWS_BEDROCKAGENT_API AssociateAgentKnowledgeBaseRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "AssociateAgentKnowledgeBase"; }
29
30 AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override;
31
33
37 inline const Aws::String& GetAgentId() const { return m_agentId; }
38 inline bool AgentIdHasBeenSet() const { return m_agentIdHasBeenSet; }
39 template <typename AgentIdT = Aws::String>
40 void SetAgentId(AgentIdT&& value) {
41 m_agentIdHasBeenSet = true;
42 m_agentId = std::forward<AgentIdT>(value);
43 }
44 template <typename AgentIdT = Aws::String>
46 SetAgentId(std::forward<AgentIdT>(value));
47 return *this;
48 }
50
52
56 inline const Aws::String& GetAgentVersion() const { return m_agentVersion; }
57 inline bool AgentVersionHasBeenSet() const { return m_agentVersionHasBeenSet; }
58 template <typename AgentVersionT = Aws::String>
60 m_agentVersionHasBeenSet = true;
61 m_agentVersion = std::forward<AgentVersionT>(value);
62 }
63 template <typename AgentVersionT = Aws::String>
65 SetAgentVersion(std::forward<AgentVersionT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
75 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
76 template <typename KnowledgeBaseIdT = Aws::String>
78 m_knowledgeBaseIdHasBeenSet = true;
79 m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value);
80 }
81 template <typename KnowledgeBaseIdT = Aws::String>
83 SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(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>
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
112 inline KnowledgeBaseState GetKnowledgeBaseState() const { return m_knowledgeBaseState; }
113 inline bool KnowledgeBaseStateHasBeenSet() const { return m_knowledgeBaseStateHasBeenSet; }
115 m_knowledgeBaseStateHasBeenSet = true;
116 m_knowledgeBaseState = value;
117 }
120 return *this;
121 }
123 private:
124 Aws::String m_agentId;
125
126 Aws::String m_agentVersion;
127
128 Aws::String m_knowledgeBaseId;
129
130 Aws::String m_description;
131
133 bool m_agentIdHasBeenSet = false;
134 bool m_agentVersionHasBeenSet = false;
135 bool m_knowledgeBaseIdHasBeenSet = false;
136 bool m_descriptionHasBeenSet = false;
137 bool m_knowledgeBaseStateHasBeenSet = false;
138};
139
140} // namespace Model
141} // namespace BedrockAgent
142} // namespace Aws
AssociateAgentKnowledgeBaseRequest & WithAgentId(AgentIdT &&value)
AssociateAgentKnowledgeBaseRequest & WithAgentVersion(AgentVersionT &&value)
AWS_BEDROCKAGENT_API AssociateAgentKnowledgeBaseRequest()=default
AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override
AssociateAgentKnowledgeBaseRequest & WithKnowledgeBaseId(KnowledgeBaseIdT &&value)
AssociateAgentKnowledgeBaseRequest & WithKnowledgeBaseState(KnowledgeBaseState value)
AssociateAgentKnowledgeBaseRequest & WithDescription(DescriptionT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String