AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename AgentIdT = Aws::String>
51 void SetAgentId(AgentIdT&& value) { m_agentIdHasBeenSet = true; m_agentId = std::forward<AgentIdT>(value); }
52 template<typename AgentIdT = Aws::String>
53 AgentKnowledgeBase& WithAgentId(AgentIdT&& value) { SetAgentId(std::forward<AgentIdT>(value)); return *this;}
55
57
60 inline const Aws::String& GetAgentVersion() const { return m_agentVersion; }
61 inline bool AgentVersionHasBeenSet() const { return m_agentVersionHasBeenSet; }
62 template<typename AgentVersionT = Aws::String>
63 void SetAgentVersion(AgentVersionT&& value) { m_agentVersionHasBeenSet = true; m_agentVersion = std::forward<AgentVersionT>(value); }
64 template<typename AgentVersionT = Aws::String>
65 AgentKnowledgeBase& WithAgentVersion(AgentVersionT&& value) { SetAgentVersion(std::forward<AgentVersionT>(value)); return *this;}
67
69
73 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
74 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
75 template<typename CreatedAtT = Aws::Utils::DateTime>
76 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
77 template<typename CreatedAtT = Aws::Utils::DateTime>
78 AgentKnowledgeBase& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
80
82
86 inline const Aws::String& GetDescription() const { return m_description; }
87 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
88 template<typename DescriptionT = Aws::String>
89 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
90 template<typename DescriptionT = Aws::String>
91 AgentKnowledgeBase& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
93
95
99 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
100 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
101 template<typename KnowledgeBaseIdT = Aws::String>
102 void SetKnowledgeBaseId(KnowledgeBaseIdT&& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value); }
103 template<typename KnowledgeBaseIdT = Aws::String>
104 AgentKnowledgeBase& WithKnowledgeBaseId(KnowledgeBaseIdT&& value) { SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value)); return *this;}
106
108
113 inline KnowledgeBaseState GetKnowledgeBaseState() const { return m_knowledgeBaseState; }
114 inline bool KnowledgeBaseStateHasBeenSet() const { return m_knowledgeBaseStateHasBeenSet; }
115 inline void SetKnowledgeBaseState(KnowledgeBaseState value) { m_knowledgeBaseStateHasBeenSet = true; m_knowledgeBaseState = value; }
118
120
124 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
125 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
126 template<typename UpdatedAtT = Aws::Utils::DateTime>
127 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
128 template<typename UpdatedAtT = Aws::Utils::DateTime>
129 AgentKnowledgeBase& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
131 private:
132
133 Aws::String m_agentId;
134 bool m_agentIdHasBeenSet = false;
135
136 Aws::String m_agentVersion;
137 bool m_agentVersionHasBeenSet = false;
138
139 Aws::Utils::DateTime m_createdAt{};
140 bool m_createdAtHasBeenSet = false;
141
142 Aws::String m_description;
143 bool m_descriptionHasBeenSet = false;
144
145 Aws::String m_knowledgeBaseId;
146 bool m_knowledgeBaseIdHasBeenSet = false;
147
149 bool m_knowledgeBaseStateHasBeenSet = false;
150
151 Aws::Utils::DateTime m_updatedAt{};
152 bool m_updatedAtHasBeenSet = false;
153 };
154
155} // namespace Model
156} // namespace BedrockAgent
157} // namespace Aws
const Aws::Utils::DateTime & GetUpdatedAt() const
AgentKnowledgeBase & WithAgentId(AgentIdT &&value)
AgentKnowledgeBase & WithCreatedAt(CreatedAtT &&value)
AWS_BEDROCKAGENT_API AgentKnowledgeBase(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetKnowledgeBaseId(KnowledgeBaseIdT &&value)
void SetKnowledgeBaseState(KnowledgeBaseState value)
AgentKnowledgeBase & WithUpdatedAt(UpdatedAtT &&value)
AgentKnowledgeBase & WithDescription(DescriptionT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
AgentKnowledgeBase & WithKnowledgeBaseId(KnowledgeBaseIdT &&value)
AgentKnowledgeBase & WithKnowledgeBaseState(KnowledgeBaseState value)
AWS_BEDROCKAGENT_API AgentKnowledgeBase()=default
AgentKnowledgeBase & WithAgentVersion(AgentVersionT &&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