AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
39
40
42
45 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
46 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
47 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
48 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
49 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
50 inline CloudwatchMetricAction& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
51 inline CloudwatchMetricAction& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
52 inline CloudwatchMetricAction& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
54
56
59 inline const Aws::String& GetMetricNamespace() const{ return m_metricNamespace; }
60 inline bool MetricNamespaceHasBeenSet() const { return m_metricNamespaceHasBeenSet; }
61 inline void SetMetricNamespace(const Aws::String& value) { m_metricNamespaceHasBeenSet = true; m_metricNamespace = value; }
62 inline void SetMetricNamespace(Aws::String&& value) { m_metricNamespaceHasBeenSet = true; m_metricNamespace = std::move(value); }
63 inline void SetMetricNamespace(const char* value) { m_metricNamespaceHasBeenSet = true; m_metricNamespace.assign(value); }
64 inline CloudwatchMetricAction& WithMetricNamespace(const Aws::String& value) { SetMetricNamespace(value); return *this;}
65 inline CloudwatchMetricAction& WithMetricNamespace(Aws::String&& value) { SetMetricNamespace(std::move(value)); return *this;}
66 inline CloudwatchMetricAction& WithMetricNamespace(const char* value) { SetMetricNamespace(value); return *this;}
68
70
73 inline const Aws::String& GetMetricName() const{ return m_metricName; }
74 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
75 inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
76 inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
77 inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
78 inline CloudwatchMetricAction& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
79 inline CloudwatchMetricAction& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
80 inline CloudwatchMetricAction& WithMetricName(const char* value) { SetMetricName(value); return *this;}
82
84
87 inline const Aws::String& GetMetricValue() const{ return m_metricValue; }
88 inline bool MetricValueHasBeenSet() const { return m_metricValueHasBeenSet; }
89 inline void SetMetricValue(const Aws::String& value) { m_metricValueHasBeenSet = true; m_metricValue = value; }
90 inline void SetMetricValue(Aws::String&& value) { m_metricValueHasBeenSet = true; m_metricValue = std::move(value); }
91 inline void SetMetricValue(const char* value) { m_metricValueHasBeenSet = true; m_metricValue.assign(value); }
92 inline CloudwatchMetricAction& WithMetricValue(const Aws::String& value) { SetMetricValue(value); return *this;}
93 inline CloudwatchMetricAction& WithMetricValue(Aws::String&& value) { SetMetricValue(std::move(value)); return *this;}
94 inline CloudwatchMetricAction& WithMetricValue(const char* value) { SetMetricValue(value); return *this;}
96
98
103 inline const Aws::String& GetMetricUnit() const{ return m_metricUnit; }
104 inline bool MetricUnitHasBeenSet() const { return m_metricUnitHasBeenSet; }
105 inline void SetMetricUnit(const Aws::String& value) { m_metricUnitHasBeenSet = true; m_metricUnit = value; }
106 inline void SetMetricUnit(Aws::String&& value) { m_metricUnitHasBeenSet = true; m_metricUnit = std::move(value); }
107 inline void SetMetricUnit(const char* value) { m_metricUnitHasBeenSet = true; m_metricUnit.assign(value); }
108 inline CloudwatchMetricAction& WithMetricUnit(const Aws::String& value) { SetMetricUnit(value); return *this;}
109 inline CloudwatchMetricAction& WithMetricUnit(Aws::String&& value) { SetMetricUnit(std::move(value)); return *this;}
110 inline CloudwatchMetricAction& WithMetricUnit(const char* value) { SetMetricUnit(value); return *this;}
112
114
119 inline const Aws::String& GetMetricTimestamp() const{ return m_metricTimestamp; }
120 inline bool MetricTimestampHasBeenSet() const { return m_metricTimestampHasBeenSet; }
121 inline void SetMetricTimestamp(const Aws::String& value) { m_metricTimestampHasBeenSet = true; m_metricTimestamp = value; }
122 inline void SetMetricTimestamp(Aws::String&& value) { m_metricTimestampHasBeenSet = true; m_metricTimestamp = std::move(value); }
123 inline void SetMetricTimestamp(const char* value) { m_metricTimestampHasBeenSet = true; m_metricTimestamp.assign(value); }
124 inline CloudwatchMetricAction& WithMetricTimestamp(const Aws::String& value) { SetMetricTimestamp(value); return *this;}
125 inline CloudwatchMetricAction& WithMetricTimestamp(Aws::String&& value) { SetMetricTimestamp(std::move(value)); return *this;}
126 inline CloudwatchMetricAction& WithMetricTimestamp(const char* value) { SetMetricTimestamp(value); return *this;}
128 private:
129
130 Aws::String m_roleArn;
131 bool m_roleArnHasBeenSet = false;
132
133 Aws::String m_metricNamespace;
134 bool m_metricNamespaceHasBeenSet = false;
135
136 Aws::String m_metricName;
137 bool m_metricNameHasBeenSet = false;
138
139 Aws::String m_metricValue;
140 bool m_metricValueHasBeenSet = false;
141
142 Aws::String m_metricUnit;
143 bool m_metricUnitHasBeenSet = false;
144
145 Aws::String m_metricTimestamp;
146 bool m_metricTimestampHasBeenSet = false;
147 };
148
149} // namespace Model
150} // namespace IoT
151} // namespace Aws
CloudwatchMetricAction & WithMetricTimestamp(const char *value)
AWS_IOT_API CloudwatchMetricAction & operator=(Aws::Utils::Json::JsonView jsonValue)
CloudwatchMetricAction & WithMetricUnit(const Aws::String &value)
CloudwatchMetricAction & WithMetricName(const char *value)
CloudwatchMetricAction & WithMetricName(Aws::String &&value)
void SetMetricNamespace(const Aws::String &value)
CloudwatchMetricAction & WithMetricUnit(const char *value)
void SetMetricName(const Aws::String &value)
CloudwatchMetricAction & WithMetricName(const Aws::String &value)
void SetMetricValue(const Aws::String &value)
AWS_IOT_API CloudwatchMetricAction(Aws::Utils::Json::JsonView jsonValue)
CloudwatchMetricAction & WithMetricValue(const char *value)
CloudwatchMetricAction & WithRoleArn(const char *value)
CloudwatchMetricAction & WithMetricValue(const Aws::String &value)
CloudwatchMetricAction & WithMetricUnit(Aws::String &&value)
CloudwatchMetricAction & WithRoleArn(const Aws::String &value)
CloudwatchMetricAction & WithMetricNamespace(Aws::String &&value)
CloudwatchMetricAction & WithMetricNamespace(const char *value)
CloudwatchMetricAction & WithMetricTimestamp(Aws::String &&value)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
CloudwatchMetricAction & WithRoleArn(Aws::String &&value)
CloudwatchMetricAction & WithMetricTimestamp(const Aws::String &value)
void SetMetricUnit(const Aws::String &value)
CloudwatchMetricAction & WithMetricValue(Aws::String &&value)
void SetMetricTimestamp(const Aws::String &value)
void SetRoleArn(const Aws::String &value)
CloudwatchMetricAction & WithMetricNamespace(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue