AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
GenerateQueryRequest.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/QueryGenerationInput.h>
10#include <aws/bedrock-agent-runtime/model/TransformationConfiguration.h>
11
12#include <utility>
13
14namespace Aws {
15namespace BedrockAgentRuntime {
16namespace Model {
17
21 public:
22 AWS_BEDROCKAGENTRUNTIME_API GenerateQueryRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "GenerateQuery"; }
29
30 AWS_BEDROCKAGENTRUNTIME_API Aws::String SerializePayload() const override;
31
33
37 inline const QueryGenerationInput& GetQueryGenerationInput() const { return m_queryGenerationInput; }
38 inline bool QueryGenerationInputHasBeenSet() const { return m_queryGenerationInputHasBeenSet; }
39 template <typename QueryGenerationInputT = QueryGenerationInput>
41 m_queryGenerationInputHasBeenSet = true;
42 m_queryGenerationInput = std::forward<QueryGenerationInputT>(value);
43 }
44 template <typename QueryGenerationInputT = QueryGenerationInput>
46 SetQueryGenerationInput(std::forward<QueryGenerationInputT>(value));
47 return *this;
48 }
50
52
56 inline const TransformationConfiguration& GetTransformationConfiguration() const { return m_transformationConfiguration; }
57 inline bool TransformationConfigurationHasBeenSet() const { return m_transformationConfigurationHasBeenSet; }
58 template <typename TransformationConfigurationT = TransformationConfiguration>
60 m_transformationConfigurationHasBeenSet = true;
61 m_transformationConfiguration = std::forward<TransformationConfigurationT>(value);
62 }
63 template <typename TransformationConfigurationT = TransformationConfiguration>
65 SetTransformationConfiguration(std::forward<TransformationConfigurationT>(value));
66 return *this;
67 }
69 private:
70 QueryGenerationInput m_queryGenerationInput;
71
72 TransformationConfiguration m_transformationConfiguration;
73 bool m_queryGenerationInputHasBeenSet = false;
74 bool m_transformationConfigurationHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace BedrockAgentRuntime
79} // namespace Aws
const TransformationConfiguration & GetTransformationConfiguration() const
virtual const char * GetServiceRequestName() const override
GenerateQueryRequest & WithQueryGenerationInput(QueryGenerationInputT &&value)
void SetTransformationConfiguration(TransformationConfigurationT &&value)
GenerateQueryRequest & WithTransformationConfiguration(TransformationConfigurationT &&value)
AWS_BEDROCKAGENTRUNTIME_API Aws::String SerializePayload() const override
AWS_BEDROCKAGENTRUNTIME_API GenerateQueryRequest()=default
const QueryGenerationInput & GetQueryGenerationInput() const
void SetQueryGenerationInput(QueryGenerationInputT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String