AWS SDK for C++  1.9.66
AWS SDK for C++
CreateRuleRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace FraudDetector
18 {
19 namespace Model
20 {
21 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "CreateRule"; }
34 
35  Aws::String SerializePayload() const override;
36 
38 
39 
43  inline const Aws::String& GetRuleId() const{ return m_ruleId; }
44 
48  inline bool RuleIdHasBeenSet() const { return m_ruleIdHasBeenSet; }
49 
53  inline void SetRuleId(const Aws::String& value) { m_ruleIdHasBeenSet = true; m_ruleId = value; }
54 
58  inline void SetRuleId(Aws::String&& value) { m_ruleIdHasBeenSet = true; m_ruleId = std::move(value); }
59 
63  inline void SetRuleId(const char* value) { m_ruleIdHasBeenSet = true; m_ruleId.assign(value); }
64 
68  inline CreateRuleRequest& WithRuleId(const Aws::String& value) { SetRuleId(value); return *this;}
69 
73  inline CreateRuleRequest& WithRuleId(Aws::String&& value) { SetRuleId(std::move(value)); return *this;}
74 
78  inline CreateRuleRequest& WithRuleId(const char* value) { SetRuleId(value); return *this;}
79 
80 
84  inline const Aws::String& GetDetectorId() const{ return m_detectorId; }
85 
89  inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; }
90 
94  inline void SetDetectorId(const Aws::String& value) { m_detectorIdHasBeenSet = true; m_detectorId = value; }
95 
99  inline void SetDetectorId(Aws::String&& value) { m_detectorIdHasBeenSet = true; m_detectorId = std::move(value); }
100 
104  inline void SetDetectorId(const char* value) { m_detectorIdHasBeenSet = true; m_detectorId.assign(value); }
105 
109  inline CreateRuleRequest& WithDetectorId(const Aws::String& value) { SetDetectorId(value); return *this;}
110 
114  inline CreateRuleRequest& WithDetectorId(Aws::String&& value) { SetDetectorId(std::move(value)); return *this;}
115 
119  inline CreateRuleRequest& WithDetectorId(const char* value) { SetDetectorId(value); return *this;}
120 
121 
125  inline const Aws::String& GetDescription() const{ return m_description; }
126 
130  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
131 
135  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
136 
140  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
141 
145  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
146 
150  inline CreateRuleRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
151 
155  inline CreateRuleRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
156 
160  inline CreateRuleRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
161 
162 
166  inline const Aws::String& GetExpression() const{ return m_expression; }
167 
171  inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; }
172 
176  inline void SetExpression(const Aws::String& value) { m_expressionHasBeenSet = true; m_expression = value; }
177 
181  inline void SetExpression(Aws::String&& value) { m_expressionHasBeenSet = true; m_expression = std::move(value); }
182 
186  inline void SetExpression(const char* value) { m_expressionHasBeenSet = true; m_expression.assign(value); }
187 
191  inline CreateRuleRequest& WithExpression(const Aws::String& value) { SetExpression(value); return *this;}
192 
196  inline CreateRuleRequest& WithExpression(Aws::String&& value) { SetExpression(std::move(value)); return *this;}
197 
201  inline CreateRuleRequest& WithExpression(const char* value) { SetExpression(value); return *this;}
202 
203 
207  inline const Language& GetLanguage() const{ return m_language; }
208 
212  inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
213 
217  inline void SetLanguage(const Language& value) { m_languageHasBeenSet = true; m_language = value; }
218 
222  inline void SetLanguage(Language&& value) { m_languageHasBeenSet = true; m_language = std::move(value); }
223 
227  inline CreateRuleRequest& WithLanguage(const Language& value) { SetLanguage(value); return *this;}
228 
232  inline CreateRuleRequest& WithLanguage(Language&& value) { SetLanguage(std::move(value)); return *this;}
233 
234 
238  inline const Aws::Vector<Aws::String>& GetOutcomes() const{ return m_outcomes; }
239 
243  inline bool OutcomesHasBeenSet() const { return m_outcomesHasBeenSet; }
244 
248  inline void SetOutcomes(const Aws::Vector<Aws::String>& value) { m_outcomesHasBeenSet = true; m_outcomes = value; }
249 
253  inline void SetOutcomes(Aws::Vector<Aws::String>&& value) { m_outcomesHasBeenSet = true; m_outcomes = std::move(value); }
254 
258  inline CreateRuleRequest& WithOutcomes(const Aws::Vector<Aws::String>& value) { SetOutcomes(value); return *this;}
259 
263  inline CreateRuleRequest& WithOutcomes(Aws::Vector<Aws::String>&& value) { SetOutcomes(std::move(value)); return *this;}
264 
268  inline CreateRuleRequest& AddOutcomes(const Aws::String& value) { m_outcomesHasBeenSet = true; m_outcomes.push_back(value); return *this; }
269 
273  inline CreateRuleRequest& AddOutcomes(Aws::String&& value) { m_outcomesHasBeenSet = true; m_outcomes.push_back(std::move(value)); return *this; }
274 
278  inline CreateRuleRequest& AddOutcomes(const char* value) { m_outcomesHasBeenSet = true; m_outcomes.push_back(value); return *this; }
279 
280 
284  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
285 
289  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
290 
294  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
295 
299  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
300 
304  inline CreateRuleRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
305 
309  inline CreateRuleRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
310 
314  inline CreateRuleRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
315 
319  inline CreateRuleRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
320 
321  private:
322 
323  Aws::String m_ruleId;
324  bool m_ruleIdHasBeenSet;
325 
326  Aws::String m_detectorId;
327  bool m_detectorIdHasBeenSet;
328 
329  Aws::String m_description;
330  bool m_descriptionHasBeenSet;
331 
332  Aws::String m_expression;
333  bool m_expressionHasBeenSet;
334 
335  Language m_language;
336  bool m_languageHasBeenSet;
337 
338  Aws::Vector<Aws::String> m_outcomes;
339  bool m_outcomesHasBeenSet;
340 
341  Aws::Vector<Tag> m_tags;
342  bool m_tagsHasBeenSet;
343  };
344 
345 } // namespace Model
346 } // namespace FraudDetector
347 } // namespace Aws
Language.h
Aws::FraudDetector::Model::CreateRuleRequest::WithRuleId
CreateRuleRequest & WithRuleId(const Aws::String &value)
Definition: CreateRuleRequest.h:68
FraudDetectorRequest.h
Aws::FraudDetector::Model::CreateRuleRequest::SetLanguage
void SetLanguage(Language &&value)
Definition: CreateRuleRequest.h:222
Aws::FraudDetector::Model::CreateRuleRequest::AddOutcomes
CreateRuleRequest & AddOutcomes(const Aws::String &value)
Definition: CreateRuleRequest.h:268
Aws::FraudDetector::Model::CreateRuleRequest::WithDescription
CreateRuleRequest & WithDescription(Aws::String &&value)
Definition: CreateRuleRequest.h:155
Aws::FraudDetector::Model::CreateRuleRequest::GetRuleId
const Aws::String & GetRuleId() const
Definition: CreateRuleRequest.h:43
Aws::FraudDetector::Model::CreateRuleRequest::SetLanguage
void SetLanguage(const Language &value)
Definition: CreateRuleRequest.h:217
Tag.h
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
FraudDetector_EXPORTS.h
Aws::FraudDetector::Model::CreateRuleRequest::ExpressionHasBeenSet
bool ExpressionHasBeenSet() const
Definition: CreateRuleRequest.h:171
Aws::FraudDetector::Model::CreateRuleRequest::GetOutcomes
const Aws::Vector< Aws::String > & GetOutcomes() const
Definition: CreateRuleRequest.h:238
Aws::FraudDetector::Model::CreateRuleRequest::SetDetectorId
void SetDetectorId(const char *value)
Definition: CreateRuleRequest.h:104
Aws::FraudDetector::Model::CreateRuleRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateRuleRequest.h:289
Aws::FraudDetector::Model::CreateRuleRequest::WithLanguage
CreateRuleRequest & WithLanguage(Language &&value)
Definition: CreateRuleRequest.h:232
Aws::FraudDetector::Model::CreateRuleRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CreateRuleRequest.h:140
Aws::FraudDetector::Model::CreateRuleRequest::WithDetectorId
CreateRuleRequest & WithDetectorId(const Aws::String &value)
Definition: CreateRuleRequest.h:109
Aws::FraudDetector::Model::CreateRuleRequest::RuleIdHasBeenSet
bool RuleIdHasBeenSet() const
Definition: CreateRuleRequest.h:48
Aws::FraudDetector::Model::CreateRuleRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateRuleRequest.h:33
Aws::FraudDetector::Model::Tag
Definition: Tag.h:32
Aws::FraudDetector::Model::CreateRuleRequest::WithLanguage
CreateRuleRequest & WithLanguage(const Language &value)
Definition: CreateRuleRequest.h:227
Aws::FraudDetector::Model::CreateRuleRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateRuleRequest.h:294
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::FraudDetector::Model::CreateRuleRequest::WithOutcomes
CreateRuleRequest & WithOutcomes(Aws::Vector< Aws::String > &&value)
Definition: CreateRuleRequest.h:263
AWSVector.h
Aws::FraudDetector::Model::CreateRuleRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::FraudDetector::Model::CreateRuleRequest::LanguageHasBeenSet
bool LanguageHasBeenSet() const
Definition: CreateRuleRequest.h:212
Aws::FraudDetector::Model::CreateRuleRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreateRuleRequest.h:135
Aws::FraudDetector::Model::CreateRuleRequest::SetDescription
void SetDescription(const char *value)
Definition: CreateRuleRequest.h:145
Aws::FraudDetector::FraudDetectorRequest
Definition: FraudDetectorRequest.h:17
Aws::FraudDetector::Model::CreateRuleRequest::SetDetectorId
void SetDetectorId(Aws::String &&value)
Definition: CreateRuleRequest.h:99
Aws::FraudDetector::Model::CreateRuleRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateRuleRequest.h:284
Aws::FraudDetector::Model::CreateRuleRequest::WithExpression
CreateRuleRequest & WithExpression(const Aws::String &value)
Definition: CreateRuleRequest.h:191
Aws::FraudDetector::Model::CreateRuleRequest::SetDetectorId
void SetDetectorId(const Aws::String &value)
Definition: CreateRuleRequest.h:94
Aws::FraudDetector::Model::CreateRuleRequest::AddTags
CreateRuleRequest & AddTags(Tag &&value)
Definition: CreateRuleRequest.h:319
AWS_FRAUDDETECTOR_API
#define AWS_FRAUDDETECTOR_API
Definition: FraudDetector_EXPORTS.h:28
Aws::FraudDetector::Model::CreateRuleRequest
Definition: CreateRuleRequest.h:25
Aws::FraudDetector::Model::CreateRuleRequest::SetOutcomes
void SetOutcomes(const Aws::Vector< Aws::String > &value)
Definition: CreateRuleRequest.h:248
Aws::FraudDetector::Model::CreateRuleRequest::SetOutcomes
void SetOutcomes(Aws::Vector< Aws::String > &&value)
Definition: CreateRuleRequest.h:253
Aws::FraudDetector::Model::CreateRuleRequest::SetExpression
void SetExpression(const char *value)
Definition: CreateRuleRequest.h:186
Aws::FraudDetector::Model::CreateRuleRequest::CreateRuleRequest
CreateRuleRequest()
Aws::FraudDetector::Model::CreateRuleRequest::SetExpression
void SetExpression(const Aws::String &value)
Definition: CreateRuleRequest.h:176
Aws::FraudDetector::Model::CreateRuleRequest::OutcomesHasBeenSet
bool OutcomesHasBeenSet() const
Definition: CreateRuleRequest.h:243
Aws::FraudDetector::Model::CreateRuleRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateRuleRequest.h:299
Aws::FraudDetector::Model::CreateRuleRequest::SetRuleId
void SetRuleId(const Aws::String &value)
Definition: CreateRuleRequest.h:53
Aws::FraudDetector::Model::CreateRuleRequest::WithDescription
CreateRuleRequest & WithDescription(const char *value)
Definition: CreateRuleRequest.h:160
Aws::FraudDetector::Model::CreateRuleRequest::GetDetectorId
const Aws::String & GetDetectorId() const
Definition: CreateRuleRequest.h:84
Aws::FraudDetector::Model::CreateRuleRequest::WithRuleId
CreateRuleRequest & WithRuleId(Aws::String &&value)
Definition: CreateRuleRequest.h:73
Aws::FraudDetector::Model::CreateRuleRequest::WithExpression
CreateRuleRequest & WithExpression(Aws::String &&value)
Definition: CreateRuleRequest.h:196
Aws::FraudDetector::Model::CreateRuleRequest::WithTags
CreateRuleRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateRuleRequest.h:309
Aws::FraudDetector::Model::CreateRuleRequest::SetRuleId
void SetRuleId(const char *value)
Definition: CreateRuleRequest.h:63
Aws::FraudDetector::Model::CreateRuleRequest::GetExpression
const Aws::String & GetExpression() const
Definition: CreateRuleRequest.h:166
Aws::FraudDetector::Model::CreateRuleRequest::WithExpression
CreateRuleRequest & WithExpression(const char *value)
Definition: CreateRuleRequest.h:201
AWSString.h
Aws::FraudDetector::Model::CreateRuleRequest::WithTags
CreateRuleRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateRuleRequest.h:304
Aws::FraudDetector::Model::CreateRuleRequest::AddTags
CreateRuleRequest & AddTags(const Tag &value)
Definition: CreateRuleRequest.h:314
Aws::FraudDetector::Model::CreateRuleRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CreateRuleRequest.h:125
Aws::FraudDetector::Model::CreateRuleRequest::WithDetectorId
CreateRuleRequest & WithDetectorId(const char *value)
Definition: CreateRuleRequest.h:119
Aws::FraudDetector::Model::CreateRuleRequest::SetRuleId
void SetRuleId(Aws::String &&value)
Definition: CreateRuleRequest.h:58
Aws::FraudDetector::Model::CreateRuleRequest::DetectorIdHasBeenSet
bool DetectorIdHasBeenSet() const
Definition: CreateRuleRequest.h:89
Aws::FraudDetector::Model::CreateRuleRequest::SerializePayload
Aws::String SerializePayload() const override
Aws
Definition: AccessManagementClient.h:15
Aws::FraudDetector::Model::CreateRuleRequest::GetLanguage
const Language & GetLanguage() const
Definition: CreateRuleRequest.h:207
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::FraudDetector::Model::CreateRuleRequest::SetExpression
void SetExpression(Aws::String &&value)
Definition: CreateRuleRequest.h:181
Aws::FraudDetector::Model::CreateRuleRequest::WithOutcomes
CreateRuleRequest & WithOutcomes(const Aws::Vector< Aws::String > &value)
Definition: CreateRuleRequest.h:258
Aws::FraudDetector::Model::CreateRuleRequest::AddOutcomes
CreateRuleRequest & AddOutcomes(const char *value)
Definition: CreateRuleRequest.h:278
Aws::FraudDetector::Model::CreateRuleRequest::AddOutcomes
CreateRuleRequest & AddOutcomes(Aws::String &&value)
Definition: CreateRuleRequest.h:273
Aws::FraudDetector::Model::CreateRuleRequest::WithDetectorId
CreateRuleRequest & WithDetectorId(Aws::String &&value)
Definition: CreateRuleRequest.h:114
Aws::FraudDetector::Model::CreateRuleRequest::WithRuleId
CreateRuleRequest & WithRuleId(const char *value)
Definition: CreateRuleRequest.h:78
Aws::FraudDetector::Model::CreateRuleRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CreateRuleRequest.h:130
Aws::FraudDetector::Model::Language
Language
Definition: Language.h:17
Aws::FraudDetector::Model::CreateRuleRequest::WithDescription
CreateRuleRequest & WithDescription(const Aws::String &value)
Definition: CreateRuleRequest.h:150