AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
QueryGenerationContext.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/bedrock-agent/model/CuratedQuery.h>
10#include <aws/bedrock-agent/model/QueryGenerationTable.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace BedrockAgent
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_BEDROCKAGENT_API QueryGenerationContext() = default;
38 AWS_BEDROCKAGENT_API QueryGenerationContext(Aws::Utils::Json::JsonView jsonValue);
40 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::Vector<CuratedQuery>& GetCuratedQueries() const { return m_curatedQueries; }
49 inline bool CuratedQueriesHasBeenSet() const { return m_curatedQueriesHasBeenSet; }
50 template<typename CuratedQueriesT = Aws::Vector<CuratedQuery>>
51 void SetCuratedQueries(CuratedQueriesT&& value) { m_curatedQueriesHasBeenSet = true; m_curatedQueries = std::forward<CuratedQueriesT>(value); }
52 template<typename CuratedQueriesT = Aws::Vector<CuratedQuery>>
53 QueryGenerationContext& WithCuratedQueries(CuratedQueriesT&& value) { SetCuratedQueries(std::forward<CuratedQueriesT>(value)); return *this;}
54 template<typename CuratedQueriesT = CuratedQuery>
55 QueryGenerationContext& AddCuratedQueries(CuratedQueriesT&& value) { m_curatedQueriesHasBeenSet = true; m_curatedQueries.emplace_back(std::forward<CuratedQueriesT>(value)); return *this; }
57
59
63 inline const Aws::Vector<QueryGenerationTable>& GetTables() const { return m_tables; }
64 inline bool TablesHasBeenSet() const { return m_tablesHasBeenSet; }
65 template<typename TablesT = Aws::Vector<QueryGenerationTable>>
66 void SetTables(TablesT&& value) { m_tablesHasBeenSet = true; m_tables = std::forward<TablesT>(value); }
67 template<typename TablesT = Aws::Vector<QueryGenerationTable>>
68 QueryGenerationContext& WithTables(TablesT&& value) { SetTables(std::forward<TablesT>(value)); return *this;}
69 template<typename TablesT = QueryGenerationTable>
70 QueryGenerationContext& AddTables(TablesT&& value) { m_tablesHasBeenSet = true; m_tables.emplace_back(std::forward<TablesT>(value)); return *this; }
72 private:
73
74 Aws::Vector<CuratedQuery> m_curatedQueries;
75 bool m_curatedQueriesHasBeenSet = false;
76
78 bool m_tablesHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace BedrockAgent
83} // 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::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue