AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetKnowledgeBaseDocumentsRequest.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/bedrock-agent/model/DocumentIdentifier.h>
12#include <utility>
13
14namespace Aws
15{
16namespace BedrockAgent
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_BEDROCKAGENT_API GetKnowledgeBaseDocumentsRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "GetKnowledgeBaseDocuments"; }
33
34 AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetDataSourceId() const { return m_dataSourceId; }
42 inline bool DataSourceIdHasBeenSet() const { return m_dataSourceIdHasBeenSet; }
43 template<typename DataSourceIdT = Aws::String>
44 void SetDataSourceId(DataSourceIdT&& value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId = std::forward<DataSourceIdT>(value); }
45 template<typename DataSourceIdT = Aws::String>
46 GetKnowledgeBaseDocumentsRequest& WithDataSourceId(DataSourceIdT&& value) { SetDataSourceId(std::forward<DataSourceIdT>(value)); return *this;}
48
50
54 inline const Aws::Vector<DocumentIdentifier>& GetDocumentIdentifiers() const { return m_documentIdentifiers; }
55 inline bool DocumentIdentifiersHasBeenSet() const { return m_documentIdentifiersHasBeenSet; }
56 template<typename DocumentIdentifiersT = Aws::Vector<DocumentIdentifier>>
57 void SetDocumentIdentifiers(DocumentIdentifiersT&& value) { m_documentIdentifiersHasBeenSet = true; m_documentIdentifiers = std::forward<DocumentIdentifiersT>(value); }
58 template<typename DocumentIdentifiersT = Aws::Vector<DocumentIdentifier>>
59 GetKnowledgeBaseDocumentsRequest& WithDocumentIdentifiers(DocumentIdentifiersT&& value) { SetDocumentIdentifiers(std::forward<DocumentIdentifiersT>(value)); return *this;}
60 template<typename DocumentIdentifiersT = DocumentIdentifier>
61 GetKnowledgeBaseDocumentsRequest& AddDocumentIdentifiers(DocumentIdentifiersT&& value) { m_documentIdentifiersHasBeenSet = true; m_documentIdentifiers.emplace_back(std::forward<DocumentIdentifiersT>(value)); return *this; }
63
65
69 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
70 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
71 template<typename KnowledgeBaseIdT = Aws::String>
72 void SetKnowledgeBaseId(KnowledgeBaseIdT&& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value); }
73 template<typename KnowledgeBaseIdT = Aws::String>
74 GetKnowledgeBaseDocumentsRequest& WithKnowledgeBaseId(KnowledgeBaseIdT&& value) { SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value)); return *this;}
76 private:
77
78 Aws::String m_dataSourceId;
79 bool m_dataSourceIdHasBeenSet = false;
80
81 Aws::Vector<DocumentIdentifier> m_documentIdentifiers;
82 bool m_documentIdentifiersHasBeenSet = false;
83
84 Aws::String m_knowledgeBaseId;
85 bool m_knowledgeBaseIdHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace BedrockAgent
90} // 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