AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
GeneratedQuery.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/GeneratedQueryType.h>
9#include <aws/core/utils/memory/stl/AWSString.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 GeneratedQuery() = default;
34 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetSql() const { return m_sql; }
41 inline bool SqlHasBeenSet() const { return m_sqlHasBeenSet; }
42 template <typename SqlT = Aws::String>
43 void SetSql(SqlT&& value) {
44 m_sqlHasBeenSet = true;
45 m_sql = std::forward<SqlT>(value);
46 }
47 template <typename SqlT = Aws::String>
49 SetSql(std::forward<SqlT>(value));
50 return *this;
51 }
53
55
58 inline GeneratedQueryType GetType() const { return m_type; }
59 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
60 inline void SetType(GeneratedQueryType value) {
61 m_typeHasBeenSet = true;
62 m_type = value;
63 }
65 SetType(value);
66 return *this;
67 }
69 private:
70 Aws::String m_sql;
71
73 bool m_sqlHasBeenSet = false;
74 bool m_typeHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace BedrockAgentRuntime
79} // namespace Aws
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
GeneratedQuery & WithType(GeneratedQueryType value)
AWS_BEDROCKAGENTRUNTIME_API GeneratedQuery(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API GeneratedQuery & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API GeneratedQuery()=default
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue