AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
39 AWS_AUTOSCALINGPLANS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const ScalingMetricType& GetPredefinedScalingMetricType() const{ return m_predefinedScalingMetricType; }
48 inline bool PredefinedScalingMetricTypeHasBeenSet() const { return m_predefinedScalingMetricTypeHasBeenSet; }
49 inline void SetPredefinedScalingMetricType(const ScalingMetricType& value) { m_predefinedScalingMetricTypeHasBeenSet = true; m_predefinedScalingMetricType = value; }
50 inline void SetPredefinedScalingMetricType(ScalingMetricType&& value) { m_predefinedScalingMetricTypeHasBeenSet = true; m_predefinedScalingMetricType = std::move(value); }
54
56
76 inline const Aws::String& GetResourceLabel() const{ return m_resourceLabel; }
77 inline bool ResourceLabelHasBeenSet() const { return m_resourceLabelHasBeenSet; }
78 inline void SetResourceLabel(const Aws::String& value) { m_resourceLabelHasBeenSet = true; m_resourceLabel = value; }
79 inline void SetResourceLabel(Aws::String&& value) { m_resourceLabelHasBeenSet = true; m_resourceLabel = std::move(value); }
80 inline void SetResourceLabel(const char* value) { m_resourceLabelHasBeenSet = true; m_resourceLabel.assign(value); }
82 inline PredefinedScalingMetricSpecification& WithResourceLabel(Aws::String&& value) { SetResourceLabel(std::move(value)); return *this;}
83 inline PredefinedScalingMetricSpecification& WithResourceLabel(const char* value) { SetResourceLabel(value); return *this;}
85 private:
86
87 ScalingMetricType m_predefinedScalingMetricType;
88 bool m_predefinedScalingMetricTypeHasBeenSet = false;
89
90 Aws::String m_resourceLabel;
91 bool m_resourceLabelHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace AutoScalingPlans
96} // namespace Aws
PredefinedScalingMetricSpecification & WithResourceLabel(Aws::String &&value)
AWS_AUTOSCALINGPLANS_API PredefinedScalingMetricSpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
PredefinedScalingMetricSpecification & WithPredefinedScalingMetricType(const ScalingMetricType &value)
AWS_AUTOSCALINGPLANS_API PredefinedScalingMetricSpecification(Aws::Utils::Json::JsonView jsonValue)
PredefinedScalingMetricSpecification & WithResourceLabel(const Aws::String &value)
PredefinedScalingMetricSpecification & WithResourceLabel(const char *value)
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