AWS SDK for C++  1.9.14
AWS SDK for C++
UpdateRuleVersionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace FraudDetector
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 "UpdateRuleVersion"; }
35 
36  Aws::String SerializePayload() const override;
37 
39 
40 
44  inline const Rule& GetRule() const{ return m_rule; }
45 
49  inline bool RuleHasBeenSet() const { return m_ruleHasBeenSet; }
50 
54  inline void SetRule(const Rule& value) { m_ruleHasBeenSet = true; m_rule = value; }
55 
59  inline void SetRule(Rule&& value) { m_ruleHasBeenSet = true; m_rule = std::move(value); }
60 
64  inline UpdateRuleVersionRequest& WithRule(const Rule& value) { SetRule(value); return *this;}
65 
69  inline UpdateRuleVersionRequest& WithRule(Rule&& value) { SetRule(std::move(value)); return *this;}
70 
71 
75  inline const Aws::String& GetDescription() const{ return m_description; }
76 
80  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
81 
85  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
86 
90  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
91 
95  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
96 
100  inline UpdateRuleVersionRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
101 
105  inline UpdateRuleVersionRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
106 
110  inline UpdateRuleVersionRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
111 
112 
116  inline const Aws::String& GetExpression() const{ return m_expression; }
117 
121  inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; }
122 
126  inline void SetExpression(const Aws::String& value) { m_expressionHasBeenSet = true; m_expression = value; }
127 
131  inline void SetExpression(Aws::String&& value) { m_expressionHasBeenSet = true; m_expression = std::move(value); }
132 
136  inline void SetExpression(const char* value) { m_expressionHasBeenSet = true; m_expression.assign(value); }
137 
141  inline UpdateRuleVersionRequest& WithExpression(const Aws::String& value) { SetExpression(value); return *this;}
142 
146  inline UpdateRuleVersionRequest& WithExpression(Aws::String&& value) { SetExpression(std::move(value)); return *this;}
147 
151  inline UpdateRuleVersionRequest& WithExpression(const char* value) { SetExpression(value); return *this;}
152 
153 
157  inline const Language& GetLanguage() const{ return m_language; }
158 
162  inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
163 
167  inline void SetLanguage(const Language& value) { m_languageHasBeenSet = true; m_language = value; }
168 
172  inline void SetLanguage(Language&& value) { m_languageHasBeenSet = true; m_language = std::move(value); }
173 
177  inline UpdateRuleVersionRequest& WithLanguage(const Language& value) { SetLanguage(value); return *this;}
178 
182  inline UpdateRuleVersionRequest& WithLanguage(Language&& value) { SetLanguage(std::move(value)); return *this;}
183 
184 
188  inline const Aws::Vector<Aws::String>& GetOutcomes() const{ return m_outcomes; }
189 
193  inline bool OutcomesHasBeenSet() const { return m_outcomesHasBeenSet; }
194 
198  inline void SetOutcomes(const Aws::Vector<Aws::String>& value) { m_outcomesHasBeenSet = true; m_outcomes = value; }
199 
203  inline void SetOutcomes(Aws::Vector<Aws::String>&& value) { m_outcomesHasBeenSet = true; m_outcomes = std::move(value); }
204 
208  inline UpdateRuleVersionRequest& WithOutcomes(const Aws::Vector<Aws::String>& value) { SetOutcomes(value); return *this;}
209 
213  inline UpdateRuleVersionRequest& WithOutcomes(Aws::Vector<Aws::String>&& value) { SetOutcomes(std::move(value)); return *this;}
214 
218  inline UpdateRuleVersionRequest& AddOutcomes(const Aws::String& value) { m_outcomesHasBeenSet = true; m_outcomes.push_back(value); return *this; }
219 
223  inline UpdateRuleVersionRequest& AddOutcomes(Aws::String&& value) { m_outcomesHasBeenSet = true; m_outcomes.push_back(std::move(value)); return *this; }
224 
228  inline UpdateRuleVersionRequest& AddOutcomes(const char* value) { m_outcomesHasBeenSet = true; m_outcomes.push_back(value); return *this; }
229 
230 
234  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
235 
239  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
240 
244  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
245 
249  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
250 
254  inline UpdateRuleVersionRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
255 
259  inline UpdateRuleVersionRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
260 
264  inline UpdateRuleVersionRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
265 
269  inline UpdateRuleVersionRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
270 
271  private:
272 
273  Rule m_rule;
274  bool m_ruleHasBeenSet;
275 
276  Aws::String m_description;
277  bool m_descriptionHasBeenSet;
278 
279  Aws::String m_expression;
280  bool m_expressionHasBeenSet;
281 
282  Language m_language;
283  bool m_languageHasBeenSet;
284 
285  Aws::Vector<Aws::String> m_outcomes;
286  bool m_outcomesHasBeenSet;
287 
288  Aws::Vector<Tag> m_tags;
289  bool m_tagsHasBeenSet;
290  };
291 
292 } // namespace Model
293 } // namespace FraudDetector
294 } // namespace Aws
Language.h
FraudDetectorRequest.h
Aws::FraudDetector::Model::UpdateRuleVersionRequest::WithDescription
UpdateRuleVersionRequest & WithDescription(Aws::String &&value)
Definition: UpdateRuleVersionRequest.h:105
Aws::FraudDetector::Model::UpdateRuleVersionRequest::LanguageHasBeenSet
bool LanguageHasBeenSet() const
Definition: UpdateRuleVersionRequest.h:162
Aws::FraudDetector::Model::UpdateRuleVersionRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Tag.h
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::FraudDetector::Model::UpdateRuleVersionRequest::RuleHasBeenSet
bool RuleHasBeenSet() const
Definition: UpdateRuleVersionRequest.h:49
Aws::FraudDetector::Model::UpdateRuleVersionRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: UpdateRuleVersionRequest.h:80
FraudDetector_EXPORTS.h
Aws::FraudDetector::Model::UpdateRuleVersionRequest::WithOutcomes
UpdateRuleVersionRequest & WithOutcomes(const Aws::Vector< Aws::String > &value)
Definition: UpdateRuleVersionRequest.h:208
Aws::FraudDetector::Model::UpdateRuleVersionRequest::GetDescription
const Aws::String & GetDescription() const
Definition: UpdateRuleVersionRequest.h:75
Aws::FraudDetector::Model::UpdateRuleVersionRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: UpdateRuleVersionRequest.h:85
Aws::FraudDetector::Model::UpdateRuleVersionRequest::GetExpression
const Aws::String & GetExpression() const
Definition: UpdateRuleVersionRequest.h:116
Aws::FraudDetector::Model::UpdateRuleVersionRequest::AddTags
UpdateRuleVersionRequest & AddTags(Tag &&value)
Definition: UpdateRuleVersionRequest.h:269
Aws::FraudDetector::Model::UpdateRuleVersionRequest::WithDescription
UpdateRuleVersionRequest & WithDescription(const Aws::String &value)
Definition: UpdateRuleVersionRequest.h:100
Aws::FraudDetector::Model::UpdateRuleVersionRequest::OutcomesHasBeenSet
bool OutcomesHasBeenSet() const
Definition: UpdateRuleVersionRequest.h:193
Aws::FraudDetector::Model::Tag
Definition: Tag.h:32
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::FraudDetector::Model::UpdateRuleVersionRequest::GetLanguage
const Language & GetLanguage() const
Definition: UpdateRuleVersionRequest.h:157
Aws::FraudDetector::Model::UpdateRuleVersionRequest::SetOutcomes
void SetOutcomes(Aws::Vector< Aws::String > &&value)
Definition: UpdateRuleVersionRequest.h:203
Aws::FraudDetector::Model::UpdateRuleVersionRequest::SetOutcomes
void SetOutcomes(const Aws::Vector< Aws::String > &value)
Definition: UpdateRuleVersionRequest.h:198
Aws::FraudDetector::Model::UpdateRuleVersionRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: UpdateRuleVersionRequest.h:244
Aws::FraudDetector::Model::UpdateRuleVersionRequest::SetRule
void SetRule(const Rule &value)
Definition: UpdateRuleVersionRequest.h:54
AWSVector.h
Aws::FraudDetector::Model::UpdateRuleVersionRequest::SetExpression
void SetExpression(const Aws::String &value)
Definition: UpdateRuleVersionRequest.h:126
Aws::FraudDetector::Model::UpdateRuleVersionRequest::WithExpression
UpdateRuleVersionRequest & WithExpression(const char *value)
Definition: UpdateRuleVersionRequest.h:151
Aws::FraudDetector::Model::UpdateRuleVersionRequest::SetExpression
void SetExpression(const char *value)
Definition: UpdateRuleVersionRequest.h:136
Aws::FraudDetector::FraudDetectorRequest
Definition: FraudDetectorRequest.h:17
Aws::FraudDetector::Model::UpdateRuleVersionRequest::WithDescription
UpdateRuleVersionRequest & WithDescription(const char *value)
Definition: UpdateRuleVersionRequest.h:110
AWS_FRAUDDETECTOR_API
#define AWS_FRAUDDETECTOR_API
Definition: FraudDetector_EXPORTS.h:28
Aws::FraudDetector::Model::UpdateRuleVersionRequest::WithLanguage
UpdateRuleVersionRequest & WithLanguage(Language &&value)
Definition: UpdateRuleVersionRequest.h:182
Aws::FraudDetector::Model::UpdateRuleVersionRequest::AddTags
UpdateRuleVersionRequest & AddTags(const Tag &value)
Definition: UpdateRuleVersionRequest.h:264
Aws::FraudDetector::Model::UpdateRuleVersionRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: UpdateRuleVersionRequest.h:234
Aws::FraudDetector::Model::UpdateRuleVersionRequest::UpdateRuleVersionRequest
UpdateRuleVersionRequest()
Aws::FraudDetector::Model::UpdateRuleVersionRequest::SetDescription
void SetDescription(const char *value)
Definition: UpdateRuleVersionRequest.h:95
Aws::FraudDetector::Model::UpdateRuleVersionRequest::ExpressionHasBeenSet
bool ExpressionHasBeenSet() const
Definition: UpdateRuleVersionRequest.h:121
Aws::FraudDetector::Model::UpdateRuleVersionRequest::WithOutcomes
UpdateRuleVersionRequest & WithOutcomes(Aws::Vector< Aws::String > &&value)
Definition: UpdateRuleVersionRequest.h:213
Aws::FraudDetector::Model::UpdateRuleVersionRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: UpdateRuleVersionRequest.h:239
Aws::FraudDetector::Model::UpdateRuleVersionRequest::AddOutcomes
UpdateRuleVersionRequest & AddOutcomes(const char *value)
Definition: UpdateRuleVersionRequest.h:228
Aws::FraudDetector::Model::UpdateRuleVersionRequest::SetLanguage
void SetLanguage(const Language &value)
Definition: UpdateRuleVersionRequest.h:167
Aws::FraudDetector::Model::UpdateRuleVersionRequest::GetRule
const Rule & GetRule() const
Definition: UpdateRuleVersionRequest.h:44
Aws::FraudDetector::Model::UpdateRuleVersionRequest::WithTags
UpdateRuleVersionRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: UpdateRuleVersionRequest.h:259
AWSString.h
Aws::FraudDetector::Model::UpdateRuleVersionRequest::GetOutcomes
const Aws::Vector< Aws::String > & GetOutcomes() const
Definition: UpdateRuleVersionRequest.h:188
Aws::FraudDetector::Model::UpdateRuleVersionRequest::WithExpression
UpdateRuleVersionRequest & WithExpression(const Aws::String &value)
Definition: UpdateRuleVersionRequest.h:141
Aws::FraudDetector::Model::UpdateRuleVersionRequest::AddOutcomes
UpdateRuleVersionRequest & AddOutcomes(const Aws::String &value)
Definition: UpdateRuleVersionRequest.h:218
Aws::FraudDetector::Model::Rule
Definition: Rule.h:32
Rule.h
Aws::FraudDetector::Model::UpdateRuleVersionRequest::WithExpression
UpdateRuleVersionRequest & WithExpression(Aws::String &&value)
Definition: UpdateRuleVersionRequest.h:146
Aws::FraudDetector::Model::UpdateRuleVersionRequest::AddOutcomes
UpdateRuleVersionRequest & AddOutcomes(Aws::String &&value)
Definition: UpdateRuleVersionRequest.h:223
Aws::FraudDetector::Model::UpdateRuleVersionRequest::SetExpression
void SetExpression(Aws::String &&value)
Definition: UpdateRuleVersionRequest.h:131
Aws::FraudDetector::Model::UpdateRuleVersionRequest::WithRule
UpdateRuleVersionRequest & WithRule(const Rule &value)
Definition: UpdateRuleVersionRequest.h:64
Aws::FraudDetector::Model::UpdateRuleVersionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws
Definition: AccessManagementClient.h:15
Aws::FraudDetector::Model::UpdateRuleVersionRequest
Definition: UpdateRuleVersionRequest.h:26
Aws::FraudDetector::Model::UpdateRuleVersionRequest::SetLanguage
void SetLanguage(Language &&value)
Definition: UpdateRuleVersionRequest.h:172
Aws::FraudDetector::Model::UpdateRuleVersionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateRuleVersionRequest.h:34
Aws::FraudDetector::Model::UpdateRuleVersionRequest::WithTags
UpdateRuleVersionRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: UpdateRuleVersionRequest.h:254
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::FraudDetector::Model::UpdateRuleVersionRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: UpdateRuleVersionRequest.h:249
Aws::FraudDetector::Model::UpdateRuleVersionRequest::WithRule
UpdateRuleVersionRequest & WithRule(Rule &&value)
Definition: UpdateRuleVersionRequest.h:69
Aws::FraudDetector::Model::UpdateRuleVersionRequest::SetRule
void SetRule(Rule &&value)
Definition: UpdateRuleVersionRequest.h:59
Aws::FraudDetector::Model::UpdateRuleVersionRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: UpdateRuleVersionRequest.h:90
Aws::FraudDetector::Model::UpdateRuleVersionRequest::WithLanguage
UpdateRuleVersionRequest & WithLanguage(const Language &value)
Definition: UpdateRuleVersionRequest.h:177
Aws::FraudDetector::Model::Language
Language
Definition: Language.h:17