AWS SDK for C++

AWS SDK for C++ Version 1.11.609

Loading...
Searching...
No Matches
PredefinedLoadMetricSpecification.h
1
6#pragma once
7#include <aws/autoscaling-plans/AutoScalingPlans_EXPORTS.h>
8#include <aws/autoscaling-plans/model/LoadMetricType.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 AutoScalingPlans
23{
24namespace Model
25{
26
38 {
39 public:
40 AWS_AUTOSCALINGPLANS_API PredefinedLoadMetricSpecification() = default;
43 AWS_AUTOSCALINGPLANS_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline LoadMetricType GetPredefinedLoadMetricType() const { return m_predefinedLoadMetricType; }
51 inline bool PredefinedLoadMetricTypeHasBeenSet() const { return m_predefinedLoadMetricTypeHasBeenSet; }
52 inline void SetPredefinedLoadMetricType(LoadMetricType value) { m_predefinedLoadMetricTypeHasBeenSet = true; m_predefinedLoadMetricType = 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 PredefinedLoadMetricSpecification& WithResourceLabel(ResourceLabelT&& value) { SetResourceLabel(std::forward<ResourceLabelT>(value)); return *this;}
83 private:
84
85 LoadMetricType m_predefinedLoadMetricType{LoadMetricType::NOT_SET};
86 bool m_predefinedLoadMetricTypeHasBeenSet = false;
87
88 Aws::String m_resourceLabel;
89 bool m_resourceLabelHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace AutoScalingPlans
94} // namespace Aws
AWS_AUTOSCALINGPLANS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_AUTOSCALINGPLANS_API PredefinedLoadMetricSpecification(Aws::Utils::Json::JsonView jsonValue)
PredefinedLoadMetricSpecification & WithResourceLabel(ResourceLabelT &&value)
AWS_AUTOSCALINGPLANS_API PredefinedLoadMetricSpecification()=default
PredefinedLoadMetricSpecification & WithPredefinedLoadMetricType(LoadMetricType value)
AWS_AUTOSCALINGPLANS_API PredefinedLoadMetricSpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue