AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
VisualPalette.h
1
6#pragma once
7#include <aws/quicksight/QuickSight_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/quicksight/model/DataPathColor.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
35 {
36 public:
37 AWS_QUICKSIGHT_API VisualPalette() = default;
38 AWS_QUICKSIGHT_API VisualPalette(Aws::Utils::Json::JsonView jsonValue);
39 AWS_QUICKSIGHT_API VisualPalette& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetChartColor() const { return m_chartColor; }
48 inline bool ChartColorHasBeenSet() const { return m_chartColorHasBeenSet; }
49 template<typename ChartColorT = Aws::String>
50 void SetChartColor(ChartColorT&& value) { m_chartColorHasBeenSet = true; m_chartColor = std::forward<ChartColorT>(value); }
51 template<typename ChartColorT = Aws::String>
52 VisualPalette& WithChartColor(ChartColorT&& value) { SetChartColor(std::forward<ChartColorT>(value)); return *this;}
54
56
59 inline const Aws::Vector<DataPathColor>& GetColorMap() const { return m_colorMap; }
60 inline bool ColorMapHasBeenSet() const { return m_colorMapHasBeenSet; }
61 template<typename ColorMapT = Aws::Vector<DataPathColor>>
62 void SetColorMap(ColorMapT&& value) { m_colorMapHasBeenSet = true; m_colorMap = std::forward<ColorMapT>(value); }
63 template<typename ColorMapT = Aws::Vector<DataPathColor>>
64 VisualPalette& WithColorMap(ColorMapT&& value) { SetColorMap(std::forward<ColorMapT>(value)); return *this;}
65 template<typename ColorMapT = DataPathColor>
66 VisualPalette& AddColorMap(ColorMapT&& value) { m_colorMapHasBeenSet = true; m_colorMap.emplace_back(std::forward<ColorMapT>(value)); return *this; }
68 private:
69
70 Aws::String m_chartColor;
71 bool m_chartColorHasBeenSet = false;
72
74 bool m_colorMapHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace QuickSight
79} // namespace Aws
AWS_QUICKSIGHT_API VisualPalette(Aws::Utils::Json::JsonView jsonValue)
VisualPalette & WithChartColor(ChartColorT &&value)
const Aws::String & GetChartColor() const
void SetChartColor(ChartColorT &&value)
const Aws::Vector< DataPathColor > & GetColorMap() const
AWS_QUICKSIGHT_API VisualPalette & operator=(Aws::Utils::Json::JsonView jsonValue)
VisualPalette & WithColorMap(ColorMapT &&value)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
VisualPalette & AddColorMap(ColorMapT &&value)
void SetColorMap(ColorMapT &&value)
AWS_QUICKSIGHT_API VisualPalette()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue