AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename RuleT = Rule>
48 void SetRule(RuleT&& value) { m_ruleHasBeenSet = true; m_rule = std::forward<RuleT>(value); }
49 template<typename RuleT = Rule>
50 UpdateRuleVersionRequest& WithRule(RuleT&& value) { SetRule(std::forward<RuleT>(value)); return *this;}
52
54
57 inline const Aws::String& GetDescription() const { return m_description; }
58 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
59 template<typename DescriptionT = Aws::String>
60 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
61 template<typename DescriptionT = Aws::String>
62 UpdateRuleVersionRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
64
66
69 inline const Aws::String& GetExpression() const { return m_expression; }
70 inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; }
71 template<typename ExpressionT = Aws::String>
72 void SetExpression(ExpressionT&& value) { m_expressionHasBeenSet = true; m_expression = std::forward<ExpressionT>(value); }
73 template<typename ExpressionT = Aws::String>
74 UpdateRuleVersionRequest& WithExpression(ExpressionT&& value) { SetExpression(std::forward<ExpressionT>(value)); return *this;}
76
78
81 inline Language GetLanguage() const { return m_language; }
82 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
83 inline void SetLanguage(Language value) { m_languageHasBeenSet = true; m_language = value; }
84 inline UpdateRuleVersionRequest& WithLanguage(Language value) { SetLanguage(value); return *this;}
86
88
91 inline const Aws::Vector<Aws::String>& GetOutcomes() const { return m_outcomes; }
92 inline bool OutcomesHasBeenSet() const { return m_outcomesHasBeenSet; }
93 template<typename OutcomesT = Aws::Vector<Aws::String>>
94 void SetOutcomes(OutcomesT&& value) { m_outcomesHasBeenSet = true; m_outcomes = std::forward<OutcomesT>(value); }
95 template<typename OutcomesT = Aws::Vector<Aws::String>>
96 UpdateRuleVersionRequest& WithOutcomes(OutcomesT&& value) { SetOutcomes(std::forward<OutcomesT>(value)); return *this;}
97 template<typename OutcomesT = Aws::String>
98 UpdateRuleVersionRequest& AddOutcomes(OutcomesT&& value) { m_outcomesHasBeenSet = true; m_outcomes.emplace_back(std::forward<OutcomesT>(value)); return *this; }
100
102
105 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
106 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
107 template<typename TagsT = Aws::Vector<Tag>>
108 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
109 template<typename TagsT = Aws::Vector<Tag>>
110 UpdateRuleVersionRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
111 template<typename TagsT = Tag>
112 UpdateRuleVersionRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
114 private:
115
116 Rule m_rule;
117 bool m_ruleHasBeenSet = false;
118
119 Aws::String m_description;
120 bool m_descriptionHasBeenSet = false;
121
122 Aws::String m_expression;
123 bool m_expressionHasBeenSet = false;
124
125 Language m_language{Language::NOT_SET};
126 bool m_languageHasBeenSet = false;
127
128 Aws::Vector<Aws::String> m_outcomes;
129 bool m_outcomesHasBeenSet = false;
130
131 Aws::Vector<Tag> m_tags;
132 bool m_tagsHasBeenSet = false;
133 };
134
135} // namespace Model
136} // namespace FraudDetector
137} // namespace Aws
UpdateRuleVersionRequest & WithTags(TagsT &&value)
UpdateRuleVersionRequest & WithRule(RuleT &&value)
UpdateRuleVersionRequest & WithDescription(DescriptionT &&value)
virtual const char * GetServiceRequestName() const override
UpdateRuleVersionRequest & WithLanguage(Language value)
AWS_FRAUDDETECTOR_API UpdateRuleVersionRequest()=default
UpdateRuleVersionRequest & WithOutcomes(OutcomesT &&value)
UpdateRuleVersionRequest & WithExpression(ExpressionT &&value)
const Aws::Vector< Aws::String > & GetOutcomes() const
AWS_FRAUDDETECTOR_API Aws::String SerializePayload() const override
UpdateRuleVersionRequest & AddOutcomes(OutcomesT &&value)
UpdateRuleVersionRequest & AddTags(TagsT &&value)
AWS_FRAUDDETECTOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
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