AWS SDK for C++

AWS SDK for C++ Version 1.11.849

Loading...
Searching...
No Matches
RetrieveAndGenerateRequest.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/RetrieveAndGenerateConfiguration.h>
10#include <aws/bedrock-agent-runtime/model/RetrieveAndGenerateInput.h>
11#include <aws/bedrock-agent-runtime/model/RetrieveAndGenerateSessionConfiguration.h>
12#include <aws/bedrock-agent-runtime/model/UserContext.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14
15#include <utility>
16
17namespace Aws {
18namespace BedrockAgentRuntime {
19namespace Model {
20
24 public:
25 AWS_BEDROCKAGENTRUNTIME_API RetrieveAndGenerateRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "RetrieveAndGenerate"; }
32
33 AWS_BEDROCKAGENTRUNTIME_API Aws::String SerializePayload() const override;
34
36
39 inline const RetrieveAndGenerateInput& GetInput() const { return m_input; }
40 inline bool InputHasBeenSet() const { return m_inputHasBeenSet; }
41 template <typename InputT = RetrieveAndGenerateInput>
42 void SetInput(InputT&& value) {
43 m_inputHasBeenSet = true;
44 m_input = std::forward<InputT>(value);
45 }
46 template <typename InputT = RetrieveAndGenerateInput>
48 SetInput(std::forward<InputT>(value));
49 return *this;
50 }
52
54
60 inline const RetrieveAndGenerateConfiguration& GetRetrieveAndGenerateConfiguration() const { return m_retrieveAndGenerateConfiguration; }
61 inline bool RetrieveAndGenerateConfigurationHasBeenSet() const { return m_retrieveAndGenerateConfigurationHasBeenSet; }
62 template <typename RetrieveAndGenerateConfigurationT = RetrieveAndGenerateConfiguration>
64 m_retrieveAndGenerateConfigurationHasBeenSet = true;
65 m_retrieveAndGenerateConfiguration = std::forward<RetrieveAndGenerateConfigurationT>(value);
66 }
67 template <typename RetrieveAndGenerateConfigurationT = RetrieveAndGenerateConfiguration>
69 SetRetrieveAndGenerateConfiguration(std::forward<RetrieveAndGenerateConfigurationT>(value));
70 return *this;
71 }
73
75
78 inline const RetrieveAndGenerateSessionConfiguration& GetSessionConfiguration() const { return m_sessionConfiguration; }
79 inline bool SessionConfigurationHasBeenSet() const { return m_sessionConfigurationHasBeenSet; }
80 template <typename SessionConfigurationT = RetrieveAndGenerateSessionConfiguration>
82 m_sessionConfigurationHasBeenSet = true;
83 m_sessionConfiguration = std::forward<SessionConfigurationT>(value);
84 }
85 template <typename SessionConfigurationT = RetrieveAndGenerateSessionConfiguration>
87 SetSessionConfiguration(std::forward<SessionConfigurationT>(value));
88 return *this;
89 }
91
93
101 inline const Aws::String& GetSessionId() const { return m_sessionId; }
102 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
103 template <typename SessionIdT = Aws::String>
104 void SetSessionId(SessionIdT&& value) {
105 m_sessionIdHasBeenSet = true;
106 m_sessionId = std::forward<SessionIdT>(value);
107 }
108 template <typename SessionIdT = Aws::String>
110 SetSessionId(std::forward<SessionIdT>(value));
111 return *this;
112 }
114
116
117 inline const UserContext& GetUserContext() const { return m_userContext; }
118 inline bool UserContextHasBeenSet() const { return m_userContextHasBeenSet; }
119 template <typename UserContextT = UserContext>
121 m_userContextHasBeenSet = true;
122 m_userContext = std::forward<UserContextT>(value);
123 }
124 template <typename UserContextT = UserContext>
126 SetUserContext(std::forward<UserContextT>(value));
127 return *this;
128 }
130 private:
132
133 RetrieveAndGenerateConfiguration m_retrieveAndGenerateConfiguration;
134
135 RetrieveAndGenerateSessionConfiguration m_sessionConfiguration;
136
137 Aws::String m_sessionId;
138
139 UserContext m_userContext;
140 bool m_inputHasBeenSet = false;
141 bool m_retrieveAndGenerateConfigurationHasBeenSet = false;
142 bool m_sessionConfigurationHasBeenSet = false;
143 bool m_sessionIdHasBeenSet = false;
144 bool m_userContextHasBeenSet = false;
145};
146
147} // namespace Model
148} // namespace BedrockAgentRuntime
149} // namespace Aws
RetrieveAndGenerateRequest & WithSessionConfiguration(SessionConfigurationT &&value)
const RetrieveAndGenerateConfiguration & GetRetrieveAndGenerateConfiguration() const
RetrieveAndGenerateRequest & WithUserContext(UserContextT &&value)
RetrieveAndGenerateRequest & WithRetrieveAndGenerateConfiguration(RetrieveAndGenerateConfigurationT &&value)
void SetRetrieveAndGenerateConfiguration(RetrieveAndGenerateConfigurationT &&value)
RetrieveAndGenerateRequest & WithSessionId(SessionIdT &&value)
AWS_BEDROCKAGENTRUNTIME_API Aws::String SerializePayload() const override
AWS_BEDROCKAGENTRUNTIME_API RetrieveAndGenerateRequest()=default
const RetrieveAndGenerateSessionConfiguration & GetSessionConfiguration() const
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String