AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
AxisScale.h
1
6#pragma once
7#include <aws/quicksight/QuickSight_EXPORTS.h>
8#include <aws/quicksight/model/AxisLinearScale.h>
9#include <aws/quicksight/model/AxisLogarithmicScale.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
30class AxisScale {
31 public:
32 AWS_QUICKSIGHT_API AxisScale() = default;
33 AWS_QUICKSIGHT_API AxisScale(Aws::Utils::Json::JsonView jsonValue);
34 AWS_QUICKSIGHT_API AxisScale& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const AxisLinearScale& GetLinear() const { return m_linear; }
42 inline bool LinearHasBeenSet() const { return m_linearHasBeenSet; }
43 template <typename LinearT = AxisLinearScale>
44 void SetLinear(LinearT&& value) {
45 m_linearHasBeenSet = true;
46 m_linear = std::forward<LinearT>(value);
47 }
48 template <typename LinearT = AxisLinearScale>
49 AxisScale& WithLinear(LinearT&& value) {
50 SetLinear(std::forward<LinearT>(value));
51 return *this;
52 }
54
56
59 inline const AxisLogarithmicScale& GetLogarithmic() const { return m_logarithmic; }
60 inline bool LogarithmicHasBeenSet() const { return m_logarithmicHasBeenSet; }
61 template <typename LogarithmicT = AxisLogarithmicScale>
62 void SetLogarithmic(LogarithmicT&& value) {
63 m_logarithmicHasBeenSet = true;
64 m_logarithmic = std::forward<LogarithmicT>(value);
65 }
66 template <typename LogarithmicT = AxisLogarithmicScale>
67 AxisScale& WithLogarithmic(LogarithmicT&& value) {
68 SetLogarithmic(std::forward<LogarithmicT>(value));
69 return *this;
70 }
72 private:
73 AxisLinearScale m_linear;
74
75 AxisLogarithmicScale m_logarithmic;
76 bool m_linearHasBeenSet = false;
77 bool m_logarithmicHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace QuickSight
82} // namespace Aws
void SetLogarithmic(LogarithmicT &&value)
Definition AxisScale.h:62
AWS_QUICKSIGHT_API AxisScale & operator=(Aws::Utils::Json::JsonView jsonValue)
AxisScale & WithLogarithmic(LogarithmicT &&value)
Definition AxisScale.h:67
AWS_QUICKSIGHT_API AxisScale(Aws::Utils::Json::JsonView jsonValue)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLinear(LinearT &&value)
Definition AxisScale.h:44
const AxisLinearScale & GetLinear() const
Definition AxisScale.h:41
AWS_QUICKSIGHT_API AxisScale()=default
AxisScale & WithLinear(LinearT &&value)
Definition AxisScale.h:49
const AxisLogarithmicScale & GetLogarithmic() const
Definition AxisScale.h:59
Aws::Utils::Json::JsonValue JsonValue