AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
DeleteKnowledgeBaseDocumentsRequest.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/UUID.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace BedrockAgent {
18namespace Model {
19
23 public:
24 AWS_BEDROCKAGENT_API DeleteKnowledgeBaseDocumentsRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "DeleteKnowledgeBaseDocuments"; }
31
32 AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override;
33
35
39 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
40 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
41 template <typename KnowledgeBaseIdT = Aws::String>
42 void SetKnowledgeBaseId(KnowledgeBaseIdT&& value) {
43 m_knowledgeBaseIdHasBeenSet = true;
44 m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value);
45 }
46 template <typename KnowledgeBaseIdT = Aws::String>
48 SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetDataSourceId() const { return m_dataSourceId; }
58 inline bool DataSourceIdHasBeenSet() const { return m_dataSourceIdHasBeenSet; }
59 template <typename DataSourceIdT = Aws::String>
60 void SetDataSourceId(DataSourceIdT&& value) {
61 m_dataSourceIdHasBeenSet = true;
62 m_dataSourceId = std::forward<DataSourceIdT>(value);
63 }
64 template <typename DataSourceIdT = Aws::String>
66 SetDataSourceId(std::forward<DataSourceIdT>(value));
67 return *this;
68 }
70
72
79 inline const Aws::String& GetClientToken() const { return m_clientToken; }
80 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
81 template <typename ClientTokenT = Aws::String>
82 void SetClientToken(ClientTokenT&& value) {
83 m_clientTokenHasBeenSet = true;
84 m_clientToken = std::forward<ClientTokenT>(value);
85 }
86 template <typename ClientTokenT = Aws::String>
88 SetClientToken(std::forward<ClientTokenT>(value));
89 return *this;
90 }
92
94
98 inline const Aws::Vector<DocumentIdentifier>& GetDocumentIdentifiers() const { return m_documentIdentifiers; }
99 inline bool DocumentIdentifiersHasBeenSet() const { return m_documentIdentifiersHasBeenSet; }
100 template <typename DocumentIdentifiersT = Aws::Vector<DocumentIdentifier>>
101 void SetDocumentIdentifiers(DocumentIdentifiersT&& value) {
102 m_documentIdentifiersHasBeenSet = true;
103 m_documentIdentifiers = std::forward<DocumentIdentifiersT>(value);
104 }
105 template <typename DocumentIdentifiersT = Aws::Vector<DocumentIdentifier>>
107 SetDocumentIdentifiers(std::forward<DocumentIdentifiersT>(value));
108 return *this;
109 }
110 template <typename DocumentIdentifiersT = DocumentIdentifier>
112 m_documentIdentifiersHasBeenSet = true;
113 m_documentIdentifiers.emplace_back(std::forward<DocumentIdentifiersT>(value));
114 return *this;
115 }
117 private:
118 Aws::String m_knowledgeBaseId;
119
120 Aws::String m_dataSourceId;
121
123
124 Aws::Vector<DocumentIdentifier> m_documentIdentifiers;
125 bool m_knowledgeBaseIdHasBeenSet = false;
126 bool m_dataSourceIdHasBeenSet = false;
127 bool m_clientTokenHasBeenSet = true;
128 bool m_documentIdentifiersHasBeenSet = false;
129};
130
131} // namespace Model
132} // namespace BedrockAgent
133} // namespace Aws
DeleteKnowledgeBaseDocumentsRequest & WithClientToken(ClientTokenT &&value)
AWS_BEDROCKAGENT_API DeleteKnowledgeBaseDocumentsRequest()=default
AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override
DeleteKnowledgeBaseDocumentsRequest & WithKnowledgeBaseId(KnowledgeBaseIdT &&value)
DeleteKnowledgeBaseDocumentsRequest & WithDataSourceId(DataSourceIdT &&value)
DeleteKnowledgeBaseDocumentsRequest & WithDocumentIdentifiers(DocumentIdentifiersT &&value)
DeleteKnowledgeBaseDocumentsRequest & AddDocumentIdentifiers(DocumentIdentifiersT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector