AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ResponseResourceMetric.h
1
6#pragma once
7#include <aws/pi/PI_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 PI
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_PI_API ResponseResourceMetric() = default;
39
40
42
45 inline const Aws::String& GetMetric() const { return m_metric; }
46 inline bool MetricHasBeenSet() const { return m_metricHasBeenSet; }
47 template<typename MetricT = Aws::String>
48 void SetMetric(MetricT&& value) { m_metricHasBeenSet = true; m_metric = std::forward<MetricT>(value); }
49 template<typename MetricT = Aws::String>
50 ResponseResourceMetric& WithMetric(MetricT&& value) { SetMetric(std::forward<MetricT>(value)); return *this;}
52
54
57 inline const Aws::String& GetDescription() const { return m_description; }
58 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
59 template<typename DescriptionT = Aws::String>
60 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
61 template<typename DescriptionT = Aws::String>
62 ResponseResourceMetric& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
64
66
69 inline const Aws::String& GetUnit() const { return m_unit; }
70 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
71 template<typename UnitT = Aws::String>
72 void SetUnit(UnitT&& value) { m_unitHasBeenSet = true; m_unit = std::forward<UnitT>(value); }
73 template<typename UnitT = Aws::String>
74 ResponseResourceMetric& WithUnit(UnitT&& value) { SetUnit(std::forward<UnitT>(value)); return *this;}
76 private:
77
78 Aws::String m_metric;
79 bool m_metricHasBeenSet = false;
80
81 Aws::String m_description;
82 bool m_descriptionHasBeenSet = false;
83
84 Aws::String m_unit;
85 bool m_unitHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace PI
90} // namespace Aws
AWS_PI_API ResponseResourceMetric()=default
AWS_PI_API ResponseResourceMetric & operator=(Aws::Utils::Json::JsonView jsonValue)
ResponseResourceMetric & WithUnit(UnitT &&value)
AWS_PI_API ResponseResourceMetric(Aws::Utils::Json::JsonView jsonValue)
AWS_PI_API Aws::Utils::Json::JsonValue Jsonize() const
ResponseResourceMetric & WithMetric(MetricT &&value)
ResponseResourceMetric & WithDescription(DescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue