AWS SDK for C++

AWS SDK for C++ Version 1.11.851

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>
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>
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
93 inline DocumentOutputFormat GetOutputFormat() const { return m_outputFormat; }
94 inline bool OutputFormatHasBeenSet() const { return m_outputFormatHasBeenSet; }
96 m_outputFormatHasBeenSet = true;
97 m_outputFormat = value;
98 }
100 SetOutputFormat(value);
101 return *this;
102 }
104
106
107 inline const UserContext& GetUserContext() const { return m_userContext; }
108 inline bool UserContextHasBeenSet() const { return m_userContextHasBeenSet; }
109 template <typename UserContextT = UserContext>
111 m_userContextHasBeenSet = true;
112 m_userContext = std::forward<UserContextT>(value);
113 }
114 template <typename UserContextT = UserContext>
116 SetUserContext(std::forward<UserContextT>(value));
117 return *this;
118 }
120 private:
121 Aws::String m_dataSourceId;
122
123 Aws::String m_documentId;
124
125 Aws::String m_knowledgeBaseId;
126
128
129 UserContext m_userContext;
130 bool m_dataSourceIdHasBeenSet = false;
131 bool m_documentIdHasBeenSet = false;
132 bool m_knowledgeBaseIdHasBeenSet = false;
133 bool m_outputFormatHasBeenSet = false;
134 bool m_userContextHasBeenSet = false;
135};
136
137} // namespace Model
138} // namespace BedrockAgentRuntime
139} // namespace Aws
GetDocumentContentRequest & WithKnowledgeBaseId(KnowledgeBaseIdT &&value)
AWS_BEDROCKAGENTRUNTIME_API GetDocumentContentRequest()=default
GetDocumentContentRequest & WithOutputFormat(DocumentOutputFormat value)
AWS_BEDROCKAGENTRUNTIME_API Aws::String SerializePayload() const override
GetDocumentContentRequest & WithUserContext(UserContextT &&value)
GetDocumentContentRequest & WithDocumentId(DocumentIdT &&value)
GetDocumentContentRequest & WithDataSourceId(DataSourceIdT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String