AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
TableCellStyle.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/quicksight/QuickSight_EXPORTS.h>
9#include <aws/quicksight/model/FontConfiguration.h>
10#include <aws/quicksight/model/GlobalTableBorderOptions.h>
11#include <aws/quicksight/model/HorizontalTextAlignment.h>
12#include <aws/quicksight/model/TextWrap.h>
13#include <aws/quicksight/model/VerticalTextAlignment.h>
14#include <aws/quicksight/model/Visibility.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace QuickSight {
26namespace Model {
27
35 public:
36 AWS_QUICKSIGHT_API TableCellStyle() = default;
37 AWS_QUICKSIGHT_API TableCellStyle(Aws::Utils::Json::JsonView jsonValue);
38 AWS_QUICKSIGHT_API TableCellStyle& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline Visibility GetVisibility() const { return m_visibility; }
46 inline bool VisibilityHasBeenSet() const { return m_visibilityHasBeenSet; }
47 inline void SetVisibility(Visibility value) {
48 m_visibilityHasBeenSet = true;
49 m_visibility = value;
50 }
52 SetVisibility(value);
53 return *this;
54 }
56
58
61 inline const FontConfiguration& GetFontConfiguration() const { return m_fontConfiguration; }
62 inline bool FontConfigurationHasBeenSet() const { return m_fontConfigurationHasBeenSet; }
63 template <typename FontConfigurationT = FontConfiguration>
64 void SetFontConfiguration(FontConfigurationT&& value) {
65 m_fontConfigurationHasBeenSet = true;
66 m_fontConfiguration = std::forward<FontConfigurationT>(value);
67 }
68 template <typename FontConfigurationT = FontConfiguration>
69 TableCellStyle& WithFontConfiguration(FontConfigurationT&& value) {
70 SetFontConfiguration(std::forward<FontConfigurationT>(value));
71 return *this;
72 }
74
76
79 inline TextWrap GetTextWrap() const { return m_textWrap; }
80 inline bool TextWrapHasBeenSet() const { return m_textWrapHasBeenSet; }
81 inline void SetTextWrap(TextWrap value) {
82 m_textWrapHasBeenSet = true;
83 m_textWrap = value;
84 }
86 SetTextWrap(value);
87 return *this;
88 }
90
92
96 inline HorizontalTextAlignment GetHorizontalTextAlignment() const { return m_horizontalTextAlignment; }
97 inline bool HorizontalTextAlignmentHasBeenSet() const { return m_horizontalTextAlignmentHasBeenSet; }
99 m_horizontalTextAlignmentHasBeenSet = true;
100 m_horizontalTextAlignment = value;
101 }
104 return *this;
105 }
107
109
112 inline VerticalTextAlignment GetVerticalTextAlignment() const { return m_verticalTextAlignment; }
113 inline bool VerticalTextAlignmentHasBeenSet() const { return m_verticalTextAlignmentHasBeenSet; }
115 m_verticalTextAlignmentHasBeenSet = true;
116 m_verticalTextAlignment = value;
117 }
120 return *this;
121 }
123
125
128 inline const Aws::String& GetBackgroundColor() const { return m_backgroundColor; }
129 inline bool BackgroundColorHasBeenSet() const { return m_backgroundColorHasBeenSet; }
130 template <typename BackgroundColorT = Aws::String>
131 void SetBackgroundColor(BackgroundColorT&& value) {
132 m_backgroundColorHasBeenSet = true;
133 m_backgroundColor = std::forward<BackgroundColorT>(value);
134 }
135 template <typename BackgroundColorT = Aws::String>
136 TableCellStyle& WithBackgroundColor(BackgroundColorT&& value) {
137 SetBackgroundColor(std::forward<BackgroundColorT>(value));
138 return *this;
139 }
141
143
146 inline int GetHeight() const { return m_height; }
147 inline bool HeightHasBeenSet() const { return m_heightHasBeenSet; }
148 inline void SetHeight(int value) {
149 m_heightHasBeenSet = true;
150 m_height = value;
151 }
152 inline TableCellStyle& WithHeight(int value) {
153 SetHeight(value);
154 return *this;
155 }
157
159
162 inline const GlobalTableBorderOptions& GetBorder() const { return m_border; }
163 inline bool BorderHasBeenSet() const { return m_borderHasBeenSet; }
164 template <typename BorderT = GlobalTableBorderOptions>
165 void SetBorder(BorderT&& value) {
166 m_borderHasBeenSet = true;
167 m_border = std::forward<BorderT>(value);
168 }
169 template <typename BorderT = GlobalTableBorderOptions>
170 TableCellStyle& WithBorder(BorderT&& value) {
171 SetBorder(std::forward<BorderT>(value));
172 return *this;
173 }
175 private:
176 Visibility m_visibility{Visibility::NOT_SET};
177
178 FontConfiguration m_fontConfiguration;
179
180 TextWrap m_textWrap{TextWrap::NOT_SET};
181
183
185
186 Aws::String m_backgroundColor;
187
188 int m_height{0};
189
190 GlobalTableBorderOptions m_border;
191 bool m_visibilityHasBeenSet = false;
192 bool m_fontConfigurationHasBeenSet = false;
193 bool m_textWrapHasBeenSet = false;
194 bool m_horizontalTextAlignmentHasBeenSet = false;
195 bool m_verticalTextAlignmentHasBeenSet = false;
196 bool m_backgroundColorHasBeenSet = false;
197 bool m_heightHasBeenSet = false;
198 bool m_borderHasBeenSet = false;
199};
200
201} // namespace Model
202} // namespace QuickSight
203} // namespace Aws
const FontConfiguration & GetFontConfiguration() const
const Aws::String & GetBackgroundColor() const
void SetBackgroundColor(BackgroundColorT &&value)
VerticalTextAlignment GetVerticalTextAlignment() const
TableCellStyle & WithBackgroundColor(BackgroundColorT &&value)
TableCellStyle & WithVerticalTextAlignment(VerticalTextAlignment value)
void SetFontConfiguration(FontConfigurationT &&value)
TableCellStyle & WithHorizontalTextAlignment(HorizontalTextAlignment value)
const GlobalTableBorderOptions & GetBorder() const
AWS_QUICKSIGHT_API TableCellStyle & operator=(Aws::Utils::Json::JsonView jsonValue)
HorizontalTextAlignment GetHorizontalTextAlignment() const
void SetHorizontalTextAlignment(HorizontalTextAlignment value)
void SetVerticalTextAlignment(VerticalTextAlignment value)
AWS_QUICKSIGHT_API TableCellStyle(Aws::Utils::Json::JsonView jsonValue)
TableCellStyle & WithBorder(BorderT &&value)
AWS_QUICKSIGHT_API TableCellStyle()=default
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
TableCellStyle & WithTextWrap(TextWrap value)
TableCellStyle & WithVisibility(Visibility value)
TableCellStyle & WithFontConfiguration(FontConfigurationT &&value)
TableCellStyle & WithHeight(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue