AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
TestCustomDataIdentifierRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/macie2/Macie2Request.h>
10#include <aws/macie2/Macie2_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Macie2 {
16namespace Model {
17
21 public:
22 AWS_MACIE2_API TestCustomDataIdentifierRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "TestCustomDataIdentifier"; }
29
30 AWS_MACIE2_API Aws::String SerializePayload() const override;
31
33
40 inline const Aws::Vector<Aws::String>& GetIgnoreWords() const { return m_ignoreWords; }
41 inline bool IgnoreWordsHasBeenSet() const { return m_ignoreWordsHasBeenSet; }
42 template <typename IgnoreWordsT = Aws::Vector<Aws::String>>
43 void SetIgnoreWords(IgnoreWordsT&& value) {
44 m_ignoreWordsHasBeenSet = true;
45 m_ignoreWords = std::forward<IgnoreWordsT>(value);
46 }
47 template <typename IgnoreWordsT = Aws::Vector<Aws::String>>
49 SetIgnoreWords(std::forward<IgnoreWordsT>(value));
50 return *this;
51 }
52 template <typename IgnoreWordsT = Aws::String>
54 m_ignoreWordsHasBeenSet = true;
55 m_ignoreWords.emplace_back(std::forward<IgnoreWordsT>(value));
56 return *this;
57 }
59
61
67 inline const Aws::Vector<Aws::String>& GetKeywords() const { return m_keywords; }
68 inline bool KeywordsHasBeenSet() const { return m_keywordsHasBeenSet; }
69 template <typename KeywordsT = Aws::Vector<Aws::String>>
70 void SetKeywords(KeywordsT&& value) {
71 m_keywordsHasBeenSet = true;
72 m_keywords = std::forward<KeywordsT>(value);
73 }
74 template <typename KeywordsT = Aws::Vector<Aws::String>>
76 SetKeywords(std::forward<KeywordsT>(value));
77 return *this;
78 }
79 template <typename KeywordsT = Aws::String>
81 m_keywordsHasBeenSet = true;
82 m_keywords.emplace_back(std::forward<KeywordsT>(value));
83 return *this;
84 }
86
88
96 inline int GetMaximumMatchDistance() const { return m_maximumMatchDistance; }
97 inline bool MaximumMatchDistanceHasBeenSet() const { return m_maximumMatchDistanceHasBeenSet; }
98 inline void SetMaximumMatchDistance(int value) {
99 m_maximumMatchDistanceHasBeenSet = true;
100 m_maximumMatchDistance = value;
101 }
104 return *this;
105 }
107
109
113 inline const Aws::String& GetRegex() const { return m_regex; }
114 inline bool RegexHasBeenSet() const { return m_regexHasBeenSet; }
115 template <typename RegexT = Aws::String>
116 void SetRegex(RegexT&& value) {
117 m_regexHasBeenSet = true;
118 m_regex = std::forward<RegexT>(value);
119 }
120 template <typename RegexT = Aws::String>
122 SetRegex(std::forward<RegexT>(value));
123 return *this;
124 }
126
128
132 inline const Aws::String& GetSampleText() const { return m_sampleText; }
133 inline bool SampleTextHasBeenSet() const { return m_sampleTextHasBeenSet; }
134 template <typename SampleTextT = Aws::String>
135 void SetSampleText(SampleTextT&& value) {
136 m_sampleTextHasBeenSet = true;
137 m_sampleText = std::forward<SampleTextT>(value);
138 }
139 template <typename SampleTextT = Aws::String>
141 SetSampleText(std::forward<SampleTextT>(value));
142 return *this;
143 }
145 private:
146 Aws::Vector<Aws::String> m_ignoreWords;
147
148 Aws::Vector<Aws::String> m_keywords;
149
150 int m_maximumMatchDistance{0};
151
152 Aws::String m_regex;
153
154 Aws::String m_sampleText;
155 bool m_ignoreWordsHasBeenSet = false;
156 bool m_keywordsHasBeenSet = false;
157 bool m_maximumMatchDistanceHasBeenSet = false;
158 bool m_regexHasBeenSet = false;
159 bool m_sampleTextHasBeenSet = false;
160};
161
162} // namespace Model
163} // namespace Macie2
164} // namespace Aws
TestCustomDataIdentifierRequest & WithRegex(RegexT &&value)
TestCustomDataIdentifierRequest & WithIgnoreWords(IgnoreWordsT &&value)
TestCustomDataIdentifierRequest & WithKeywords(KeywordsT &&value)
TestCustomDataIdentifierRequest & WithSampleText(SampleTextT &&value)
AWS_MACIE2_API Aws::String SerializePayload() const override
TestCustomDataIdentifierRequest & WithMaximumMatchDistance(int value)
TestCustomDataIdentifierRequest & AddKeywords(KeywordsT &&value)
TestCustomDataIdentifierRequest & AddIgnoreWords(IgnoreWordsT &&value)
AWS_MACIE2_API TestCustomDataIdentifierRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector