AWS SDK for C++

AWS SDK for C++ Version 1.11.867

Loading...
Searching...
No Matches
CalculationComponent.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/MetricFilter.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Connect {
22namespace Model {
23
31 public:
32 AWS_CONNECT_API CalculationComponent() = default;
35 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetAlias() const { return m_alias; }
42 inline bool AliasHasBeenSet() const { return m_aliasHasBeenSet; }
43 template <typename AliasT = Aws::String>
44 void SetAlias(AliasT&& value) {
45 m_aliasHasBeenSet = true;
46 m_alias = std::forward<AliasT>(value);
47 }
48 template <typename AliasT = Aws::String>
50 SetAlias(std::forward<AliasT>(value));
51 return *this;
52 }
54
56
61 inline const Aws::String& GetMetricName() const { return m_metricName; }
62 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
63 template <typename MetricNameT = Aws::String>
64 void SetMetricName(MetricNameT&& value) {
65 m_metricNameHasBeenSet = true;
66 m_metricName = std::forward<MetricNameT>(value);
67 }
68 template <typename MetricNameT = Aws::String>
69 CalculationComponent& WithMetricName(MetricNameT&& value) {
70 SetMetricName(std::forward<MetricNameT>(value));
71 return *this;
72 }
74
76
80 inline const Aws::String& GetMetricId() const { return m_metricId; }
81 inline bool MetricIdHasBeenSet() const { return m_metricIdHasBeenSet; }
82 template <typename MetricIdT = Aws::String>
83 void SetMetricId(MetricIdT&& value) {
84 m_metricIdHasBeenSet = true;
85 m_metricId = std::forward<MetricIdT>(value);
86 }
87 template <typename MetricIdT = Aws::String>
88 CalculationComponent& WithMetricId(MetricIdT&& value) {
89 SetMetricId(std::forward<MetricIdT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::Vector<MetricFilter>& GetMetricFilters() const { return m_metricFilters; }
99 inline bool MetricFiltersHasBeenSet() const { return m_metricFiltersHasBeenSet; }
100 template <typename MetricFiltersT = Aws::Vector<MetricFilter>>
101 void SetMetricFilters(MetricFiltersT&& value) {
102 m_metricFiltersHasBeenSet = true;
103 m_metricFilters = std::forward<MetricFiltersT>(value);
104 }
105 template <typename MetricFiltersT = Aws::Vector<MetricFilter>>
106 CalculationComponent& WithMetricFilters(MetricFiltersT&& value) {
107 SetMetricFilters(std::forward<MetricFiltersT>(value));
108 return *this;
109 }
110 template <typename MetricFiltersT = MetricFilter>
111 CalculationComponent& AddMetricFilters(MetricFiltersT&& value) {
112 m_metricFiltersHasBeenSet = true;
113 m_metricFilters.emplace_back(std::forward<MetricFiltersT>(value));
114 return *this;
115 }
117 private:
118 Aws::String m_alias;
119
120 Aws::String m_metricName;
121
122 Aws::String m_metricId;
123
124 Aws::Vector<MetricFilter> m_metricFilters;
125 bool m_aliasHasBeenSet = false;
126 bool m_metricNameHasBeenSet = false;
127 bool m_metricIdHasBeenSet = false;
128 bool m_metricFiltersHasBeenSet = false;
129};
130
131} // namespace Model
132} // namespace Connect
133} // namespace Aws
CalculationComponent & AddMetricFilters(MetricFiltersT &&value)
CalculationComponent & WithAlias(AliasT &&value)
CalculationComponent & WithMetricFilters(MetricFiltersT &&value)
AWS_CONNECT_API CalculationComponent(Aws::Utils::Json::JsonView jsonValue)
CalculationComponent & WithMetricId(MetricIdT &&value)
CalculationComponent & WithMetricName(MetricNameT &&value)
const Aws::Vector< MetricFilter > & GetMetricFilters() const
AWS_CONNECT_API CalculationComponent & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECT_API CalculationComponent()=default
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue