AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
CreateDetectorModelRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/iotevents/IoTEventsRequest.h>
10#include <aws/iotevents/IoTEvents_EXPORTS.h>
11#include <aws/iotevents/model/DetectorModelDefinition.h>
12#include <aws/iotevents/model/EvaluationMethod.h>
13#include <aws/iotevents/model/Tag.h>
14
15#include <utility>
16
17namespace Aws {
18namespace IoTEvents {
19namespace Model {
20
24 public:
25 AWS_IOTEVENTS_API CreateDetectorModelRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateDetectorModel"; }
32
33 AWS_IOTEVENTS_API Aws::String SerializePayload() const override;
34
36
39 inline const Aws::String& GetDetectorModelName() const { return m_detectorModelName; }
40 inline bool DetectorModelNameHasBeenSet() const { return m_detectorModelNameHasBeenSet; }
41 template <typename DetectorModelNameT = Aws::String>
42 void SetDetectorModelName(DetectorModelNameT&& value) {
43 m_detectorModelNameHasBeenSet = true;
44 m_detectorModelName = std::forward<DetectorModelNameT>(value);
45 }
46 template <typename DetectorModelNameT = Aws::String>
48 SetDetectorModelName(std::forward<DetectorModelNameT>(value));
49 return *this;
50 }
52
54
57 inline const DetectorModelDefinition& GetDetectorModelDefinition() const { return m_detectorModelDefinition; }
58 inline bool DetectorModelDefinitionHasBeenSet() const { return m_detectorModelDefinitionHasBeenSet; }
59 template <typename DetectorModelDefinitionT = DetectorModelDefinition>
60 void SetDetectorModelDefinition(DetectorModelDefinitionT&& value) {
61 m_detectorModelDefinitionHasBeenSet = true;
62 m_detectorModelDefinition = std::forward<DetectorModelDefinitionT>(value);
63 }
64 template <typename DetectorModelDefinitionT = DetectorModelDefinition>
65 CreateDetectorModelRequest& WithDetectorModelDefinition(DetectorModelDefinitionT&& value) {
66 SetDetectorModelDefinition(std::forward<DetectorModelDefinitionT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetDetectorModelDescription() const { return m_detectorModelDescription; }
76 inline bool DetectorModelDescriptionHasBeenSet() const { return m_detectorModelDescriptionHasBeenSet; }
77 template <typename DetectorModelDescriptionT = Aws::String>
78 void SetDetectorModelDescription(DetectorModelDescriptionT&& value) {
79 m_detectorModelDescriptionHasBeenSet = true;
80 m_detectorModelDescription = std::forward<DetectorModelDescriptionT>(value);
81 }
82 template <typename DetectorModelDescriptionT = Aws::String>
83 CreateDetectorModelRequest& WithDetectorModelDescription(DetectorModelDescriptionT&& value) {
84 SetDetectorModelDescription(std::forward<DetectorModelDescriptionT>(value));
85 return *this;
86 }
88
90
97 inline const Aws::String& GetKey() const { return m_key; }
98 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
99 template <typename KeyT = Aws::String>
100 void SetKey(KeyT&& value) {
101 m_keyHasBeenSet = true;
102 m_key = std::forward<KeyT>(value);
103 }
104 template <typename KeyT = Aws::String>
106 SetKey(std::forward<KeyT>(value));
107 return *this;
108 }
110
112
116 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
117 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
118 template <typename RoleArnT = Aws::String>
119 void SetRoleArn(RoleArnT&& value) {
120 m_roleArnHasBeenSet = true;
121 m_roleArn = std::forward<RoleArnT>(value);
122 }
123 template <typename RoleArnT = Aws::String>
125 SetRoleArn(std::forward<RoleArnT>(value));
126 return *this;
127 }
129
131
134 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
135 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
136 template <typename TagsT = Aws::Vector<Tag>>
137 void SetTags(TagsT&& value) {
138 m_tagsHasBeenSet = true;
139 m_tags = std::forward<TagsT>(value);
140 }
141 template <typename TagsT = Aws::Vector<Tag>>
143 SetTags(std::forward<TagsT>(value));
144 return *this;
145 }
146 template <typename TagsT = Tag>
148 m_tagsHasBeenSet = true;
149 m_tags.emplace_back(std::forward<TagsT>(value));
150 return *this;
151 }
153
155
159 inline EvaluationMethod GetEvaluationMethod() const { return m_evaluationMethod; }
160 inline bool EvaluationMethodHasBeenSet() const { return m_evaluationMethodHasBeenSet; }
162 m_evaluationMethodHasBeenSet = true;
163 m_evaluationMethod = value;
164 }
166 SetEvaluationMethod(value);
167 return *this;
168 }
170 private:
171 Aws::String m_detectorModelName;
172
173 DetectorModelDefinition m_detectorModelDefinition;
174
175 Aws::String m_detectorModelDescription;
176
177 Aws::String m_key;
178
179 Aws::String m_roleArn;
180
181 Aws::Vector<Tag> m_tags;
182
184 bool m_detectorModelNameHasBeenSet = false;
185 bool m_detectorModelDefinitionHasBeenSet = false;
186 bool m_detectorModelDescriptionHasBeenSet = false;
187 bool m_keyHasBeenSet = false;
188 bool m_roleArnHasBeenSet = false;
189 bool m_tagsHasBeenSet = false;
190 bool m_evaluationMethodHasBeenSet = false;
191};
192
193} // namespace Model
194} // namespace IoTEvents
195} // namespace Aws
CreateDetectorModelRequest & AddTags(TagsT &&value)
void SetDetectorModelDefinition(DetectorModelDefinitionT &&value)
CreateDetectorModelRequest & WithTags(TagsT &&value)
CreateDetectorModelRequest & WithDetectorModelName(DetectorModelNameT &&value)
AWS_IOTEVENTS_API Aws::String SerializePayload() const override
CreateDetectorModelRequest & WithRoleArn(RoleArnT &&value)
void SetDetectorModelDescription(DetectorModelDescriptionT &&value)
CreateDetectorModelRequest & WithDetectorModelDefinition(DetectorModelDefinitionT &&value)
AWS_IOTEVENTS_API CreateDetectorModelRequest()=default
const DetectorModelDefinition & GetDetectorModelDefinition() const
CreateDetectorModelRequest & WithDetectorModelDescription(DetectorModelDescriptionT &&value)
CreateDetectorModelRequest & WithKey(KeyT &&value)
CreateDetectorModelRequest & WithEvaluationMethod(EvaluationMethod value)
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector