AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
DataLabelOptions.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/quicksight/QuickSight_EXPORTS.h>
10#include <aws/quicksight/model/DataLabelContent.h>
11#include <aws/quicksight/model/DataLabelOverlap.h>
12#include <aws/quicksight/model/DataLabelPosition.h>
13#include <aws/quicksight/model/DataLabelType.h>
14#include <aws/quicksight/model/FontConfiguration.h>
15#include <aws/quicksight/model/Visibility.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace QuickSight {
27namespace Model {
28
36 public:
37 AWS_QUICKSIGHT_API DataLabelOptions() = default;
38 AWS_QUICKSIGHT_API DataLabelOptions(Aws::Utils::Json::JsonView jsonValue);
40 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
46 inline Visibility GetVisibility() const { return m_visibility; }
47 inline bool VisibilityHasBeenSet() const { return m_visibilityHasBeenSet; }
48 inline void SetVisibility(Visibility value) {
49 m_visibilityHasBeenSet = true;
50 m_visibility = value;
51 }
53 SetVisibility(value);
54 return *this;
55 }
57
59
62 inline Visibility GetCategoryLabelVisibility() const { return m_categoryLabelVisibility; }
63 inline bool CategoryLabelVisibilityHasBeenSet() const { return m_categoryLabelVisibilityHasBeenSet; }
65 m_categoryLabelVisibilityHasBeenSet = true;
66 m_categoryLabelVisibility = value;
67 }
70 return *this;
71 }
73
75
78 inline Visibility GetMeasureLabelVisibility() const { return m_measureLabelVisibility; }
79 inline bool MeasureLabelVisibilityHasBeenSet() const { return m_measureLabelVisibilityHasBeenSet; }
81 m_measureLabelVisibilityHasBeenSet = true;
82 m_measureLabelVisibility = value;
83 }
86 return *this;
87 }
89
91
94 inline const Aws::Vector<DataLabelType>& GetDataLabelTypes() const { return m_dataLabelTypes; }
95 inline bool DataLabelTypesHasBeenSet() const { return m_dataLabelTypesHasBeenSet; }
96 template <typename DataLabelTypesT = Aws::Vector<DataLabelType>>
97 void SetDataLabelTypes(DataLabelTypesT&& value) {
98 m_dataLabelTypesHasBeenSet = true;
99 m_dataLabelTypes = std::forward<DataLabelTypesT>(value);
100 }
101 template <typename DataLabelTypesT = Aws::Vector<DataLabelType>>
102 DataLabelOptions& WithDataLabelTypes(DataLabelTypesT&& value) {
103 SetDataLabelTypes(std::forward<DataLabelTypesT>(value));
104 return *this;
105 }
106 template <typename DataLabelTypesT = DataLabelType>
107 DataLabelOptions& AddDataLabelTypes(DataLabelTypesT&& value) {
108 m_dataLabelTypesHasBeenSet = true;
109 m_dataLabelTypes.emplace_back(std::forward<DataLabelTypesT>(value));
110 return *this;
111 }
113
115
118 inline DataLabelPosition GetPosition() const { return m_position; }
119 inline bool PositionHasBeenSet() const { return m_positionHasBeenSet; }
120 inline void SetPosition(DataLabelPosition value) {
121 m_positionHasBeenSet = true;
122 m_position = value;
123 }
125 SetPosition(value);
126 return *this;
127 }
129
131
134 inline DataLabelContent GetLabelContent() const { return m_labelContent; }
135 inline bool LabelContentHasBeenSet() const { return m_labelContentHasBeenSet; }
137 m_labelContentHasBeenSet = true;
138 m_labelContent = value;
139 }
141 SetLabelContent(value);
142 return *this;
143 }
145
147
150 inline const FontConfiguration& GetLabelFontConfiguration() const { return m_labelFontConfiguration; }
151 inline bool LabelFontConfigurationHasBeenSet() const { return m_labelFontConfigurationHasBeenSet; }
152 template <typename LabelFontConfigurationT = FontConfiguration>
153 void SetLabelFontConfiguration(LabelFontConfigurationT&& value) {
154 m_labelFontConfigurationHasBeenSet = true;
155 m_labelFontConfiguration = std::forward<LabelFontConfigurationT>(value);
156 }
157 template <typename LabelFontConfigurationT = FontConfiguration>
158 DataLabelOptions& WithLabelFontConfiguration(LabelFontConfigurationT&& value) {
159 SetLabelFontConfiguration(std::forward<LabelFontConfigurationT>(value));
160 return *this;
161 }
163
165
168 inline const Aws::String& GetLabelColor() const { return m_labelColor; }
169 inline bool LabelColorHasBeenSet() const { return m_labelColorHasBeenSet; }
170 template <typename LabelColorT = Aws::String>
171 void SetLabelColor(LabelColorT&& value) {
172 m_labelColorHasBeenSet = true;
173 m_labelColor = std::forward<LabelColorT>(value);
174 }
175 template <typename LabelColorT = Aws::String>
176 DataLabelOptions& WithLabelColor(LabelColorT&& value) {
177 SetLabelColor(std::forward<LabelColorT>(value));
178 return *this;
179 }
181
183
186 inline DataLabelOverlap GetOverlap() const { return m_overlap; }
187 inline bool OverlapHasBeenSet() const { return m_overlapHasBeenSet; }
188 inline void SetOverlap(DataLabelOverlap value) {
189 m_overlapHasBeenSet = true;
190 m_overlap = value;
191 }
193 SetOverlap(value);
194 return *this;
195 }
197
199
202 inline Visibility GetTotalsVisibility() const { return m_totalsVisibility; }
203 inline bool TotalsVisibilityHasBeenSet() const { return m_totalsVisibilityHasBeenSet; }
204 inline void SetTotalsVisibility(Visibility value) {
205 m_totalsVisibilityHasBeenSet = true;
206 m_totalsVisibility = value;
207 }
209 SetTotalsVisibility(value);
210 return *this;
211 }
213 private:
214 Visibility m_visibility{Visibility::NOT_SET};
215
216 Visibility m_categoryLabelVisibility{Visibility::NOT_SET};
217
218 Visibility m_measureLabelVisibility{Visibility::NOT_SET};
219
220 Aws::Vector<DataLabelType> m_dataLabelTypes;
221
223
225
226 FontConfiguration m_labelFontConfiguration;
227
228 Aws::String m_labelColor;
229
231
232 Visibility m_totalsVisibility{Visibility::NOT_SET};
233 bool m_visibilityHasBeenSet = false;
234 bool m_categoryLabelVisibilityHasBeenSet = false;
235 bool m_measureLabelVisibilityHasBeenSet = false;
236 bool m_dataLabelTypesHasBeenSet = false;
237 bool m_positionHasBeenSet = false;
238 bool m_labelContentHasBeenSet = false;
239 bool m_labelFontConfigurationHasBeenSet = false;
240 bool m_labelColorHasBeenSet = false;
241 bool m_overlapHasBeenSet = false;
242 bool m_totalsVisibilityHasBeenSet = false;
243};
244
245} // namespace Model
246} // namespace QuickSight
247} // namespace Aws
const Aws::Vector< DataLabelType > & GetDataLabelTypes() const
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
DataLabelOptions & WithCategoryLabelVisibility(Visibility value)
void SetLabelContent(DataLabelContent value)
const Aws::String & GetLabelColor() const
DataLabelOptions & WithMeasureLabelVisibility(Visibility value)
void SetCategoryLabelVisibility(Visibility value)
AWS_QUICKSIGHT_API DataLabelOptions()=default
DataLabelOptions & WithDataLabelTypes(DataLabelTypesT &&value)
void SetMeasureLabelVisibility(Visibility value)
void SetLabelFontConfiguration(LabelFontConfigurationT &&value)
DataLabelOptions & WithLabelFontConfiguration(LabelFontConfigurationT &&value)
AWS_QUICKSIGHT_API DataLabelOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_QUICKSIGHT_API DataLabelOptions(Aws::Utils::Json::JsonView jsonValue)
DataLabelOptions & WithVisibility(Visibility value)
DataLabelOptions & WithLabelColor(LabelColorT &&value)
void SetPosition(DataLabelPosition value)
DataLabelOptions & WithLabelContent(DataLabelContent value)
void SetDataLabelTypes(DataLabelTypesT &&value)
DataLabelOptions & AddDataLabelTypes(DataLabelTypesT &&value)
const FontConfiguration & GetLabelFontConfiguration() const
DataLabelOptions & WithOverlap(DataLabelOverlap value)
DataLabelOptions & WithTotalsVisibility(Visibility value)
void SetOverlap(DataLabelOverlap value)
DataLabelOptions & WithPosition(DataLabelPosition value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue