AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
PredefinedMetricSpecification.h
1
6#pragma once
7#include <aws/application-autoscaling/ApplicationAutoScaling_EXPORTS.h>
8#include <aws/application-autoscaling/model/MetricType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ApplicationAutoScaling
23{
24namespace Model
25{
26
37 {
38 public:
39 AWS_APPLICATIONAUTOSCALING_API PredefinedMetricSpecification() = default;
40 AWS_APPLICATIONAUTOSCALING_API PredefinedMetricSpecification(Aws::Utils::Json::JsonView jsonValue);
41 AWS_APPLICATIONAUTOSCALING_API PredefinedMetricSpecification& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_APPLICATIONAUTOSCALING_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline MetricType GetPredefinedMetricType() const { return m_predefinedMetricType; }
51 inline bool PredefinedMetricTypeHasBeenSet() const { return m_predefinedMetricTypeHasBeenSet; }
52 inline void SetPredefinedMetricType(MetricType value) { m_predefinedMetricTypeHasBeenSet = true; m_predefinedMetricType = value; }
55
57
76 inline const Aws::String& GetResourceLabel() const { return m_resourceLabel; }
77 inline bool ResourceLabelHasBeenSet() const { return m_resourceLabelHasBeenSet; }
78 template<typename ResourceLabelT = Aws::String>
79 void SetResourceLabel(ResourceLabelT&& value) { m_resourceLabelHasBeenSet = true; m_resourceLabel = std::forward<ResourceLabelT>(value); }
80 template<typename ResourceLabelT = Aws::String>
81 PredefinedMetricSpecification& WithResourceLabel(ResourceLabelT&& value) { SetResourceLabel(std::forward<ResourceLabelT>(value)); return *this;}
83 private:
84
85 MetricType m_predefinedMetricType{MetricType::NOT_SET};
86 bool m_predefinedMetricTypeHasBeenSet = false;
87
88 Aws::String m_resourceLabel;
89 bool m_resourceLabelHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace ApplicationAutoScaling
94} // namespace Aws
AWS_APPLICATIONAUTOSCALING_API PredefinedMetricSpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
PredefinedMetricSpecification & WithResourceLabel(ResourceLabelT &&value)
AWS_APPLICATIONAUTOSCALING_API PredefinedMetricSpecification()=default
AWS_APPLICATIONAUTOSCALING_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPLICATIONAUTOSCALING_API PredefinedMetricSpecification(Aws::Utils::Json::JsonView jsonValue)
PredefinedMetricSpecification & WithPredefinedMetricType(MetricType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue