AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
QQueryCard.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/qapps/QApps_EXPORTS.h>
10#include <aws/qapps/model/AttributeFilter.h>
11#include <aws/qapps/model/CardOutputSource.h>
12#include <aws/qapps/model/CardType.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace QApps {
24namespace Model {
25
33 public:
34 AWS_QAPPS_API QQueryCard() = default;
37 AWS_QAPPS_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetId() const { return m_id; }
44 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
45 template <typename IdT = Aws::String>
46 void SetId(IdT&& value) {
47 m_idHasBeenSet = true;
48 m_id = std::forward<IdT>(value);
49 }
50 template <typename IdT = Aws::String>
51 QQueryCard& WithId(IdT&& value) {
52 SetId(std::forward<IdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetTitle() const { return m_title; }
62 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
63 template <typename TitleT = Aws::String>
64 void SetTitle(TitleT&& value) {
65 m_titleHasBeenSet = true;
66 m_title = std::forward<TitleT>(value);
67 }
68 template <typename TitleT = Aws::String>
70 SetTitle(std::forward<TitleT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::Vector<Aws::String>& GetDependencies() const { return m_dependencies; }
80 inline bool DependenciesHasBeenSet() const { return m_dependenciesHasBeenSet; }
81 template <typename DependenciesT = Aws::Vector<Aws::String>>
83 m_dependenciesHasBeenSet = true;
84 m_dependencies = std::forward<DependenciesT>(value);
85 }
86 template <typename DependenciesT = Aws::Vector<Aws::String>>
88 SetDependencies(std::forward<DependenciesT>(value));
89 return *this;
90 }
91 template <typename DependenciesT = Aws::String>
93 m_dependenciesHasBeenSet = true;
94 m_dependencies.emplace_back(std::forward<DependenciesT>(value));
95 return *this;
96 }
98
100
103 inline CardType GetType() const { return m_type; }
104 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
105 inline void SetType(CardType value) {
106 m_typeHasBeenSet = true;
107 m_type = value;
108 }
109 inline QQueryCard& WithType(CardType value) {
110 SetType(value);
111 return *this;
112 }
114
116
119 inline const Aws::String& GetPrompt() const { return m_prompt; }
120 inline bool PromptHasBeenSet() const { return m_promptHasBeenSet; }
121 template <typename PromptT = Aws::String>
122 void SetPrompt(PromptT&& value) {
123 m_promptHasBeenSet = true;
124 m_prompt = std::forward<PromptT>(value);
125 }
126 template <typename PromptT = Aws::String>
128 SetPrompt(std::forward<PromptT>(value));
129 return *this;
130 }
132
134
137 inline CardOutputSource GetOutputSource() const { return m_outputSource; }
138 inline bool OutputSourceHasBeenSet() const { return m_outputSourceHasBeenSet; }
140 m_outputSourceHasBeenSet = true;
141 m_outputSource = value;
142 }
144 SetOutputSource(value);
145 return *this;
146 }
148
150
154 inline const AttributeFilter& GetAttributeFilter() const { return m_attributeFilter; }
155 inline bool AttributeFilterHasBeenSet() const { return m_attributeFilterHasBeenSet; }
156 template <typename AttributeFilterT = AttributeFilter>
158 m_attributeFilterHasBeenSet = true;
159 m_attributeFilter = std::forward<AttributeFilterT>(value);
160 }
161 template <typename AttributeFilterT = AttributeFilter>
163 SetAttributeFilter(std::forward<AttributeFilterT>(value));
164 return *this;
165 }
167
169
173 inline const Aws::Vector<Aws::String>& GetMemoryReferences() const { return m_memoryReferences; }
174 inline bool MemoryReferencesHasBeenSet() const { return m_memoryReferencesHasBeenSet; }
175 template <typename MemoryReferencesT = Aws::Vector<Aws::String>>
177 m_memoryReferencesHasBeenSet = true;
178 m_memoryReferences = std::forward<MemoryReferencesT>(value);
179 }
180 template <typename MemoryReferencesT = Aws::Vector<Aws::String>>
182 SetMemoryReferences(std::forward<MemoryReferencesT>(value));
183 return *this;
184 }
185 template <typename MemoryReferencesT = Aws::String>
187 m_memoryReferencesHasBeenSet = true;
188 m_memoryReferences.emplace_back(std::forward<MemoryReferencesT>(value));
189 return *this;
190 }
192 private:
193 Aws::String m_id;
194
195 Aws::String m_title;
196
197 Aws::Vector<Aws::String> m_dependencies;
198
200
201 Aws::String m_prompt;
202
204
205 AttributeFilter m_attributeFilter;
206
207 Aws::Vector<Aws::String> m_memoryReferences;
208 bool m_idHasBeenSet = false;
209 bool m_titleHasBeenSet = false;
210 bool m_dependenciesHasBeenSet = false;
211 bool m_typeHasBeenSet = false;
212 bool m_promptHasBeenSet = false;
213 bool m_outputSourceHasBeenSet = false;
214 bool m_attributeFilterHasBeenSet = false;
215 bool m_memoryReferencesHasBeenSet = false;
216};
217
218} // namespace Model
219} // namespace QApps
220} // namespace Aws
const Aws::String & GetTitle() const
Definition QQueryCard.h:61
const AttributeFilter & GetAttributeFilter() const
Definition QQueryCard.h:154
AWS_QAPPS_API QQueryCard(Aws::Utils::Json::JsonView jsonValue)
void SetOutputSource(CardOutputSource value)
Definition QQueryCard.h:139
bool DependenciesHasBeenSet() const
Definition QQueryCard.h:80
QQueryCard & WithDependencies(DependenciesT &&value)
Definition QQueryCard.h:87
AWS_QAPPS_API QQueryCard()=default
QQueryCard & WithType(CardType value)
Definition QQueryCard.h:109
void SetMemoryReferences(MemoryReferencesT &&value)
Definition QQueryCard.h:176
void SetTitle(TitleT &&value)
Definition QQueryCard.h:64
const Aws::Vector< Aws::String > & GetDependencies() const
Definition QQueryCard.h:79
QQueryCard & WithId(IdT &&value)
Definition QQueryCard.h:51
void SetPrompt(PromptT &&value)
Definition QQueryCard.h:122
const Aws::String & GetPrompt() const
Definition QQueryCard.h:119
QQueryCard & WithAttributeFilter(AttributeFilterT &&value)
Definition QQueryCard.h:162
QQueryCard & AddDependencies(DependenciesT &&value)
Definition QQueryCard.h:92
bool OutputSourceHasBeenSet() const
Definition QQueryCard.h:138
void SetAttributeFilter(AttributeFilterT &&value)
Definition QQueryCard.h:157
QQueryCard & WithOutputSource(CardOutputSource value)
Definition QQueryCard.h:143
void SetDependencies(DependenciesT &&value)
Definition QQueryCard.h:82
const Aws::String & GetId() const
Definition QQueryCard.h:43
AWS_QAPPS_API QQueryCard & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_QAPPS_API Aws::Utils::Json::JsonValue Jsonize() const
bool MemoryReferencesHasBeenSet() const
Definition QQueryCard.h:174
void SetId(IdT &&value)
Definition QQueryCard.h:46
QQueryCard & WithTitle(TitleT &&value)
Definition QQueryCard.h:69
QQueryCard & AddMemoryReferences(MemoryReferencesT &&value)
Definition QQueryCard.h:186
const Aws::Vector< Aws::String > & GetMemoryReferences() const
Definition QQueryCard.h:173
QQueryCard & WithPrompt(PromptT &&value)
Definition QQueryCard.h:127
QQueryCard & WithMemoryReferences(MemoryReferencesT &&value)
Definition QQueryCard.h:181
bool AttributeFilterHasBeenSet() const
Definition QQueryCard.h:155
void SetType(CardType value)
Definition QQueryCard.h:105
CardOutputSource GetOutputSource() const
Definition QQueryCard.h:137
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue