AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
TransformationConfiguration.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/QueryTransformationMode.h>
9#include <aws/bedrock-agent-runtime/model/TextToSqlConfiguration.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace BedrockAgentRuntime {
21namespace Model {
22
30 public:
31 AWS_BEDROCKAGENTRUNTIME_API TransformationConfiguration() = default;
34 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline QueryTransformationMode GetMode() const { return m_mode; }
41 inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; }
42 inline void SetMode(QueryTransformationMode value) {
43 m_modeHasBeenSet = true;
44 m_mode = value;
45 }
47 SetMode(value);
48 return *this;
49 }
51
53
56 inline const TextToSqlConfiguration& GetTextToSqlConfiguration() const { return m_textToSqlConfiguration; }
57 inline bool TextToSqlConfigurationHasBeenSet() const { return m_textToSqlConfigurationHasBeenSet; }
58 template <typename TextToSqlConfigurationT = TextToSqlConfiguration>
60 m_textToSqlConfigurationHasBeenSet = true;
61 m_textToSqlConfiguration = std::forward<TextToSqlConfigurationT>(value);
62 }
63 template <typename TextToSqlConfigurationT = TextToSqlConfiguration>
65 SetTextToSqlConfiguration(std::forward<TextToSqlConfigurationT>(value));
66 return *this;
67 }
69 private:
71
72 TextToSqlConfiguration m_textToSqlConfiguration;
73 bool m_modeHasBeenSet = false;
74 bool m_textToSqlConfigurationHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace BedrockAgentRuntime
79} // namespace Aws
AWS_BEDROCKAGENTRUNTIME_API TransformationConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
TransformationConfiguration & WithTextToSqlConfiguration(TextToSqlConfigurationT &&value)
AWS_BEDROCKAGENTRUNTIME_API TransformationConfiguration()=default
AWS_BEDROCKAGENTRUNTIME_API TransformationConfiguration(Aws::Utils::Json::JsonView jsonValue)
TransformationConfiguration & WithMode(QueryTransformationMode value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue