AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetInput(const RetrieveAndGenerateInput& value) { m_inputHasBeenSet = true; m_input = value; }
45 inline void SetInput(RetrieveAndGenerateInput&& value) { m_inputHasBeenSet = true; m_input = std::move(value); }
46 inline RetrieveAndGenerateRequest& WithInput(const RetrieveAndGenerateInput& value) { SetInput(value); return *this;}
47 inline RetrieveAndGenerateRequest& WithInput(RetrieveAndGenerateInput&& value) { SetInput(std::move(value)); return *this;}
49
51
57 inline const RetrieveAndGenerateConfiguration& GetRetrieveAndGenerateConfiguration() const{ return m_retrieveAndGenerateConfiguration; }
58 inline bool RetrieveAndGenerateConfigurationHasBeenSet() const { return m_retrieveAndGenerateConfigurationHasBeenSet; }
59 inline void SetRetrieveAndGenerateConfiguration(const RetrieveAndGenerateConfiguration& value) { m_retrieveAndGenerateConfigurationHasBeenSet = true; m_retrieveAndGenerateConfiguration = value; }
60 inline void SetRetrieveAndGenerateConfiguration(RetrieveAndGenerateConfiguration&& value) { m_retrieveAndGenerateConfigurationHasBeenSet = true; m_retrieveAndGenerateConfiguration = std::move(value); }
64
66
69 inline const RetrieveAndGenerateSessionConfiguration& GetSessionConfiguration() const{ return m_sessionConfiguration; }
70 inline bool SessionConfigurationHasBeenSet() const { return m_sessionConfigurationHasBeenSet; }
71 inline void SetSessionConfiguration(const RetrieveAndGenerateSessionConfiguration& value) { m_sessionConfigurationHasBeenSet = true; m_sessionConfiguration = value; }
72 inline void SetSessionConfiguration(RetrieveAndGenerateSessionConfiguration&& value) { m_sessionConfigurationHasBeenSet = true; m_sessionConfiguration = std::move(value); }
76
78
86 inline const Aws::String& GetSessionId() const{ return m_sessionId; }
87 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
88 inline void SetSessionId(const Aws::String& value) { m_sessionIdHasBeenSet = true; m_sessionId = value; }
89 inline void SetSessionId(Aws::String&& value) { m_sessionIdHasBeenSet = true; m_sessionId = std::move(value); }
90 inline void SetSessionId(const char* value) { m_sessionIdHasBeenSet = true; m_sessionId.assign(value); }
91 inline RetrieveAndGenerateRequest& WithSessionId(const Aws::String& value) { SetSessionId(value); return *this;}
92 inline RetrieveAndGenerateRequest& WithSessionId(Aws::String&& value) { SetSessionId(std::move(value)); return *this;}
93 inline RetrieveAndGenerateRequest& WithSessionId(const char* value) { SetSessionId(value); return *this;}
95 private:
96
98 bool m_inputHasBeenSet = false;
99
100 RetrieveAndGenerateConfiguration m_retrieveAndGenerateConfiguration;
101 bool m_retrieveAndGenerateConfigurationHasBeenSet = false;
102
103 RetrieveAndGenerateSessionConfiguration m_sessionConfiguration;
104 bool m_sessionConfigurationHasBeenSet = false;
105
106 Aws::String m_sessionId;
107 bool m_sessionIdHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace BedrockAgentRuntime
112} // namespace Aws
RetrieveAndGenerateRequest & WithSessionId(const Aws::String &value)
RetrieveAndGenerateRequest & WithSessionId(const char *value)
RetrieveAndGenerateRequest & WithRetrieveAndGenerateConfiguration(RetrieveAndGenerateConfiguration &&value)
const RetrieveAndGenerateConfiguration & GetRetrieveAndGenerateConfiguration() const
RetrieveAndGenerateRequest & WithSessionConfiguration(const RetrieveAndGenerateSessionConfiguration &value)
void SetRetrieveAndGenerateConfiguration(RetrieveAndGenerateConfiguration &&value)
RetrieveAndGenerateRequest & WithInput(const RetrieveAndGenerateInput &value)
RetrieveAndGenerateRequest & WithInput(RetrieveAndGenerateInput &&value)
void SetSessionConfiguration(RetrieveAndGenerateSessionConfiguration &&value)
RetrieveAndGenerateRequest & WithRetrieveAndGenerateConfiguration(const RetrieveAndGenerateConfiguration &value)
void SetSessionConfiguration(const RetrieveAndGenerateSessionConfiguration &value)
AWS_BEDROCKAGENTRUNTIME_API Aws::String SerializePayload() const override
RetrieveAndGenerateRequest & WithSessionConfiguration(RetrieveAndGenerateSessionConfiguration &&value)
RetrieveAndGenerateRequest & WithSessionId(Aws::String &&value)
void SetRetrieveAndGenerateConfiguration(const RetrieveAndGenerateConfiguration &value)
const RetrieveAndGenerateSessionConfiguration & GetSessionConfiguration() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String