AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
TestCustomDataIdentifierRequest.h
1
6#pragma once
7#include <aws/macie2/Macie2_EXPORTS.h>
8#include <aws/macie2/Macie2Request.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Macie2
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_MACIE2_API TestCustomDataIdentifierRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "TestCustomDataIdentifier"; }
32
33 AWS_MACIE2_API Aws::String SerializePayload() const override;
34
35
37
44 inline const Aws::Vector<Aws::String>& GetIgnoreWords() const { return m_ignoreWords; }
45 inline bool IgnoreWordsHasBeenSet() const { return m_ignoreWordsHasBeenSet; }
46 template<typename IgnoreWordsT = Aws::Vector<Aws::String>>
47 void SetIgnoreWords(IgnoreWordsT&& value) { m_ignoreWordsHasBeenSet = true; m_ignoreWords = std::forward<IgnoreWordsT>(value); }
48 template<typename IgnoreWordsT = Aws::Vector<Aws::String>>
49 TestCustomDataIdentifierRequest& WithIgnoreWords(IgnoreWordsT&& value) { SetIgnoreWords(std::forward<IgnoreWordsT>(value)); return *this;}
50 template<typename IgnoreWordsT = Aws::String>
51 TestCustomDataIdentifierRequest& AddIgnoreWords(IgnoreWordsT&& value) { m_ignoreWordsHasBeenSet = true; m_ignoreWords.emplace_back(std::forward<IgnoreWordsT>(value)); return *this; }
53
55
61 inline const Aws::Vector<Aws::String>& GetKeywords() const { return m_keywords; }
62 inline bool KeywordsHasBeenSet() const { return m_keywordsHasBeenSet; }
63 template<typename KeywordsT = Aws::Vector<Aws::String>>
64 void SetKeywords(KeywordsT&& value) { m_keywordsHasBeenSet = true; m_keywords = std::forward<KeywordsT>(value); }
65 template<typename KeywordsT = Aws::Vector<Aws::String>>
66 TestCustomDataIdentifierRequest& WithKeywords(KeywordsT&& value) { SetKeywords(std::forward<KeywordsT>(value)); return *this;}
67 template<typename KeywordsT = Aws::String>
68 TestCustomDataIdentifierRequest& AddKeywords(KeywordsT&& value) { m_keywordsHasBeenSet = true; m_keywords.emplace_back(std::forward<KeywordsT>(value)); return *this; }
70
72
80 inline int GetMaximumMatchDistance() const { return m_maximumMatchDistance; }
81 inline bool MaximumMatchDistanceHasBeenSet() const { return m_maximumMatchDistanceHasBeenSet; }
82 inline void SetMaximumMatchDistance(int value) { m_maximumMatchDistanceHasBeenSet = true; m_maximumMatchDistance = value; }
85
87
91 inline const Aws::String& GetRegex() const { return m_regex; }
92 inline bool RegexHasBeenSet() const { return m_regexHasBeenSet; }
93 template<typename RegexT = Aws::String>
94 void SetRegex(RegexT&& value) { m_regexHasBeenSet = true; m_regex = std::forward<RegexT>(value); }
95 template<typename RegexT = Aws::String>
96 TestCustomDataIdentifierRequest& WithRegex(RegexT&& value) { SetRegex(std::forward<RegexT>(value)); return *this;}
98
100
104 inline const Aws::String& GetSampleText() const { return m_sampleText; }
105 inline bool SampleTextHasBeenSet() const { return m_sampleTextHasBeenSet; }
106 template<typename SampleTextT = Aws::String>
107 void SetSampleText(SampleTextT&& value) { m_sampleTextHasBeenSet = true; m_sampleText = std::forward<SampleTextT>(value); }
108 template<typename SampleTextT = Aws::String>
109 TestCustomDataIdentifierRequest& WithSampleText(SampleTextT&& value) { SetSampleText(std::forward<SampleTextT>(value)); return *this;}
111 private:
112
113 Aws::Vector<Aws::String> m_ignoreWords;
114 bool m_ignoreWordsHasBeenSet = false;
115
116 Aws::Vector<Aws::String> m_keywords;
117 bool m_keywordsHasBeenSet = false;
118
119 int m_maximumMatchDistance{0};
120 bool m_maximumMatchDistanceHasBeenSet = false;
121
122 Aws::String m_regex;
123 bool m_regexHasBeenSet = false;
124
125 Aws::String m_sampleText;
126 bool m_sampleTextHasBeenSet = false;
127 };
128
129} // namespace Model
130} // namespace Macie2
131} // 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