AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GenerateQueryRequest.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/QueryGenerationInput.h>
10#include <aws/bedrock-agent-runtime/model/TransformationConfiguration.h>
11#include <utility>
12
13namespace Aws
14{
15namespace BedrockAgentRuntime
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_BEDROCKAGENTRUNTIME_API GenerateQueryRequest() = 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 "GenerateQuery"; }
32
33 AWS_BEDROCKAGENTRUNTIME_API Aws::String SerializePayload() const override;
34
35
37
41 inline const QueryGenerationInput& GetQueryGenerationInput() const { return m_queryGenerationInput; }
42 inline bool QueryGenerationInputHasBeenSet() const { return m_queryGenerationInputHasBeenSet; }
43 template<typename QueryGenerationInputT = QueryGenerationInput>
44 void SetQueryGenerationInput(QueryGenerationInputT&& value) { m_queryGenerationInputHasBeenSet = true; m_queryGenerationInput = std::forward<QueryGenerationInputT>(value); }
45 template<typename QueryGenerationInputT = QueryGenerationInput>
46 GenerateQueryRequest& WithQueryGenerationInput(QueryGenerationInputT&& value) { SetQueryGenerationInput(std::forward<QueryGenerationInputT>(value)); return *this;}
48
50
54 inline const TransformationConfiguration& GetTransformationConfiguration() const { return m_transformationConfiguration; }
55 inline bool TransformationConfigurationHasBeenSet() const { return m_transformationConfigurationHasBeenSet; }
56 template<typename TransformationConfigurationT = TransformationConfiguration>
57 void SetTransformationConfiguration(TransformationConfigurationT&& value) { m_transformationConfigurationHasBeenSet = true; m_transformationConfiguration = std::forward<TransformationConfigurationT>(value); }
58 template<typename TransformationConfigurationT = TransformationConfiguration>
59 GenerateQueryRequest& WithTransformationConfiguration(TransformationConfigurationT&& value) { SetTransformationConfiguration(std::forward<TransformationConfigurationT>(value)); return *this;}
61 private:
62
63 QueryGenerationInput m_queryGenerationInput;
64 bool m_queryGenerationInputHasBeenSet = false;
65
66 TransformationConfiguration m_transformationConfiguration;
67 bool m_transformationConfigurationHasBeenSet = false;
68 };
69
70} // namespace Model
71} // namespace BedrockAgentRuntime
72} // 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::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String