AWS SDK for C++

AWS SDK for C++ Version 1.11.851

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
56 inline MetricType GetPredefinedMetricType() const { return m_predefinedMetricType; }
57 inline bool PredefinedMetricTypeHasBeenSet() const { return m_predefinedMetricTypeHasBeenSet; }
59 m_predefinedMetricTypeHasBeenSet = true;
60 m_predefinedMetricType = value;
61 }
64 return *this;
65 }
67
69
88 inline const Aws::String& GetResourceLabel() const { return m_resourceLabel; }
89 inline bool ResourceLabelHasBeenSet() const { return m_resourceLabelHasBeenSet; }
90 template <typename ResourceLabelT = Aws::String>
91 void SetResourceLabel(ResourceLabelT&& value) {
92 m_resourceLabelHasBeenSet = true;
93 m_resourceLabel = std::forward<ResourceLabelT>(value);
94 }
95 template <typename ResourceLabelT = Aws::String>
97 SetResourceLabel(std::forward<ResourceLabelT>(value));
98 return *this;
99 }
101 private:
102 MetricType m_predefinedMetricType{MetricType::NOT_SET};
103
104 Aws::String m_resourceLabel;
105 bool m_predefinedMetricTypeHasBeenSet = false;
106 bool m_resourceLabelHasBeenSet = false;
107};
108
109} // namespace Model
110} // namespace ApplicationAutoScaling
111} // 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