AWS SDK for C++

AWS SDK for C++ Version 1.11.758

Loading...
Searching...
No Matches
KPIFieldWells.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.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 KPIFieldWells() = default;
32 AWS_QUICKSIGHT_API KPIFieldWells(Aws::Utils::Json::JsonView jsonValue);
33 AWS_QUICKSIGHT_API KPIFieldWells& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::Vector<MeasureField>& GetValues() const { return m_values; }
41 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
42 template <typename ValuesT = Aws::Vector<MeasureField>>
43 void SetValues(ValuesT&& value) {
44 m_valuesHasBeenSet = true;
45 m_values = std::forward<ValuesT>(value);
46 }
47 template <typename ValuesT = Aws::Vector<MeasureField>>
48 KPIFieldWells& WithValues(ValuesT&& value) {
49 SetValues(std::forward<ValuesT>(value));
50 return *this;
51 }
52 template <typename ValuesT = MeasureField>
53 KPIFieldWells& AddValues(ValuesT&& value) {
54 m_valuesHasBeenSet = true;
55 m_values.emplace_back(std::forward<ValuesT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::Vector<MeasureField>& GetTargetValues() const { return m_targetValues; }
65 inline bool TargetValuesHasBeenSet() const { return m_targetValuesHasBeenSet; }
66 template <typename TargetValuesT = Aws::Vector<MeasureField>>
67 void SetTargetValues(TargetValuesT&& value) {
68 m_targetValuesHasBeenSet = true;
69 m_targetValues = std::forward<TargetValuesT>(value);
70 }
71 template <typename TargetValuesT = Aws::Vector<MeasureField>>
72 KPIFieldWells& WithTargetValues(TargetValuesT&& value) {
73 SetTargetValues(std::forward<TargetValuesT>(value));
74 return *this;
75 }
76 template <typename TargetValuesT = MeasureField>
77 KPIFieldWells& AddTargetValues(TargetValuesT&& value) {
78 m_targetValuesHasBeenSet = true;
79 m_targetValues.emplace_back(std::forward<TargetValuesT>(value));
80 return *this;
81 }
83
85
88 inline const Aws::Vector<DimensionField>& GetTrendGroups() const { return m_trendGroups; }
89 inline bool TrendGroupsHasBeenSet() const { return m_trendGroupsHasBeenSet; }
90 template <typename TrendGroupsT = Aws::Vector<DimensionField>>
91 void SetTrendGroups(TrendGroupsT&& value) {
92 m_trendGroupsHasBeenSet = true;
93 m_trendGroups = std::forward<TrendGroupsT>(value);
94 }
95 template <typename TrendGroupsT = Aws::Vector<DimensionField>>
96 KPIFieldWells& WithTrendGroups(TrendGroupsT&& value) {
97 SetTrendGroups(std::forward<TrendGroupsT>(value));
98 return *this;
99 }
100 template <typename TrendGroupsT = DimensionField>
101 KPIFieldWells& AddTrendGroups(TrendGroupsT&& value) {
102 m_trendGroupsHasBeenSet = true;
103 m_trendGroups.emplace_back(std::forward<TrendGroupsT>(value));
104 return *this;
105 }
107 private:
109
110 Aws::Vector<MeasureField> m_targetValues;
111
112 Aws::Vector<DimensionField> m_trendGroups;
113 bool m_valuesHasBeenSet = false;
114 bool m_targetValuesHasBeenSet = false;
115 bool m_trendGroupsHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace QuickSight
120} // namespace Aws
AWS_QUICKSIGHT_API KPIFieldWells()=default
const Aws::Vector< MeasureField > & GetTargetValues() const
KPIFieldWells & WithValues(ValuesT &&value)
AWS_QUICKSIGHT_API KPIFieldWells(Aws::Utils::Json::JsonView jsonValue)
AWS_QUICKSIGHT_API KPIFieldWells & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTrendGroups(TrendGroupsT &&value)
const Aws::Vector< DimensionField > & GetTrendGroups() const
KPIFieldWells & AddTrendGroups(TrendGroupsT &&value)
KPIFieldWells & AddValues(ValuesT &&value)
KPIFieldWells & WithTrendGroups(TrendGroupsT &&value)
void SetTargetValues(TargetValuesT &&value)
KPIFieldWells & WithTargetValues(TargetValuesT &&value)
const Aws::Vector< MeasureField > & GetValues() const
KPIFieldWells & AddTargetValues(TargetValuesT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue