AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
TextConditionalFormat.h
1
6#pragma once
7#include <aws/quicksight/QuickSight_EXPORTS.h>
8#include <aws/quicksight/model/ConditionalFormattingColor.h>
9#include <aws/quicksight/model/ConditionalFormattingIcon.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace QuickSight {
21namespace Model {
22
29 public:
30 AWS_QUICKSIGHT_API TextConditionalFormat() = default;
33 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const ConditionalFormattingColor& GetBackgroundColor() const { return m_backgroundColor; }
40 inline bool BackgroundColorHasBeenSet() const { return m_backgroundColorHasBeenSet; }
41 template <typename BackgroundColorT = ConditionalFormattingColor>
42 void SetBackgroundColor(BackgroundColorT&& value) {
43 m_backgroundColorHasBeenSet = true;
44 m_backgroundColor = std::forward<BackgroundColorT>(value);
45 }
46 template <typename BackgroundColorT = ConditionalFormattingColor>
47 TextConditionalFormat& WithBackgroundColor(BackgroundColorT&& value) {
48 SetBackgroundColor(std::forward<BackgroundColorT>(value));
49 return *this;
50 }
52
54
57 inline const ConditionalFormattingColor& GetTextColor() const { return m_textColor; }
58 inline bool TextColorHasBeenSet() const { return m_textColorHasBeenSet; }
59 template <typename TextColorT = ConditionalFormattingColor>
60 void SetTextColor(TextColorT&& value) {
61 m_textColorHasBeenSet = true;
62 m_textColor = std::forward<TextColorT>(value);
63 }
64 template <typename TextColorT = ConditionalFormattingColor>
65 TextConditionalFormat& WithTextColor(TextColorT&& value) {
66 SetTextColor(std::forward<TextColorT>(value));
67 return *this;
68 }
70
72
75 inline const ConditionalFormattingIcon& GetIcon() const { return m_icon; }
76 inline bool IconHasBeenSet() const { return m_iconHasBeenSet; }
77 template <typename IconT = ConditionalFormattingIcon>
78 void SetIcon(IconT&& value) {
79 m_iconHasBeenSet = true;
80 m_icon = std::forward<IconT>(value);
81 }
82 template <typename IconT = ConditionalFormattingIcon>
84 SetIcon(std::forward<IconT>(value));
85 return *this;
86 }
88 private:
89 ConditionalFormattingColor m_backgroundColor;
90
92
94 bool m_backgroundColorHasBeenSet = false;
95 bool m_textColorHasBeenSet = false;
96 bool m_iconHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace QuickSight
101} // namespace Aws
AWS_QUICKSIGHT_API TextConditionalFormat(Aws::Utils::Json::JsonView jsonValue)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_QUICKSIGHT_API TextConditionalFormat()=default
TextConditionalFormat & WithBackgroundColor(BackgroundColorT &&value)
TextConditionalFormat & WithTextColor(TextColorT &&value)
TextConditionalFormat & WithIcon(IconT &&value)
const ConditionalFormattingColor & GetTextColor() const
AWS_QUICKSIGHT_API TextConditionalFormat & operator=(Aws::Utils::Json::JsonView jsonValue)
const ConditionalFormattingIcon & GetIcon() const
const ConditionalFormattingColor & GetBackgroundColor() const
Aws::Utils::Json::JsonValue JsonValue