AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
Palette.h
1
6#pragma once
7#include <aws/quicksight/QuickSight_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace QuickSight
22{
23namespace Model
24{
25
31 class Palette
32 {
33 public:
34 AWS_QUICKSIGHT_API Palette() = default;
35 AWS_QUICKSIGHT_API Palette(Aws::Utils::Json::JsonView jsonValue);
36 AWS_QUICKSIGHT_API Palette& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline const Aws::String& GetForeground() const { return m_foreground; }
45 inline bool ForegroundHasBeenSet() const { return m_foregroundHasBeenSet; }
46 template<typename ForegroundT = Aws::String>
47 void SetForeground(ForegroundT&& value) { m_foregroundHasBeenSet = true; m_foreground = std::forward<ForegroundT>(value); }
48 template<typename ForegroundT = Aws::String>
49 Palette& WithForeground(ForegroundT&& value) { SetForeground(std::forward<ForegroundT>(value)); return *this;}
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) { m_backgroundHasBeenSet = true; m_background = std::forward<BackgroundT>(value); }
60 template<typename BackgroundT = Aws::String>
61 Palette& WithBackground(BackgroundT&& value) { SetBackground(std::forward<BackgroundT>(value)); return *this;}
63 private:
64
65 Aws::String m_foreground;
66 bool m_foregroundHasBeenSet = false;
67
68 Aws::String m_background;
69 bool m_backgroundHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace QuickSight
74} // 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:49
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:44
Palette & WithBackground(BackgroundT &&value)
Definition Palette.h:61
bool ForegroundHasBeenSet() const
Definition Palette.h:45
AWS_QUICKSIGHT_API Palette & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetForeground(ForegroundT &&value)
Definition Palette.h:47
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