AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAgentId(const Aws::String& value) { m_agentIdHasBeenSet = true; m_agentId = value; }
44 inline void SetAgentId(Aws::String&& value) { m_agentIdHasBeenSet = true; m_agentId = std::move(value); }
45 inline void SetAgentId(const char* value) { m_agentIdHasBeenSet = true; m_agentId.assign(value); }
46 inline UpdateAgentKnowledgeBaseRequest& WithAgentId(const Aws::String& value) { SetAgentId(value); return *this;}
47 inline UpdateAgentKnowledgeBaseRequest& WithAgentId(Aws::String&& value) { SetAgentId(std::move(value)); return *this;}
48 inline UpdateAgentKnowledgeBaseRequest& WithAgentId(const char* value) { SetAgentId(value); return *this;}
50
52
56 inline const Aws::String& GetAgentVersion() const{ return m_agentVersion; }
57 inline bool AgentVersionHasBeenSet() const { return m_agentVersionHasBeenSet; }
58 inline void SetAgentVersion(const Aws::String& value) { m_agentVersionHasBeenSet = true; m_agentVersion = value; }
59 inline void SetAgentVersion(Aws::String&& value) { m_agentVersionHasBeenSet = true; m_agentVersion = std::move(value); }
60 inline void SetAgentVersion(const char* value) { m_agentVersionHasBeenSet = true; m_agentVersion.assign(value); }
61 inline UpdateAgentKnowledgeBaseRequest& WithAgentVersion(const Aws::String& value) { SetAgentVersion(value); return *this;}
62 inline UpdateAgentKnowledgeBaseRequest& WithAgentVersion(Aws::String&& value) { SetAgentVersion(std::move(value)); return *this;}
63 inline UpdateAgentKnowledgeBaseRequest& WithAgentVersion(const char* value) { SetAgentVersion(value); return *this;}
65
67
71 inline const Aws::String& GetDescription() const{ return m_description; }
72 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
73 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
74 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
75 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
76 inline UpdateAgentKnowledgeBaseRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
77 inline UpdateAgentKnowledgeBaseRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
78 inline UpdateAgentKnowledgeBaseRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
80
82
86 inline const Aws::String& GetKnowledgeBaseId() const{ return m_knowledgeBaseId; }
87 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
88 inline void SetKnowledgeBaseId(const Aws::String& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = value; }
89 inline void SetKnowledgeBaseId(Aws::String&& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = std::move(value); }
90 inline void SetKnowledgeBaseId(const char* value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId.assign(value); }
92 inline UpdateAgentKnowledgeBaseRequest& WithKnowledgeBaseId(Aws::String&& value) { SetKnowledgeBaseId(std::move(value)); return *this;}
93 inline UpdateAgentKnowledgeBaseRequest& WithKnowledgeBaseId(const char* value) { SetKnowledgeBaseId(value); return *this;}
95
97
102 inline const KnowledgeBaseState& GetKnowledgeBaseState() const{ return m_knowledgeBaseState; }
103 inline bool KnowledgeBaseStateHasBeenSet() const { return m_knowledgeBaseStateHasBeenSet; }
104 inline void SetKnowledgeBaseState(const KnowledgeBaseState& value) { m_knowledgeBaseStateHasBeenSet = true; m_knowledgeBaseState = value; }
105 inline void SetKnowledgeBaseState(KnowledgeBaseState&& value) { m_knowledgeBaseStateHasBeenSet = true; m_knowledgeBaseState = std::move(value); }
109 private:
110
111 Aws::String m_agentId;
112 bool m_agentIdHasBeenSet = false;
113
114 Aws::String m_agentVersion;
115 bool m_agentVersionHasBeenSet = false;
116
117 Aws::String m_description;
118 bool m_descriptionHasBeenSet = false;
119
120 Aws::String m_knowledgeBaseId;
121 bool m_knowledgeBaseIdHasBeenSet = false;
122
123 KnowledgeBaseState m_knowledgeBaseState;
124 bool m_knowledgeBaseStateHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace BedrockAgent
129} // namespace Aws
UpdateAgentKnowledgeBaseRequest & WithAgentId(const Aws::String &value)
UpdateAgentKnowledgeBaseRequest & WithAgentVersion(const char *value)
UpdateAgentKnowledgeBaseRequest & WithDescription(Aws::String &&value)
UpdateAgentKnowledgeBaseRequest & WithKnowledgeBaseId(const Aws::String &value)
UpdateAgentKnowledgeBaseRequest & WithKnowledgeBaseState(KnowledgeBaseState &&value)
UpdateAgentKnowledgeBaseRequest & WithDescription(const Aws::String &value)
AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override
UpdateAgentKnowledgeBaseRequest & WithKnowledgeBaseId(Aws::String &&value)
UpdateAgentKnowledgeBaseRequest & WithKnowledgeBaseState(const KnowledgeBaseState &value)
UpdateAgentKnowledgeBaseRequest & WithAgentVersion(const Aws::String &value)
UpdateAgentKnowledgeBaseRequest & WithAgentId(const char *value)
UpdateAgentKnowledgeBaseRequest & WithKnowledgeBaseId(const char *value)
UpdateAgentKnowledgeBaseRequest & WithAgentVersion(Aws::String &&value)
UpdateAgentKnowledgeBaseRequest & WithDescription(const char *value)
UpdateAgentKnowledgeBaseRequest & WithAgentId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String