AWS SDK for C++

AWS SDK for C++ Version 1.11.609

Loading...
Searching...
No Matches
PredefinedScalingMetricSpecification.h
1
6#pragma once
7#include <aws/autoscaling-plans/AutoScalingPlans_EXPORTS.h>
8#include <aws/autoscaling-plans/model/ScalingMetricType.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
34 {
35 public:
36 AWS_AUTOSCALINGPLANS_API PredefinedScalingMetricSpecification() = default;
39 AWS_AUTOSCALINGPLANS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline ScalingMetricType GetPredefinedScalingMetricType() const { return m_predefinedScalingMetricType; }
48 inline bool PredefinedScalingMetricTypeHasBeenSet() const { return m_predefinedScalingMetricTypeHasBeenSet; }
49 inline void SetPredefinedScalingMetricType(ScalingMetricType value) { m_predefinedScalingMetricTypeHasBeenSet = true; m_predefinedScalingMetricType = value; }
52
54
74 inline const Aws::String& GetResourceLabel() const { return m_resourceLabel; }
75 inline bool ResourceLabelHasBeenSet() const { return m_resourceLabelHasBeenSet; }
76 template<typename ResourceLabelT = Aws::String>
77 void SetResourceLabel(ResourceLabelT&& value) { m_resourceLabelHasBeenSet = true; m_resourceLabel = std::forward<ResourceLabelT>(value); }
78 template<typename ResourceLabelT = Aws::String>
79 PredefinedScalingMetricSpecification& WithResourceLabel(ResourceLabelT&& value) { SetResourceLabel(std::forward<ResourceLabelT>(value)); return *this;}
81 private:
82
83 ScalingMetricType m_predefinedScalingMetricType{ScalingMetricType::NOT_SET};
84 bool m_predefinedScalingMetricTypeHasBeenSet = false;
85
86 Aws::String m_resourceLabel;
87 bool m_resourceLabelHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace AutoScalingPlans
92} // namespace Aws
PredefinedScalingMetricSpecification & WithResourceLabel(ResourceLabelT &&value)
AWS_AUTOSCALINGPLANS_API PredefinedScalingMetricSpecification()=default
AWS_AUTOSCALINGPLANS_API PredefinedScalingMetricSpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_AUTOSCALINGPLANS_API PredefinedScalingMetricSpecification(Aws::Utils::Json::JsonView jsonValue)
PredefinedScalingMetricSpecification & WithPredefinedScalingMetricType(ScalingMetricType value)
AWS_AUTOSCALINGPLANS_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue