AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TargetTrackingMetric.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/TargetTrackingMetricDimension.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
35 {
36 public:
37 AWS_APPLICATIONAUTOSCALING_API TargetTrackingMetric();
38 AWS_APPLICATIONAUTOSCALING_API TargetTrackingMetric(Aws::Utils::Json::JsonView jsonValue);
39 AWS_APPLICATIONAUTOSCALING_API TargetTrackingMetric& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_APPLICATIONAUTOSCALING_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
53 inline const Aws::Vector<TargetTrackingMetricDimension>& GetDimensions() const{ return m_dimensions; }
54 inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; }
55 inline void SetDimensions(const Aws::Vector<TargetTrackingMetricDimension>& value) { m_dimensionsHasBeenSet = true; m_dimensions = value; }
56 inline void SetDimensions(Aws::Vector<TargetTrackingMetricDimension>&& value) { m_dimensionsHasBeenSet = true; m_dimensions = std::move(value); }
59 inline TargetTrackingMetric& AddDimensions(const TargetTrackingMetricDimension& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(value); return *this; }
60 inline TargetTrackingMetric& AddDimensions(TargetTrackingMetricDimension&& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(std::move(value)); return *this; }
62
64
67 inline const Aws::String& GetMetricName() const{ return m_metricName; }
68 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
69 inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
70 inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
71 inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
72 inline TargetTrackingMetric& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
73 inline TargetTrackingMetric& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
74 inline TargetTrackingMetric& WithMetricName(const char* value) { SetMetricName(value); return *this;}
76
78
84 inline const Aws::String& GetNamespace() const{ return m_namespace; }
85 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
86 inline void SetNamespace(const Aws::String& value) { m_namespaceHasBeenSet = true; m_namespace = value; }
87 inline void SetNamespace(Aws::String&& value) { m_namespaceHasBeenSet = true; m_namespace = std::move(value); }
88 inline void SetNamespace(const char* value) { m_namespaceHasBeenSet = true; m_namespace.assign(value); }
89 inline TargetTrackingMetric& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;}
90 inline TargetTrackingMetric& WithNamespace(Aws::String&& value) { SetNamespace(std::move(value)); return *this;}
91 inline TargetTrackingMetric& WithNamespace(const char* value) { SetNamespace(value); return *this;}
93 private:
94
96 bool m_dimensionsHasBeenSet = false;
97
98 Aws::String m_metricName;
99 bool m_metricNameHasBeenSet = false;
100
101 Aws::String m_namespace;
102 bool m_namespaceHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace ApplicationAutoScaling
107} // namespace Aws
TargetTrackingMetric & WithMetricName(const char *value)
AWS_APPLICATIONAUTOSCALING_API TargetTrackingMetric()
void SetDimensions(const Aws::Vector< TargetTrackingMetricDimension > &value)
AWS_APPLICATIONAUTOSCALING_API TargetTrackingMetric(Aws::Utils::Json::JsonView jsonValue)
TargetTrackingMetric & AddDimensions(const TargetTrackingMetricDimension &value)
TargetTrackingMetric & WithNamespace(const char *value)
AWS_APPLICATIONAUTOSCALING_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< TargetTrackingMetricDimension > & GetDimensions() const
AWS_APPLICATIONAUTOSCALING_API TargetTrackingMetric & operator=(Aws::Utils::Json::JsonView jsonValue)
TargetTrackingMetric & WithDimensions(Aws::Vector< TargetTrackingMetricDimension > &&value)
TargetTrackingMetric & WithNamespace(const Aws::String &value)
TargetTrackingMetric & AddDimensions(TargetTrackingMetricDimension &&value)
TargetTrackingMetric & WithMetricName(Aws::String &&value)
TargetTrackingMetric & WithNamespace(Aws::String &&value)
TargetTrackingMetric & WithMetricName(const Aws::String &value)
void SetDimensions(Aws::Vector< TargetTrackingMetricDimension > &&value)
TargetTrackingMetric & WithDimensions(const Aws::Vector< TargetTrackingMetricDimension > &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