AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
FreeFormLayoutConfiguration.h
1
6#pragma once
7#include <aws/quicksight/QuickSight_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/quicksight/model/FreeFormLayoutCanvasSizeOptions.h>
10#include <aws/quicksight/model/FreeFormLayoutElement.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 QuickSight
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_QUICKSIGHT_API FreeFormLayoutConfiguration() = default;
39 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::Vector<FreeFormLayoutElement>& GetElements() const { return m_elements; }
47 inline bool ElementsHasBeenSet() const { return m_elementsHasBeenSet; }
48 template<typename ElementsT = Aws::Vector<FreeFormLayoutElement>>
49 void SetElements(ElementsT&& value) { m_elementsHasBeenSet = true; m_elements = std::forward<ElementsT>(value); }
50 template<typename ElementsT = Aws::Vector<FreeFormLayoutElement>>
51 FreeFormLayoutConfiguration& WithElements(ElementsT&& value) { SetElements(std::forward<ElementsT>(value)); return *this;}
52 template<typename ElementsT = FreeFormLayoutElement>
53 FreeFormLayoutConfiguration& AddElements(ElementsT&& value) { m_elementsHasBeenSet = true; m_elements.emplace_back(std::forward<ElementsT>(value)); return *this; }
55
57
58 inline const FreeFormLayoutCanvasSizeOptions& GetCanvasSizeOptions() const { return m_canvasSizeOptions; }
59 inline bool CanvasSizeOptionsHasBeenSet() const { return m_canvasSizeOptionsHasBeenSet; }
60 template<typename CanvasSizeOptionsT = FreeFormLayoutCanvasSizeOptions>
61 void SetCanvasSizeOptions(CanvasSizeOptionsT&& value) { m_canvasSizeOptionsHasBeenSet = true; m_canvasSizeOptions = std::forward<CanvasSizeOptionsT>(value); }
62 template<typename CanvasSizeOptionsT = FreeFormLayoutCanvasSizeOptions>
63 FreeFormLayoutConfiguration& WithCanvasSizeOptions(CanvasSizeOptionsT&& value) { SetCanvasSizeOptions(std::forward<CanvasSizeOptionsT>(value)); return *this;}
65 private:
66
68 bool m_elementsHasBeenSet = false;
69
70 FreeFormLayoutCanvasSizeOptions m_canvasSizeOptions;
71 bool m_canvasSizeOptionsHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace QuickSight
76} // namespace Aws
AWS_QUICKSIGHT_API FreeFormLayoutConfiguration()=default
FreeFormLayoutConfiguration & WithCanvasSizeOptions(CanvasSizeOptionsT &&value)
const FreeFormLayoutCanvasSizeOptions & GetCanvasSizeOptions() const
FreeFormLayoutConfiguration & WithElements(ElementsT &&value)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
FreeFormLayoutConfiguration & AddElements(ElementsT &&value)
AWS_QUICKSIGHT_API FreeFormLayoutConfiguration(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< FreeFormLayoutElement > & GetElements() const
AWS_QUICKSIGHT_API FreeFormLayoutConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue