AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
RetrieveAndGenerateRequest.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/bedrock-agent-runtime/model/RetrieveAndGenerateInput.h>
10#include <aws/bedrock-agent-runtime/model/RetrieveAndGenerateConfiguration.h>
11#include <aws/bedrock-agent-runtime/model/RetrieveAndGenerateSessionConfiguration.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <utility>
14
15namespace Aws
16{
17namespace BedrockAgentRuntime
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_BEDROCKAGENTRUNTIME_API RetrieveAndGenerateRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "RetrieveAndGenerate"; }
34
35 AWS_BEDROCKAGENTRUNTIME_API Aws::String SerializePayload() const override;
36
37
39
42 inline const RetrieveAndGenerateInput& GetInput() const { return m_input; }
43 inline bool InputHasBeenSet() const { return m_inputHasBeenSet; }
44 template<typename InputT = RetrieveAndGenerateInput>
45 void SetInput(InputT&& value) { m_inputHasBeenSet = true; m_input = std::forward<InputT>(value); }
46 template<typename InputT = RetrieveAndGenerateInput>
47 RetrieveAndGenerateRequest& WithInput(InputT&& value) { SetInput(std::forward<InputT>(value)); return *this;}
49
51
57 inline const RetrieveAndGenerateConfiguration& GetRetrieveAndGenerateConfiguration() const { return m_retrieveAndGenerateConfiguration; }
58 inline bool RetrieveAndGenerateConfigurationHasBeenSet() const { return m_retrieveAndGenerateConfigurationHasBeenSet; }
59 template<typename RetrieveAndGenerateConfigurationT = RetrieveAndGenerateConfiguration>
60 void SetRetrieveAndGenerateConfiguration(RetrieveAndGenerateConfigurationT&& value) { m_retrieveAndGenerateConfigurationHasBeenSet = true; m_retrieveAndGenerateConfiguration = std::forward<RetrieveAndGenerateConfigurationT>(value); }
61 template<typename RetrieveAndGenerateConfigurationT = RetrieveAndGenerateConfiguration>
62 RetrieveAndGenerateRequest& WithRetrieveAndGenerateConfiguration(RetrieveAndGenerateConfigurationT&& value) { SetRetrieveAndGenerateConfiguration(std::forward<RetrieveAndGenerateConfigurationT>(value)); return *this;}
64
66
69 inline const RetrieveAndGenerateSessionConfiguration& GetSessionConfiguration() const { return m_sessionConfiguration; }
70 inline bool SessionConfigurationHasBeenSet() const { return m_sessionConfigurationHasBeenSet; }
71 template<typename SessionConfigurationT = RetrieveAndGenerateSessionConfiguration>
72 void SetSessionConfiguration(SessionConfigurationT&& value) { m_sessionConfigurationHasBeenSet = true; m_sessionConfiguration = std::forward<SessionConfigurationT>(value); }
73 template<typename SessionConfigurationT = RetrieveAndGenerateSessionConfiguration>
74 RetrieveAndGenerateRequest& WithSessionConfiguration(SessionConfigurationT&& value) { SetSessionConfiguration(std::forward<SessionConfigurationT>(value)); return *this;}
76
78
86 inline const Aws::String& GetSessionId() const { return m_sessionId; }
87 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
88 template<typename SessionIdT = Aws::String>
89 void SetSessionId(SessionIdT&& value) { m_sessionIdHasBeenSet = true; m_sessionId = std::forward<SessionIdT>(value); }
90 template<typename SessionIdT = Aws::String>
91 RetrieveAndGenerateRequest& WithSessionId(SessionIdT&& value) { SetSessionId(std::forward<SessionIdT>(value)); return *this;}
93 private:
94
96 bool m_inputHasBeenSet = false;
97
98 RetrieveAndGenerateConfiguration m_retrieveAndGenerateConfiguration;
99 bool m_retrieveAndGenerateConfigurationHasBeenSet = false;
100
101 RetrieveAndGenerateSessionConfiguration m_sessionConfiguration;
102 bool m_sessionConfigurationHasBeenSet = false;
103
104 Aws::String m_sessionId;
105 bool m_sessionIdHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace BedrockAgentRuntime
110} // 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::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String