AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PredictiveScalingPredefinedScalingMetricSpecification.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 PredictiveScalingPredefinedScalingMetricSpecification() = 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 PredictiveScalingPredefinedScalingMetricSpecification& WithPredefinedMetricType(PredefinedMetricTypeT&& value) { SetPredefinedMetricType(std::forward<PredefinedMetricTypeT>(value)); return *this;}
64
66
70 inline const Aws::String& GetResourceLabel() const { return m_resourceLabel; }
71 inline bool ResourceLabelHasBeenSet() const { return m_resourceLabelHasBeenSet; }
72 template<typename ResourceLabelT = Aws::String>
73 void SetResourceLabel(ResourceLabelT&& value) { m_resourceLabelHasBeenSet = true; m_resourceLabel = std::forward<ResourceLabelT>(value); }
74 template<typename ResourceLabelT = Aws::String>
75 PredictiveScalingPredefinedScalingMetricSpecification& WithResourceLabel(ResourceLabelT&& value) { SetResourceLabel(std::forward<ResourceLabelT>(value)); return *this;}
77 private:
78
79 Aws::String m_predefinedMetricType;
80 bool m_predefinedMetricTypeHasBeenSet = false;
81
82 Aws::String m_resourceLabel;
83 bool m_resourceLabelHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace ApplicationAutoScaling
88} // namespace Aws
AWS_APPLICATIONAUTOSCALING_API PredictiveScalingPredefinedScalingMetricSpecification(Aws::Utils::Json::JsonView jsonValue)
PredictiveScalingPredefinedScalingMetricSpecification & WithPredefinedMetricType(PredefinedMetricTypeT &&value)
AWS_APPLICATIONAUTOSCALING_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPLICATIONAUTOSCALING_API PredictiveScalingPredefinedScalingMetricSpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue