AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateRuleRequest.h
1
6#pragma once
7#include <aws/frauddetector/FraudDetector_EXPORTS.h>
8#include <aws/frauddetector/FraudDetectorRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/frauddetector/model/Language.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/frauddetector/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace FraudDetector
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_FRAUDDETECTOR_API CreateRuleRequest();
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_FRAUDDETECTOR_API Aws::String SerializePayload() const override;
36
37 AWS_FRAUDDETECTOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
44 inline const Aws::String& GetRuleId() const{ return m_ruleId; }
45 inline bool RuleIdHasBeenSet() const { return m_ruleIdHasBeenSet; }
46 inline void SetRuleId(const Aws::String& value) { m_ruleIdHasBeenSet = true; m_ruleId = value; }
47 inline void SetRuleId(Aws::String&& value) { m_ruleIdHasBeenSet = true; m_ruleId = std::move(value); }
48 inline void SetRuleId(const char* value) { m_ruleIdHasBeenSet = true; m_ruleId.assign(value); }
49 inline CreateRuleRequest& WithRuleId(const Aws::String& value) { SetRuleId(value); return *this;}
50 inline CreateRuleRequest& WithRuleId(Aws::String&& value) { SetRuleId(std::move(value)); return *this;}
51 inline CreateRuleRequest& WithRuleId(const char* value) { SetRuleId(value); return *this;}
53
55
58 inline const Aws::String& GetDetectorId() const{ return m_detectorId; }
59 inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; }
60 inline void SetDetectorId(const Aws::String& value) { m_detectorIdHasBeenSet = true; m_detectorId = value; }
61 inline void SetDetectorId(Aws::String&& value) { m_detectorIdHasBeenSet = true; m_detectorId = std::move(value); }
62 inline void SetDetectorId(const char* value) { m_detectorIdHasBeenSet = true; m_detectorId.assign(value); }
63 inline CreateRuleRequest& WithDetectorId(const Aws::String& value) { SetDetectorId(value); return *this;}
64 inline CreateRuleRequest& WithDetectorId(Aws::String&& value) { SetDetectorId(std::move(value)); return *this;}
65 inline CreateRuleRequest& WithDetectorId(const char* value) { SetDetectorId(value); return *this;}
67
69
72 inline const Aws::String& GetDescription() const{ return m_description; }
73 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
74 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
75 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
76 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
77 inline CreateRuleRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
78 inline CreateRuleRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
79 inline CreateRuleRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
81
83
86 inline const Aws::String& GetExpression() const{ return m_expression; }
87 inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; }
88 inline void SetExpression(const Aws::String& value) { m_expressionHasBeenSet = true; m_expression = value; }
89 inline void SetExpression(Aws::String&& value) { m_expressionHasBeenSet = true; m_expression = std::move(value); }
90 inline void SetExpression(const char* value) { m_expressionHasBeenSet = true; m_expression.assign(value); }
91 inline CreateRuleRequest& WithExpression(const Aws::String& value) { SetExpression(value); return *this;}
92 inline CreateRuleRequest& WithExpression(Aws::String&& value) { SetExpression(std::move(value)); return *this;}
93 inline CreateRuleRequest& WithExpression(const char* value) { SetExpression(value); return *this;}
95
97
100 inline const Language& GetLanguage() const{ return m_language; }
101 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
102 inline void SetLanguage(const Language& value) { m_languageHasBeenSet = true; m_language = value; }
103 inline void SetLanguage(Language&& value) { m_languageHasBeenSet = true; m_language = std::move(value); }
104 inline CreateRuleRequest& WithLanguage(const Language& value) { SetLanguage(value); return *this;}
105 inline CreateRuleRequest& WithLanguage(Language&& value) { SetLanguage(std::move(value)); return *this;}
107
109
112 inline const Aws::Vector<Aws::String>& GetOutcomes() const{ return m_outcomes; }
113 inline bool OutcomesHasBeenSet() const { return m_outcomesHasBeenSet; }
114 inline void SetOutcomes(const Aws::Vector<Aws::String>& value) { m_outcomesHasBeenSet = true; m_outcomes = value; }
115 inline void SetOutcomes(Aws::Vector<Aws::String>&& value) { m_outcomesHasBeenSet = true; m_outcomes = std::move(value); }
116 inline CreateRuleRequest& WithOutcomes(const Aws::Vector<Aws::String>& value) { SetOutcomes(value); return *this;}
117 inline CreateRuleRequest& WithOutcomes(Aws::Vector<Aws::String>&& value) { SetOutcomes(std::move(value)); return *this;}
118 inline CreateRuleRequest& AddOutcomes(const Aws::String& value) { m_outcomesHasBeenSet = true; m_outcomes.push_back(value); return *this; }
119 inline CreateRuleRequest& AddOutcomes(Aws::String&& value) { m_outcomesHasBeenSet = true; m_outcomes.push_back(std::move(value)); return *this; }
120 inline CreateRuleRequest& AddOutcomes(const char* value) { m_outcomesHasBeenSet = true; m_outcomes.push_back(value); return *this; }
122
124
127 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
128 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
129 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
130 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
131 inline CreateRuleRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
132 inline CreateRuleRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
133 inline CreateRuleRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
134 inline CreateRuleRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
136 private:
137
138 Aws::String m_ruleId;
139 bool m_ruleIdHasBeenSet = false;
140
141 Aws::String m_detectorId;
142 bool m_detectorIdHasBeenSet = false;
143
144 Aws::String m_description;
145 bool m_descriptionHasBeenSet = false;
146
147 Aws::String m_expression;
148 bool m_expressionHasBeenSet = false;
149
150 Language m_language;
151 bool m_languageHasBeenSet = false;
152
153 Aws::Vector<Aws::String> m_outcomes;
154 bool m_outcomesHasBeenSet = false;
155
156 Aws::Vector<Tag> m_tags;
157 bool m_tagsHasBeenSet = false;
158 };
159
160} // namespace Model
161} // namespace FraudDetector
162} // namespace Aws
CreateRuleRequest & WithOutcomes(Aws::Vector< Aws::String > &&value)
CreateRuleRequest & WithDescription(const char *value)
void SetTags(Aws::Vector< Tag > &&value)
CreateRuleRequest & WithExpression(const Aws::String &value)
CreateRuleRequest & WithLanguage(const Language &value)
void SetOutcomes(Aws::Vector< Aws::String > &&value)
CreateRuleRequest & AddOutcomes(const Aws::String &value)
CreateRuleRequest & WithTags(const Aws::Vector< Tag > &value)
CreateRuleRequest & WithRuleId(Aws::String &&value)
AWS_FRAUDDETECTOR_API Aws::String SerializePayload() const override
CreateRuleRequest & AddOutcomes(const char *value)
void SetDescription(const Aws::String &value)
const Aws::Vector< Tag > & GetTags() const
void SetTags(const Aws::Vector< Tag > &value)
const Aws::Vector< Aws::String > & GetOutcomes() const
CreateRuleRequest & WithDescription(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
void SetExpression(const Aws::String &value)
CreateRuleRequest & WithExpression(Aws::String &&value)
CreateRuleRequest & WithDetectorId(const char *value)
void SetOutcomes(const Aws::Vector< Aws::String > &value)
CreateRuleRequest & AddTags(const Tag &value)
CreateRuleRequest & WithLanguage(Language &&value)
CreateRuleRequest & WithTags(Aws::Vector< Tag > &&value)
void SetDetectorId(const Aws::String &value)
CreateRuleRequest & WithExpression(const char *value)
AWS_FRAUDDETECTOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateRuleRequest & WithDetectorId(Aws::String &&value)
CreateRuleRequest & WithOutcomes(const Aws::Vector< Aws::String > &value)
CreateRuleRequest & WithRuleId(const char *value)
CreateRuleRequest & WithRuleId(const Aws::String &value)
CreateRuleRequest & WithDetectorId(const Aws::String &value)
CreateRuleRequest & AddOutcomes(Aws::String &&value)
CreateRuleRequest & AddTags(Tag &&value)
CreateRuleRequest & WithDescription(const 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