AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
MetricComparisonComputation.h
1
6#pragma once
7#include <aws/quicksight/QuickSight_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/quicksight/model/DimensionField.h>
10#include <aws/quicksight/model/MeasureField.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 MetricComparisonComputation() = default;
40 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetComputationId() const { return m_computationId; }
48 inline bool ComputationIdHasBeenSet() const { return m_computationIdHasBeenSet; }
49 template<typename ComputationIdT = Aws::String>
50 void SetComputationId(ComputationIdT&& value) { m_computationIdHasBeenSet = true; m_computationId = std::forward<ComputationIdT>(value); }
51 template<typename ComputationIdT = Aws::String>
52 MetricComparisonComputation& WithComputationId(ComputationIdT&& value) { SetComputationId(std::forward<ComputationIdT>(value)); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
63 template<typename NameT = Aws::String>
64 MetricComparisonComputation& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
66
68
71 inline const DimensionField& GetTime() const { return m_time; }
72 inline bool TimeHasBeenSet() const { return m_timeHasBeenSet; }
73 template<typename TimeT = DimensionField>
74 void SetTime(TimeT&& value) { m_timeHasBeenSet = true; m_time = std::forward<TimeT>(value); }
75 template<typename TimeT = DimensionField>
76 MetricComparisonComputation& WithTime(TimeT&& value) { SetTime(std::forward<TimeT>(value)); return *this;}
78
80
83 inline const MeasureField& GetFromValue() const { return m_fromValue; }
84 inline bool FromValueHasBeenSet() const { return m_fromValueHasBeenSet; }
85 template<typename FromValueT = MeasureField>
86 void SetFromValue(FromValueT&& value) { m_fromValueHasBeenSet = true; m_fromValue = std::forward<FromValueT>(value); }
87 template<typename FromValueT = MeasureField>
88 MetricComparisonComputation& WithFromValue(FromValueT&& value) { SetFromValue(std::forward<FromValueT>(value)); return *this;}
90
92
95 inline const MeasureField& GetTargetValue() const { return m_targetValue; }
96 inline bool TargetValueHasBeenSet() const { return m_targetValueHasBeenSet; }
97 template<typename TargetValueT = MeasureField>
98 void SetTargetValue(TargetValueT&& value) { m_targetValueHasBeenSet = true; m_targetValue = std::forward<TargetValueT>(value); }
99 template<typename TargetValueT = MeasureField>
100 MetricComparisonComputation& WithTargetValue(TargetValueT&& value) { SetTargetValue(std::forward<TargetValueT>(value)); return *this;}
102 private:
103
104 Aws::String m_computationId;
105 bool m_computationIdHasBeenSet = false;
106
107 Aws::String m_name;
108 bool m_nameHasBeenSet = false;
109
110 DimensionField m_time;
111 bool m_timeHasBeenSet = false;
112
113 MeasureField m_fromValue;
114 bool m_fromValueHasBeenSet = false;
115
116 MeasureField m_targetValue;
117 bool m_targetValueHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace QuickSight
122} // 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