AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
CustomizedLoadMetricSpecification.h
1
6#pragma once
7#include <aws/autoscaling-plans/AutoScalingPlans_EXPORTS.h>
8#include <aws/autoscaling-plans/model/MetricDimension.h>
9#include <aws/autoscaling-plans/model/MetricStatistic.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace AutoScalingPlans {
23namespace Model {
24
57 public:
58 AWS_AUTOSCALINGPLANS_API CustomizedLoadMetricSpecification() = default;
61 AWS_AUTOSCALINGPLANS_API Aws::Utils::Json::JsonValue Jsonize() const;
62
64
67 inline const Aws::String& GetMetricName() const { return m_metricName; }
68 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
69 template <typename MetricNameT = Aws::String>
70 void SetMetricName(MetricNameT&& value) {
71 m_metricNameHasBeenSet = true;
72 m_metricName = std::forward<MetricNameT>(value);
73 }
74 template <typename MetricNameT = Aws::String>
76 SetMetricName(std::forward<MetricNameT>(value));
77 return *this;
78 }
80
82
85 inline const Aws::String& GetNamespace() const { return m_namespace; }
86 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
87 template <typename NamespaceT = Aws::String>
88 void SetNamespace(NamespaceT&& value) {
89 m_namespaceHasBeenSet = true;
90 m_namespace = std::forward<NamespaceT>(value);
91 }
92 template <typename NamespaceT = Aws::String>
94 SetNamespace(std::forward<NamespaceT>(value));
95 return *this;
96 }
98
100
105 inline const Aws::Vector<MetricDimension>& GetDimensions() const { return m_dimensions; }
106 inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; }
107 template <typename DimensionsT = Aws::Vector<MetricDimension>>
108 void SetDimensions(DimensionsT&& value) {
109 m_dimensionsHasBeenSet = true;
110 m_dimensions = std::forward<DimensionsT>(value);
111 }
112 template <typename DimensionsT = Aws::Vector<MetricDimension>>
114 SetDimensions(std::forward<DimensionsT>(value));
115 return *this;
116 }
117 template <typename DimensionsT = MetricDimension>
119 m_dimensionsHasBeenSet = true;
120 m_dimensions.emplace_back(std::forward<DimensionsT>(value));
121 return *this;
122 }
124
126
129 inline MetricStatistic GetStatistic() const { return m_statistic; }
130 inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; }
131 inline void SetStatistic(MetricStatistic value) {
132 m_statisticHasBeenSet = true;
133 m_statistic = value;
134 }
136 SetStatistic(value);
137 return *this;
138 }
140
142
145 inline const Aws::String& GetUnit() const { return m_unit; }
146 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
147 template <typename UnitT = Aws::String>
148 void SetUnit(UnitT&& value) {
149 m_unitHasBeenSet = true;
150 m_unit = std::forward<UnitT>(value);
151 }
152 template <typename UnitT = Aws::String>
154 SetUnit(std::forward<UnitT>(value));
155 return *this;
156 }
158 private:
159 Aws::String m_metricName;
160
161 Aws::String m_namespace;
162
163 Aws::Vector<MetricDimension> m_dimensions;
164
166
167 Aws::String m_unit;
168 bool m_metricNameHasBeenSet = false;
169 bool m_namespaceHasBeenSet = false;
170 bool m_dimensionsHasBeenSet = false;
171 bool m_statisticHasBeenSet = false;
172 bool m_unitHasBeenSet = false;
173};
174
175} // namespace Model
176} // namespace AutoScalingPlans
177} // namespace Aws
CustomizedLoadMetricSpecification & WithMetricName(MetricNameT &&value)
CustomizedLoadMetricSpecification & WithStatistic(MetricStatistic value)
AWS_AUTOSCALINGPLANS_API CustomizedLoadMetricSpecification()=default
AWS_AUTOSCALINGPLANS_API Aws::Utils::Json::JsonValue Jsonize() const
CustomizedLoadMetricSpecification & AddDimensions(DimensionsT &&value)
CustomizedLoadMetricSpecification & WithDimensions(DimensionsT &&value)
CustomizedLoadMetricSpecification & WithNamespace(NamespaceT &&value)
AWS_AUTOSCALINGPLANS_API CustomizedLoadMetricSpecification(Aws::Utils::Json::JsonView jsonValue)
AWS_AUTOSCALINGPLANS_API CustomizedLoadMetricSpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue