AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CustomizedMetricSpecification.h
1
6#pragma once
7#include <aws/application-autoscaling/ApplicationAutoScaling_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/application-autoscaling/model/MetricStatistic.h>
11#include <aws/application-autoscaling/model/MetricDimension.h>
12#include <aws/application-autoscaling/model/TargetTrackingMetricDataQuery.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace ApplicationAutoScaling
26{
27namespace Model
28{
29
55 {
56 public:
57 AWS_APPLICATIONAUTOSCALING_API CustomizedMetricSpecification();
58 AWS_APPLICATIONAUTOSCALING_API CustomizedMetricSpecification(Aws::Utils::Json::JsonView jsonValue);
59 AWS_APPLICATIONAUTOSCALING_API CustomizedMetricSpecification& operator=(Aws::Utils::Json::JsonView jsonValue);
60 AWS_APPLICATIONAUTOSCALING_API Aws::Utils::Json::JsonValue Jsonize() const;
61
62
64
71 inline const Aws::String& GetMetricName() const{ return m_metricName; }
72 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
73 inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
74 inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
75 inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
76 inline CustomizedMetricSpecification& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
77 inline CustomizedMetricSpecification& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
78 inline CustomizedMetricSpecification& WithMetricName(const char* value) { SetMetricName(value); return *this;}
80
82
85 inline const Aws::String& GetNamespace() const{ return m_namespace; }
86 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
87 inline void SetNamespace(const Aws::String& value) { m_namespaceHasBeenSet = true; m_namespace = value; }
88 inline void SetNamespace(Aws::String&& value) { m_namespaceHasBeenSet = true; m_namespace = std::move(value); }
89 inline void SetNamespace(const char* value) { m_namespaceHasBeenSet = true; m_namespace.assign(value); }
90 inline CustomizedMetricSpecification& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;}
91 inline CustomizedMetricSpecification& WithNamespace(Aws::String&& value) { SetNamespace(std::move(value)); return *this;}
92 inline CustomizedMetricSpecification& WithNamespace(const char* value) { SetNamespace(value); return *this;}
94
96
101 inline const Aws::Vector<MetricDimension>& GetDimensions() const{ return m_dimensions; }
102 inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; }
103 inline void SetDimensions(const Aws::Vector<MetricDimension>& value) { m_dimensionsHasBeenSet = true; m_dimensions = value; }
104 inline void SetDimensions(Aws::Vector<MetricDimension>&& value) { m_dimensionsHasBeenSet = true; m_dimensions = std::move(value); }
107 inline CustomizedMetricSpecification& AddDimensions(const MetricDimension& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(value); return *this; }
108 inline CustomizedMetricSpecification& AddDimensions(MetricDimension&& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(std::move(value)); return *this; }
110
112
115 inline const MetricStatistic& GetStatistic() const{ return m_statistic; }
116 inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; }
117 inline void SetStatistic(const MetricStatistic& value) { m_statisticHasBeenSet = true; m_statistic = value; }
118 inline void SetStatistic(MetricStatistic&& value) { m_statisticHasBeenSet = true; m_statistic = std::move(value); }
119 inline CustomizedMetricSpecification& WithStatistic(const MetricStatistic& value) { SetStatistic(value); return *this;}
120 inline CustomizedMetricSpecification& WithStatistic(MetricStatistic&& value) { SetStatistic(std::move(value)); return *this;}
122
124
130 inline const Aws::String& GetUnit() const{ return m_unit; }
131 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
132 inline void SetUnit(const Aws::String& value) { m_unitHasBeenSet = true; m_unit = value; }
133 inline void SetUnit(Aws::String&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
134 inline void SetUnit(const char* value) { m_unitHasBeenSet = true; m_unit.assign(value); }
135 inline CustomizedMetricSpecification& WithUnit(const Aws::String& value) { SetUnit(value); return *this;}
136 inline CustomizedMetricSpecification& WithUnit(Aws::String&& value) { SetUnit(std::move(value)); return *this;}
137 inline CustomizedMetricSpecification& WithUnit(const char* value) { SetUnit(value); return *this;}
139
141
145 inline const Aws::Vector<TargetTrackingMetricDataQuery>& GetMetrics() const{ return m_metrics; }
146 inline bool MetricsHasBeenSet() const { return m_metricsHasBeenSet; }
147 inline void SetMetrics(const Aws::Vector<TargetTrackingMetricDataQuery>& value) { m_metricsHasBeenSet = true; m_metrics = value; }
148 inline void SetMetrics(Aws::Vector<TargetTrackingMetricDataQuery>&& value) { m_metricsHasBeenSet = true; m_metrics = std::move(value); }
151 inline CustomizedMetricSpecification& AddMetrics(const TargetTrackingMetricDataQuery& value) { m_metricsHasBeenSet = true; m_metrics.push_back(value); return *this; }
152 inline CustomizedMetricSpecification& AddMetrics(TargetTrackingMetricDataQuery&& value) { m_metricsHasBeenSet = true; m_metrics.push_back(std::move(value)); return *this; }
154 private:
155
156 Aws::String m_metricName;
157 bool m_metricNameHasBeenSet = false;
158
159 Aws::String m_namespace;
160 bool m_namespaceHasBeenSet = false;
161
162 Aws::Vector<MetricDimension> m_dimensions;
163 bool m_dimensionsHasBeenSet = false;
164
165 MetricStatistic m_statistic;
166 bool m_statisticHasBeenSet = false;
167
168 Aws::String m_unit;
169 bool m_unitHasBeenSet = false;
170
172 bool m_metricsHasBeenSet = false;
173 };
174
175} // namespace Model
176} // namespace ApplicationAutoScaling
177} // namespace Aws
CustomizedMetricSpecification & AddMetrics(TargetTrackingMetricDataQuery &&value)
CustomizedMetricSpecification & WithStatistic(MetricStatistic &&value)
CustomizedMetricSpecification & AddMetrics(const TargetTrackingMetricDataQuery &value)
CustomizedMetricSpecification & WithNamespace(const Aws::String &value)
CustomizedMetricSpecification & AddDimensions(const MetricDimension &value)
CustomizedMetricSpecification & WithDimensions(Aws::Vector< MetricDimension > &&value)
void SetMetrics(Aws::Vector< TargetTrackingMetricDataQuery > &&value)
CustomizedMetricSpecification & WithMetricName(const Aws::String &value)
AWS_APPLICATIONAUTOSCALING_API CustomizedMetricSpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
CustomizedMetricSpecification & WithMetrics(const Aws::Vector< TargetTrackingMetricDataQuery > &value)
CustomizedMetricSpecification & AddDimensions(MetricDimension &&value)
AWS_APPLICATIONAUTOSCALING_API CustomizedMetricSpecification(Aws::Utils::Json::JsonView jsonValue)
CustomizedMetricSpecification & WithMetricName(Aws::String &&value)
void SetMetrics(const Aws::Vector< TargetTrackingMetricDataQuery > &value)
CustomizedMetricSpecification & WithNamespace(Aws::String &&value)
CustomizedMetricSpecification & WithStatistic(const MetricStatistic &value)
AWS_APPLICATIONAUTOSCALING_API Aws::Utils::Json::JsonValue Jsonize() const
CustomizedMetricSpecification & WithDimensions(const Aws::Vector< MetricDimension > &value)
const Aws::Vector< TargetTrackingMetricDataQuery > & GetMetrics() const
CustomizedMetricSpecification & WithMetrics(Aws::Vector< TargetTrackingMetricDataQuery > &&value)
CustomizedMetricSpecification & WithUnit(const Aws::String &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