AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
SheetDefinition.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/quicksight/QuickSight_EXPORTS.h>
10#include <aws/quicksight/model/FilterControl.h>
11#include <aws/quicksight/model/Layout.h>
12#include <aws/quicksight/model/ParameterControl.h>
13#include <aws/quicksight/model/SheetContentType.h>
14#include <aws/quicksight/model/SheetControlLayout.h>
15#include <aws/quicksight/model/SheetImage.h>
16#include <aws/quicksight/model/SheetTextBox.h>
17#include <aws/quicksight/model/Visual.h>
18#include <aws/quicksight/model/VisualCustomActionDefaults.h>
19
20#include <utility>
21
22namespace Aws {
23namespace Utils {
24namespace Json {
25class JsonValue;
26class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace QuickSight {
30namespace Model {
31
40 public:
41 AWS_QUICKSIGHT_API SheetDefinition() = default;
42 AWS_QUICKSIGHT_API SheetDefinition(Aws::Utils::Json::JsonView jsonValue);
44 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
45
47
50 inline const Aws::String& GetSheetId() const { return m_sheetId; }
51 inline bool SheetIdHasBeenSet() const { return m_sheetIdHasBeenSet; }
52 template <typename SheetIdT = Aws::String>
53 void SetSheetId(SheetIdT&& value) {
54 m_sheetIdHasBeenSet = true;
55 m_sheetId = std::forward<SheetIdT>(value);
56 }
57 template <typename SheetIdT = Aws::String>
58 SheetDefinition& WithSheetId(SheetIdT&& value) {
59 SetSheetId(std::forward<SheetIdT>(value));
60 return *this;
61 }
63
65
68 inline const Aws::String& GetTitle() const { return m_title; }
69 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
70 template <typename TitleT = Aws::String>
71 void SetTitle(TitleT&& value) {
72 m_titleHasBeenSet = true;
73 m_title = std::forward<TitleT>(value);
74 }
75 template <typename TitleT = Aws::String>
76 SheetDefinition& WithTitle(TitleT&& value) {
77 SetTitle(std::forward<TitleT>(value));
78 return *this;
79 }
81
83
86 inline const Aws::String& GetDescription() const { return m_description; }
87 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
88 template <typename DescriptionT = Aws::String>
89 void SetDescription(DescriptionT&& value) {
90 m_descriptionHasBeenSet = true;
91 m_description = std::forward<DescriptionT>(value);
92 }
93 template <typename DescriptionT = Aws::String>
94 SheetDefinition& WithDescription(DescriptionT&& value) {
95 SetDescription(std::forward<DescriptionT>(value));
96 return *this;
97 }
99
101
105 inline const Aws::String& GetName() const { return m_name; }
106 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
107 template <typename NameT = Aws::String>
108 void SetName(NameT&& value) {
109 m_nameHasBeenSet = true;
110 m_name = std::forward<NameT>(value);
111 }
112 template <typename NameT = Aws::String>
113 SheetDefinition& WithName(NameT&& value) {
114 SetName(std::forward<NameT>(value));
115 return *this;
116 }
118
120
127 inline const Aws::Vector<ParameterControl>& GetParameterControls() const { return m_parameterControls; }
128 inline bool ParameterControlsHasBeenSet() const { return m_parameterControlsHasBeenSet; }
129 template <typename ParameterControlsT = Aws::Vector<ParameterControl>>
130 void SetParameterControls(ParameterControlsT&& value) {
131 m_parameterControlsHasBeenSet = true;
132 m_parameterControls = std::forward<ParameterControlsT>(value);
133 }
134 template <typename ParameterControlsT = Aws::Vector<ParameterControl>>
135 SheetDefinition& WithParameterControls(ParameterControlsT&& value) {
136 SetParameterControls(std::forward<ParameterControlsT>(value));
137 return *this;
138 }
139 template <typename ParameterControlsT = ParameterControl>
140 SheetDefinition& AddParameterControls(ParameterControlsT&& value) {
141 m_parameterControlsHasBeenSet = true;
142 m_parameterControls.emplace_back(std::forward<ParameterControlsT>(value));
143 return *this;
144 }
146
148
155 inline const Aws::Vector<FilterControl>& GetFilterControls() const { return m_filterControls; }
156 inline bool FilterControlsHasBeenSet() const { return m_filterControlsHasBeenSet; }
157 template <typename FilterControlsT = Aws::Vector<FilterControl>>
158 void SetFilterControls(FilterControlsT&& value) {
159 m_filterControlsHasBeenSet = true;
160 m_filterControls = std::forward<FilterControlsT>(value);
161 }
162 template <typename FilterControlsT = Aws::Vector<FilterControl>>
163 SheetDefinition& WithFilterControls(FilterControlsT&& value) {
164 SetFilterControls(std::forward<FilterControlsT>(value));
165 return *this;
166 }
167 template <typename FilterControlsT = FilterControl>
168 SheetDefinition& AddFilterControls(FilterControlsT&& value) {
169 m_filterControlsHasBeenSet = true;
170 m_filterControls.emplace_back(std::forward<FilterControlsT>(value));
171 return *this;
172 }
174
176
180 inline const Aws::Vector<Visual>& GetVisuals() const { return m_visuals; }
181 inline bool VisualsHasBeenSet() const { return m_visualsHasBeenSet; }
182 template <typename VisualsT = Aws::Vector<Visual>>
183 void SetVisuals(VisualsT&& value) {
184 m_visualsHasBeenSet = true;
185 m_visuals = std::forward<VisualsT>(value);
186 }
187 template <typename VisualsT = Aws::Vector<Visual>>
188 SheetDefinition& WithVisuals(VisualsT&& value) {
189 SetVisuals(std::forward<VisualsT>(value));
190 return *this;
191 }
192 template <typename VisualsT = Visual>
193 SheetDefinition& AddVisuals(VisualsT&& value) {
194 m_visualsHasBeenSet = true;
195 m_visuals.emplace_back(std::forward<VisualsT>(value));
196 return *this;
197 }
199
201
204 inline const Aws::Vector<SheetTextBox>& GetTextBoxes() const { return m_textBoxes; }
205 inline bool TextBoxesHasBeenSet() const { return m_textBoxesHasBeenSet; }
206 template <typename TextBoxesT = Aws::Vector<SheetTextBox>>
207 void SetTextBoxes(TextBoxesT&& value) {
208 m_textBoxesHasBeenSet = true;
209 m_textBoxes = std::forward<TextBoxesT>(value);
210 }
211 template <typename TextBoxesT = Aws::Vector<SheetTextBox>>
212 SheetDefinition& WithTextBoxes(TextBoxesT&& value) {
213 SetTextBoxes(std::forward<TextBoxesT>(value));
214 return *this;
215 }
216 template <typename TextBoxesT = SheetTextBox>
217 SheetDefinition& AddTextBoxes(TextBoxesT&& value) {
218 m_textBoxesHasBeenSet = true;
219 m_textBoxes.emplace_back(std::forward<TextBoxesT>(value));
220 return *this;
221 }
223
225
228 inline const Aws::Vector<SheetImage>& GetImages() const { return m_images; }
229 inline bool ImagesHasBeenSet() const { return m_imagesHasBeenSet; }
230 template <typename ImagesT = Aws::Vector<SheetImage>>
231 void SetImages(ImagesT&& value) {
232 m_imagesHasBeenSet = true;
233 m_images = std::forward<ImagesT>(value);
234 }
235 template <typename ImagesT = Aws::Vector<SheetImage>>
236 SheetDefinition& WithImages(ImagesT&& value) {
237 SetImages(std::forward<ImagesT>(value));
238 return *this;
239 }
240 template <typename ImagesT = SheetImage>
241 SheetDefinition& AddImages(ImagesT&& value) {
242 m_imagesHasBeenSet = true;
243 m_images.emplace_back(std::forward<ImagesT>(value));
244 return *this;
245 }
247
249
255 inline const Aws::Vector<Layout>& GetLayouts() const { return m_layouts; }
256 inline bool LayoutsHasBeenSet() const { return m_layoutsHasBeenSet; }
257 template <typename LayoutsT = Aws::Vector<Layout>>
258 void SetLayouts(LayoutsT&& value) {
259 m_layoutsHasBeenSet = true;
260 m_layouts = std::forward<LayoutsT>(value);
261 }
262 template <typename LayoutsT = Aws::Vector<Layout>>
263 SheetDefinition& WithLayouts(LayoutsT&& value) {
264 SetLayouts(std::forward<LayoutsT>(value));
265 return *this;
266 }
267 template <typename LayoutsT = Layout>
268 SheetDefinition& AddLayouts(LayoutsT&& value) {
269 m_layoutsHasBeenSet = true;
270 m_layouts.emplace_back(std::forward<LayoutsT>(value));
271 return *this;
272 }
274
276
279 inline const Aws::Vector<SheetControlLayout>& GetSheetControlLayouts() const { return m_sheetControlLayouts; }
280 inline bool SheetControlLayoutsHasBeenSet() const { return m_sheetControlLayoutsHasBeenSet; }
281 template <typename SheetControlLayoutsT = Aws::Vector<SheetControlLayout>>
282 void SetSheetControlLayouts(SheetControlLayoutsT&& value) {
283 m_sheetControlLayoutsHasBeenSet = true;
284 m_sheetControlLayouts = std::forward<SheetControlLayoutsT>(value);
285 }
286 template <typename SheetControlLayoutsT = Aws::Vector<SheetControlLayout>>
287 SheetDefinition& WithSheetControlLayouts(SheetControlLayoutsT&& value) {
288 SetSheetControlLayouts(std::forward<SheetControlLayoutsT>(value));
289 return *this;
290 }
291 template <typename SheetControlLayoutsT = SheetControlLayout>
292 SheetDefinition& AddSheetControlLayouts(SheetControlLayoutsT&& value) {
293 m_sheetControlLayoutsHasBeenSet = true;
294 m_sheetControlLayouts.emplace_back(std::forward<SheetControlLayoutsT>(value));
295 return *this;
296 }
298
300
306 inline SheetContentType GetContentType() const { return m_contentType; }
307 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
308 inline void SetContentType(SheetContentType value) {
309 m_contentTypeHasBeenSet = true;
310 m_contentType = value;
311 }
313 SetContentType(value);
314 return *this;
315 }
317
319
322 inline const VisualCustomActionDefaults& GetCustomActionDefaults() const { return m_customActionDefaults; }
323 inline bool CustomActionDefaultsHasBeenSet() const { return m_customActionDefaultsHasBeenSet; }
324 template <typename CustomActionDefaultsT = VisualCustomActionDefaults>
325 void SetCustomActionDefaults(CustomActionDefaultsT&& value) {
326 m_customActionDefaultsHasBeenSet = true;
327 m_customActionDefaults = std::forward<CustomActionDefaultsT>(value);
328 }
329 template <typename CustomActionDefaultsT = VisualCustomActionDefaults>
330 SheetDefinition& WithCustomActionDefaults(CustomActionDefaultsT&& value) {
331 SetCustomActionDefaults(std::forward<CustomActionDefaultsT>(value));
332 return *this;
333 }
335 private:
336 Aws::String m_sheetId;
337
338 Aws::String m_title;
339
340 Aws::String m_description;
341
342 Aws::String m_name;
343
344 Aws::Vector<ParameterControl> m_parameterControls;
345
346 Aws::Vector<FilterControl> m_filterControls;
347
348 Aws::Vector<Visual> m_visuals;
349
350 Aws::Vector<SheetTextBox> m_textBoxes;
351
353
354 Aws::Vector<Layout> m_layouts;
355
356 Aws::Vector<SheetControlLayout> m_sheetControlLayouts;
357
359
360 VisualCustomActionDefaults m_customActionDefaults;
361 bool m_sheetIdHasBeenSet = false;
362 bool m_titleHasBeenSet = false;
363 bool m_descriptionHasBeenSet = false;
364 bool m_nameHasBeenSet = false;
365 bool m_parameterControlsHasBeenSet = false;
366 bool m_filterControlsHasBeenSet = false;
367 bool m_visualsHasBeenSet = false;
368 bool m_textBoxesHasBeenSet = false;
369 bool m_imagesHasBeenSet = false;
370 bool m_layoutsHasBeenSet = false;
371 bool m_sheetControlLayoutsHasBeenSet = false;
372 bool m_contentTypeHasBeenSet = false;
373 bool m_customActionDefaultsHasBeenSet = false;
374};
375
376} // namespace Model
377} // namespace QuickSight
378} // namespace Aws
AWS_QUICKSIGHT_API SheetDefinition()=default
const Aws::Vector< Visual > & GetVisuals() const
const VisualCustomActionDefaults & GetCustomActionDefaults() const
SheetDefinition & WithSheetControlLayouts(SheetControlLayoutsT &&value)
const Aws::Vector< ParameterControl > & GetParameterControls() const
SheetDefinition & AddTextBoxes(TextBoxesT &&value)
const Aws::Vector< FilterControl > & GetFilterControls() const
SheetDefinition & WithParameterControls(ParameterControlsT &&value)
SheetDefinition & WithDescription(DescriptionT &&value)
AWS_QUICKSIGHT_API SheetDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< SheetControlLayout > & GetSheetControlLayouts() const
SheetDefinition & WithCustomActionDefaults(CustomActionDefaultsT &&value)
SheetDefinition & WithTitle(TitleT &&value)
SheetDefinition & AddParameterControls(ParameterControlsT &&value)
void SetDescription(DescriptionT &&value)
const Aws::String & GetDescription() const
void SetSheetControlLayouts(SheetControlLayoutsT &&value)
SheetDefinition & WithImages(ImagesT &&value)
const Aws::Vector< SheetTextBox > & GetTextBoxes() const
SheetDefinition & WithLayouts(LayoutsT &&value)
AWS_QUICKSIGHT_API SheetDefinition(Aws::Utils::Json::JsonView jsonValue)
void SetFilterControls(FilterControlsT &&value)
SheetDefinition & WithContentType(SheetContentType value)
SheetDefinition & AddImages(ImagesT &&value)
SheetDefinition & AddFilterControls(FilterControlsT &&value)
SheetDefinition & AddSheetControlLayouts(SheetControlLayoutsT &&value)
const Aws::Vector< SheetImage > & GetImages() const
SheetDefinition & WithName(NameT &&value)
void SetContentType(SheetContentType value)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
SheetDefinition & WithTextBoxes(TextBoxesT &&value)
SheetDefinition & AddLayouts(LayoutsT &&value)
SheetDefinition & WithFilterControls(FilterControlsT &&value)
SheetDefinition & WithVisuals(VisualsT &&value)
const Aws::String & GetSheetId() const
void SetCustomActionDefaults(CustomActionDefaultsT &&value)
void SetParameterControls(ParameterControlsT &&value)
SheetDefinition & WithSheetId(SheetIdT &&value)
const Aws::String & GetTitle() const
const Aws::Vector< Layout > & GetLayouts() const
const Aws::String & GetName() const
SheetDefinition & AddVisuals(VisualsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue