AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
76 inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
77 inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
78 inline CustomizedLoadMetricSpecification& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
79 inline CustomizedLoadMetricSpecification& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
80 inline CustomizedLoadMetricSpecification& WithMetricName(const char* value) { SetMetricName(value); return *this;}
82
84
87 inline const Aws::String& GetNamespace() const{ return m_namespace; }
88 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
89 inline void SetNamespace(const Aws::String& value) { m_namespaceHasBeenSet = true; m_namespace = value; }
90 inline void SetNamespace(Aws::String&& value) { m_namespaceHasBeenSet = true; m_namespace = std::move(value); }
91 inline void SetNamespace(const char* value) { m_namespaceHasBeenSet = true; m_namespace.assign(value); }
92 inline CustomizedLoadMetricSpecification& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;}
93 inline CustomizedLoadMetricSpecification& WithNamespace(Aws::String&& value) { SetNamespace(std::move(value)); return *this;}
94 inline CustomizedLoadMetricSpecification& WithNamespace(const char* value) { SetNamespace(value); return *this;}
96
98
103 inline const Aws::Vector<MetricDimension>& GetDimensions() const{ return m_dimensions; }
104 inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; }
105 inline void SetDimensions(const Aws::Vector<MetricDimension>& value) { m_dimensionsHasBeenSet = true; m_dimensions = value; }
106 inline void SetDimensions(Aws::Vector<MetricDimension>&& value) { m_dimensionsHasBeenSet = true; m_dimensions = std::move(value); }
109 inline CustomizedLoadMetricSpecification& AddDimensions(const MetricDimension& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(value); return *this; }
110 inline CustomizedLoadMetricSpecification& AddDimensions(MetricDimension&& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(std::move(value)); return *this; }
112
114
117 inline const MetricStatistic& GetStatistic() const{ return m_statistic; }
118 inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; }
119 inline void SetStatistic(const MetricStatistic& value) { m_statisticHasBeenSet = true; m_statistic = value; }
120 inline void SetStatistic(MetricStatistic&& value) { m_statisticHasBeenSet = true; m_statistic = std::move(value); }
122 inline CustomizedLoadMetricSpecification& WithStatistic(MetricStatistic&& value) { SetStatistic(std::move(value)); return *this;}
124
126
129 inline const Aws::String& GetUnit() const{ return m_unit; }
130 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
131 inline void SetUnit(const Aws::String& value) { m_unitHasBeenSet = true; m_unit = value; }
132 inline void SetUnit(Aws::String&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
133 inline void SetUnit(const char* value) { m_unitHasBeenSet = true; m_unit.assign(value); }
134 inline CustomizedLoadMetricSpecification& WithUnit(const Aws::String& value) { SetUnit(value); return *this;}
135 inline CustomizedLoadMetricSpecification& WithUnit(Aws::String&& value) { SetUnit(std::move(value)); return *this;}
136 inline CustomizedLoadMetricSpecification& WithUnit(const char* value) { SetUnit(value); return *this;}
138 private:
139
140 Aws::String m_metricName;
141 bool m_metricNameHasBeenSet = false;
142
143 Aws::String m_namespace;
144 bool m_namespaceHasBeenSet = false;
145
146 Aws::Vector<MetricDimension> m_dimensions;
147 bool m_dimensionsHasBeenSet = false;
148
149 MetricStatistic m_statistic;
150 bool m_statisticHasBeenSet = false;
151
152 Aws::String m_unit;
153 bool m_unitHasBeenSet = false;
154 };
155
156} // namespace Model
157} // namespace AutoScalingPlans
158} // namespace Aws
CustomizedLoadMetricSpecification & WithStatistic(const MetricStatistic &value)
CustomizedLoadMetricSpecification & WithDimensions(Aws::Vector< MetricDimension > &&value)
CustomizedLoadMetricSpecification & WithNamespace(const Aws::String &value)
CustomizedLoadMetricSpecification & AddDimensions(const MetricDimension &value)
CustomizedLoadMetricSpecification & WithNamespace(const char *value)
AWS_AUTOSCALINGPLANS_API Aws::Utils::Json::JsonValue Jsonize() const
CustomizedLoadMetricSpecification & WithDimensions(const Aws::Vector< MetricDimension > &value)
CustomizedLoadMetricSpecification & WithMetricName(const char *value)
CustomizedLoadMetricSpecification & WithUnit(Aws::String &&value)
CustomizedLoadMetricSpecification & WithMetricName(const Aws::String &value)
CustomizedLoadMetricSpecification & AddDimensions(MetricDimension &&value)
CustomizedLoadMetricSpecification & WithMetricName(Aws::String &&value)
CustomizedLoadMetricSpecification & WithStatistic(MetricStatistic &&value)
AWS_AUTOSCALINGPLANS_API CustomizedLoadMetricSpecification(Aws::Utils::Json::JsonView jsonValue)
CustomizedLoadMetricSpecification & WithUnit(const Aws::String &value)
AWS_AUTOSCALINGPLANS_API CustomizedLoadMetricSpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
CustomizedLoadMetricSpecification & WithNamespace(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