AWS SDK for C++

AWS SDK for C++ Version 1.11.752

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ApplicationAutoScaling {
21namespace Model {
22
33 public:
34 AWS_APPLICATIONAUTOSCALING_API PredefinedMetricSpecification() = default;
35 AWS_APPLICATIONAUTOSCALING_API PredefinedMetricSpecification(Aws::Utils::Json::JsonView jsonValue);
36 AWS_APPLICATIONAUTOSCALING_API PredefinedMetricSpecification& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_APPLICATIONAUTOSCALING_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
44 inline MetricType GetPredefinedMetricType() const { return m_predefinedMetricType; }
45 inline bool PredefinedMetricTypeHasBeenSet() const { return m_predefinedMetricTypeHasBeenSet; }
47 m_predefinedMetricTypeHasBeenSet = true;
48 m_predefinedMetricType = value;
49 }
52 return *this;
53 }
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) {
80 m_resourceLabelHasBeenSet = true;
81 m_resourceLabel = std::forward<ResourceLabelT>(value);
82 }
83 template <typename ResourceLabelT = Aws::String>
85 SetResourceLabel(std::forward<ResourceLabelT>(value));
86 return *this;
87 }
89 private:
90 MetricType m_predefinedMetricType{MetricType::NOT_SET};
91
92 Aws::String m_resourceLabel;
93 bool m_predefinedMetricTypeHasBeenSet = false;
94 bool m_resourceLabelHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace ApplicationAutoScaling
99} // 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