AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PredictiveScalingPredefinedMetricPairSpecification.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
42 {
43 public:
44 AWS_APPLICATIONAUTOSCALING_API PredictiveScalingPredefinedMetricPairSpecification() = default;
47 AWS_APPLICATIONAUTOSCALING_API Aws::Utils::Json::JsonValue Jsonize() const;
48
49
51
55 inline const Aws::String& GetPredefinedMetricType() const { return m_predefinedMetricType; }
56 inline bool PredefinedMetricTypeHasBeenSet() const { return m_predefinedMetricTypeHasBeenSet; }
57 template<typename PredefinedMetricTypeT = Aws::String>
58 void SetPredefinedMetricType(PredefinedMetricTypeT&& value) { m_predefinedMetricTypeHasBeenSet = true; m_predefinedMetricType = std::forward<PredefinedMetricTypeT>(value); }
59 template<typename PredefinedMetricTypeT = Aws::String>
60 PredictiveScalingPredefinedMetricPairSpecification& WithPredefinedMetricType(PredefinedMetricTypeT&& value) { SetPredefinedMetricType(std::forward<PredefinedMetricTypeT>(value)); return *this;}
62
64
68 inline const Aws::String& GetResourceLabel() const { return m_resourceLabel; }
69 inline bool ResourceLabelHasBeenSet() const { return m_resourceLabelHasBeenSet; }
70 template<typename ResourceLabelT = Aws::String>
71 void SetResourceLabel(ResourceLabelT&& value) { m_resourceLabelHasBeenSet = true; m_resourceLabel = std::forward<ResourceLabelT>(value); }
72 template<typename ResourceLabelT = Aws::String>
73 PredictiveScalingPredefinedMetricPairSpecification& WithResourceLabel(ResourceLabelT&& value) { SetResourceLabel(std::forward<ResourceLabelT>(value)); return *this;}
75 private:
76
77 Aws::String m_predefinedMetricType;
78 bool m_predefinedMetricTypeHasBeenSet = false;
79
80 Aws::String m_resourceLabel;
81 bool m_resourceLabelHasBeenSet = false;
82 };
83
84} // namespace Model
85} // namespace ApplicationAutoScaling
86} // namespace Aws
AWS_APPLICATIONAUTOSCALING_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPLICATIONAUTOSCALING_API PredictiveScalingPredefinedMetricPairSpecification(Aws::Utils::Json::JsonView jsonValue)
PredictiveScalingPredefinedMetricPairSpecification & WithPredefinedMetricType(PredefinedMetricTypeT &&value)
AWS_APPLICATIONAUTOSCALING_API PredictiveScalingPredefinedMetricPairSpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue