AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PredictiveScalingPredefinedLoadMetricSpecification.h
1
6#pragma once
7#include <aws/application-autoscaling/ApplicationAutoScaling_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ApplicationAutoScaling
22{
23namespace Model
24{
25
45 {
46 public:
47 AWS_APPLICATIONAUTOSCALING_API PredictiveScalingPredefinedLoadMetricSpecification() = default;
50 AWS_APPLICATIONAUTOSCALING_API Aws::Utils::Json::JsonValue Jsonize() const;
51
52
54
57 inline const Aws::String& GetPredefinedMetricType() const { return m_predefinedMetricType; }
58 inline bool PredefinedMetricTypeHasBeenSet() const { return m_predefinedMetricTypeHasBeenSet; }
59 template<typename PredefinedMetricTypeT = Aws::String>
60 void SetPredefinedMetricType(PredefinedMetricTypeT&& value) { m_predefinedMetricTypeHasBeenSet = true; m_predefinedMetricType = std::forward<PredefinedMetricTypeT>(value); }
61 template<typename PredefinedMetricTypeT = Aws::String>
62 PredictiveScalingPredefinedLoadMetricSpecification& WithPredefinedMetricType(PredefinedMetricTypeT&& value) { SetPredefinedMetricType(std::forward<PredefinedMetricTypeT>(value)); return *this;}
64
66
69 inline const Aws::String& GetResourceLabel() const { return m_resourceLabel; }
70 inline bool ResourceLabelHasBeenSet() const { return m_resourceLabelHasBeenSet; }
71 template<typename ResourceLabelT = Aws::String>
72 void SetResourceLabel(ResourceLabelT&& value) { m_resourceLabelHasBeenSet = true; m_resourceLabel = std::forward<ResourceLabelT>(value); }
73 template<typename ResourceLabelT = Aws::String>
74 PredictiveScalingPredefinedLoadMetricSpecification& WithResourceLabel(ResourceLabelT&& value) { SetResourceLabel(std::forward<ResourceLabelT>(value)); return *this;}
76 private:
77
78 Aws::String m_predefinedMetricType;
79 bool m_predefinedMetricTypeHasBeenSet = false;
80
81 Aws::String m_resourceLabel;
82 bool m_resourceLabelHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace ApplicationAutoScaling
87} // namespace Aws
AWS_APPLICATIONAUTOSCALING_API PredictiveScalingPredefinedLoadMetricSpecification(Aws::Utils::Json::JsonView jsonValue)
AWS_APPLICATIONAUTOSCALING_API Aws::Utils::Json::JsonValue Jsonize() const
PredictiveScalingPredefinedLoadMetricSpecification & WithPredefinedMetricType(PredefinedMetricTypeT &&value)
AWS_APPLICATIONAUTOSCALING_API PredictiveScalingPredefinedLoadMetricSpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue