AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
GetDocumentContentRequest.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntimeRequest.h>
8#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
9#include <aws/bedrock-agent-runtime/model/DocumentOutputFormat.h>
10#include <aws/bedrock-agent-runtime/model/UserContext.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace BedrockAgentRuntime {
17namespace Model {
18
22 public:
23 AWS_BEDROCKAGENTRUNTIME_API GetDocumentContentRequest() = 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 "GetDocumentContent"; }
30
31 AWS_BEDROCKAGENTRUNTIME_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetDataSourceId() const { return m_dataSourceId; }
38 inline bool DataSourceIdHasBeenSet() const { return m_dataSourceIdHasBeenSet; }
39 template <typename DataSourceIdT = Aws::String>
40 void SetDataSourceId(DataSourceIdT&& value) {
41 m_dataSourceIdHasBeenSet = true;
42 m_dataSourceId = std::forward<DataSourceIdT>(value);
43 }
44 template <typename DataSourceIdT = Aws::String>
46 SetDataSourceId(std::forward<DataSourceIdT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetDocumentId() const { return m_documentId; }
56 inline bool DocumentIdHasBeenSet() const { return m_documentIdHasBeenSet; }
57 template <typename DocumentIdT = Aws::String>
58 void SetDocumentId(DocumentIdT&& value) {
59 m_documentIdHasBeenSet = true;
60 m_documentId = std::forward<DocumentIdT>(value);
61 }
62 template <typename DocumentIdT = Aws::String>
64 SetDocumentId(std::forward<DocumentIdT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
74 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
75 template <typename KnowledgeBaseIdT = Aws::String>
76 void SetKnowledgeBaseId(KnowledgeBaseIdT&& value) {
77 m_knowledgeBaseIdHasBeenSet = true;
78 m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value);
79 }
80 template <typename KnowledgeBaseIdT = Aws::String>
82 SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value));
83 return *this;
84 }
86
88
96 inline const Aws::String& GetMediaId() const { return m_mediaId; }
97 inline bool MediaIdHasBeenSet() const { return m_mediaIdHasBeenSet; }
98 template <typename MediaIdT = Aws::String>
99 void SetMediaId(MediaIdT&& value) {
100 m_mediaIdHasBeenSet = true;
101 m_mediaId = std::forward<MediaIdT>(value);
102 }
103 template <typename MediaIdT = Aws::String>
105 SetMediaId(std::forward<MediaIdT>(value));
106 return *this;
107 }
109
111
119 inline DocumentOutputFormat GetOutputFormat() const { return m_outputFormat; }
120 inline bool OutputFormatHasBeenSet() const { return m_outputFormatHasBeenSet; }
122 m_outputFormatHasBeenSet = true;
123 m_outputFormat = value;
124 }
126 SetOutputFormat(value);
127 return *this;
128 }
130
132
137 inline const UserContext& GetUserContext() const { return m_userContext; }
138 inline bool UserContextHasBeenSet() const { return m_userContextHasBeenSet; }
139 template <typename UserContextT = UserContext>
140 void SetUserContext(UserContextT&& value) {
141 m_userContextHasBeenSet = true;
142 m_userContext = std::forward<UserContextT>(value);
143 }
144 template <typename UserContextT = UserContext>
146 SetUserContext(std::forward<UserContextT>(value));
147 return *this;
148 }
150 private:
151 Aws::String m_dataSourceId;
152
153 Aws::String m_documentId;
154
155 Aws::String m_knowledgeBaseId;
156
157 Aws::String m_mediaId;
158
160
161 UserContext m_userContext;
162 bool m_dataSourceIdHasBeenSet = false;
163 bool m_documentIdHasBeenSet = false;
164 bool m_knowledgeBaseIdHasBeenSet = false;
165 bool m_mediaIdHasBeenSet = false;
166 bool m_outputFormatHasBeenSet = false;
167 bool m_userContextHasBeenSet = false;
168};
169
170} // namespace Model
171} // namespace BedrockAgentRuntime
172} // namespace Aws
GetDocumentContentRequest & WithKnowledgeBaseId(KnowledgeBaseIdT &&value)
AWS_BEDROCKAGENTRUNTIME_API GetDocumentContentRequest()=default
GetDocumentContentRequest & WithOutputFormat(DocumentOutputFormat value)
GetDocumentContentRequest & WithMediaId(MediaIdT &&value)
AWS_BEDROCKAGENTRUNTIME_API Aws::String SerializePayload() const override
GetDocumentContentRequest & WithUserContext(UserContextT &&value)
GetDocumentContentRequest & WithDocumentId(DocumentIdT &&value)
GetDocumentContentRequest & WithDataSourceId(DataSourceIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String