AWS SDK for C++

AWS SDK for C++ Version 1.11.609

Loading...
Searching...
No Matches
CustomizedLoadMetricSpecification.h
1
6#pragma once
7#include <aws/autoscaling-plans/AutoScalingPlans_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/autoscaling-plans/model/MetricStatistic.h>
11#include <aws/autoscaling-plans/model/MetricDimension.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace AutoScalingPlans
25{
26namespace Model
27{
28
61 {
62 public:
63 AWS_AUTOSCALINGPLANS_API CustomizedLoadMetricSpecification() = default;
66 AWS_AUTOSCALINGPLANS_API Aws::Utils::Json::JsonValue Jsonize() const;
67
68
70
73 inline const Aws::String& GetMetricName() const { return m_metricName; }
74 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
75 template<typename MetricNameT = Aws::String>
76 void SetMetricName(MetricNameT&& value) { m_metricNameHasBeenSet = true; m_metricName = std::forward<MetricNameT>(value); }
77 template<typename MetricNameT = Aws::String>
78 CustomizedLoadMetricSpecification& WithMetricName(MetricNameT&& value) { SetMetricName(std::forward<MetricNameT>(value)); return *this;}
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) { m_namespaceHasBeenSet = true; m_namespace = std::forward<NamespaceT>(value); }
89 template<typename NamespaceT = Aws::String>
90 CustomizedLoadMetricSpecification& WithNamespace(NamespaceT&& value) { SetNamespace(std::forward<NamespaceT>(value)); return *this;}
92
94
99 inline const Aws::Vector<MetricDimension>& GetDimensions() const { return m_dimensions; }
100 inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; }
101 template<typename DimensionsT = Aws::Vector<MetricDimension>>
102 void SetDimensions(DimensionsT&& value) { m_dimensionsHasBeenSet = true; m_dimensions = std::forward<DimensionsT>(value); }
103 template<typename DimensionsT = Aws::Vector<MetricDimension>>
104 CustomizedLoadMetricSpecification& WithDimensions(DimensionsT&& value) { SetDimensions(std::forward<DimensionsT>(value)); return *this;}
105 template<typename DimensionsT = MetricDimension>
106 CustomizedLoadMetricSpecification& AddDimensions(DimensionsT&& value) { m_dimensionsHasBeenSet = true; m_dimensions.emplace_back(std::forward<DimensionsT>(value)); return *this; }
108
110
113 inline MetricStatistic GetStatistic() const { return m_statistic; }
114 inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; }
115 inline void SetStatistic(MetricStatistic value) { m_statisticHasBeenSet = true; m_statistic = value; }
118
120
123 inline const Aws::String& GetUnit() const { return m_unit; }
124 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
125 template<typename UnitT = Aws::String>
126 void SetUnit(UnitT&& value) { m_unitHasBeenSet = true; m_unit = std::forward<UnitT>(value); }
127 template<typename UnitT = Aws::String>
128 CustomizedLoadMetricSpecification& WithUnit(UnitT&& value) { SetUnit(std::forward<UnitT>(value)); return *this;}
130 private:
131
132 Aws::String m_metricName;
133 bool m_metricNameHasBeenSet = false;
134
135 Aws::String m_namespace;
136 bool m_namespaceHasBeenSet = false;
137
138 Aws::Vector<MetricDimension> m_dimensions;
139 bool m_dimensionsHasBeenSet = false;
140
142 bool m_statisticHasBeenSet = false;
143
144 Aws::String m_unit;
145 bool m_unitHasBeenSet = false;
146 };
147
148} // namespace Model
149} // namespace AutoScalingPlans
150} // 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