AWS SDK for C++

AWS SDK for C++ Version 1.11.609

Loading...
Searching...
No Matches
CustomizedScalingMetricSpecification.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
50 {
51 public:
52 AWS_AUTOSCALINGPLANS_API CustomizedScalingMetricSpecification() = default;
55 AWS_AUTOSCALINGPLANS_API Aws::Utils::Json::JsonValue Jsonize() const;
56
57
59
62 inline const Aws::String& GetMetricName() const { return m_metricName; }
63 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
64 template<typename MetricNameT = Aws::String>
65 void SetMetricName(MetricNameT&& value) { m_metricNameHasBeenSet = true; m_metricName = std::forward<MetricNameT>(value); }
66 template<typename MetricNameT = Aws::String>
67 CustomizedScalingMetricSpecification& WithMetricName(MetricNameT&& value) { SetMetricName(std::forward<MetricNameT>(value)); return *this;}
69
71
74 inline const Aws::String& GetNamespace() const { return m_namespace; }
75 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
76 template<typename NamespaceT = Aws::String>
77 void SetNamespace(NamespaceT&& value) { m_namespaceHasBeenSet = true; m_namespace = std::forward<NamespaceT>(value); }
78 template<typename NamespaceT = Aws::String>
79 CustomizedScalingMetricSpecification& WithNamespace(NamespaceT&& value) { SetNamespace(std::forward<NamespaceT>(value)); return *this;}
81
83
88 inline const Aws::Vector<MetricDimension>& GetDimensions() const { return m_dimensions; }
89 inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; }
90 template<typename DimensionsT = Aws::Vector<MetricDimension>>
91 void SetDimensions(DimensionsT&& value) { m_dimensionsHasBeenSet = true; m_dimensions = std::forward<DimensionsT>(value); }
92 template<typename DimensionsT = Aws::Vector<MetricDimension>>
93 CustomizedScalingMetricSpecification& WithDimensions(DimensionsT&& value) { SetDimensions(std::forward<DimensionsT>(value)); return *this;}
94 template<typename DimensionsT = MetricDimension>
95 CustomizedScalingMetricSpecification& AddDimensions(DimensionsT&& value) { m_dimensionsHasBeenSet = true; m_dimensions.emplace_back(std::forward<DimensionsT>(value)); return *this; }
97
99
102 inline MetricStatistic GetStatistic() const { return m_statistic; }
103 inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; }
104 inline void SetStatistic(MetricStatistic value) { m_statisticHasBeenSet = true; m_statistic = value; }
107
109
112 inline const Aws::String& GetUnit() const { return m_unit; }
113 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
114 template<typename UnitT = Aws::String>
115 void SetUnit(UnitT&& value) { m_unitHasBeenSet = true; m_unit = std::forward<UnitT>(value); }
116 template<typename UnitT = Aws::String>
117 CustomizedScalingMetricSpecification& WithUnit(UnitT&& value) { SetUnit(std::forward<UnitT>(value)); return *this;}
119 private:
120
121 Aws::String m_metricName;
122 bool m_metricNameHasBeenSet = false;
123
124 Aws::String m_namespace;
125 bool m_namespaceHasBeenSet = false;
126
127 Aws::Vector<MetricDimension> m_dimensions;
128 bool m_dimensionsHasBeenSet = false;
129
131 bool m_statisticHasBeenSet = false;
132
133 Aws::String m_unit;
134 bool m_unitHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace AutoScalingPlans
139} // namespace Aws
AWS_AUTOSCALINGPLANS_API CustomizedScalingMetricSpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
CustomizedScalingMetricSpecification & WithDimensions(DimensionsT &&value)
CustomizedScalingMetricSpecification & WithNamespace(NamespaceT &&value)
AWS_AUTOSCALINGPLANS_API CustomizedScalingMetricSpecification()=default
AWS_AUTOSCALINGPLANS_API CustomizedScalingMetricSpecification(Aws::Utils::Json::JsonView jsonValue)
AWS_AUTOSCALINGPLANS_API Aws::Utils::Json::JsonValue Jsonize() const
CustomizedScalingMetricSpecification & WithMetricName(MetricNameT &&value)
CustomizedScalingMetricSpecification & AddDimensions(DimensionsT &&value)
CustomizedScalingMetricSpecification & WithStatistic(MetricStatistic 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