AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
NumericAxisOptions.h
1
6#pragma once
7#include <aws/quicksight/QuickSight_EXPORTS.h>
8#include <aws/quicksight/model/AxisDisplayRange.h>
9#include <aws/quicksight/model/AxisScale.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 NumericAxisOptions() = default;
31 AWS_QUICKSIGHT_API NumericAxisOptions(Aws::Utils::Json::JsonView jsonValue);
33 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const AxisScale& GetScale() const { return m_scale; }
40 inline bool ScaleHasBeenSet() const { return m_scaleHasBeenSet; }
41 template <typename ScaleT = AxisScale>
42 void SetScale(ScaleT&& value) {
43 m_scaleHasBeenSet = true;
44 m_scale = std::forward<ScaleT>(value);
45 }
46 template <typename ScaleT = AxisScale>
47 NumericAxisOptions& WithScale(ScaleT&& value) {
48 SetScale(std::forward<ScaleT>(value));
49 return *this;
50 }
52
54
57 inline const AxisDisplayRange& GetRange() const { return m_range; }
58 inline bool RangeHasBeenSet() const { return m_rangeHasBeenSet; }
59 template <typename RangeT = AxisDisplayRange>
60 void SetRange(RangeT&& value) {
61 m_rangeHasBeenSet = true;
62 m_range = std::forward<RangeT>(value);
63 }
64 template <typename RangeT = AxisDisplayRange>
65 NumericAxisOptions& WithRange(RangeT&& value) {
66 SetRange(std::forward<RangeT>(value));
67 return *this;
68 }
70 private:
71 AxisScale m_scale;
72
73 AxisDisplayRange m_range;
74 bool m_scaleHasBeenSet = false;
75 bool m_rangeHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace QuickSight
80} // namespace Aws
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
const AxisDisplayRange & GetRange() const
NumericAxisOptions & WithRange(RangeT &&value)
NumericAxisOptions & WithScale(ScaleT &&value)
AWS_QUICKSIGHT_API NumericAxisOptions(Aws::Utils::Json::JsonView jsonValue)
AWS_QUICKSIGHT_API NumericAxisOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_QUICKSIGHT_API NumericAxisOptions()=default
Aws::Utils::Json::JsonValue JsonValue