AWS SDK for C++

AWS SDK for C++ Version 1.11.757

Loading...
Searching...
No Matches
PredictiveScalingMetric.h
1
6#pragma once
7#include <aws/application-autoscaling/ApplicationAutoScaling_EXPORTS.h>
8#include <aws/application-autoscaling/model/PredictiveScalingMetricDimension.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 ApplicationAutoScaling {
22namespace Model {
23
30 public:
31 AWS_APPLICATIONAUTOSCALING_API PredictiveScalingMetric() = default;
32 AWS_APPLICATIONAUTOSCALING_API PredictiveScalingMetric(Aws::Utils::Json::JsonView jsonValue);
33 AWS_APPLICATIONAUTOSCALING_API PredictiveScalingMetric& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_APPLICATIONAUTOSCALING_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::Vector<PredictiveScalingMetricDimension>& GetDimensions() const { return m_dimensions; }
41 inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; }
42 template <typename DimensionsT = Aws::Vector<PredictiveScalingMetricDimension>>
43 void SetDimensions(DimensionsT&& value) {
44 m_dimensionsHasBeenSet = true;
45 m_dimensions = std::forward<DimensionsT>(value);
46 }
47 template <typename DimensionsT = Aws::Vector<PredictiveScalingMetricDimension>>
49 SetDimensions(std::forward<DimensionsT>(value));
50 return *this;
51 }
52 template <typename DimensionsT = PredictiveScalingMetricDimension>
53 PredictiveScalingMetric& AddDimensions(DimensionsT&& value) {
54 m_dimensionsHasBeenSet = true;
55 m_dimensions.emplace_back(std::forward<DimensionsT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetMetricName() const { return m_metricName; }
65 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
66 template <typename MetricNameT = Aws::String>
67 void SetMetricName(MetricNameT&& value) {
68 m_metricNameHasBeenSet = true;
69 m_metricName = std::forward<MetricNameT>(value);
70 }
71 template <typename MetricNameT = Aws::String>
73 SetMetricName(std::forward<MetricNameT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::String& GetNamespace() const { return m_namespace; }
83 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
84 template <typename NamespaceT = Aws::String>
85 void SetNamespace(NamespaceT&& value) {
86 m_namespaceHasBeenSet = true;
87 m_namespace = std::forward<NamespaceT>(value);
88 }
89 template <typename NamespaceT = Aws::String>
91 SetNamespace(std::forward<NamespaceT>(value));
92 return *this;
93 }
95 private:
97
98 Aws::String m_metricName;
99
100 Aws::String m_namespace;
101 bool m_dimensionsHasBeenSet = false;
102 bool m_metricNameHasBeenSet = false;
103 bool m_namespaceHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace ApplicationAutoScaling
108} // namespace Aws
AWS_APPLICATIONAUTOSCALING_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPLICATIONAUTOSCALING_API PredictiveScalingMetric & operator=(Aws::Utils::Json::JsonView jsonValue)
PredictiveScalingMetric & WithDimensions(DimensionsT &&value)
PredictiveScalingMetric & WithNamespace(NamespaceT &&value)
const Aws::Vector< PredictiveScalingMetricDimension > & GetDimensions() const
PredictiveScalingMetric & AddDimensions(DimensionsT &&value)
AWS_APPLICATIONAUTOSCALING_API PredictiveScalingMetric()=default
AWS_APPLICATIONAUTOSCALING_API PredictiveScalingMetric(Aws::Utils::Json::JsonView jsonValue)
PredictiveScalingMetric & WithMetricName(MetricNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue