AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RetrieveRequest.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/BedrockAgentRuntimeRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/bedrock-agent-runtime/model/KnowledgeBaseRetrievalConfiguration.h>
11#include <aws/bedrock-agent-runtime/model/KnowledgeBaseQuery.h>
12#include <utility>
13
14namespace Aws
15{
16namespace BedrockAgentRuntime
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_BEDROCKAGENTRUNTIME_API RetrieveRequest();
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 "Retrieve"; }
33
34 AWS_BEDROCKAGENTRUNTIME_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetKnowledgeBaseId() const{ return m_knowledgeBaseId; }
42 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
43 inline void SetKnowledgeBaseId(const Aws::String& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = value; }
44 inline void SetKnowledgeBaseId(Aws::String&& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = std::move(value); }
45 inline void SetKnowledgeBaseId(const char* value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId.assign(value); }
46 inline RetrieveRequest& WithKnowledgeBaseId(const Aws::String& value) { SetKnowledgeBaseId(value); return *this;}
47 inline RetrieveRequest& WithKnowledgeBaseId(Aws::String&& value) { SetKnowledgeBaseId(std::move(value)); return *this;}
48 inline RetrieveRequest& WithKnowledgeBaseId(const char* value) { SetKnowledgeBaseId(value); return *this;}
50
52
57 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
58 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
59 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
60 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
61 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
62 inline RetrieveRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
63 inline RetrieveRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
64 inline RetrieveRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
66
68
74 inline const KnowledgeBaseRetrievalConfiguration& GetRetrievalConfiguration() const{ return m_retrievalConfiguration; }
75 inline bool RetrievalConfigurationHasBeenSet() const { return m_retrievalConfigurationHasBeenSet; }
76 inline void SetRetrievalConfiguration(const KnowledgeBaseRetrievalConfiguration& value) { m_retrievalConfigurationHasBeenSet = true; m_retrievalConfiguration = value; }
77 inline void SetRetrievalConfiguration(KnowledgeBaseRetrievalConfiguration&& value) { m_retrievalConfigurationHasBeenSet = true; m_retrievalConfiguration = std::move(value); }
81
83
86 inline const KnowledgeBaseQuery& GetRetrievalQuery() const{ return m_retrievalQuery; }
87 inline bool RetrievalQueryHasBeenSet() const { return m_retrievalQueryHasBeenSet; }
88 inline void SetRetrievalQuery(const KnowledgeBaseQuery& value) { m_retrievalQueryHasBeenSet = true; m_retrievalQuery = value; }
89 inline void SetRetrievalQuery(KnowledgeBaseQuery&& value) { m_retrievalQueryHasBeenSet = true; m_retrievalQuery = std::move(value); }
90 inline RetrieveRequest& WithRetrievalQuery(const KnowledgeBaseQuery& value) { SetRetrievalQuery(value); return *this;}
91 inline RetrieveRequest& WithRetrievalQuery(KnowledgeBaseQuery&& value) { SetRetrievalQuery(std::move(value)); return *this;}
93 private:
94
95 Aws::String m_knowledgeBaseId;
96 bool m_knowledgeBaseIdHasBeenSet = false;
97
98 Aws::String m_nextToken;
99 bool m_nextTokenHasBeenSet = false;
100
101 KnowledgeBaseRetrievalConfiguration m_retrievalConfiguration;
102 bool m_retrievalConfigurationHasBeenSet = false;
103
104 KnowledgeBaseQuery m_retrievalQuery;
105 bool m_retrievalQueryHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace BedrockAgentRuntime
110} // namespace Aws
AWS_BEDROCKAGENTRUNTIME_API RetrieveRequest()
void SetRetrievalConfiguration(const KnowledgeBaseRetrievalConfiguration &value)
void SetRetrievalConfiguration(KnowledgeBaseRetrievalConfiguration &&value)
AWS_BEDROCKAGENTRUNTIME_API Aws::String SerializePayload() const override
void SetRetrievalQuery(KnowledgeBaseQuery &&value)
RetrieveRequest & WithNextToken(const char *value)
void SetKnowledgeBaseId(const Aws::String &value)
RetrieveRequest & WithRetrievalConfiguration(KnowledgeBaseRetrievalConfiguration &&value)
void SetRetrievalQuery(const KnowledgeBaseQuery &value)
RetrieveRequest & WithKnowledgeBaseId(const char *value)
RetrieveRequest & WithRetrievalConfiguration(const KnowledgeBaseRetrievalConfiguration &value)
RetrieveRequest & WithKnowledgeBaseId(const Aws::String &value)
RetrieveRequest & WithKnowledgeBaseId(Aws::String &&value)
const KnowledgeBaseRetrievalConfiguration & GetRetrievalConfiguration() const
const KnowledgeBaseQuery & GetRetrievalQuery() const
virtual const char * GetServiceRequestName() const override
RetrieveRequest & WithRetrievalQuery(KnowledgeBaseQuery &&value)
RetrieveRequest & WithNextToken(const Aws::String &value)
RetrieveRequest & WithNextToken(Aws::String &&value)
RetrieveRequest & WithRetrievalQuery(const KnowledgeBaseQuery &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String