AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateRuleVersionRequest.h
1
6#pragma once
7#include <aws/frauddetector/FraudDetector_EXPORTS.h>
8#include <aws/frauddetector/FraudDetectorRequest.h>
9#include <aws/frauddetector/model/Rule.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/frauddetector/model/Language.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/frauddetector/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace FraudDetector
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_FRAUDDETECTOR_API UpdateRuleVersionRequest();
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_FRAUDDETECTOR_API Aws::String SerializePayload() const override;
37
38 AWS_FRAUDDETECTOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
40
42
45 inline const Rule& GetRule() const{ return m_rule; }
46 inline bool RuleHasBeenSet() const { return m_ruleHasBeenSet; }
47 inline void SetRule(const Rule& value) { m_ruleHasBeenSet = true; m_rule = value; }
48 inline void SetRule(Rule&& value) { m_ruleHasBeenSet = true; m_rule = std::move(value); }
49 inline UpdateRuleVersionRequest& WithRule(const Rule& value) { SetRule(value); return *this;}
50 inline UpdateRuleVersionRequest& WithRule(Rule&& value) { SetRule(std::move(value)); return *this;}
52
54
57 inline const Aws::String& GetDescription() const{ return m_description; }
58 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
59 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
60 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
61 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
62 inline UpdateRuleVersionRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
63 inline UpdateRuleVersionRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
64 inline UpdateRuleVersionRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
66
68
71 inline const Aws::String& GetExpression() const{ return m_expression; }
72 inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; }
73 inline void SetExpression(const Aws::String& value) { m_expressionHasBeenSet = true; m_expression = value; }
74 inline void SetExpression(Aws::String&& value) { m_expressionHasBeenSet = true; m_expression = std::move(value); }
75 inline void SetExpression(const char* value) { m_expressionHasBeenSet = true; m_expression.assign(value); }
76 inline UpdateRuleVersionRequest& WithExpression(const Aws::String& value) { SetExpression(value); return *this;}
77 inline UpdateRuleVersionRequest& WithExpression(Aws::String&& value) { SetExpression(std::move(value)); return *this;}
78 inline UpdateRuleVersionRequest& WithExpression(const char* value) { SetExpression(value); return *this;}
80
82
85 inline const Language& GetLanguage() const{ return m_language; }
86 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
87 inline void SetLanguage(const Language& value) { m_languageHasBeenSet = true; m_language = value; }
88 inline void SetLanguage(Language&& value) { m_languageHasBeenSet = true; m_language = std::move(value); }
89 inline UpdateRuleVersionRequest& WithLanguage(const Language& value) { SetLanguage(value); return *this;}
90 inline UpdateRuleVersionRequest& WithLanguage(Language&& value) { SetLanguage(std::move(value)); return *this;}
92
94
97 inline const Aws::Vector<Aws::String>& GetOutcomes() const{ return m_outcomes; }
98 inline bool OutcomesHasBeenSet() const { return m_outcomesHasBeenSet; }
99 inline void SetOutcomes(const Aws::Vector<Aws::String>& value) { m_outcomesHasBeenSet = true; m_outcomes = value; }
100 inline void SetOutcomes(Aws::Vector<Aws::String>&& value) { m_outcomesHasBeenSet = true; m_outcomes = std::move(value); }
101 inline UpdateRuleVersionRequest& WithOutcomes(const Aws::Vector<Aws::String>& value) { SetOutcomes(value); return *this;}
102 inline UpdateRuleVersionRequest& WithOutcomes(Aws::Vector<Aws::String>&& value) { SetOutcomes(std::move(value)); return *this;}
103 inline UpdateRuleVersionRequest& AddOutcomes(const Aws::String& value) { m_outcomesHasBeenSet = true; m_outcomes.push_back(value); return *this; }
104 inline UpdateRuleVersionRequest& AddOutcomes(Aws::String&& value) { m_outcomesHasBeenSet = true; m_outcomes.push_back(std::move(value)); return *this; }
105 inline UpdateRuleVersionRequest& AddOutcomes(const char* value) { m_outcomesHasBeenSet = true; m_outcomes.push_back(value); return *this; }
107
109
112 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
113 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
114 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
115 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
116 inline UpdateRuleVersionRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
117 inline UpdateRuleVersionRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
118 inline UpdateRuleVersionRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
119 inline UpdateRuleVersionRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
121 private:
122
123 Rule m_rule;
124 bool m_ruleHasBeenSet = false;
125
126 Aws::String m_description;
127 bool m_descriptionHasBeenSet = false;
128
129 Aws::String m_expression;
130 bool m_expressionHasBeenSet = false;
131
132 Language m_language;
133 bool m_languageHasBeenSet = false;
134
135 Aws::Vector<Aws::String> m_outcomes;
136 bool m_outcomesHasBeenSet = false;
137
138 Aws::Vector<Tag> m_tags;
139 bool m_tagsHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace FraudDetector
144} // namespace Aws
UpdateRuleVersionRequest & WithOutcomes(const Aws::Vector< Aws::String > &value)
UpdateRuleVersionRequest & AddOutcomes(const char *value)
UpdateRuleVersionRequest & WithExpression(const char *value)
UpdateRuleVersionRequest & WithDescription(Aws::String &&value)
UpdateRuleVersionRequest & WithDescription(const Aws::String &value)
UpdateRuleVersionRequest & WithTags(const Aws::Vector< Tag > &value)
UpdateRuleVersionRequest & WithExpression(Aws::String &&value)
UpdateRuleVersionRequest & WithRule(Rule &&value)
UpdateRuleVersionRequest & WithTags(Aws::Vector< Tag > &&value)
void SetOutcomes(const Aws::Vector< Aws::String > &value)
UpdateRuleVersionRequest & AddTags(const Tag &value)
UpdateRuleVersionRequest & WithOutcomes(Aws::Vector< Aws::String > &&value)
virtual const char * GetServiceRequestName() const override
UpdateRuleVersionRequest & WithDescription(const char *value)
UpdateRuleVersionRequest & WithLanguage(Language &&value)
UpdateRuleVersionRequest & WithRule(const Rule &value)
UpdateRuleVersionRequest & WithLanguage(const Language &value)
UpdateRuleVersionRequest & WithExpression(const Aws::String &value)
const Aws::Vector< Aws::String > & GetOutcomes() const
void SetOutcomes(Aws::Vector< Aws::String > &&value)
AWS_FRAUDDETECTOR_API Aws::String SerializePayload() const override
UpdateRuleVersionRequest & AddOutcomes(const Aws::String &value)
AWS_FRAUDDETECTOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateRuleVersionRequest & AddOutcomes(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector