AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
ResponseResourceMetric.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/pi/PI_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace PI {
20namespace Model {
21
29 public:
30 AWS_PI_API ResponseResourceMetric() = default;
34
36
39 inline const Aws::String& GetMetric() const { return m_metric; }
40 inline bool MetricHasBeenSet() const { return m_metricHasBeenSet; }
41 template <typename MetricT = Aws::String>
42 void SetMetric(MetricT&& value) {
43 m_metricHasBeenSet = true;
44 m_metric = std::forward<MetricT>(value);
45 }
46 template <typename MetricT = Aws::String>
48 SetMetric(std::forward<MetricT>(value));
49 return *this;
50 }
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) {
61 m_descriptionHasBeenSet = true;
62 m_description = std::forward<DescriptionT>(value);
63 }
64 template <typename DescriptionT = Aws::String>
65 ResponseResourceMetric& WithDescription(DescriptionT&& value) {
66 SetDescription(std::forward<DescriptionT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetUnit() const { return m_unit; }
76 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
77 template <typename UnitT = Aws::String>
78 void SetUnit(UnitT&& value) {
79 m_unitHasBeenSet = true;
80 m_unit = std::forward<UnitT>(value);
81 }
82 template <typename UnitT = Aws::String>
84 SetUnit(std::forward<UnitT>(value));
85 return *this;
86 }
88 private:
89 Aws::String m_metric;
90
91 Aws::String m_description;
92
93 Aws::String m_unit;
94 bool m_metricHasBeenSet = false;
95 bool m_descriptionHasBeenSet = false;
96 bool m_unitHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace PI
101} // 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