AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename RuleIdT = Aws::String>
47 void SetRuleId(RuleIdT&& value) { m_ruleIdHasBeenSet = true; m_ruleId = std::forward<RuleIdT>(value); }
48 template<typename RuleIdT = Aws::String>
49 CreateRuleRequest& WithRuleId(RuleIdT&& value) { SetRuleId(std::forward<RuleIdT>(value)); return *this;}
51
53
56 inline const Aws::String& GetDetectorId() const { return m_detectorId; }
57 inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; }
58 template<typename DetectorIdT = Aws::String>
59 void SetDetectorId(DetectorIdT&& value) { m_detectorIdHasBeenSet = true; m_detectorId = std::forward<DetectorIdT>(value); }
60 template<typename DetectorIdT = Aws::String>
61 CreateRuleRequest& WithDetectorId(DetectorIdT&& value) { SetDetectorId(std::forward<DetectorIdT>(value)); return *this;}
63
65
68 inline const Aws::String& GetDescription() const { return m_description; }
69 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
70 template<typename DescriptionT = Aws::String>
71 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
72 template<typename DescriptionT = Aws::String>
73 CreateRuleRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
75
77
80 inline const Aws::String& GetExpression() const { return m_expression; }
81 inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; }
82 template<typename ExpressionT = Aws::String>
83 void SetExpression(ExpressionT&& value) { m_expressionHasBeenSet = true; m_expression = std::forward<ExpressionT>(value); }
84 template<typename ExpressionT = Aws::String>
85 CreateRuleRequest& WithExpression(ExpressionT&& value) { SetExpression(std::forward<ExpressionT>(value)); return *this;}
87
89
92 inline Language GetLanguage() const { return m_language; }
93 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
94 inline void SetLanguage(Language value) { m_languageHasBeenSet = true; m_language = value; }
95 inline CreateRuleRequest& WithLanguage(Language value) { SetLanguage(value); return *this;}
97
99
102 inline const Aws::Vector<Aws::String>& GetOutcomes() const { return m_outcomes; }
103 inline bool OutcomesHasBeenSet() const { return m_outcomesHasBeenSet; }
104 template<typename OutcomesT = Aws::Vector<Aws::String>>
105 void SetOutcomes(OutcomesT&& value) { m_outcomesHasBeenSet = true; m_outcomes = std::forward<OutcomesT>(value); }
106 template<typename OutcomesT = Aws::Vector<Aws::String>>
107 CreateRuleRequest& WithOutcomes(OutcomesT&& value) { SetOutcomes(std::forward<OutcomesT>(value)); return *this;}
108 template<typename OutcomesT = Aws::String>
109 CreateRuleRequest& AddOutcomes(OutcomesT&& value) { m_outcomesHasBeenSet = true; m_outcomes.emplace_back(std::forward<OutcomesT>(value)); return *this; }
111
113
116 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
117 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
118 template<typename TagsT = Aws::Vector<Tag>>
119 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
120 template<typename TagsT = Aws::Vector<Tag>>
121 CreateRuleRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
122 template<typename TagsT = Tag>
123 CreateRuleRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
125 private:
126
127 Aws::String m_ruleId;
128 bool m_ruleIdHasBeenSet = false;
129
130 Aws::String m_detectorId;
131 bool m_detectorIdHasBeenSet = false;
132
133 Aws::String m_description;
134 bool m_descriptionHasBeenSet = false;
135
136 Aws::String m_expression;
137 bool m_expressionHasBeenSet = false;
138
139 Language m_language{Language::NOT_SET};
140 bool m_languageHasBeenSet = false;
141
142 Aws::Vector<Aws::String> m_outcomes;
143 bool m_outcomesHasBeenSet = false;
144
145 Aws::Vector<Tag> m_tags;
146 bool m_tagsHasBeenSet = false;
147 };
148
149} // namespace Model
150} // namespace FraudDetector
151} // namespace Aws
AWS_FRAUDDETECTOR_API CreateRuleRequest()=default
CreateRuleRequest & WithRuleId(RuleIdT &&value)
CreateRuleRequest & WithDetectorId(DetectorIdT &&value)
CreateRuleRequest & AddTags(TagsT &&value)
AWS_FRAUDDETECTOR_API Aws::String SerializePayload() const override
CreateRuleRequest & WithDescription(DescriptionT &&value)
const Aws::Vector< Tag > & GetTags() const
const Aws::Vector< Aws::String > & GetOutcomes() const
virtual const char * GetServiceRequestName() const override
CreateRuleRequest & WithExpression(ExpressionT &&value)
CreateRuleRequest & WithLanguage(Language value)
CreateRuleRequest & WithOutcomes(OutcomesT &&value)
CreateRuleRequest & WithTags(TagsT &&value)
AWS_FRAUDDETECTOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateRuleRequest & AddOutcomes(OutcomesT &&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