AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
39
40
42
45 inline const Aws::String& GetMetric() const{ return m_metric; }
46 inline bool MetricHasBeenSet() const { return m_metricHasBeenSet; }
47 inline void SetMetric(const Aws::String& value) { m_metricHasBeenSet = true; m_metric = value; }
48 inline void SetMetric(Aws::String&& value) { m_metricHasBeenSet = true; m_metric = std::move(value); }
49 inline void SetMetric(const char* value) { m_metricHasBeenSet = true; m_metric.assign(value); }
50 inline ResponseResourceMetric& WithMetric(const Aws::String& value) { SetMetric(value); return *this;}
51 inline ResponseResourceMetric& WithMetric(Aws::String&& value) { SetMetric(std::move(value)); return *this;}
52 inline ResponseResourceMetric& WithMetric(const char* value) { SetMetric(value); return *this;}
54
56
59 inline const Aws::String& GetDescription() const{ return m_description; }
60 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
61 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
62 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
63 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
64 inline ResponseResourceMetric& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
65 inline ResponseResourceMetric& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
66 inline ResponseResourceMetric& WithDescription(const char* value) { SetDescription(value); return *this;}
68
70
73 inline const Aws::String& GetUnit() const{ return m_unit; }
74 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
75 inline void SetUnit(const Aws::String& value) { m_unitHasBeenSet = true; m_unit = value; }
76 inline void SetUnit(Aws::String&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
77 inline void SetUnit(const char* value) { m_unitHasBeenSet = true; m_unit.assign(value); }
78 inline ResponseResourceMetric& WithUnit(const Aws::String& value) { SetUnit(value); return *this;}
79 inline ResponseResourceMetric& WithUnit(Aws::String&& value) { SetUnit(std::move(value)); return *this;}
80 inline ResponseResourceMetric& WithUnit(const char* value) { SetUnit(value); return *this;}
82 private:
83
84 Aws::String m_metric;
85 bool m_metricHasBeenSet = false;
86
87 Aws::String m_description;
88 bool m_descriptionHasBeenSet = false;
89
90 Aws::String m_unit;
91 bool m_unitHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace PI
96} // namespace Aws
ResponseResourceMetric & WithMetric(const Aws::String &value)
ResponseResourceMetric & WithMetric(Aws::String &&value)
AWS_PI_API ResponseResourceMetric & operator=(Aws::Utils::Json::JsonView jsonValue)
ResponseResourceMetric & WithDescription(const Aws::String &value)
AWS_PI_API ResponseResourceMetric(Aws::Utils::Json::JsonView jsonValue)
ResponseResourceMetric & WithUnit(const Aws::String &value)
ResponseResourceMetric & WithDescription(const char *value)
AWS_PI_API Aws::Utils::Json::JsonValue Jsonize() const
void SetMetric(const Aws::String &value)
ResponseResourceMetric & WithUnit(const char *value)
void SetDescription(const Aws::String &value)
ResponseResourceMetric & WithUnit(Aws::String &&value)
ResponseResourceMetric & WithMetric(const char *value)
ResponseResourceMetric & WithDescription(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue