AWS SDK for C++

AWS SDK for C++ Version 1.11.759

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
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
30 public:
31 AWS_AUTOSCALINGPLANS_API PredefinedScalingMetricSpecification() = default;
34 AWS_AUTOSCALINGPLANS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline ScalingMetricType GetPredefinedScalingMetricType() const { return m_predefinedScalingMetricType; }
42 inline bool PredefinedScalingMetricTypeHasBeenSet() const { return m_predefinedScalingMetricTypeHasBeenSet; }
44 m_predefinedScalingMetricTypeHasBeenSet = true;
45 m_predefinedScalingMetricType = value;
46 }
49 return *this;
50 }
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) {
78 m_resourceLabelHasBeenSet = true;
79 m_resourceLabel = std::forward<ResourceLabelT>(value);
80 }
81 template <typename ResourceLabelT = Aws::String>
83 SetResourceLabel(std::forward<ResourceLabelT>(value));
84 return *this;
85 }
87 private:
88 ScalingMetricType m_predefinedScalingMetricType{ScalingMetricType::NOT_SET};
89
90 Aws::String m_resourceLabel;
91 bool m_predefinedScalingMetricTypeHasBeenSet = false;
92 bool m_resourceLabelHasBeenSet = false;
93};
94
95} // namespace Model
96} // namespace AutoScalingPlans
97} // 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