AWS SDK for C++  1.9.71
AWS SDK for C++
CreateDetectorModelRequest.h
Go to the documentation of this file.
1 
6 #pragma once
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace IoTEvents
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "CreateDetectorModel"; }
35 
36  Aws::String SerializePayload() const override;
37 
38 
42  inline const Aws::String& GetDetectorModelName() const{ return m_detectorModelName; }
43 
47  inline bool DetectorModelNameHasBeenSet() const { return m_detectorModelNameHasBeenSet; }
48 
52  inline void SetDetectorModelName(const Aws::String& value) { m_detectorModelNameHasBeenSet = true; m_detectorModelName = value; }
53 
57  inline void SetDetectorModelName(Aws::String&& value) { m_detectorModelNameHasBeenSet = true; m_detectorModelName = std::move(value); }
58 
62  inline void SetDetectorModelName(const char* value) { m_detectorModelNameHasBeenSet = true; m_detectorModelName.assign(value); }
63 
67  inline CreateDetectorModelRequest& WithDetectorModelName(const Aws::String& value) { SetDetectorModelName(value); return *this;}
68 
72  inline CreateDetectorModelRequest& WithDetectorModelName(Aws::String&& value) { SetDetectorModelName(std::move(value)); return *this;}
73 
77  inline CreateDetectorModelRequest& WithDetectorModelName(const char* value) { SetDetectorModelName(value); return *this;}
78 
79 
83  inline const DetectorModelDefinition& GetDetectorModelDefinition() const{ return m_detectorModelDefinition; }
84 
88  inline bool DetectorModelDefinitionHasBeenSet() const { return m_detectorModelDefinitionHasBeenSet; }
89 
93  inline void SetDetectorModelDefinition(const DetectorModelDefinition& value) { m_detectorModelDefinitionHasBeenSet = true; m_detectorModelDefinition = value; }
94 
98  inline void SetDetectorModelDefinition(DetectorModelDefinition&& value) { m_detectorModelDefinitionHasBeenSet = true; m_detectorModelDefinition = std::move(value); }
99 
103  inline CreateDetectorModelRequest& WithDetectorModelDefinition(const DetectorModelDefinition& value) { SetDetectorModelDefinition(value); return *this;}
104 
108  inline CreateDetectorModelRequest& WithDetectorModelDefinition(DetectorModelDefinition&& value) { SetDetectorModelDefinition(std::move(value)); return *this;}
109 
110 
114  inline const Aws::String& GetDetectorModelDescription() const{ return m_detectorModelDescription; }
115 
119  inline bool DetectorModelDescriptionHasBeenSet() const { return m_detectorModelDescriptionHasBeenSet; }
120 
124  inline void SetDetectorModelDescription(const Aws::String& value) { m_detectorModelDescriptionHasBeenSet = true; m_detectorModelDescription = value; }
125 
129  inline void SetDetectorModelDescription(Aws::String&& value) { m_detectorModelDescriptionHasBeenSet = true; m_detectorModelDescription = std::move(value); }
130 
134  inline void SetDetectorModelDescription(const char* value) { m_detectorModelDescriptionHasBeenSet = true; m_detectorModelDescription.assign(value); }
135 
139  inline CreateDetectorModelRequest& WithDetectorModelDescription(const Aws::String& value) { SetDetectorModelDescription(value); return *this;}
140 
144  inline CreateDetectorModelRequest& WithDetectorModelDescription(Aws::String&& value) { SetDetectorModelDescription(std::move(value)); return *this;}
145 
149  inline CreateDetectorModelRequest& WithDetectorModelDescription(const char* value) { SetDetectorModelDescription(value); return *this;}
150 
151 
159  inline const Aws::String& GetKey() const{ return m_key; }
160 
168  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
169 
177  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
178 
186  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
187 
195  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
196 
204  inline CreateDetectorModelRequest& WithKey(const Aws::String& value) { SetKey(value); return *this;}
205 
213  inline CreateDetectorModelRequest& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
214 
222  inline CreateDetectorModelRequest& WithKey(const char* value) { SetKey(value); return *this;}
223 
224 
229  inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
230 
235  inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
236 
241  inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
242 
247  inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
248 
253  inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
254 
259  inline CreateDetectorModelRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
260 
265  inline CreateDetectorModelRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
266 
271  inline CreateDetectorModelRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
272 
273 
277  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
278 
282  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
283 
287  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
288 
292  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
293 
297  inline CreateDetectorModelRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
298 
302  inline CreateDetectorModelRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
303 
307  inline CreateDetectorModelRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
308 
312  inline CreateDetectorModelRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
313 
314 
319  inline const EvaluationMethod& GetEvaluationMethod() const{ return m_evaluationMethod; }
320 
325  inline bool EvaluationMethodHasBeenSet() const { return m_evaluationMethodHasBeenSet; }
326 
331  inline void SetEvaluationMethod(const EvaluationMethod& value) { m_evaluationMethodHasBeenSet = true; m_evaluationMethod = value; }
332 
337  inline void SetEvaluationMethod(EvaluationMethod&& value) { m_evaluationMethodHasBeenSet = true; m_evaluationMethod = std::move(value); }
338 
343  inline CreateDetectorModelRequest& WithEvaluationMethod(const EvaluationMethod& value) { SetEvaluationMethod(value); return *this;}
344 
349  inline CreateDetectorModelRequest& WithEvaluationMethod(EvaluationMethod&& value) { SetEvaluationMethod(std::move(value)); return *this;}
350 
351  private:
352 
353  Aws::String m_detectorModelName;
354  bool m_detectorModelNameHasBeenSet;
355 
356  DetectorModelDefinition m_detectorModelDefinition;
357  bool m_detectorModelDefinitionHasBeenSet;
358 
359  Aws::String m_detectorModelDescription;
360  bool m_detectorModelDescriptionHasBeenSet;
361 
362  Aws::String m_key;
363  bool m_keyHasBeenSet;
364 
365  Aws::String m_roleArn;
366  bool m_roleArnHasBeenSet;
367 
368  Aws::Vector<Tag> m_tags;
369  bool m_tagsHasBeenSet;
370 
371  EvaluationMethod m_evaluationMethod;
372  bool m_evaluationMethodHasBeenSet;
373  };
374 
375 } // namespace Model
376 } // namespace IoTEvents
377 } // namespace Aws
Aws::IoTEvents::Model::CreateDetectorModelRequest::WithDetectorModelDefinition
CreateDetectorModelRequest & WithDetectorModelDefinition(const DetectorModelDefinition &value)
Definition: CreateDetectorModelRequest.h:103
Aws::IoTEvents::Model::CreateDetectorModelRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateDetectorModelRequest.h:287
Aws::IoTEvents::Model::CreateDetectorModelRequest
Definition: CreateDetectorModelRequest.h:26
IoTEventsRequest.h
Aws::IoTEvents::Model::CreateDetectorModelRequest::SetDetectorModelDefinition
void SetDetectorModelDefinition(DetectorModelDefinition &&value)
Definition: CreateDetectorModelRequest.h:98
Aws::IoTEvents::Model::CreateDetectorModelRequest::SetDetectorModelDescription
void SetDetectorModelDescription(const Aws::String &value)
Definition: CreateDetectorModelRequest.h:124
Aws::IoTEvents::Model::CreateDetectorModelRequest::AddTags
CreateDetectorModelRequest & AddTags(Tag &&value)
Definition: CreateDetectorModelRequest.h:312
Aws::IoTEvents::Model::CreateDetectorModelRequest::DetectorModelNameHasBeenSet
bool DetectorModelNameHasBeenSet() const
Definition: CreateDetectorModelRequest.h:47
Aws::IoTEvents::Model::CreateDetectorModelRequest::DetectorModelDefinitionHasBeenSet
bool DetectorModelDefinitionHasBeenSet() const
Definition: CreateDetectorModelRequest.h:88
Aws::IoTEvents::Model::CreateDetectorModelRequest::WithDetectorModelName
CreateDetectorModelRequest & WithDetectorModelName(const char *value)
Definition: CreateDetectorModelRequest.h:77
Aws::IoTEvents::Model::CreateDetectorModelRequest::SetKey
void SetKey(const Aws::String &value)
Definition: CreateDetectorModelRequest.h:177
Aws::IoTEvents::Model::CreateDetectorModelRequest::GetEvaluationMethod
const EvaluationMethod & GetEvaluationMethod() const
Definition: CreateDetectorModelRequest.h:319
Aws::IoTEvents::Model::CreateDetectorModelRequest::WithRoleArn
CreateDetectorModelRequest & WithRoleArn(const Aws::String &value)
Definition: CreateDetectorModelRequest.h:259
Aws::IoTEvents::Model::CreateDetectorModelRequest::WithDetectorModelName
CreateDetectorModelRequest & WithDetectorModelName(Aws::String &&value)
Definition: CreateDetectorModelRequest.h:72
Aws::IoTEvents::Model::CreateDetectorModelRequest::SetEvaluationMethod
void SetEvaluationMethod(EvaluationMethod &&value)
Definition: CreateDetectorModelRequest.h:337
EvaluationMethod.h
Aws::IoTEvents::Model::CreateDetectorModelRequest::SetDetectorModelDescription
void SetDetectorModelDescription(Aws::String &&value)
Definition: CreateDetectorModelRequest.h:129
Aws::IoTEvents::Model::EvaluationMethod
EvaluationMethod
Definition: EvaluationMethod.h:17
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::IoTEvents::Model::CreateDetectorModelRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateDetectorModelRequest.h:34
Aws::IoTEvents::Model::CreateDetectorModelRequest::WithKey
CreateDetectorModelRequest & WithKey(Aws::String &&value)
Definition: CreateDetectorModelRequest.h:213
Aws::IoTEvents::Model::CreateDetectorModelRequest::SetEvaluationMethod
void SetEvaluationMethod(const EvaluationMethod &value)
Definition: CreateDetectorModelRequest.h:331
AWSVector.h
Aws::IoTEvents::Model::CreateDetectorModelRequest::WithDetectorModelDefinition
CreateDetectorModelRequest & WithDetectorModelDefinition(DetectorModelDefinition &&value)
Definition: CreateDetectorModelRequest.h:108
Aws::IoTEvents::Model::CreateDetectorModelRequest::CreateDetectorModelRequest
CreateDetectorModelRequest()
Tag.h
Aws::IoTEvents::Model::CreateDetectorModelRequest::SetDetectorModelName
void SetDetectorModelName(Aws::String &&value)
Definition: CreateDetectorModelRequest.h:57
Aws::IoTEvents::Model::CreateDetectorModelRequest::WithKey
CreateDetectorModelRequest & WithKey(const Aws::String &value)
Definition: CreateDetectorModelRequest.h:204
Aws::IoTEvents::Model::CreateDetectorModelRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoTEvents::Model::CreateDetectorModelRequest::WithKey
CreateDetectorModelRequest & WithKey(const char *value)
Definition: CreateDetectorModelRequest.h:222
Aws::IoTEvents::Model::CreateDetectorModelRequest::GetDetectorModelName
const Aws::String & GetDetectorModelName() const
Definition: CreateDetectorModelRequest.h:42
Aws::IoTEvents::Model::CreateDetectorModelRequest::SetRoleArn
void SetRoleArn(const Aws::String &value)
Definition: CreateDetectorModelRequest.h:241
Aws::IoTEvents::Model::CreateDetectorModelRequest::SetKey
void SetKey(const char *value)
Definition: CreateDetectorModelRequest.h:195
Aws::IoTEvents::Model::CreateDetectorModelRequest::WithDetectorModelDescription
CreateDetectorModelRequest & WithDetectorModelDescription(const char *value)
Definition: CreateDetectorModelRequest.h:149
Aws::IoTEvents::Model::CreateDetectorModelRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateDetectorModelRequest.h:277
Aws::IoTEvents::Model::CreateDetectorModelRequest::WithRoleArn
CreateDetectorModelRequest & WithRoleArn(Aws::String &&value)
Definition: CreateDetectorModelRequest.h:265
Aws::IoTEvents::Model::CreateDetectorModelRequest::SetKey
void SetKey(Aws::String &&value)
Definition: CreateDetectorModelRequest.h:186
Aws::IoTEvents::Model::DetectorModelDefinition
Definition: DetectorModelDefinition.h:35
Aws::IoTEvents::Model::CreateDetectorModelRequest::EvaluationMethodHasBeenSet
bool EvaluationMethodHasBeenSet() const
Definition: CreateDetectorModelRequest.h:325
Aws::IoTEvents::Model::CreateDetectorModelRequest::WithTags
CreateDetectorModelRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateDetectorModelRequest.h:302
Aws::IoTEvents::Model::CreateDetectorModelRequest::WithRoleArn
CreateDetectorModelRequest & WithRoleArn(const char *value)
Definition: CreateDetectorModelRequest.h:271
AWSString.h
Aws::IoTEvents::Model::CreateDetectorModelRequest::SetDetectorModelDescription
void SetDetectorModelDescription(const char *value)
Definition: CreateDetectorModelRequest.h:134
Aws::IoTEvents::IoTEventsRequest
Definition: IoTEventsRequest.h:17
Aws::IoTEvents::Model::CreateDetectorModelRequest::GetKey
const Aws::String & GetKey() const
Definition: CreateDetectorModelRequest.h:159
Aws::IoTEvents::Model::CreateDetectorModelRequest::SetDetectorModelDefinition
void SetDetectorModelDefinition(const DetectorModelDefinition &value)
Definition: CreateDetectorModelRequest.h:93
Aws::IoTEvents::Model::CreateDetectorModelRequest::DetectorModelDescriptionHasBeenSet
bool DetectorModelDescriptionHasBeenSet() const
Definition: CreateDetectorModelRequest.h:119
Aws::IoTEvents::Model::CreateDetectorModelRequest::SetRoleArn
void SetRoleArn(const char *value)
Definition: CreateDetectorModelRequest.h:253
Aws::IoTEvents::Model::CreateDetectorModelRequest::SetRoleArn
void SetRoleArn(Aws::String &&value)
Definition: CreateDetectorModelRequest.h:247
Aws::IoTEvents::Model::CreateDetectorModelRequest::WithDetectorModelDescription
CreateDetectorModelRequest & WithDetectorModelDescription(const Aws::String &value)
Definition: CreateDetectorModelRequest.h:139
Aws::IoTEvents::Model::CreateDetectorModelRequest::WithDetectorModelDescription
CreateDetectorModelRequest & WithDetectorModelDescription(Aws::String &&value)
Definition: CreateDetectorModelRequest.h:144
Aws::IoTEvents::Model::CreateDetectorModelRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateDetectorModelRequest.h:282
Aws::IoTEvents::Model::CreateDetectorModelRequest::KeyHasBeenSet
bool KeyHasBeenSet() const
Definition: CreateDetectorModelRequest.h:168
Aws::IoTEvents::Model::CreateDetectorModelRequest::GetRoleArn
const Aws::String & GetRoleArn() const
Definition: CreateDetectorModelRequest.h:229
Aws
Definition: AccessManagementClient.h:15
IoTEvents_EXPORTS.h
AWS_IOTEVENTS_API
#define AWS_IOTEVENTS_API
Definition: IoTEvents_EXPORTS.h:28
DetectorModelDefinition.h
Aws::IoTEvents::Model::Tag
Definition: Tag.h:32
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoTEvents::Model::CreateDetectorModelRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateDetectorModelRequest.h:292
Aws::IoTEvents::Model::CreateDetectorModelRequest::WithDetectorModelName
CreateDetectorModelRequest & WithDetectorModelName(const Aws::String &value)
Definition: CreateDetectorModelRequest.h:67
Aws::IoTEvents::Model::CreateDetectorModelRequest::WithTags
CreateDetectorModelRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateDetectorModelRequest.h:297
Aws::IoTEvents::Model::CreateDetectorModelRequest::SetDetectorModelName
void SetDetectorModelName(const char *value)
Definition: CreateDetectorModelRequest.h:62
Aws::IoTEvents::Model::CreateDetectorModelRequest::WithEvaluationMethod
CreateDetectorModelRequest & WithEvaluationMethod(const EvaluationMethod &value)
Definition: CreateDetectorModelRequest.h:343
Aws::IoTEvents::Model::CreateDetectorModelRequest::AddTags
CreateDetectorModelRequest & AddTags(const Tag &value)
Definition: CreateDetectorModelRequest.h:307
Aws::IoTEvents::Model::CreateDetectorModelRequest::GetDetectorModelDescription
const Aws::String & GetDetectorModelDescription() const
Definition: CreateDetectorModelRequest.h:114
Aws::IoTEvents::Model::CreateDetectorModelRequest::SetDetectorModelName
void SetDetectorModelName(const Aws::String &value)
Definition: CreateDetectorModelRequest.h:52
Aws::IoTEvents::Model::CreateDetectorModelRequest::GetDetectorModelDefinition
const DetectorModelDefinition & GetDetectorModelDefinition() const
Definition: CreateDetectorModelRequest.h:83
Aws::IoTEvents::Model::CreateDetectorModelRequest::WithEvaluationMethod
CreateDetectorModelRequest & WithEvaluationMethod(EvaluationMethod &&value)
Definition: CreateDetectorModelRequest.h:349
Aws::IoTEvents::Model::CreateDetectorModelRequest::RoleArnHasBeenSet
bool RoleArnHasBeenSet() const
Definition: CreateDetectorModelRequest.h:235