AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AgentKnowledgeBase.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/bedrock-agent/model/KnowledgeBaseState.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace BedrockAgent
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_BEDROCKAGENT_API AgentKnowledgeBase();
38 AWS_BEDROCKAGENT_API AgentKnowledgeBase(Aws::Utils::Json::JsonView jsonValue);
40 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::String& GetAgentId() const{ return m_agentId; }
49 inline bool AgentIdHasBeenSet() const { return m_agentIdHasBeenSet; }
50 inline void SetAgentId(const Aws::String& value) { m_agentIdHasBeenSet = true; m_agentId = value; }
51 inline void SetAgentId(Aws::String&& value) { m_agentIdHasBeenSet = true; m_agentId = std::move(value); }
52 inline void SetAgentId(const char* value) { m_agentIdHasBeenSet = true; m_agentId.assign(value); }
53 inline AgentKnowledgeBase& WithAgentId(const Aws::String& value) { SetAgentId(value); return *this;}
54 inline AgentKnowledgeBase& WithAgentId(Aws::String&& value) { SetAgentId(std::move(value)); return *this;}
55 inline AgentKnowledgeBase& WithAgentId(const char* value) { SetAgentId(value); return *this;}
57
59
62 inline const Aws::String& GetAgentVersion() const{ return m_agentVersion; }
63 inline bool AgentVersionHasBeenSet() const { return m_agentVersionHasBeenSet; }
64 inline void SetAgentVersion(const Aws::String& value) { m_agentVersionHasBeenSet = true; m_agentVersion = value; }
65 inline void SetAgentVersion(Aws::String&& value) { m_agentVersionHasBeenSet = true; m_agentVersion = std::move(value); }
66 inline void SetAgentVersion(const char* value) { m_agentVersionHasBeenSet = true; m_agentVersion.assign(value); }
67 inline AgentKnowledgeBase& WithAgentVersion(const Aws::String& value) { SetAgentVersion(value); return *this;}
68 inline AgentKnowledgeBase& WithAgentVersion(Aws::String&& value) { SetAgentVersion(std::move(value)); return *this;}
69 inline AgentKnowledgeBase& WithAgentVersion(const char* value) { SetAgentVersion(value); return *this;}
71
73
77 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
78 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
79 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
80 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
81 inline AgentKnowledgeBase& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
82 inline AgentKnowledgeBase& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
84
86
90 inline const Aws::String& GetDescription() const{ return m_description; }
91 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
92 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
93 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
94 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
95 inline AgentKnowledgeBase& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
96 inline AgentKnowledgeBase& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
97 inline AgentKnowledgeBase& WithDescription(const char* value) { SetDescription(value); return *this;}
99
101
105 inline const Aws::String& GetKnowledgeBaseId() const{ return m_knowledgeBaseId; }
106 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
107 inline void SetKnowledgeBaseId(const Aws::String& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = value; }
108 inline void SetKnowledgeBaseId(Aws::String&& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = std::move(value); }
109 inline void SetKnowledgeBaseId(const char* value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId.assign(value); }
110 inline AgentKnowledgeBase& WithKnowledgeBaseId(const Aws::String& value) { SetKnowledgeBaseId(value); return *this;}
111 inline AgentKnowledgeBase& WithKnowledgeBaseId(Aws::String&& value) { SetKnowledgeBaseId(std::move(value)); return *this;}
112 inline AgentKnowledgeBase& WithKnowledgeBaseId(const char* value) { SetKnowledgeBaseId(value); return *this;}
114
116
121 inline const KnowledgeBaseState& GetKnowledgeBaseState() const{ return m_knowledgeBaseState; }
122 inline bool KnowledgeBaseStateHasBeenSet() const { return m_knowledgeBaseStateHasBeenSet; }
123 inline void SetKnowledgeBaseState(const KnowledgeBaseState& value) { m_knowledgeBaseStateHasBeenSet = true; m_knowledgeBaseState = value; }
124 inline void SetKnowledgeBaseState(KnowledgeBaseState&& value) { m_knowledgeBaseStateHasBeenSet = true; m_knowledgeBaseState = std::move(value); }
126 inline AgentKnowledgeBase& WithKnowledgeBaseState(KnowledgeBaseState&& value) { SetKnowledgeBaseState(std::move(value)); return *this;}
128
130
134 inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
135 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
136 inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; }
137 inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); }
138 inline AgentKnowledgeBase& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
139 inline AgentKnowledgeBase& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
141 private:
142
143 Aws::String m_agentId;
144 bool m_agentIdHasBeenSet = false;
145
146 Aws::String m_agentVersion;
147 bool m_agentVersionHasBeenSet = false;
148
149 Aws::Utils::DateTime m_createdAt;
150 bool m_createdAtHasBeenSet = false;
151
152 Aws::String m_description;
153 bool m_descriptionHasBeenSet = false;
154
155 Aws::String m_knowledgeBaseId;
156 bool m_knowledgeBaseIdHasBeenSet = false;
157
158 KnowledgeBaseState m_knowledgeBaseState;
159 bool m_knowledgeBaseStateHasBeenSet = false;
160
161 Aws::Utils::DateTime m_updatedAt;
162 bool m_updatedAtHasBeenSet = false;
163 };
164
165} // namespace Model
166} // namespace BedrockAgent
167} // namespace Aws
const Aws::Utils::DateTime & GetUpdatedAt() const
AgentKnowledgeBase & WithCreatedAt(const Aws::Utils::DateTime &value)
AgentKnowledgeBase & WithAgentId(const Aws::String &value)
void SetKnowledgeBaseState(const KnowledgeBaseState &value)
AgentKnowledgeBase & WithKnowledgeBaseState(const KnowledgeBaseState &value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
AgentKnowledgeBase & WithCreatedAt(Aws::Utils::DateTime &&value)
void SetKnowledgeBaseId(const Aws::String &value)
AgentKnowledgeBase & WithDescription(const char *value)
AgentKnowledgeBase & WithKnowledgeBaseId(const char *value)
AgentKnowledgeBase & WithAgentId(Aws::String &&value)
AgentKnowledgeBase & WithAgentVersion(Aws::String &&value)
AgentKnowledgeBase & WithKnowledgeBaseId(Aws::String &&value)
AgentKnowledgeBase & WithUpdatedAt(Aws::Utils::DateTime &&value)
AWS_BEDROCKAGENT_API AgentKnowledgeBase(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
const KnowledgeBaseState & GetKnowledgeBaseState() const
void SetAgentVersion(const Aws::String &value)
AgentKnowledgeBase & WithDescription(const Aws::String &value)
const Aws::Utils::DateTime & GetCreatedAt() const
AgentKnowledgeBase & WithAgentId(const char *value)
void SetUpdatedAt(const Aws::Utils::DateTime &value)
void SetUpdatedAt(Aws::Utils::DateTime &&value)
AgentKnowledgeBase & WithUpdatedAt(const Aws::Utils::DateTime &value)
AgentKnowledgeBase & WithKnowledgeBaseState(KnowledgeBaseState &&value)
AgentKnowledgeBase & WithDescription(Aws::String &&value)
void SetDescription(const Aws::String &value)
AgentKnowledgeBase & WithKnowledgeBaseId(const Aws::String &value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
AgentKnowledgeBase & WithAgentVersion(const Aws::String &value)
void SetKnowledgeBaseState(KnowledgeBaseState &&value)
AgentKnowledgeBase & WithAgentVersion(const char *value)
AWS_BEDROCKAGENT_API AgentKnowledgeBase & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue