AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetChartColor(const Aws::String& value) { m_chartColorHasBeenSet = true; m_chartColor = value; }
50 inline void SetChartColor(Aws::String&& value) { m_chartColorHasBeenSet = true; m_chartColor = std::move(value); }
51 inline void SetChartColor(const char* value) { m_chartColorHasBeenSet = true; m_chartColor.assign(value); }
52 inline VisualPalette& WithChartColor(const Aws::String& value) { SetChartColor(value); return *this;}
53 inline VisualPalette& WithChartColor(Aws::String&& value) { SetChartColor(std::move(value)); return *this;}
54 inline VisualPalette& WithChartColor(const char* value) { SetChartColor(value); return *this;}
56
58
61 inline const Aws::Vector<DataPathColor>& GetColorMap() const{ return m_colorMap; }
62 inline bool ColorMapHasBeenSet() const { return m_colorMapHasBeenSet; }
63 inline void SetColorMap(const Aws::Vector<DataPathColor>& value) { m_colorMapHasBeenSet = true; m_colorMap = value; }
64 inline void SetColorMap(Aws::Vector<DataPathColor>&& value) { m_colorMapHasBeenSet = true; m_colorMap = std::move(value); }
65 inline VisualPalette& WithColorMap(const Aws::Vector<DataPathColor>& value) { SetColorMap(value); return *this;}
66 inline VisualPalette& WithColorMap(Aws::Vector<DataPathColor>&& value) { SetColorMap(std::move(value)); return *this;}
67 inline VisualPalette& AddColorMap(const DataPathColor& value) { m_colorMapHasBeenSet = true; m_colorMap.push_back(value); return *this; }
68 inline VisualPalette& AddColorMap(DataPathColor&& value) { m_colorMapHasBeenSet = true; m_colorMap.push_back(std::move(value)); return *this; }
70 private:
71
72 Aws::String m_chartColor;
73 bool m_chartColorHasBeenSet = false;
74
76 bool m_colorMapHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace QuickSight
81} // namespace Aws
VisualPalette & WithColorMap(const Aws::Vector< DataPathColor > &value)
AWS_QUICKSIGHT_API VisualPalette(Aws::Utils::Json::JsonView jsonValue)
void SetChartColor(const Aws::String &value)
void SetChartColor(const char *value)
VisualPalette & WithChartColor(const char *value)
const Aws::String & GetChartColor() const
VisualPalette & AddColorMap(DataPathColor &&value)
VisualPalette & WithChartColor(const Aws::String &value)
const Aws::Vector< DataPathColor > & GetColorMap() const
AWS_QUICKSIGHT_API VisualPalette & operator=(Aws::Utils::Json::JsonView jsonValue)
VisualPalette & WithChartColor(Aws::String &&value)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetColorMap(const Aws::Vector< DataPathColor > &value)
VisualPalette & AddColorMap(const DataPathColor &value)
void SetChartColor(Aws::String &&value)
void SetColorMap(Aws::Vector< DataPathColor > &&value)
VisualPalette & WithColorMap(Aws::Vector< DataPathColor > &&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