AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PredictiveScalingMetric.h
1
6#pragma once
7#include <aws/application-autoscaling/ApplicationAutoScaling_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/application-autoscaling/model/PredictiveScalingMetricDimension.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 ApplicationAutoScaling
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_APPLICATIONAUTOSCALING_API PredictiveScalingMetric() = default;
37 AWS_APPLICATIONAUTOSCALING_API PredictiveScalingMetric(Aws::Utils::Json::JsonView jsonValue);
38 AWS_APPLICATIONAUTOSCALING_API PredictiveScalingMetric& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_APPLICATIONAUTOSCALING_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::Vector<PredictiveScalingMetricDimension>& GetDimensions() const { return m_dimensions; }
47 inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; }
48 template<typename DimensionsT = Aws::Vector<PredictiveScalingMetricDimension>>
49 void SetDimensions(DimensionsT&& value) { m_dimensionsHasBeenSet = true; m_dimensions = std::forward<DimensionsT>(value); }
50 template<typename DimensionsT = Aws::Vector<PredictiveScalingMetricDimension>>
51 PredictiveScalingMetric& WithDimensions(DimensionsT&& value) { SetDimensions(std::forward<DimensionsT>(value)); return *this;}
52 template<typename DimensionsT = PredictiveScalingMetricDimension>
53 PredictiveScalingMetric& AddDimensions(DimensionsT&& value) { m_dimensionsHasBeenSet = true; m_dimensions.emplace_back(std::forward<DimensionsT>(value)); return *this; }
55
57
60 inline const Aws::String& GetMetricName() const { return m_metricName; }
61 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
62 template<typename MetricNameT = Aws::String>
63 void SetMetricName(MetricNameT&& value) { m_metricNameHasBeenSet = true; m_metricName = std::forward<MetricNameT>(value); }
64 template<typename MetricNameT = Aws::String>
65 PredictiveScalingMetric& WithMetricName(MetricNameT&& value) { SetMetricName(std::forward<MetricNameT>(value)); return *this;}
67
69
72 inline const Aws::String& GetNamespace() const { return m_namespace; }
73 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
74 template<typename NamespaceT = Aws::String>
75 void SetNamespace(NamespaceT&& value) { m_namespaceHasBeenSet = true; m_namespace = std::forward<NamespaceT>(value); }
76 template<typename NamespaceT = Aws::String>
77 PredictiveScalingMetric& WithNamespace(NamespaceT&& value) { SetNamespace(std::forward<NamespaceT>(value)); return *this;}
79 private:
80
82 bool m_dimensionsHasBeenSet = false;
83
84 Aws::String m_metricName;
85 bool m_metricNameHasBeenSet = false;
86
87 Aws::String m_namespace;
88 bool m_namespaceHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace ApplicationAutoScaling
93} // 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