AWS SDK for C++

AWS SDK for C++ Version 1.11.782

Loading...
Searching...
No Matches
SparklinesOptions.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/DimensionField.h>
10#include <aws/quicksight/model/LineChartMarkerStyleSettings.h>
11#include <aws/quicksight/model/LineInterpolation.h>
12#include <aws/quicksight/model/SparklineAxisBehavior.h>
13#include <aws/quicksight/model/SparklineVisualType.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace QuickSight {
25namespace Model {
26
33 public:
34 AWS_QUICKSIGHT_API SparklinesOptions() = default;
35 AWS_QUICKSIGHT_API SparklinesOptions(Aws::Utils::Json::JsonView jsonValue);
37 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetFieldId() const { return m_fieldId; }
44 inline bool FieldIdHasBeenSet() const { return m_fieldIdHasBeenSet; }
45 template <typename FieldIdT = Aws::String>
46 void SetFieldId(FieldIdT&& value) {
47 m_fieldIdHasBeenSet = true;
48 m_fieldId = std::forward<FieldIdT>(value);
49 }
50 template <typename FieldIdT = Aws::String>
51 SparklinesOptions& WithFieldId(FieldIdT&& value) {
52 SetFieldId(std::forward<FieldIdT>(value));
53 return *this;
54 }
56
58
59 inline const DimensionField& GetXAxisField() const { return m_xAxisField; }
60 inline bool XAxisFieldHasBeenSet() const { return m_xAxisFieldHasBeenSet; }
61 template <typename XAxisFieldT = DimensionField>
62 void SetXAxisField(XAxisFieldT&& value) {
63 m_xAxisFieldHasBeenSet = true;
64 m_xAxisField = std::forward<XAxisFieldT>(value);
65 }
66 template <typename XAxisFieldT = DimensionField>
67 SparklinesOptions& WithXAxisField(XAxisFieldT&& value) {
68 SetXAxisField(std::forward<XAxisFieldT>(value));
69 return *this;
70 }
72
74
78 inline SparklineAxisBehavior GetYAxisBehavior() const { return m_yAxisBehavior; }
79 inline bool YAxisBehaviorHasBeenSet() const { return m_yAxisBehaviorHasBeenSet; }
81 m_yAxisBehaviorHasBeenSet = true;
82 m_yAxisBehavior = value;
83 }
85 SetYAxisBehavior(value);
86 return *this;
87 }
89
91
95 inline SparklineVisualType GetVisualType() const { return m_visualType; }
96 inline bool VisualTypeHasBeenSet() const { return m_visualTypeHasBeenSet; }
98 m_visualTypeHasBeenSet = true;
99 m_visualType = value;
100 }
102 SetVisualType(value);
103 return *this;
104 }
106
108
111 inline const Aws::String& GetLineColor() const { return m_lineColor; }
112 inline bool LineColorHasBeenSet() const { return m_lineColorHasBeenSet; }
113 template <typename LineColorT = Aws::String>
114 void SetLineColor(LineColorT&& value) {
115 m_lineColorHasBeenSet = true;
116 m_lineColor = std::forward<LineColorT>(value);
117 }
118 template <typename LineColorT = Aws::String>
119 SparklinesOptions& WithLineColor(LineColorT&& value) {
120 SetLineColor(std::forward<LineColorT>(value));
121 return *this;
122 }
124
126
129 inline LineInterpolation GetLineInterpolation() const { return m_lineInterpolation; }
130 inline bool LineInterpolationHasBeenSet() const { return m_lineInterpolationHasBeenSet; }
132 m_lineInterpolationHasBeenSet = true;
133 m_lineInterpolation = value;
134 }
137 return *this;
138 }
140
142
143 inline const LineChartMarkerStyleSettings& GetAllPointsMarker() const { return m_allPointsMarker; }
144 inline bool AllPointsMarkerHasBeenSet() const { return m_allPointsMarkerHasBeenSet; }
145 template <typename AllPointsMarkerT = LineChartMarkerStyleSettings>
146 void SetAllPointsMarker(AllPointsMarkerT&& value) {
147 m_allPointsMarkerHasBeenSet = true;
148 m_allPointsMarker = std::forward<AllPointsMarkerT>(value);
149 }
150 template <typename AllPointsMarkerT = LineChartMarkerStyleSettings>
151 SparklinesOptions& WithAllPointsMarker(AllPointsMarkerT&& value) {
152 SetAllPointsMarker(std::forward<AllPointsMarkerT>(value));
153 return *this;
154 }
156
158
159 inline const LineChartMarkerStyleSettings& GetMaxValueMarker() const { return m_maxValueMarker; }
160 inline bool MaxValueMarkerHasBeenSet() const { return m_maxValueMarkerHasBeenSet; }
161 template <typename MaxValueMarkerT = LineChartMarkerStyleSettings>
162 void SetMaxValueMarker(MaxValueMarkerT&& value) {
163 m_maxValueMarkerHasBeenSet = true;
164 m_maxValueMarker = std::forward<MaxValueMarkerT>(value);
165 }
166 template <typename MaxValueMarkerT = LineChartMarkerStyleSettings>
167 SparklinesOptions& WithMaxValueMarker(MaxValueMarkerT&& value) {
168 SetMaxValueMarker(std::forward<MaxValueMarkerT>(value));
169 return *this;
170 }
172
174
175 inline const LineChartMarkerStyleSettings& GetMinValueMarker() const { return m_minValueMarker; }
176 inline bool MinValueMarkerHasBeenSet() const { return m_minValueMarkerHasBeenSet; }
177 template <typename MinValueMarkerT = LineChartMarkerStyleSettings>
178 void SetMinValueMarker(MinValueMarkerT&& value) {
179 m_minValueMarkerHasBeenSet = true;
180 m_minValueMarker = std::forward<MinValueMarkerT>(value);
181 }
182 template <typename MinValueMarkerT = LineChartMarkerStyleSettings>
183 SparklinesOptions& WithMinValueMarker(MinValueMarkerT&& value) {
184 SetMinValueMarker(std::forward<MinValueMarkerT>(value));
185 return *this;
186 }
188 private:
189 Aws::String m_fieldId;
190
191 DimensionField m_xAxisField;
192
194
196
197 Aws::String m_lineColor;
198
200
201 LineChartMarkerStyleSettings m_allPointsMarker;
202
203 LineChartMarkerStyleSettings m_maxValueMarker;
204
205 LineChartMarkerStyleSettings m_minValueMarker;
206 bool m_fieldIdHasBeenSet = false;
207 bool m_xAxisFieldHasBeenSet = false;
208 bool m_yAxisBehaviorHasBeenSet = false;
209 bool m_visualTypeHasBeenSet = false;
210 bool m_lineColorHasBeenSet = false;
211 bool m_lineInterpolationHasBeenSet = false;
212 bool m_allPointsMarkerHasBeenSet = false;
213 bool m_maxValueMarkerHasBeenSet = false;
214 bool m_minValueMarkerHasBeenSet = false;
215};
216
217} // namespace Model
218} // namespace QuickSight
219} // namespace Aws
SparklinesOptions & WithMaxValueMarker(MaxValueMarkerT &&value)
void SetMinValueMarker(MinValueMarkerT &&value)
const LineChartMarkerStyleSettings & GetAllPointsMarker() const
const LineChartMarkerStyleSettings & GetMinValueMarker() const
const DimensionField & GetXAxisField() const
void SetVisualType(SparklineVisualType value)
SparklinesOptions & WithLineColor(LineColorT &&value)
void SetAllPointsMarker(AllPointsMarkerT &&value)
SparklineVisualType GetVisualType() const
SparklinesOptions & WithFieldId(FieldIdT &&value)
AWS_QUICKSIGHT_API SparklinesOptions(Aws::Utils::Json::JsonView jsonValue)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
const LineChartMarkerStyleSettings & GetMaxValueMarker() const
SparklinesOptions & WithMinValueMarker(MinValueMarkerT &&value)
void SetYAxisBehavior(SparklineAxisBehavior value)
SparklinesOptions & WithYAxisBehavior(SparklineAxisBehavior value)
AWS_QUICKSIGHT_API SparklinesOptions()=default
void SetLineInterpolation(LineInterpolation value)
SparklinesOptions & WithAllPointsMarker(AllPointsMarkerT &&value)
SparklinesOptions & WithLineInterpolation(LineInterpolation value)
SparklinesOptions & WithVisualType(SparklineVisualType value)
SparklineAxisBehavior GetYAxisBehavior() const
void SetMaxValueMarker(MaxValueMarkerT &&value)
SparklinesOptions & WithXAxisField(XAxisFieldT &&value)
AWS_QUICKSIGHT_API SparklinesOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue