AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DeleteKnowledgeBaseDocumentsRequest.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#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace BedrockAgent
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_BEDROCKAGENT_API DeleteKnowledgeBaseDocumentsRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "DeleteKnowledgeBaseDocuments"; }
34
35 AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override;
36
37
39
46 inline const Aws::String& GetClientToken() const { return m_clientToken; }
47 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
48 template<typename ClientTokenT = Aws::String>
49 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
50 template<typename ClientTokenT = Aws::String>
51 DeleteKnowledgeBaseDocumentsRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
53
55
58 inline const Aws::String& GetDataSourceId() const { return m_dataSourceId; }
59 inline bool DataSourceIdHasBeenSet() const { return m_dataSourceIdHasBeenSet; }
60 template<typename DataSourceIdT = Aws::String>
61 void SetDataSourceId(DataSourceIdT&& value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId = std::forward<DataSourceIdT>(value); }
62 template<typename DataSourceIdT = Aws::String>
63 DeleteKnowledgeBaseDocumentsRequest& WithDataSourceId(DataSourceIdT&& value) { SetDataSourceId(std::forward<DataSourceIdT>(value)); return *this;}
65
67
71 inline const Aws::Vector<DocumentIdentifier>& GetDocumentIdentifiers() const { return m_documentIdentifiers; }
72 inline bool DocumentIdentifiersHasBeenSet() const { return m_documentIdentifiersHasBeenSet; }
73 template<typename DocumentIdentifiersT = Aws::Vector<DocumentIdentifier>>
74 void SetDocumentIdentifiers(DocumentIdentifiersT&& value) { m_documentIdentifiersHasBeenSet = true; m_documentIdentifiers = std::forward<DocumentIdentifiersT>(value); }
75 template<typename DocumentIdentifiersT = Aws::Vector<DocumentIdentifier>>
76 DeleteKnowledgeBaseDocumentsRequest& WithDocumentIdentifiers(DocumentIdentifiersT&& value) { SetDocumentIdentifiers(std::forward<DocumentIdentifiersT>(value)); return *this;}
77 template<typename DocumentIdentifiersT = DocumentIdentifier>
78 DeleteKnowledgeBaseDocumentsRequest& AddDocumentIdentifiers(DocumentIdentifiersT&& value) { m_documentIdentifiersHasBeenSet = true; m_documentIdentifiers.emplace_back(std::forward<DocumentIdentifiersT>(value)); return *this; }
80
82
86 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
87 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
88 template<typename KnowledgeBaseIdT = Aws::String>
89 void SetKnowledgeBaseId(KnowledgeBaseIdT&& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value); }
90 template<typename KnowledgeBaseIdT = Aws::String>
91 DeleteKnowledgeBaseDocumentsRequest& WithKnowledgeBaseId(KnowledgeBaseIdT&& value) { SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value)); return *this;}
93 private:
94
96 bool m_clientTokenHasBeenSet = true;
97
98 Aws::String m_dataSourceId;
99 bool m_dataSourceIdHasBeenSet = false;
100
101 Aws::Vector<DocumentIdentifier> m_documentIdentifiers;
102 bool m_documentIdentifiersHasBeenSet = false;
103
104 Aws::String m_knowledgeBaseId;
105 bool m_knowledgeBaseIdHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace BedrockAgent
110} // 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