AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
UpdateAgentKnowledgeBaseRequest.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/KnowledgeBaseState.h>
11#include <utility>
12
13namespace Aws
14{
15namespace BedrockAgent
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_BEDROCKAGENT_API UpdateAgentKnowledgeBaseRequest() = 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 "UpdateAgentKnowledgeBase"; }
32
33 AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override;
34
35
37
41 inline const Aws::String& GetAgentId() const { return m_agentId; }
42 inline bool AgentIdHasBeenSet() const { return m_agentIdHasBeenSet; }
43 template<typename AgentIdT = Aws::String>
44 void SetAgentId(AgentIdT&& value) { m_agentIdHasBeenSet = true; m_agentId = std::forward<AgentIdT>(value); }
45 template<typename AgentIdT = Aws::String>
46 UpdateAgentKnowledgeBaseRequest& WithAgentId(AgentIdT&& value) { SetAgentId(std::forward<AgentIdT>(value)); return *this;}
48
50
54 inline const Aws::String& GetAgentVersion() const { return m_agentVersion; }
55 inline bool AgentVersionHasBeenSet() const { return m_agentVersionHasBeenSet; }
56 template<typename AgentVersionT = Aws::String>
57 void SetAgentVersion(AgentVersionT&& value) { m_agentVersionHasBeenSet = true; m_agentVersion = std::forward<AgentVersionT>(value); }
58 template<typename AgentVersionT = Aws::String>
59 UpdateAgentKnowledgeBaseRequest& WithAgentVersion(AgentVersionT&& value) { SetAgentVersion(std::forward<AgentVersionT>(value)); return *this;}
61
63
67 inline const Aws::String& GetDescription() const { return m_description; }
68 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
69 template<typename DescriptionT = Aws::String>
70 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
71 template<typename DescriptionT = Aws::String>
72 UpdateAgentKnowledgeBaseRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
74
76
80 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
81 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
82 template<typename KnowledgeBaseIdT = Aws::String>
83 void SetKnowledgeBaseId(KnowledgeBaseIdT&& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value); }
84 template<typename KnowledgeBaseIdT = Aws::String>
85 UpdateAgentKnowledgeBaseRequest& WithKnowledgeBaseId(KnowledgeBaseIdT&& value) { SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value)); return *this;}
87
89
94 inline KnowledgeBaseState GetKnowledgeBaseState() const { return m_knowledgeBaseState; }
95 inline bool KnowledgeBaseStateHasBeenSet() const { return m_knowledgeBaseStateHasBeenSet; }
96 inline void SetKnowledgeBaseState(KnowledgeBaseState value) { m_knowledgeBaseStateHasBeenSet = true; m_knowledgeBaseState = value; }
99 private:
100
101 Aws::String m_agentId;
102 bool m_agentIdHasBeenSet = false;
103
104 Aws::String m_agentVersion;
105 bool m_agentVersionHasBeenSet = false;
106
107 Aws::String m_description;
108 bool m_descriptionHasBeenSet = false;
109
110 Aws::String m_knowledgeBaseId;
111 bool m_knowledgeBaseIdHasBeenSet = false;
112
114 bool m_knowledgeBaseStateHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace BedrockAgent
119} // namespace Aws
UpdateAgentKnowledgeBaseRequest & WithAgentVersion(AgentVersionT &&value)
UpdateAgentKnowledgeBaseRequest & WithKnowledgeBaseId(KnowledgeBaseIdT &&value)
UpdateAgentKnowledgeBaseRequest & WithKnowledgeBaseState(KnowledgeBaseState value)
AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override
UpdateAgentKnowledgeBaseRequest & WithDescription(DescriptionT &&value)
UpdateAgentKnowledgeBaseRequest & WithAgentId(AgentIdT &&value)
AWS_BEDROCKAGENT_API UpdateAgentKnowledgeBaseRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String