AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
GrowthRateComputation.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
34 {
35 public:
36 AWS_QUICKSIGHT_API GrowthRateComputation() = default;
39 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetComputationId() const { return m_computationId; }
47 inline bool ComputationIdHasBeenSet() const { return m_computationIdHasBeenSet; }
48 template<typename ComputationIdT = Aws::String>
49 void SetComputationId(ComputationIdT&& value) { m_computationIdHasBeenSet = true; m_computationId = std::forward<ComputationIdT>(value); }
50 template<typename ComputationIdT = Aws::String>
51 GrowthRateComputation& WithComputationId(ComputationIdT&& value) { SetComputationId(std::forward<ComputationIdT>(value)); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
62 template<typename NameT = Aws::String>
63 GrowthRateComputation& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
65
67
70 inline const DimensionField& GetTime() const { return m_time; }
71 inline bool TimeHasBeenSet() const { return m_timeHasBeenSet; }
72 template<typename TimeT = DimensionField>
73 void SetTime(TimeT&& value) { m_timeHasBeenSet = true; m_time = std::forward<TimeT>(value); }
74 template<typename TimeT = DimensionField>
75 GrowthRateComputation& WithTime(TimeT&& value) { SetTime(std::forward<TimeT>(value)); return *this;}
77
79
82 inline const MeasureField& GetValue() const { return m_value; }
83 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
84 template<typename ValueT = MeasureField>
85 void SetValue(ValueT&& value) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
86 template<typename ValueT = MeasureField>
87 GrowthRateComputation& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
89
91
94 inline int GetPeriodSize() const { return m_periodSize; }
95 inline bool PeriodSizeHasBeenSet() const { return m_periodSizeHasBeenSet; }
96 inline void SetPeriodSize(int value) { m_periodSizeHasBeenSet = true; m_periodSize = value; }
97 inline GrowthRateComputation& WithPeriodSize(int value) { SetPeriodSize(value); return *this;}
99 private:
100
101 Aws::String m_computationId;
102 bool m_computationIdHasBeenSet = false;
103
104 Aws::String m_name;
105 bool m_nameHasBeenSet = false;
106
107 DimensionField m_time;
108 bool m_timeHasBeenSet = false;
109
110 MeasureField m_value;
111 bool m_valueHasBeenSet = false;
112
113 int m_periodSize{0};
114 bool m_periodSizeHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace QuickSight
119} // 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