AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
GetKnowledgeBaseDocumentsRequest.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgentRequest.h>
8#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
9#include <aws/bedrock-agent/model/DocumentIdentifier.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace BedrockAgent {
17namespace Model {
18
22 public:
23 AWS_BEDROCKAGENT_API GetKnowledgeBaseDocumentsRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "GetKnowledgeBaseDocuments"; }
30
31 AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override;
32
34
38 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
39 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
40 template <typename KnowledgeBaseIdT = Aws::String>
41 void SetKnowledgeBaseId(KnowledgeBaseIdT&& value) {
42 m_knowledgeBaseIdHasBeenSet = true;
43 m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value);
44 }
45 template <typename KnowledgeBaseIdT = Aws::String>
47 SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetDataSourceId() const { return m_dataSourceId; }
57 inline bool DataSourceIdHasBeenSet() const { return m_dataSourceIdHasBeenSet; }
58 template <typename DataSourceIdT = Aws::String>
59 void SetDataSourceId(DataSourceIdT&& value) {
60 m_dataSourceIdHasBeenSet = true;
61 m_dataSourceId = std::forward<DataSourceIdT>(value);
62 }
63 template <typename DataSourceIdT = Aws::String>
65 SetDataSourceId(std::forward<DataSourceIdT>(value));
66 return *this;
67 }
69
71
75 inline const Aws::Vector<DocumentIdentifier>& GetDocumentIdentifiers() const { return m_documentIdentifiers; }
76 inline bool DocumentIdentifiersHasBeenSet() const { return m_documentIdentifiersHasBeenSet; }
77 template <typename DocumentIdentifiersT = Aws::Vector<DocumentIdentifier>>
78 void SetDocumentIdentifiers(DocumentIdentifiersT&& value) {
79 m_documentIdentifiersHasBeenSet = true;
80 m_documentIdentifiers = std::forward<DocumentIdentifiersT>(value);
81 }
82 template <typename DocumentIdentifiersT = Aws::Vector<DocumentIdentifier>>
84 SetDocumentIdentifiers(std::forward<DocumentIdentifiersT>(value));
85 return *this;
86 }
87 template <typename DocumentIdentifiersT = DocumentIdentifier>
89 m_documentIdentifiersHasBeenSet = true;
90 m_documentIdentifiers.emplace_back(std::forward<DocumentIdentifiersT>(value));
91 return *this;
92 }
94 private:
95 Aws::String m_knowledgeBaseId;
96
97 Aws::String m_dataSourceId;
98
99 Aws::Vector<DocumentIdentifier> m_documentIdentifiers;
100 bool m_knowledgeBaseIdHasBeenSet = false;
101 bool m_dataSourceIdHasBeenSet = false;
102 bool m_documentIdentifiersHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace BedrockAgent
107} // namespace Aws
GetKnowledgeBaseDocumentsRequest & WithDocumentIdentifiers(DocumentIdentifiersT &&value)
GetKnowledgeBaseDocumentsRequest & AddDocumentIdentifiers(DocumentIdentifiersT &&value)
AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override
AWS_BEDROCKAGENT_API GetKnowledgeBaseDocumentsRequest()=default
GetKnowledgeBaseDocumentsRequest & WithDataSourceId(DataSourceIdT &&value)
GetKnowledgeBaseDocumentsRequest & WithKnowledgeBaseId(KnowledgeBaseIdT &&value)
const Aws::Vector< DocumentIdentifier > & GetDocumentIdentifiers() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector