AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
HistogramBinOptions.h
1
6#pragma once
7#include <aws/quicksight/QuickSight_EXPORTS.h>
8#include <aws/quicksight/model/BinCountOptions.h>
9#include <aws/quicksight/model/BinWidthOptions.h>
10#include <aws/quicksight/model/HistogramBinType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace QuickSight {
22namespace Model {
23
31 public:
32 AWS_QUICKSIGHT_API HistogramBinOptions() = default;
33 AWS_QUICKSIGHT_API HistogramBinOptions(Aws::Utils::Json::JsonView jsonValue);
35 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline HistogramBinType GetSelectedBinType() const { return m_selectedBinType; }
42 inline bool SelectedBinTypeHasBeenSet() const { return m_selectedBinTypeHasBeenSet; }
44 m_selectedBinTypeHasBeenSet = true;
45 m_selectedBinType = value;
46 }
48 SetSelectedBinType(value);
49 return *this;
50 }
52
54
57 inline const BinCountOptions& GetBinCount() const { return m_binCount; }
58 inline bool BinCountHasBeenSet() const { return m_binCountHasBeenSet; }
59 template <typename BinCountT = BinCountOptions>
60 void SetBinCount(BinCountT&& value) {
61 m_binCountHasBeenSet = true;
62 m_binCount = std::forward<BinCountT>(value);
63 }
64 template <typename BinCountT = BinCountOptions>
65 HistogramBinOptions& WithBinCount(BinCountT&& value) {
66 SetBinCount(std::forward<BinCountT>(value));
67 return *this;
68 }
70
72
75 inline const BinWidthOptions& GetBinWidth() const { return m_binWidth; }
76 inline bool BinWidthHasBeenSet() const { return m_binWidthHasBeenSet; }
77 template <typename BinWidthT = BinWidthOptions>
78 void SetBinWidth(BinWidthT&& value) {
79 m_binWidthHasBeenSet = true;
80 m_binWidth = std::forward<BinWidthT>(value);
81 }
82 template <typename BinWidthT = BinWidthOptions>
83 HistogramBinOptions& WithBinWidth(BinWidthT&& value) {
84 SetBinWidth(std::forward<BinWidthT>(value));
85 return *this;
86 }
88
90
93 inline double GetStartValue() const { return m_startValue; }
94 inline bool StartValueHasBeenSet() const { return m_startValueHasBeenSet; }
95 inline void SetStartValue(double value) {
96 m_startValueHasBeenSet = true;
97 m_startValue = value;
98 }
99 inline HistogramBinOptions& WithStartValue(double value) {
100 SetStartValue(value);
101 return *this;
102 }
104 private:
106
107 BinCountOptions m_binCount;
108
109 BinWidthOptions m_binWidth;
110
111 double m_startValue{0.0};
112 bool m_selectedBinTypeHasBeenSet = false;
113 bool m_binCountHasBeenSet = false;
114 bool m_binWidthHasBeenSet = false;
115 bool m_startValueHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace QuickSight
120} // namespace Aws
HistogramBinOptions & WithSelectedBinType(HistogramBinType value)
HistogramBinOptions & WithStartValue(double value)
void SetSelectedBinType(HistogramBinType value)
HistogramBinOptions & WithBinWidth(BinWidthT &&value)
AWS_QUICKSIGHT_API HistogramBinOptions(Aws::Utils::Json::JsonView jsonValue)
AWS_QUICKSIGHT_API HistogramBinOptions()=default
const BinWidthOptions & GetBinWidth() const
AWS_QUICKSIGHT_API HistogramBinOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
HistogramBinOptions & WithBinCount(BinCountT &&value)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
const BinCountOptions & GetBinCount() const
Aws::Utils::Json::JsonValue JsonValue