AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateDetectorModelRequest.h
1
6#pragma once
7#include <aws/iotevents/IoTEvents_EXPORTS.h>
8#include <aws/iotevents/IoTEventsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/iotevents/model/DetectorModelDefinition.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/iotevents/model/EvaluationMethod.h>
13#include <aws/iotevents/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace IoTEvents
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_IOTEVENTS_API CreateDetectorModelRequest();
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_IOTEVENTS_API Aws::String SerializePayload() const override;
37
38
40
43 inline const Aws::String& GetDetectorModelName() const{ return m_detectorModelName; }
44 inline bool DetectorModelNameHasBeenSet() const { return m_detectorModelNameHasBeenSet; }
45 inline void SetDetectorModelName(const Aws::String& value) { m_detectorModelNameHasBeenSet = true; m_detectorModelName = value; }
46 inline void SetDetectorModelName(Aws::String&& value) { m_detectorModelNameHasBeenSet = true; m_detectorModelName = std::move(value); }
47 inline void SetDetectorModelName(const char* value) { m_detectorModelNameHasBeenSet = true; m_detectorModelName.assign(value); }
49 inline CreateDetectorModelRequest& WithDetectorModelName(Aws::String&& value) { SetDetectorModelName(std::move(value)); return *this;}
50 inline CreateDetectorModelRequest& WithDetectorModelName(const char* value) { SetDetectorModelName(value); return *this;}
52
54
57 inline const DetectorModelDefinition& GetDetectorModelDefinition() const{ return m_detectorModelDefinition; }
58 inline bool DetectorModelDefinitionHasBeenSet() const { return m_detectorModelDefinitionHasBeenSet; }
59 inline void SetDetectorModelDefinition(const DetectorModelDefinition& value) { m_detectorModelDefinitionHasBeenSet = true; m_detectorModelDefinition = value; }
60 inline void SetDetectorModelDefinition(DetectorModelDefinition&& value) { m_detectorModelDefinitionHasBeenSet = true; m_detectorModelDefinition = std::move(value); }
64
66
69 inline const Aws::String& GetDetectorModelDescription() const{ return m_detectorModelDescription; }
70 inline bool DetectorModelDescriptionHasBeenSet() const { return m_detectorModelDescriptionHasBeenSet; }
71 inline void SetDetectorModelDescription(const Aws::String& value) { m_detectorModelDescriptionHasBeenSet = true; m_detectorModelDescription = value; }
72 inline void SetDetectorModelDescription(Aws::String&& value) { m_detectorModelDescriptionHasBeenSet = true; m_detectorModelDescription = std::move(value); }
73 inline void SetDetectorModelDescription(const char* value) { m_detectorModelDescriptionHasBeenSet = true; m_detectorModelDescription.assign(value); }
78
80
87 inline const Aws::String& GetKey() const{ return m_key; }
88 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
89 inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
90 inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
91 inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
92 inline CreateDetectorModelRequest& WithKey(const Aws::String& value) { SetKey(value); return *this;}
93 inline CreateDetectorModelRequest& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
94 inline CreateDetectorModelRequest& WithKey(const char* value) { SetKey(value); return *this;}
96
98
102 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
103 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
104 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
105 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
106 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
107 inline CreateDetectorModelRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
108 inline CreateDetectorModelRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
109 inline CreateDetectorModelRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
111
113
116 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
117 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
118 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
119 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
120 inline CreateDetectorModelRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
121 inline CreateDetectorModelRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
122 inline CreateDetectorModelRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
123 inline CreateDetectorModelRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
125
127
131 inline const EvaluationMethod& GetEvaluationMethod() const{ return m_evaluationMethod; }
132 inline bool EvaluationMethodHasBeenSet() const { return m_evaluationMethodHasBeenSet; }
133 inline void SetEvaluationMethod(const EvaluationMethod& value) { m_evaluationMethodHasBeenSet = true; m_evaluationMethod = value; }
134 inline void SetEvaluationMethod(EvaluationMethod&& value) { m_evaluationMethodHasBeenSet = true; m_evaluationMethod = std::move(value); }
136 inline CreateDetectorModelRequest& WithEvaluationMethod(EvaluationMethod&& value) { SetEvaluationMethod(std::move(value)); return *this;}
138 private:
139
140 Aws::String m_detectorModelName;
141 bool m_detectorModelNameHasBeenSet = false;
142
143 DetectorModelDefinition m_detectorModelDefinition;
144 bool m_detectorModelDefinitionHasBeenSet = false;
145
146 Aws::String m_detectorModelDescription;
147 bool m_detectorModelDescriptionHasBeenSet = false;
148
149 Aws::String m_key;
150 bool m_keyHasBeenSet = false;
151
152 Aws::String m_roleArn;
153 bool m_roleArnHasBeenSet = false;
154
155 Aws::Vector<Tag> m_tags;
156 bool m_tagsHasBeenSet = false;
157
158 EvaluationMethod m_evaluationMethod;
159 bool m_evaluationMethodHasBeenSet = false;
160 };
161
162} // namespace Model
163} // namespace IoTEvents
164} // namespace Aws
CreateDetectorModelRequest & WithDetectorModelDescription(Aws::String &&value)
CreateDetectorModelRequest & WithEvaluationMethod(EvaluationMethod &&value)
AWS_IOTEVENTS_API Aws::String SerializePayload() const override
CreateDetectorModelRequest & WithEvaluationMethod(const EvaluationMethod &value)
const DetectorModelDefinition & GetDetectorModelDefinition() const
CreateDetectorModelRequest & WithKey(const char *value)
CreateDetectorModelRequest & WithRoleArn(Aws::String &&value)
CreateDetectorModelRequest & WithRoleArn(const char *value)
void SetDetectorModelDefinition(const DetectorModelDefinition &value)
CreateDetectorModelRequest & WithRoleArn(const Aws::String &value)
CreateDetectorModelRequest & WithDetectorModelDefinition(const DetectorModelDefinition &value)
CreateDetectorModelRequest & WithTags(const Aws::Vector< Tag > &value)
CreateDetectorModelRequest & WithDetectorModelName(Aws::String &&value)
CreateDetectorModelRequest & WithDetectorModelDescription(const char *value)
CreateDetectorModelRequest & AddTags(const Tag &value)
CreateDetectorModelRequest & WithKey(Aws::String &&value)
CreateDetectorModelRequest & WithTags(Aws::Vector< Tag > &&value)
CreateDetectorModelRequest & WithKey(const Aws::String &value)
void SetDetectorModelDefinition(DetectorModelDefinition &&value)
CreateDetectorModelRequest & WithDetectorModelDescription(const Aws::String &value)
CreateDetectorModelRequest & WithDetectorModelDefinition(DetectorModelDefinition &&value)
CreateDetectorModelRequest & WithDetectorModelName(const char *value)
virtual const char * GetServiceRequestName() const override
CreateDetectorModelRequest & WithDetectorModelName(const Aws::String &value)
CreateDetectorModelRequest & AddTags(Tag &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector