AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
QueryGenerationContext.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/bedrock-agent/model/CuratedQuery.h>
9#include <aws/bedrock-agent/model/QueryGenerationTable.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace BedrockAgent {
22namespace Model {
23
31 public:
32 AWS_BEDROCKAGENT_API QueryGenerationContext() = default;
35 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::Vector<QueryGenerationTable>& GetTables() const { return m_tables; }
43 inline bool TablesHasBeenSet() const { return m_tablesHasBeenSet; }
44 template <typename TablesT = Aws::Vector<QueryGenerationTable>>
45 void SetTables(TablesT&& value) {
46 m_tablesHasBeenSet = true;
47 m_tables = std::forward<TablesT>(value);
48 }
49 template <typename TablesT = Aws::Vector<QueryGenerationTable>>
51 SetTables(std::forward<TablesT>(value));
52 return *this;
53 }
54 template <typename TablesT = QueryGenerationTable>
56 m_tablesHasBeenSet = true;
57 m_tables.emplace_back(std::forward<TablesT>(value));
58 return *this;
59 }
61
63
67 inline const Aws::Vector<CuratedQuery>& GetCuratedQueries() const { return m_curatedQueries; }
68 inline bool CuratedQueriesHasBeenSet() const { return m_curatedQueriesHasBeenSet; }
69 template <typename CuratedQueriesT = Aws::Vector<CuratedQuery>>
71 m_curatedQueriesHasBeenSet = true;
72 m_curatedQueries = std::forward<CuratedQueriesT>(value);
73 }
74 template <typename CuratedQueriesT = Aws::Vector<CuratedQuery>>
76 SetCuratedQueries(std::forward<CuratedQueriesT>(value));
77 return *this;
78 }
79 template <typename CuratedQueriesT = CuratedQuery>
81 m_curatedQueriesHasBeenSet = true;
82 m_curatedQueries.emplace_back(std::forward<CuratedQueriesT>(value));
83 return *this;
84 }
86 private:
88
89 Aws::Vector<CuratedQuery> m_curatedQueries;
90 bool m_tablesHasBeenSet = false;
91 bool m_curatedQueriesHasBeenSet = false;
92};
93
94} // namespace Model
95} // namespace BedrockAgent
96} // namespace Aws
const Aws::Vector< QueryGenerationTable > & GetTables() const
AWS_BEDROCKAGENT_API QueryGenerationContext()=default
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
QueryGenerationContext & WithTables(TablesT &&value)
AWS_BEDROCKAGENT_API QueryGenerationContext(Aws::Utils::Json::JsonView jsonValue)
QueryGenerationContext & AddTables(TablesT &&value)
AWS_BEDROCKAGENT_API QueryGenerationContext & operator=(Aws::Utils::Json::JsonView jsonValue)
QueryGenerationContext & AddCuratedQueries(CuratedQueriesT &&value)
const Aws::Vector< CuratedQuery > & GetCuratedQueries() const
QueryGenerationContext & WithCuratedQueries(CuratedQueriesT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue