AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
43 AWS_AUTOSCALINGPLANS_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const LoadMetricType& GetPredefinedLoadMetricType() const{ return m_predefinedLoadMetricType; }
51 inline bool PredefinedLoadMetricTypeHasBeenSet() const { return m_predefinedLoadMetricTypeHasBeenSet; }
52 inline void SetPredefinedLoadMetricType(const LoadMetricType& value) { m_predefinedLoadMetricTypeHasBeenSet = true; m_predefinedLoadMetricType = value; }
53 inline void SetPredefinedLoadMetricType(LoadMetricType&& value) { m_predefinedLoadMetricTypeHasBeenSet = true; m_predefinedLoadMetricType = std::move(value); }
57
59
78 inline const Aws::String& GetResourceLabel() const{ return m_resourceLabel; }
79 inline bool ResourceLabelHasBeenSet() const { return m_resourceLabelHasBeenSet; }
80 inline void SetResourceLabel(const Aws::String& value) { m_resourceLabelHasBeenSet = true; m_resourceLabel = value; }
81 inline void SetResourceLabel(Aws::String&& value) { m_resourceLabelHasBeenSet = true; m_resourceLabel = std::move(value); }
82 inline void SetResourceLabel(const char* value) { m_resourceLabelHasBeenSet = true; m_resourceLabel.assign(value); }
84 inline PredefinedLoadMetricSpecification& WithResourceLabel(Aws::String&& value) { SetResourceLabel(std::move(value)); return *this;}
85 inline PredefinedLoadMetricSpecification& WithResourceLabel(const char* value) { SetResourceLabel(value); return *this;}
87 private:
88
89 LoadMetricType m_predefinedLoadMetricType;
90 bool m_predefinedLoadMetricTypeHasBeenSet = false;
91
92 Aws::String m_resourceLabel;
93 bool m_resourceLabelHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace AutoScalingPlans
98} // namespace Aws
AWS_AUTOSCALINGPLANS_API Aws::Utils::Json::JsonValue Jsonize() const
PredefinedLoadMetricSpecification & WithResourceLabel(const Aws::String &value)
AWS_AUTOSCALINGPLANS_API PredefinedLoadMetricSpecification(Aws::Utils::Json::JsonView jsonValue)
PredefinedLoadMetricSpecification & WithPredefinedLoadMetricType(const LoadMetricType &value)
PredefinedLoadMetricSpecification & WithResourceLabel(Aws::String &&value)
AWS_AUTOSCALINGPLANS_API PredefinedLoadMetricSpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
PredefinedLoadMetricSpecification & WithResourceLabel(const char *value)
PredefinedLoadMetricSpecification & WithPredefinedLoadMetricType(LoadMetricType &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue