AWS SDK for C++

AWS SDK for C++ Version 1.11.749

Loading...
Searching...
No Matches
MetricComparisonComputation.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/MeasureField.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 MetricComparisonComputation() = default;
35 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetComputationId() const { return m_computationId; }
42 inline bool ComputationIdHasBeenSet() const { return m_computationIdHasBeenSet; }
43 template <typename ComputationIdT = Aws::String>
44 void SetComputationId(ComputationIdT&& value) {
45 m_computationIdHasBeenSet = true;
46 m_computationId = std::forward<ComputationIdT>(value);
47 }
48 template <typename ComputationIdT = Aws::String>
50 SetComputationId(std::forward<ComputationIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetName() const { return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 template <typename NameT = Aws::String>
62 void SetName(NameT&& value) {
63 m_nameHasBeenSet = true;
64 m_name = std::forward<NameT>(value);
65 }
66 template <typename NameT = Aws::String>
68 SetName(std::forward<NameT>(value));
69 return *this;
70 }
72
74
77 inline const DimensionField& GetTime() const { return m_time; }
78 inline bool TimeHasBeenSet() const { return m_timeHasBeenSet; }
79 template <typename TimeT = DimensionField>
80 void SetTime(TimeT&& value) {
81 m_timeHasBeenSet = true;
82 m_time = std::forward<TimeT>(value);
83 }
84 template <typename TimeT = DimensionField>
86 SetTime(std::forward<TimeT>(value));
87 return *this;
88 }
90
92
95 inline const MeasureField& GetFromValue() const { return m_fromValue; }
96 inline bool FromValueHasBeenSet() const { return m_fromValueHasBeenSet; }
97 template <typename FromValueT = MeasureField>
98 void SetFromValue(FromValueT&& value) {
99 m_fromValueHasBeenSet = true;
100 m_fromValue = std::forward<FromValueT>(value);
101 }
102 template <typename FromValueT = MeasureField>
104 SetFromValue(std::forward<FromValueT>(value));
105 return *this;
106 }
108
110
113 inline const MeasureField& GetTargetValue() const { return m_targetValue; }
114 inline bool TargetValueHasBeenSet() const { return m_targetValueHasBeenSet; }
115 template <typename TargetValueT = MeasureField>
116 void SetTargetValue(TargetValueT&& value) {
117 m_targetValueHasBeenSet = true;
118 m_targetValue = std::forward<TargetValueT>(value);
119 }
120 template <typename TargetValueT = MeasureField>
122 SetTargetValue(std::forward<TargetValueT>(value));
123 return *this;
124 }
126 private:
127 Aws::String m_computationId;
128
129 Aws::String m_name;
130
131 DimensionField m_time;
132
133 MeasureField m_fromValue;
134
135 MeasureField m_targetValue;
136 bool m_computationIdHasBeenSet = false;
137 bool m_nameHasBeenSet = false;
138 bool m_timeHasBeenSet = false;
139 bool m_fromValueHasBeenSet = false;
140 bool m_targetValueHasBeenSet = false;
141};
142
143} // namespace Model
144} // namespace QuickSight
145} // namespace Aws
AWS_QUICKSIGHT_API MetricComparisonComputation()=default
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_QUICKSIGHT_API MetricComparisonComputation & operator=(Aws::Utils::Json::JsonView jsonValue)
MetricComparisonComputation & WithComputationId(ComputationIdT &&value)
MetricComparisonComputation & WithName(NameT &&value)
MetricComparisonComputation & WithTargetValue(TargetValueT &&value)
MetricComparisonComputation & WithFromValue(FromValueT &&value)
AWS_QUICKSIGHT_API MetricComparisonComputation(Aws::Utils::Json::JsonView jsonValue)
MetricComparisonComputation & WithTime(TimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue