AWS SDK for C++

AWS SDK for C++ Version 1.11.761

Loading...
Searching...
No Matches
CloudwatchMetricAction.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iot/IoT_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace IoT {
20namespace Model {
21
29 public:
30 AWS_IOT_API CloudwatchMetricAction() = default;
34
36
39 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
40 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
41 template <typename RoleArnT = Aws::String>
42 void SetRoleArn(RoleArnT&& value) {
43 m_roleArnHasBeenSet = true;
44 m_roleArn = std::forward<RoleArnT>(value);
45 }
46 template <typename RoleArnT = Aws::String>
48 SetRoleArn(std::forward<RoleArnT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetMetricNamespace() const { return m_metricNamespace; }
58 inline bool MetricNamespaceHasBeenSet() const { return m_metricNamespaceHasBeenSet; }
59 template <typename MetricNamespaceT = Aws::String>
60 void SetMetricNamespace(MetricNamespaceT&& value) {
61 m_metricNamespaceHasBeenSet = true;
62 m_metricNamespace = std::forward<MetricNamespaceT>(value);
63 }
64 template <typename MetricNamespaceT = Aws::String>
65 CloudwatchMetricAction& WithMetricNamespace(MetricNamespaceT&& value) {
66 SetMetricNamespace(std::forward<MetricNamespaceT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetMetricName() const { return m_metricName; }
76 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
77 template <typename MetricNameT = Aws::String>
78 void SetMetricName(MetricNameT&& value) {
79 m_metricNameHasBeenSet = true;
80 m_metricName = std::forward<MetricNameT>(value);
81 }
82 template <typename MetricNameT = Aws::String>
83 CloudwatchMetricAction& WithMetricName(MetricNameT&& value) {
84 SetMetricName(std::forward<MetricNameT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetMetricValue() const { return m_metricValue; }
94 inline bool MetricValueHasBeenSet() const { return m_metricValueHasBeenSet; }
95 template <typename MetricValueT = Aws::String>
96 void SetMetricValue(MetricValueT&& value) {
97 m_metricValueHasBeenSet = true;
98 m_metricValue = std::forward<MetricValueT>(value);
99 }
100 template <typename MetricValueT = Aws::String>
102 SetMetricValue(std::forward<MetricValueT>(value));
103 return *this;
104 }
106
108
113 inline const Aws::String& GetMetricUnit() const { return m_metricUnit; }
114 inline bool MetricUnitHasBeenSet() const { return m_metricUnitHasBeenSet; }
115 template <typename MetricUnitT = Aws::String>
116 void SetMetricUnit(MetricUnitT&& value) {
117 m_metricUnitHasBeenSet = true;
118 m_metricUnit = std::forward<MetricUnitT>(value);
119 }
120 template <typename MetricUnitT = Aws::String>
122 SetMetricUnit(std::forward<MetricUnitT>(value));
123 return *this;
124 }
126
128
133 inline const Aws::String& GetMetricTimestamp() const { return m_metricTimestamp; }
134 inline bool MetricTimestampHasBeenSet() const { return m_metricTimestampHasBeenSet; }
135 template <typename MetricTimestampT = Aws::String>
136 void SetMetricTimestamp(MetricTimestampT&& value) {
137 m_metricTimestampHasBeenSet = true;
138 m_metricTimestamp = std::forward<MetricTimestampT>(value);
139 }
140 template <typename MetricTimestampT = Aws::String>
141 CloudwatchMetricAction& WithMetricTimestamp(MetricTimestampT&& value) {
142 SetMetricTimestamp(std::forward<MetricTimestampT>(value));
143 return *this;
144 }
146 private:
147 Aws::String m_roleArn;
148
149 Aws::String m_metricNamespace;
150
151 Aws::String m_metricName;
152
153 Aws::String m_metricValue;
154
155 Aws::String m_metricUnit;
156
157 Aws::String m_metricTimestamp;
158 bool m_roleArnHasBeenSet = false;
159 bool m_metricNamespaceHasBeenSet = false;
160 bool m_metricNameHasBeenSet = false;
161 bool m_metricValueHasBeenSet = false;
162 bool m_metricUnitHasBeenSet = false;
163 bool m_metricTimestampHasBeenSet = false;
164};
165
166} // namespace Model
167} // namespace IoT
168} // namespace Aws
AWS_IOT_API CloudwatchMetricAction & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IOT_API CloudwatchMetricAction()=default
CloudwatchMetricAction & WithMetricValue(MetricValueT &&value)
void SetMetricTimestamp(MetricTimestampT &&value)
CloudwatchMetricAction & WithMetricName(MetricNameT &&value)
AWS_IOT_API CloudwatchMetricAction(Aws::Utils::Json::JsonView jsonValue)
void SetMetricNamespace(MetricNamespaceT &&value)
CloudwatchMetricAction & WithRoleArn(RoleArnT &&value)
CloudwatchMetricAction & WithMetricUnit(MetricUnitT &&value)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
CloudwatchMetricAction & WithMetricNamespace(MetricNamespaceT &&value)
CloudwatchMetricAction & WithMetricTimestamp(MetricTimestampT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue