AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PredefinedMetricSpecification.h
1
6#pragma once
7#include <aws/application-autoscaling/ApplicationAutoScaling_EXPORTS.h>
8#include <aws/application-autoscaling/model/MetricType.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 ApplicationAutoScaling
23{
24namespace Model
25{
26
37 {
38 public:
39 AWS_APPLICATIONAUTOSCALING_API PredefinedMetricSpecification();
40 AWS_APPLICATIONAUTOSCALING_API PredefinedMetricSpecification(Aws::Utils::Json::JsonView jsonValue);
41 AWS_APPLICATIONAUTOSCALING_API PredefinedMetricSpecification& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_APPLICATIONAUTOSCALING_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline const MetricType& GetPredefinedMetricType() const{ return m_predefinedMetricType; }
51 inline bool PredefinedMetricTypeHasBeenSet() const { return m_predefinedMetricTypeHasBeenSet; }
52 inline void SetPredefinedMetricType(const MetricType& value) { m_predefinedMetricTypeHasBeenSet = true; m_predefinedMetricType = value; }
53 inline void SetPredefinedMetricType(MetricType&& value) { m_predefinedMetricTypeHasBeenSet = true; m_predefinedMetricType = 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); }
83 inline PredefinedMetricSpecification& WithResourceLabel(const Aws::String& value) { SetResourceLabel(value); return *this;}
84 inline PredefinedMetricSpecification& WithResourceLabel(Aws::String&& value) { SetResourceLabel(std::move(value)); return *this;}
85 inline PredefinedMetricSpecification& WithResourceLabel(const char* value) { SetResourceLabel(value); return *this;}
87 private:
88
89 MetricType m_predefinedMetricType;
90 bool m_predefinedMetricTypeHasBeenSet = false;
91
92 Aws::String m_resourceLabel;
93 bool m_resourceLabelHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace ApplicationAutoScaling
98} // namespace Aws
PredefinedMetricSpecification & WithPredefinedMetricType(MetricType &&value)
PredefinedMetricSpecification & WithResourceLabel(Aws::String &&value)
AWS_APPLICATIONAUTOSCALING_API PredefinedMetricSpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPLICATIONAUTOSCALING_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPLICATIONAUTOSCALING_API PredefinedMetricSpecification(Aws::Utils::Json::JsonView jsonValue)
PredefinedMetricSpecification & WithPredefinedMetricType(const MetricType &value)
PredefinedMetricSpecification & WithResourceLabel(const Aws::String &value)
PredefinedMetricSpecification & WithResourceLabel(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue