AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
GridLayoutConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/quicksight/QuickSight_EXPORTS.h>
9#include <aws/quicksight/model/GridLayoutCanvasSizeOptions.h>
10#include <aws/quicksight/model/GridLayoutElement.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace QuickSight {
22namespace Model {
23
33 public:
34 AWS_QUICKSIGHT_API GridLayoutConfiguration() = default;
37 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::Vector<GridLayoutElement>& GetElements() const { return m_elements; }
44 inline bool ElementsHasBeenSet() const { return m_elementsHasBeenSet; }
45 template <typename ElementsT = Aws::Vector<GridLayoutElement>>
46 void SetElements(ElementsT&& value) {
47 m_elementsHasBeenSet = true;
48 m_elements = std::forward<ElementsT>(value);
49 }
50 template <typename ElementsT = Aws::Vector<GridLayoutElement>>
52 SetElements(std::forward<ElementsT>(value));
53 return *this;
54 }
55 template <typename ElementsT = GridLayoutElement>
57 m_elementsHasBeenSet = true;
58 m_elements.emplace_back(std::forward<ElementsT>(value));
59 return *this;
60 }
62
64
65 inline const GridLayoutCanvasSizeOptions& GetCanvasSizeOptions() const { return m_canvasSizeOptions; }
66 inline bool CanvasSizeOptionsHasBeenSet() const { return m_canvasSizeOptionsHasBeenSet; }
67 template <typename CanvasSizeOptionsT = GridLayoutCanvasSizeOptions>
68 void SetCanvasSizeOptions(CanvasSizeOptionsT&& value) {
69 m_canvasSizeOptionsHasBeenSet = true;
70 m_canvasSizeOptions = std::forward<CanvasSizeOptionsT>(value);
71 }
72 template <typename CanvasSizeOptionsT = GridLayoutCanvasSizeOptions>
73 GridLayoutConfiguration& WithCanvasSizeOptions(CanvasSizeOptionsT&& value) {
74 SetCanvasSizeOptions(std::forward<CanvasSizeOptionsT>(value));
75 return *this;
76 }
78 private:
80
81 GridLayoutCanvasSizeOptions m_canvasSizeOptions;
82 bool m_elementsHasBeenSet = false;
83 bool m_canvasSizeOptionsHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace QuickSight
88} // namespace Aws
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_QUICKSIGHT_API GridLayoutConfiguration(Aws::Utils::Json::JsonView jsonValue)
GridLayoutConfiguration & AddElements(ElementsT &&value)
AWS_QUICKSIGHT_API GridLayoutConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
const GridLayoutCanvasSizeOptions & GetCanvasSizeOptions() const
const Aws::Vector< GridLayoutElement > & GetElements() const
GridLayoutConfiguration & WithCanvasSizeOptions(CanvasSizeOptionsT &&value)
AWS_QUICKSIGHT_API GridLayoutConfiguration()=default
GridLayoutConfiguration & WithElements(ElementsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue