AWS SDK for C++

AWS SDK for C++ Version 1.11.759

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace AutoScalingPlans {
21namespace Model {
22
34 public:
35 AWS_AUTOSCALINGPLANS_API PredefinedLoadMetricSpecification() = default;
38 AWS_AUTOSCALINGPLANS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline LoadMetricType GetPredefinedLoadMetricType() const { return m_predefinedLoadMetricType; }
45 inline bool PredefinedLoadMetricTypeHasBeenSet() const { return m_predefinedLoadMetricTypeHasBeenSet; }
47 m_predefinedLoadMetricTypeHasBeenSet = true;
48 m_predefinedLoadMetricType = 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 LoadMetricType m_predefinedLoadMetricType{LoadMetricType::NOT_SET};
91
92 Aws::String m_resourceLabel;
93 bool m_predefinedLoadMetricTypeHasBeenSet = false;
94 bool m_resourceLabelHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace AutoScalingPlans
99} // 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