AWS SDK for C++

AWS SDK for C++ Version 1.11.759

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/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace BedrockAgentRuntime {
18namespace Model {
19
23 public:
24 AWS_BEDROCKAGENTRUNTIME_API RetrieveAndGenerateRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "RetrieveAndGenerate"; }
31
32 AWS_BEDROCKAGENTRUNTIME_API Aws::String SerializePayload() const override;
33
35
38 inline const RetrieveAndGenerateInput& GetInput() const { return m_input; }
39 inline bool InputHasBeenSet() const { return m_inputHasBeenSet; }
40 template <typename InputT = RetrieveAndGenerateInput>
41 void SetInput(InputT&& value) {
42 m_inputHasBeenSet = true;
43 m_input = std::forward<InputT>(value);
44 }
45 template <typename InputT = RetrieveAndGenerateInput>
47 SetInput(std::forward<InputT>(value));
48 return *this;
49 }
51
53
59 inline const RetrieveAndGenerateConfiguration& GetRetrieveAndGenerateConfiguration() const { return m_retrieveAndGenerateConfiguration; }
60 inline bool RetrieveAndGenerateConfigurationHasBeenSet() const { return m_retrieveAndGenerateConfigurationHasBeenSet; }
61 template <typename RetrieveAndGenerateConfigurationT = RetrieveAndGenerateConfiguration>
63 m_retrieveAndGenerateConfigurationHasBeenSet = true;
64 m_retrieveAndGenerateConfiguration = std::forward<RetrieveAndGenerateConfigurationT>(value);
65 }
66 template <typename RetrieveAndGenerateConfigurationT = RetrieveAndGenerateConfiguration>
68 SetRetrieveAndGenerateConfiguration(std::forward<RetrieveAndGenerateConfigurationT>(value));
69 return *this;
70 }
72
74
77 inline const RetrieveAndGenerateSessionConfiguration& GetSessionConfiguration() const { return m_sessionConfiguration; }
78 inline bool SessionConfigurationHasBeenSet() const { return m_sessionConfigurationHasBeenSet; }
79 template <typename SessionConfigurationT = RetrieveAndGenerateSessionConfiguration>
81 m_sessionConfigurationHasBeenSet = true;
82 m_sessionConfiguration = std::forward<SessionConfigurationT>(value);
83 }
84 template <typename SessionConfigurationT = RetrieveAndGenerateSessionConfiguration>
86 SetSessionConfiguration(std::forward<SessionConfigurationT>(value));
87 return *this;
88 }
90
92
100 inline const Aws::String& GetSessionId() const { return m_sessionId; }
101 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
102 template <typename SessionIdT = Aws::String>
103 void SetSessionId(SessionIdT&& value) {
104 m_sessionIdHasBeenSet = true;
105 m_sessionId = std::forward<SessionIdT>(value);
106 }
107 template <typename SessionIdT = Aws::String>
109 SetSessionId(std::forward<SessionIdT>(value));
110 return *this;
111 }
113 private:
115
116 RetrieveAndGenerateConfiguration m_retrieveAndGenerateConfiguration;
117
118 RetrieveAndGenerateSessionConfiguration m_sessionConfiguration;
119
120 Aws::String m_sessionId;
121 bool m_inputHasBeenSet = false;
122 bool m_retrieveAndGenerateConfigurationHasBeenSet = false;
123 bool m_sessionConfigurationHasBeenSet = false;
124 bool m_sessionIdHasBeenSet = false;
125};
126
127} // namespace Model
128} // namespace BedrockAgentRuntime
129} // namespace Aws
RetrieveAndGenerateRequest & WithSessionConfiguration(SessionConfigurationT &&value)
const RetrieveAndGenerateConfiguration & GetRetrieveAndGenerateConfiguration() const
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