AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetComputationId(const Aws::String& value) { m_computationIdHasBeenSet = true; m_computationId = value; }
50 inline void SetComputationId(Aws::String&& value) { m_computationIdHasBeenSet = true; m_computationId = std::move(value); }
51 inline void SetComputationId(const char* value) { m_computationIdHasBeenSet = true; m_computationId.assign(value); }
52 inline MetricComparisonComputation& WithComputationId(const Aws::String& value) { SetComputationId(value); return *this;}
53 inline MetricComparisonComputation& WithComputationId(Aws::String&& value) { SetComputationId(std::move(value)); return *this;}
54 inline MetricComparisonComputation& WithComputationId(const char* value) { SetComputationId(value); return *this;}
56
58
61 inline const Aws::String& GetName() const{ return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
64 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
65 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
66 inline MetricComparisonComputation& WithName(const Aws::String& value) { SetName(value); return *this;}
67 inline MetricComparisonComputation& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
68 inline MetricComparisonComputation& WithName(const char* value) { SetName(value); return *this;}
70
72
75 inline const DimensionField& GetTime() const{ return m_time; }
76 inline bool TimeHasBeenSet() const { return m_timeHasBeenSet; }
77 inline void SetTime(const DimensionField& value) { m_timeHasBeenSet = true; m_time = value; }
78 inline void SetTime(DimensionField&& value) { m_timeHasBeenSet = true; m_time = std::move(value); }
79 inline MetricComparisonComputation& WithTime(const DimensionField& value) { SetTime(value); return *this;}
80 inline MetricComparisonComputation& WithTime(DimensionField&& value) { SetTime(std::move(value)); return *this;}
82
84
87 inline const MeasureField& GetFromValue() const{ return m_fromValue; }
88 inline bool FromValueHasBeenSet() const { return m_fromValueHasBeenSet; }
89 inline void SetFromValue(const MeasureField& value) { m_fromValueHasBeenSet = true; m_fromValue = value; }
90 inline void SetFromValue(MeasureField&& value) { m_fromValueHasBeenSet = true; m_fromValue = std::move(value); }
91 inline MetricComparisonComputation& WithFromValue(const MeasureField& value) { SetFromValue(value); return *this;}
92 inline MetricComparisonComputation& WithFromValue(MeasureField&& value) { SetFromValue(std::move(value)); return *this;}
94
96
99 inline const MeasureField& GetTargetValue() const{ return m_targetValue; }
100 inline bool TargetValueHasBeenSet() const { return m_targetValueHasBeenSet; }
101 inline void SetTargetValue(const MeasureField& value) { m_targetValueHasBeenSet = true; m_targetValue = value; }
102 inline void SetTargetValue(MeasureField&& value) { m_targetValueHasBeenSet = true; m_targetValue = std::move(value); }
103 inline MetricComparisonComputation& WithTargetValue(const MeasureField& value) { SetTargetValue(value); return *this;}
104 inline MetricComparisonComputation& WithTargetValue(MeasureField&& value) { SetTargetValue(std::move(value)); return *this;}
106 private:
107
108 Aws::String m_computationId;
109 bool m_computationIdHasBeenSet = false;
110
111 Aws::String m_name;
112 bool m_nameHasBeenSet = false;
113
114 DimensionField m_time;
115 bool m_timeHasBeenSet = false;
116
117 MeasureField m_fromValue;
118 bool m_fromValueHasBeenSet = false;
119
120 MeasureField m_targetValue;
121 bool m_targetValueHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace QuickSight
126} // namespace Aws
MetricComparisonComputation & WithTime(DimensionField &&value)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
MetricComparisonComputation & WithTargetValue(const MeasureField &value)
MetricComparisonComputation & WithFromValue(MeasureField &&value)
AWS_QUICKSIGHT_API MetricComparisonComputation & operator=(Aws::Utils::Json::JsonView jsonValue)
MetricComparisonComputation & WithComputationId(const Aws::String &value)
MetricComparisonComputation & WithName(const char *value)
MetricComparisonComputation & WithComputationId(const char *value)
MetricComparisonComputation & WithTime(const DimensionField &value)
MetricComparisonComputation & WithTargetValue(MeasureField &&value)
MetricComparisonComputation & WithName(Aws::String &&value)
MetricComparisonComputation & WithComputationId(Aws::String &&value)
MetricComparisonComputation & WithName(const Aws::String &value)
AWS_QUICKSIGHT_API MetricComparisonComputation(Aws::Utils::Json::JsonView jsonValue)
MetricComparisonComputation & WithFromValue(const MeasureField &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue