AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
KnowledgeBaseSummary.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/bedrock-agent/model/KnowledgeBaseStatus.h>
10#include <aws/core/utils/DateTime.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
34 {
35 public:
36 AWS_BEDROCKAGENT_API KnowledgeBaseSummary();
37 AWS_BEDROCKAGENT_API KnowledgeBaseSummary(Aws::Utils::Json::JsonView jsonValue);
39 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetDescription() const{ return m_description; }
47 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
48 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
49 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
50 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
51 inline KnowledgeBaseSummary& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
52 inline KnowledgeBaseSummary& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
53 inline KnowledgeBaseSummary& WithDescription(const char* value) { SetDescription(value); return *this;}
55
57
60 inline const Aws::String& GetKnowledgeBaseId() const{ return m_knowledgeBaseId; }
61 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
62 inline void SetKnowledgeBaseId(const Aws::String& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = value; }
63 inline void SetKnowledgeBaseId(Aws::String&& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = std::move(value); }
64 inline void SetKnowledgeBaseId(const char* value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId.assign(value); }
65 inline KnowledgeBaseSummary& WithKnowledgeBaseId(const Aws::String& value) { SetKnowledgeBaseId(value); return *this;}
66 inline KnowledgeBaseSummary& WithKnowledgeBaseId(Aws::String&& value) { SetKnowledgeBaseId(std::move(value)); return *this;}
67 inline KnowledgeBaseSummary& WithKnowledgeBaseId(const char* value) { SetKnowledgeBaseId(value); return *this;}
69
71
74 inline const Aws::String& GetName() const{ return m_name; }
75 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
76 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
77 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
78 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
79 inline KnowledgeBaseSummary& WithName(const Aws::String& value) { SetName(value); return *this;}
80 inline KnowledgeBaseSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
81 inline KnowledgeBaseSummary& WithName(const char* value) { SetName(value); return *this;}
83
85
88 inline const KnowledgeBaseStatus& GetStatus() const{ return m_status; }
89 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
90 inline void SetStatus(const KnowledgeBaseStatus& value) { m_statusHasBeenSet = true; m_status = value; }
91 inline void SetStatus(KnowledgeBaseStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
92 inline KnowledgeBaseSummary& WithStatus(const KnowledgeBaseStatus& value) { SetStatus(value); return *this;}
93 inline KnowledgeBaseSummary& WithStatus(KnowledgeBaseStatus&& value) { SetStatus(std::move(value)); return *this;}
95
97
100 inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
101 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
102 inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; }
103 inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); }
104 inline KnowledgeBaseSummary& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
105 inline KnowledgeBaseSummary& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
107 private:
108
109 Aws::String m_description;
110 bool m_descriptionHasBeenSet = false;
111
112 Aws::String m_knowledgeBaseId;
113 bool m_knowledgeBaseIdHasBeenSet = false;
114
115 Aws::String m_name;
116 bool m_nameHasBeenSet = false;
117
118 KnowledgeBaseStatus m_status;
119 bool m_statusHasBeenSet = false;
120
121 Aws::Utils::DateTime m_updatedAt;
122 bool m_updatedAtHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace BedrockAgent
127} // namespace Aws
const KnowledgeBaseStatus & GetStatus() const
void SetUpdatedAt(const Aws::Utils::DateTime &value)
KnowledgeBaseSummary & WithUpdatedAt(Aws::Utils::DateTime &&value)
KnowledgeBaseSummary & WithKnowledgeBaseId(const char *value)
AWS_BEDROCKAGENT_API KnowledgeBaseSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
KnowledgeBaseSummary & WithKnowledgeBaseId(Aws::String &&value)
KnowledgeBaseSummary & WithDescription(const char *value)
KnowledgeBaseSummary & WithKnowledgeBaseId(const Aws::String &value)
KnowledgeBaseSummary & WithStatus(KnowledgeBaseStatus &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
KnowledgeBaseSummary & WithDescription(Aws::String &&value)
KnowledgeBaseSummary & WithDescription(const Aws::String &value)
void SetUpdatedAt(Aws::Utils::DateTime &&value)
AWS_BEDROCKAGENT_API KnowledgeBaseSummary(Aws::Utils::Json::JsonView jsonValue)
KnowledgeBaseSummary & WithName(const Aws::String &value)
KnowledgeBaseSummary & WithName(const char *value)
void SetStatus(const KnowledgeBaseStatus &value)
KnowledgeBaseSummary & WithName(Aws::String &&value)
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
KnowledgeBaseSummary & WithUpdatedAt(const Aws::Utils::DateTime &value)
KnowledgeBaseSummary & WithStatus(const KnowledgeBaseStatus &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue