AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CloudwatchMetricAction.h
1
6#pragma once
7#include <aws/iot/IoT_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 IoT
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_IOT_API CloudwatchMetricAction() = default;
39
40
42
45 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
46 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
47 template<typename RoleArnT = Aws::String>
48 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
49 template<typename RoleArnT = Aws::String>
50 CloudwatchMetricAction& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
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) { m_metricNamespaceHasBeenSet = true; m_metricNamespace = std::forward<MetricNamespaceT>(value); }
61 template<typename MetricNamespaceT = Aws::String>
62 CloudwatchMetricAction& WithMetricNamespace(MetricNamespaceT&& value) { SetMetricNamespace(std::forward<MetricNamespaceT>(value)); return *this;}
64
66
69 inline const Aws::String& GetMetricName() const { return m_metricName; }
70 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
71 template<typename MetricNameT = Aws::String>
72 void SetMetricName(MetricNameT&& value) { m_metricNameHasBeenSet = true; m_metricName = std::forward<MetricNameT>(value); }
73 template<typename MetricNameT = Aws::String>
74 CloudwatchMetricAction& WithMetricName(MetricNameT&& value) { SetMetricName(std::forward<MetricNameT>(value)); return *this;}
76
78
81 inline const Aws::String& GetMetricValue() const { return m_metricValue; }
82 inline bool MetricValueHasBeenSet() const { return m_metricValueHasBeenSet; }
83 template<typename MetricValueT = Aws::String>
84 void SetMetricValue(MetricValueT&& value) { m_metricValueHasBeenSet = true; m_metricValue = std::forward<MetricValueT>(value); }
85 template<typename MetricValueT = Aws::String>
86 CloudwatchMetricAction& WithMetricValue(MetricValueT&& value) { SetMetricValue(std::forward<MetricValueT>(value)); return *this;}
88
90
95 inline const Aws::String& GetMetricUnit() const { return m_metricUnit; }
96 inline bool MetricUnitHasBeenSet() const { return m_metricUnitHasBeenSet; }
97 template<typename MetricUnitT = Aws::String>
98 void SetMetricUnit(MetricUnitT&& value) { m_metricUnitHasBeenSet = true; m_metricUnit = std::forward<MetricUnitT>(value); }
99 template<typename MetricUnitT = Aws::String>
100 CloudwatchMetricAction& WithMetricUnit(MetricUnitT&& value) { SetMetricUnit(std::forward<MetricUnitT>(value)); return *this;}
102
104
109 inline const Aws::String& GetMetricTimestamp() const { return m_metricTimestamp; }
110 inline bool MetricTimestampHasBeenSet() const { return m_metricTimestampHasBeenSet; }
111 template<typename MetricTimestampT = Aws::String>
112 void SetMetricTimestamp(MetricTimestampT&& value) { m_metricTimestampHasBeenSet = true; m_metricTimestamp = std::forward<MetricTimestampT>(value); }
113 template<typename MetricTimestampT = Aws::String>
114 CloudwatchMetricAction& WithMetricTimestamp(MetricTimestampT&& value) { SetMetricTimestamp(std::forward<MetricTimestampT>(value)); return *this;}
116 private:
117
118 Aws::String m_roleArn;
119 bool m_roleArnHasBeenSet = false;
120
121 Aws::String m_metricNamespace;
122 bool m_metricNamespaceHasBeenSet = false;
123
124 Aws::String m_metricName;
125 bool m_metricNameHasBeenSet = false;
126
127 Aws::String m_metricValue;
128 bool m_metricValueHasBeenSet = false;
129
130 Aws::String m_metricUnit;
131 bool m_metricUnitHasBeenSet = false;
132
133 Aws::String m_metricTimestamp;
134 bool m_metricTimestampHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace IoT
139} // 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