AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
HistogramBinOptions.h
1
6#pragma once
7#include <aws/quicksight/QuickSight_EXPORTS.h>
8#include <aws/quicksight/model/HistogramBinType.h>
9#include <aws/quicksight/model/BinCountOptions.h>
10#include <aws/quicksight/model/BinWidthOptions.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace QuickSight
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_QUICKSIGHT_API HistogramBinOptions() = default;
38 AWS_QUICKSIGHT_API HistogramBinOptions(Aws::Utils::Json::JsonView jsonValue);
40 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline HistogramBinType GetSelectedBinType() const { return m_selectedBinType; }
48 inline bool SelectedBinTypeHasBeenSet() const { return m_selectedBinTypeHasBeenSet; }
49 inline void SetSelectedBinType(HistogramBinType value) { m_selectedBinTypeHasBeenSet = true; m_selectedBinType = value; }
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) { m_binCountHasBeenSet = true; m_binCount = std::forward<BinCountT>(value); }
61 template<typename BinCountT = BinCountOptions>
62 HistogramBinOptions& WithBinCount(BinCountT&& value) { SetBinCount(std::forward<BinCountT>(value)); return *this;}
64
66
69 inline const BinWidthOptions& GetBinWidth() const { return m_binWidth; }
70 inline bool BinWidthHasBeenSet() const { return m_binWidthHasBeenSet; }
71 template<typename BinWidthT = BinWidthOptions>
72 void SetBinWidth(BinWidthT&& value) { m_binWidthHasBeenSet = true; m_binWidth = std::forward<BinWidthT>(value); }
73 template<typename BinWidthT = BinWidthOptions>
74 HistogramBinOptions& WithBinWidth(BinWidthT&& value) { SetBinWidth(std::forward<BinWidthT>(value)); return *this;}
76
78
81 inline double GetStartValue() const { return m_startValue; }
82 inline bool StartValueHasBeenSet() const { return m_startValueHasBeenSet; }
83 inline void SetStartValue(double value) { m_startValueHasBeenSet = true; m_startValue = value; }
84 inline HistogramBinOptions& WithStartValue(double value) { SetStartValue(value); return *this;}
86 private:
87
89 bool m_selectedBinTypeHasBeenSet = false;
90
91 BinCountOptions m_binCount;
92 bool m_binCountHasBeenSet = false;
93
94 BinWidthOptions m_binWidth;
95 bool m_binWidthHasBeenSet = false;
96
97 double m_startValue{0.0};
98 bool m_startValueHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace QuickSight
103} // 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