AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
GrowthRateComputation.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
30 public:
31 AWS_QUICKSIGHT_API GrowthRateComputation() = default;
34 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetComputationId() const { return m_computationId; }
41 inline bool ComputationIdHasBeenSet() const { return m_computationIdHasBeenSet; }
42 template <typename ComputationIdT = Aws::String>
43 void SetComputationId(ComputationIdT&& value) {
44 m_computationIdHasBeenSet = true;
45 m_computationId = std::forward<ComputationIdT>(value);
46 }
47 template <typename ComputationIdT = Aws::String>
48 GrowthRateComputation& WithComputationId(ComputationIdT&& value) {
49 SetComputationId(std::forward<ComputationIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetName() const { return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 template <typename NameT = Aws::String>
61 void SetName(NameT&& value) {
62 m_nameHasBeenSet = true;
63 m_name = std::forward<NameT>(value);
64 }
65 template <typename NameT = Aws::String>
67 SetName(std::forward<NameT>(value));
68 return *this;
69 }
71
73
76 inline const DimensionField& GetTime() const { return m_time; }
77 inline bool TimeHasBeenSet() const { return m_timeHasBeenSet; }
78 template <typename TimeT = DimensionField>
79 void SetTime(TimeT&& value) {
80 m_timeHasBeenSet = true;
81 m_time = std::forward<TimeT>(value);
82 }
83 template <typename TimeT = DimensionField>
85 SetTime(std::forward<TimeT>(value));
86 return *this;
87 }
89
91
94 inline const MeasureField& GetValue() const { return m_value; }
95 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
96 template <typename ValueT = MeasureField>
97 void SetValue(ValueT&& value) {
98 m_valueHasBeenSet = true;
99 m_value = std::forward<ValueT>(value);
100 }
101 template <typename ValueT = MeasureField>
103 SetValue(std::forward<ValueT>(value));
104 return *this;
105 }
107
109
112 inline int GetPeriodSize() const { return m_periodSize; }
113 inline bool PeriodSizeHasBeenSet() const { return m_periodSizeHasBeenSet; }
114 inline void SetPeriodSize(int value) {
115 m_periodSizeHasBeenSet = true;
116 m_periodSize = value;
117 }
119 SetPeriodSize(value);
120 return *this;
121 }
123 private:
124 Aws::String m_computationId;
125
126 Aws::String m_name;
127
128 DimensionField m_time;
129
130 MeasureField m_value;
131
132 int m_periodSize{0};
133 bool m_computationIdHasBeenSet = false;
134 bool m_nameHasBeenSet = false;
135 bool m_timeHasBeenSet = false;
136 bool m_valueHasBeenSet = false;
137 bool m_periodSizeHasBeenSet = false;
138};
139
140} // namespace Model
141} // namespace QuickSight
142} // namespace Aws
AWS_QUICKSIGHT_API GrowthRateComputation(Aws::Utils::Json::JsonView jsonValue)
GrowthRateComputation & WithComputationId(ComputationIdT &&value)
GrowthRateComputation & WithPeriodSize(int value)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
GrowthRateComputation & WithValue(ValueT &&value)
GrowthRateComputation & WithTime(TimeT &&value)
AWS_QUICKSIGHT_API GrowthRateComputation()=default
AWS_QUICKSIGHT_API GrowthRateComputation & operator=(Aws::Utils::Json::JsonView jsonValue)
GrowthRateComputation & WithName(NameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue