AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
DetectorModelConfiguration.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iotevents/IoTEvents_EXPORTS.h>
10#include <aws/iotevents/model/DetectorModelVersionStatus.h>
11#include <aws/iotevents/model/EvaluationMethod.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace IoTEvents {
23namespace Model {
24
32 public:
33 AWS_IOTEVENTS_API DetectorModelConfiguration() = default;
36 AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetDetectorModelName() const { return m_detectorModelName; }
43 inline bool DetectorModelNameHasBeenSet() const { return m_detectorModelNameHasBeenSet; }
44 template <typename DetectorModelNameT = Aws::String>
45 void SetDetectorModelName(DetectorModelNameT&& value) {
46 m_detectorModelNameHasBeenSet = true;
47 m_detectorModelName = std::forward<DetectorModelNameT>(value);
48 }
49 template <typename DetectorModelNameT = Aws::String>
51 SetDetectorModelName(std::forward<DetectorModelNameT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetDetectorModelVersion() const { return m_detectorModelVersion; }
61 inline bool DetectorModelVersionHasBeenSet() const { return m_detectorModelVersionHasBeenSet; }
62 template <typename DetectorModelVersionT = Aws::String>
63 void SetDetectorModelVersion(DetectorModelVersionT&& value) {
64 m_detectorModelVersionHasBeenSet = true;
65 m_detectorModelVersion = std::forward<DetectorModelVersionT>(value);
66 }
67 template <typename DetectorModelVersionT = Aws::String>
68 DetectorModelConfiguration& WithDetectorModelVersion(DetectorModelVersionT&& value) {
69 SetDetectorModelVersion(std::forward<DetectorModelVersionT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetDetectorModelDescription() const { return m_detectorModelDescription; }
79 inline bool DetectorModelDescriptionHasBeenSet() const { return m_detectorModelDescriptionHasBeenSet; }
80 template <typename DetectorModelDescriptionT = Aws::String>
81 void SetDetectorModelDescription(DetectorModelDescriptionT&& value) {
82 m_detectorModelDescriptionHasBeenSet = true;
83 m_detectorModelDescription = std::forward<DetectorModelDescriptionT>(value);
84 }
85 template <typename DetectorModelDescriptionT = Aws::String>
86 DetectorModelConfiguration& WithDetectorModelDescription(DetectorModelDescriptionT&& value) {
87 SetDetectorModelDescription(std::forward<DetectorModelDescriptionT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetDetectorModelArn() const { return m_detectorModelArn; }
97 inline bool DetectorModelArnHasBeenSet() const { return m_detectorModelArnHasBeenSet; }
98 template <typename DetectorModelArnT = Aws::String>
99 void SetDetectorModelArn(DetectorModelArnT&& value) {
100 m_detectorModelArnHasBeenSet = true;
101 m_detectorModelArn = std::forward<DetectorModelArnT>(value);
102 }
103 template <typename DetectorModelArnT = Aws::String>
105 SetDetectorModelArn(std::forward<DetectorModelArnT>(value));
106 return *this;
107 }
109
111
115 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
116 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
117 template <typename RoleArnT = Aws::String>
118 void SetRoleArn(RoleArnT&& value) {
119 m_roleArnHasBeenSet = true;
120 m_roleArn = std::forward<RoleArnT>(value);
121 }
122 template <typename RoleArnT = Aws::String>
124 SetRoleArn(std::forward<RoleArnT>(value));
125 return *this;
126 }
128
130
133 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
134 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
135 template <typename CreationTimeT = Aws::Utils::DateTime>
136 void SetCreationTime(CreationTimeT&& value) {
137 m_creationTimeHasBeenSet = true;
138 m_creationTime = std::forward<CreationTimeT>(value);
139 }
140 template <typename CreationTimeT = Aws::Utils::DateTime>
142 SetCreationTime(std::forward<CreationTimeT>(value));
143 return *this;
144 }
146
148
151 inline const Aws::Utils::DateTime& GetLastUpdateTime() const { return m_lastUpdateTime; }
152 inline bool LastUpdateTimeHasBeenSet() const { return m_lastUpdateTimeHasBeenSet; }
153 template <typename LastUpdateTimeT = Aws::Utils::DateTime>
154 void SetLastUpdateTime(LastUpdateTimeT&& value) {
155 m_lastUpdateTimeHasBeenSet = true;
156 m_lastUpdateTime = std::forward<LastUpdateTimeT>(value);
157 }
158 template <typename LastUpdateTimeT = Aws::Utils::DateTime>
160 SetLastUpdateTime(std::forward<LastUpdateTimeT>(value));
161 return *this;
162 }
164
166
169 inline DetectorModelVersionStatus GetStatus() const { return m_status; }
170 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
172 m_statusHasBeenSet = true;
173 m_status = value;
174 }
176 SetStatus(value);
177 return *this;
178 }
180
182
192 inline const Aws::String& GetKey() const { return m_key; }
193 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
194 template <typename KeyT = Aws::String>
195 void SetKey(KeyT&& value) {
196 m_keyHasBeenSet = true;
197 m_key = std::forward<KeyT>(value);
198 }
199 template <typename KeyT = Aws::String>
201 SetKey(std::forward<KeyT>(value));
202 return *this;
203 }
205
207
211 inline EvaluationMethod GetEvaluationMethod() const { return m_evaluationMethod; }
212 inline bool EvaluationMethodHasBeenSet() const { return m_evaluationMethodHasBeenSet; }
214 m_evaluationMethodHasBeenSet = true;
215 m_evaluationMethod = value;
216 }
218 SetEvaluationMethod(value);
219 return *this;
220 }
222 private:
223 Aws::String m_detectorModelName;
224
225 Aws::String m_detectorModelVersion;
226
227 Aws::String m_detectorModelDescription;
228
229 Aws::String m_detectorModelArn;
230
231 Aws::String m_roleArn;
232
233 Aws::Utils::DateTime m_creationTime{};
234
235 Aws::Utils::DateTime m_lastUpdateTime{};
236
238
239 Aws::String m_key;
240
242 bool m_detectorModelNameHasBeenSet = false;
243 bool m_detectorModelVersionHasBeenSet = false;
244 bool m_detectorModelDescriptionHasBeenSet = false;
245 bool m_detectorModelArnHasBeenSet = false;
246 bool m_roleArnHasBeenSet = false;
247 bool m_creationTimeHasBeenSet = false;
248 bool m_lastUpdateTimeHasBeenSet = false;
249 bool m_statusHasBeenSet = false;
250 bool m_keyHasBeenSet = false;
251 bool m_evaluationMethodHasBeenSet = false;
252};
253
254} // namespace Model
255} // namespace IoTEvents
256} // namespace Aws
AWS_IOTEVENTS_API DetectorModelConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
DetectorModelConfiguration & WithLastUpdateTime(LastUpdateTimeT &&value)
DetectorModelConfiguration & WithDetectorModelDescription(DetectorModelDescriptionT &&value)
AWS_IOTEVENTS_API DetectorModelConfiguration(Aws::Utils::Json::JsonView jsonValue)
DetectorModelConfiguration & WithDetectorModelName(DetectorModelNameT &&value)
void SetDetectorModelDescription(DetectorModelDescriptionT &&value)
AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const
DetectorModelConfiguration & WithCreationTime(CreationTimeT &&value)
DetectorModelConfiguration & WithRoleArn(RoleArnT &&value)
DetectorModelConfiguration & WithDetectorModelVersion(DetectorModelVersionT &&value)
DetectorModelConfiguration & WithDetectorModelArn(DetectorModelArnT &&value)
DetectorModelConfiguration & WithStatus(DetectorModelVersionStatus value)
DetectorModelConfiguration & WithEvaluationMethod(EvaluationMethod value)
AWS_IOTEVENTS_API DetectorModelConfiguration()=default
void SetDetectorModelVersion(DetectorModelVersionT &&value)
DetectorModelConfiguration & WithKey(KeyT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue