AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace QuickSight
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_QUICKSIGHT_API TextConditionalFormat() = default;
38 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const ConditionalFormattingColor& GetBackgroundColor() const { return m_backgroundColor; }
46 inline bool BackgroundColorHasBeenSet() const { return m_backgroundColorHasBeenSet; }
47 template<typename BackgroundColorT = ConditionalFormattingColor>
48 void SetBackgroundColor(BackgroundColorT&& value) { m_backgroundColorHasBeenSet = true; m_backgroundColor = std::forward<BackgroundColorT>(value); }
49 template<typename BackgroundColorT = ConditionalFormattingColor>
50 TextConditionalFormat& WithBackgroundColor(BackgroundColorT&& value) { SetBackgroundColor(std::forward<BackgroundColorT>(value)); return *this;}
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) { m_textColorHasBeenSet = true; m_textColor = std::forward<TextColorT>(value); }
61 template<typename TextColorT = ConditionalFormattingColor>
62 TextConditionalFormat& WithTextColor(TextColorT&& value) { SetTextColor(std::forward<TextColorT>(value)); return *this;}
64
66
69 inline const ConditionalFormattingIcon& GetIcon() const { return m_icon; }
70 inline bool IconHasBeenSet() const { return m_iconHasBeenSet; }
71 template<typename IconT = ConditionalFormattingIcon>
72 void SetIcon(IconT&& value) { m_iconHasBeenSet = true; m_icon = std::forward<IconT>(value); }
73 template<typename IconT = ConditionalFormattingIcon>
74 TextConditionalFormat& WithIcon(IconT&& value) { SetIcon(std::forward<IconT>(value)); return *this;}
76 private:
77
78 ConditionalFormattingColor m_backgroundColor;
79 bool m_backgroundColorHasBeenSet = false;
80
82 bool m_textColorHasBeenSet = false;
83
85 bool m_iconHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace QuickSight
90} // 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