AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
Palette.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/quicksight/QuickSight_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace QuickSight {
20namespace Model {
21
27class Palette {
28 public:
29 AWS_QUICKSIGHT_API Palette() = default;
30 AWS_QUICKSIGHT_API Palette(Aws::Utils::Json::JsonView jsonValue);
31 AWS_QUICKSIGHT_API Palette& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetForeground() const { return m_foreground; }
39 inline bool ForegroundHasBeenSet() const { return m_foregroundHasBeenSet; }
40 template <typename ForegroundT = Aws::String>
41 void SetForeground(ForegroundT&& value) {
42 m_foregroundHasBeenSet = true;
43 m_foreground = std::forward<ForegroundT>(value);
44 }
45 template <typename ForegroundT = Aws::String>
46 Palette& WithForeground(ForegroundT&& value) {
47 SetForeground(std::forward<ForegroundT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetBackground() const { return m_background; }
57 inline bool BackgroundHasBeenSet() const { return m_backgroundHasBeenSet; }
58 template <typename BackgroundT = Aws::String>
59 void SetBackground(BackgroundT&& value) {
60 m_backgroundHasBeenSet = true;
61 m_background = std::forward<BackgroundT>(value);
62 }
63 template <typename BackgroundT = Aws::String>
64 Palette& WithBackground(BackgroundT&& value) {
65 SetBackground(std::forward<BackgroundT>(value));
66 return *this;
67 }
69 private:
70 Aws::String m_foreground;
71
72 Aws::String m_background;
73 bool m_foregroundHasBeenSet = false;
74 bool m_backgroundHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace QuickSight
79} // namespace Aws
AWS_QUICKSIGHT_API Palette(Aws::Utils::Json::JsonView jsonValue)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
Palette & WithForeground(ForegroundT &&value)
Definition Palette.h:46
void SetBackground(BackgroundT &&value)
Definition Palette.h:59
AWS_QUICKSIGHT_API Palette()=default
bool BackgroundHasBeenSet() const
Definition Palette.h:57
const Aws::String & GetForeground() const
Definition Palette.h:38
Palette & WithBackground(BackgroundT &&value)
Definition Palette.h:64
bool ForegroundHasBeenSet() const
Definition Palette.h:39
AWS_QUICKSIGHT_API Palette & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetForeground(ForegroundT &&value)
Definition Palette.h:41
const Aws::String & GetBackground() const
Definition Palette.h:56
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue