AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetIgnoreWords(const Aws::Vector<Aws::String>& value) { m_ignoreWordsHasBeenSet = true; m_ignoreWords = value; }
47 inline void SetIgnoreWords(Aws::Vector<Aws::String>&& value) { m_ignoreWordsHasBeenSet = true; m_ignoreWords = std::move(value); }
50 inline TestCustomDataIdentifierRequest& AddIgnoreWords(const Aws::String& value) { m_ignoreWordsHasBeenSet = true; m_ignoreWords.push_back(value); return *this; }
51 inline TestCustomDataIdentifierRequest& AddIgnoreWords(Aws::String&& value) { m_ignoreWordsHasBeenSet = true; m_ignoreWords.push_back(std::move(value)); return *this; }
52 inline TestCustomDataIdentifierRequest& AddIgnoreWords(const char* value) { m_ignoreWordsHasBeenSet = true; m_ignoreWords.push_back(value); return *this; }
54
56
62 inline const Aws::Vector<Aws::String>& GetKeywords() const{ return m_keywords; }
63 inline bool KeywordsHasBeenSet() const { return m_keywordsHasBeenSet; }
64 inline void SetKeywords(const Aws::Vector<Aws::String>& value) { m_keywordsHasBeenSet = true; m_keywords = value; }
65 inline void SetKeywords(Aws::Vector<Aws::String>&& value) { m_keywordsHasBeenSet = true; m_keywords = std::move(value); }
67 inline TestCustomDataIdentifierRequest& WithKeywords(Aws::Vector<Aws::String>&& value) { SetKeywords(std::move(value)); return *this;}
68 inline TestCustomDataIdentifierRequest& AddKeywords(const Aws::String& value) { m_keywordsHasBeenSet = true; m_keywords.push_back(value); return *this; }
69 inline TestCustomDataIdentifierRequest& AddKeywords(Aws::String&& value) { m_keywordsHasBeenSet = true; m_keywords.push_back(std::move(value)); return *this; }
70 inline TestCustomDataIdentifierRequest& AddKeywords(const char* value) { m_keywordsHasBeenSet = true; m_keywords.push_back(value); return *this; }
72
74
82 inline int GetMaximumMatchDistance() const{ return m_maximumMatchDistance; }
83 inline bool MaximumMatchDistanceHasBeenSet() const { return m_maximumMatchDistanceHasBeenSet; }
84 inline void SetMaximumMatchDistance(int value) { m_maximumMatchDistanceHasBeenSet = true; m_maximumMatchDistance = value; }
87
89
93 inline const Aws::String& GetRegex() const{ return m_regex; }
94 inline bool RegexHasBeenSet() const { return m_regexHasBeenSet; }
95 inline void SetRegex(const Aws::String& value) { m_regexHasBeenSet = true; m_regex = value; }
96 inline void SetRegex(Aws::String&& value) { m_regexHasBeenSet = true; m_regex = std::move(value); }
97 inline void SetRegex(const char* value) { m_regexHasBeenSet = true; m_regex.assign(value); }
98 inline TestCustomDataIdentifierRequest& WithRegex(const Aws::String& value) { SetRegex(value); return *this;}
99 inline TestCustomDataIdentifierRequest& WithRegex(Aws::String&& value) { SetRegex(std::move(value)); return *this;}
100 inline TestCustomDataIdentifierRequest& WithRegex(const char* value) { SetRegex(value); return *this;}
102
104
108 inline const Aws::String& GetSampleText() const{ return m_sampleText; }
109 inline bool SampleTextHasBeenSet() const { return m_sampleTextHasBeenSet; }
110 inline void SetSampleText(const Aws::String& value) { m_sampleTextHasBeenSet = true; m_sampleText = value; }
111 inline void SetSampleText(Aws::String&& value) { m_sampleTextHasBeenSet = true; m_sampleText = std::move(value); }
112 inline void SetSampleText(const char* value) { m_sampleTextHasBeenSet = true; m_sampleText.assign(value); }
113 inline TestCustomDataIdentifierRequest& WithSampleText(const Aws::String& value) { SetSampleText(value); return *this;}
114 inline TestCustomDataIdentifierRequest& WithSampleText(Aws::String&& value) { SetSampleText(std::move(value)); return *this;}
115 inline TestCustomDataIdentifierRequest& WithSampleText(const char* value) { SetSampleText(value); return *this;}
117 private:
118
119 Aws::Vector<Aws::String> m_ignoreWords;
120 bool m_ignoreWordsHasBeenSet = false;
121
122 Aws::Vector<Aws::String> m_keywords;
123 bool m_keywordsHasBeenSet = false;
124
125 int m_maximumMatchDistance;
126 bool m_maximumMatchDistanceHasBeenSet = false;
127
128 Aws::String m_regex;
129 bool m_regexHasBeenSet = false;
130
131 Aws::String m_sampleText;
132 bool m_sampleTextHasBeenSet = false;
133 };
134
135} // namespace Model
136} // namespace Macie2
137} // namespace Aws
TestCustomDataIdentifierRequest & WithKeywords(const Aws::Vector< Aws::String > &value)
TestCustomDataIdentifierRequest & WithIgnoreWords(Aws::Vector< Aws::String > &&value)
TestCustomDataIdentifierRequest & WithSampleText(const char *value)
TestCustomDataIdentifierRequest & AddIgnoreWords(const char *value)
void SetKeywords(const Aws::Vector< Aws::String > &value)
TestCustomDataIdentifierRequest & WithRegex(Aws::String &&value)
TestCustomDataIdentifierRequest & AddIgnoreWords(const Aws::String &value)
TestCustomDataIdentifierRequest & AddKeywords(const char *value)
AWS_MACIE2_API Aws::String SerializePayload() const override
TestCustomDataIdentifierRequest & WithRegex(const Aws::String &value)
TestCustomDataIdentifierRequest & AddIgnoreWords(Aws::String &&value)
TestCustomDataIdentifierRequest & WithRegex(const char *value)
TestCustomDataIdentifierRequest & WithIgnoreWords(const Aws::Vector< Aws::String > &value)
TestCustomDataIdentifierRequest & WithSampleText(const Aws::String &value)
TestCustomDataIdentifierRequest & WithMaximumMatchDistance(int value)
void SetIgnoreWords(const Aws::Vector< Aws::String > &value)
TestCustomDataIdentifierRequest & WithSampleText(Aws::String &&value)
TestCustomDataIdentifierRequest & WithKeywords(Aws::Vector< Aws::String > &&value)
TestCustomDataIdentifierRequest & AddKeywords(Aws::String &&value)
TestCustomDataIdentifierRequest & AddKeywords(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector