AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
PIIDetection.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/glue/Glue_EXPORTS.h>
10#include <aws/glue/model/PiiType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Glue {
22namespace Model {
23
31 public:
32 AWS_GLUE_API PIIDetection() = default;
36
38
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template <typename NameT = Aws::String>
44 void SetName(NameT&& value) {
45 m_nameHasBeenSet = true;
46 m_name = std::forward<NameT>(value);
47 }
48 template <typename NameT = Aws::String>
49 PIIDetection& WithName(NameT&& value) {
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Vector<Aws::String>& GetInputs() const { return m_inputs; }
60 inline bool InputsHasBeenSet() const { return m_inputsHasBeenSet; }
61 template <typename InputsT = Aws::Vector<Aws::String>>
62 void SetInputs(InputsT&& value) {
63 m_inputsHasBeenSet = true;
64 m_inputs = std::forward<InputsT>(value);
65 }
66 template <typename InputsT = Aws::Vector<Aws::String>>
67 PIIDetection& WithInputs(InputsT&& value) {
68 SetInputs(std::forward<InputsT>(value));
69 return *this;
70 }
71 template <typename InputsT = Aws::String>
72 PIIDetection& AddInputs(InputsT&& value) {
73 m_inputsHasBeenSet = true;
74 m_inputs.emplace_back(std::forward<InputsT>(value));
75 return *this;
76 }
78
80
83 inline PiiType GetPiiType() const { return m_piiType; }
84 inline bool PiiTypeHasBeenSet() const { return m_piiTypeHasBeenSet; }
85 inline void SetPiiType(PiiType value) {
86 m_piiTypeHasBeenSet = true;
87 m_piiType = value;
88 }
90 SetPiiType(value);
91 return *this;
92 }
94
96
105 inline const Aws::Vector<Aws::String>& GetEntityTypesToDetect() const { return m_entityTypesToDetect; }
106 inline bool EntityTypesToDetectHasBeenSet() const { return m_entityTypesToDetectHasBeenSet; }
107 template <typename EntityTypesToDetectT = Aws::Vector<Aws::String>>
108 void SetEntityTypesToDetect(EntityTypesToDetectT&& value) {
109 m_entityTypesToDetectHasBeenSet = true;
110 m_entityTypesToDetect = std::forward<EntityTypesToDetectT>(value);
111 }
112 template <typename EntityTypesToDetectT = Aws::Vector<Aws::String>>
113 PIIDetection& WithEntityTypesToDetect(EntityTypesToDetectT&& value) {
114 SetEntityTypesToDetect(std::forward<EntityTypesToDetectT>(value));
115 return *this;
116 }
117 template <typename EntityTypesToDetectT = Aws::String>
118 PIIDetection& AddEntityTypesToDetect(EntityTypesToDetectT&& value) {
119 m_entityTypesToDetectHasBeenSet = true;
120 m_entityTypesToDetect.emplace_back(std::forward<EntityTypesToDetectT>(value));
121 return *this;
122 }
124
126
130 inline const Aws::String& GetOutputColumnName() const { return m_outputColumnName; }
131 inline bool OutputColumnNameHasBeenSet() const { return m_outputColumnNameHasBeenSet; }
132 template <typename OutputColumnNameT = Aws::String>
133 void SetOutputColumnName(OutputColumnNameT&& value) {
134 m_outputColumnNameHasBeenSet = true;
135 m_outputColumnName = std::forward<OutputColumnNameT>(value);
136 }
137 template <typename OutputColumnNameT = Aws::String>
138 PIIDetection& WithOutputColumnName(OutputColumnNameT&& value) {
139 SetOutputColumnName(std::forward<OutputColumnNameT>(value));
140 return *this;
141 }
143
145
149 inline double GetSampleFraction() const { return m_sampleFraction; }
150 inline bool SampleFractionHasBeenSet() const { return m_sampleFractionHasBeenSet; }
151 inline void SetSampleFraction(double value) {
152 m_sampleFractionHasBeenSet = true;
153 m_sampleFraction = value;
154 }
155 inline PIIDetection& WithSampleFraction(double value) {
156 SetSampleFraction(value);
157 return *this;
158 }
160
162
166 inline double GetThresholdFraction() const { return m_thresholdFraction; }
167 inline bool ThresholdFractionHasBeenSet() const { return m_thresholdFractionHasBeenSet; }
168 inline void SetThresholdFraction(double value) {
169 m_thresholdFractionHasBeenSet = true;
170 m_thresholdFraction = value;
171 }
172 inline PIIDetection& WithThresholdFraction(double value) {
174 return *this;
175 }
177
179
182 inline const Aws::String& GetMaskValue() const { return m_maskValue; }
183 inline bool MaskValueHasBeenSet() const { return m_maskValueHasBeenSet; }
184 template <typename MaskValueT = Aws::String>
185 void SetMaskValue(MaskValueT&& value) {
186 m_maskValueHasBeenSet = true;
187 m_maskValue = std::forward<MaskValueT>(value);
188 }
189 template <typename MaskValueT = Aws::String>
190 PIIDetection& WithMaskValue(MaskValueT&& value) {
191 SetMaskValue(std::forward<MaskValueT>(value));
192 return *this;
193 }
195
197
201 inline const Aws::String& GetRedactText() const { return m_redactText; }
202 inline bool RedactTextHasBeenSet() const { return m_redactTextHasBeenSet; }
203 template <typename RedactTextT = Aws::String>
204 void SetRedactText(RedactTextT&& value) {
205 m_redactTextHasBeenSet = true;
206 m_redactText = std::forward<RedactTextT>(value);
207 }
208 template <typename RedactTextT = Aws::String>
209 PIIDetection& WithRedactText(RedactTextT&& value) {
210 SetRedactText(std::forward<RedactTextT>(value));
211 return *this;
212 }
214
216
220 inline const Aws::String& GetRedactChar() const { return m_redactChar; }
221 inline bool RedactCharHasBeenSet() const { return m_redactCharHasBeenSet; }
222 template <typename RedactCharT = Aws::String>
223 void SetRedactChar(RedactCharT&& value) {
224 m_redactCharHasBeenSet = true;
225 m_redactChar = std::forward<RedactCharT>(value);
226 }
227 template <typename RedactCharT = Aws::String>
228 PIIDetection& WithRedactChar(RedactCharT&& value) {
229 SetRedactChar(std::forward<RedactCharT>(value));
230 return *this;
231 }
233
235
239 inline const Aws::String& GetMatchPattern() const { return m_matchPattern; }
240 inline bool MatchPatternHasBeenSet() const { return m_matchPatternHasBeenSet; }
241 template <typename MatchPatternT = Aws::String>
242 void SetMatchPattern(MatchPatternT&& value) {
243 m_matchPatternHasBeenSet = true;
244 m_matchPattern = std::forward<MatchPatternT>(value);
245 }
246 template <typename MatchPatternT = Aws::String>
247 PIIDetection& WithMatchPattern(MatchPatternT&& value) {
248 SetMatchPattern(std::forward<MatchPatternT>(value));
249 return *this;
250 }
252
254
259 inline int GetNumLeftCharsToExclude() const { return m_numLeftCharsToExclude; }
260 inline bool NumLeftCharsToExcludeHasBeenSet() const { return m_numLeftCharsToExcludeHasBeenSet; }
261 inline void SetNumLeftCharsToExclude(int value) {
262 m_numLeftCharsToExcludeHasBeenSet = true;
263 m_numLeftCharsToExclude = value;
264 }
267 return *this;
268 }
270
272
277 inline int GetNumRightCharsToExclude() const { return m_numRightCharsToExclude; }
278 inline bool NumRightCharsToExcludeHasBeenSet() const { return m_numRightCharsToExcludeHasBeenSet; }
279 inline void SetNumRightCharsToExclude(int value) {
280 m_numRightCharsToExcludeHasBeenSet = true;
281 m_numRightCharsToExclude = value;
282 }
285 return *this;
286 }
288
290
294 inline const Aws::String& GetDetectionParameters() const { return m_detectionParameters; }
295 inline bool DetectionParametersHasBeenSet() const { return m_detectionParametersHasBeenSet; }
296 template <typename DetectionParametersT = Aws::String>
297 void SetDetectionParameters(DetectionParametersT&& value) {
298 m_detectionParametersHasBeenSet = true;
299 m_detectionParameters = std::forward<DetectionParametersT>(value);
300 }
301 template <typename DetectionParametersT = Aws::String>
302 PIIDetection& WithDetectionParameters(DetectionParametersT&& value) {
303 SetDetectionParameters(std::forward<DetectionParametersT>(value));
304 return *this;
305 }
307
309
313 inline const Aws::String& GetDetectionSensitivity() const { return m_detectionSensitivity; }
314 inline bool DetectionSensitivityHasBeenSet() const { return m_detectionSensitivityHasBeenSet; }
315 template <typename DetectionSensitivityT = Aws::String>
316 void SetDetectionSensitivity(DetectionSensitivityT&& value) {
317 m_detectionSensitivityHasBeenSet = true;
318 m_detectionSensitivity = std::forward<DetectionSensitivityT>(value);
319 }
320 template <typename DetectionSensitivityT = Aws::String>
321 PIIDetection& WithDetectionSensitivity(DetectionSensitivityT&& value) {
322 SetDetectionSensitivity(std::forward<DetectionSensitivityT>(value));
323 return *this;
324 }
326 private:
327 Aws::String m_name;
328
330
331 PiiType m_piiType{PiiType::NOT_SET};
332
333 Aws::Vector<Aws::String> m_entityTypesToDetect;
334
335 Aws::String m_outputColumnName;
336
337 double m_sampleFraction{0.0};
338
339 double m_thresholdFraction{0.0};
340
341 Aws::String m_maskValue;
342
343 Aws::String m_redactText;
344
345 Aws::String m_redactChar;
346
347 Aws::String m_matchPattern;
348
349 int m_numLeftCharsToExclude{0};
350
351 int m_numRightCharsToExclude{0};
352
353 Aws::String m_detectionParameters;
354
355 Aws::String m_detectionSensitivity;
356 bool m_nameHasBeenSet = false;
357 bool m_inputsHasBeenSet = false;
358 bool m_piiTypeHasBeenSet = false;
359 bool m_entityTypesToDetectHasBeenSet = false;
360 bool m_outputColumnNameHasBeenSet = false;
361 bool m_sampleFractionHasBeenSet = false;
362 bool m_thresholdFractionHasBeenSet = false;
363 bool m_maskValueHasBeenSet = false;
364 bool m_redactTextHasBeenSet = false;
365 bool m_redactCharHasBeenSet = false;
366 bool m_matchPatternHasBeenSet = false;
367 bool m_numLeftCharsToExcludeHasBeenSet = false;
368 bool m_numRightCharsToExcludeHasBeenSet = false;
369 bool m_detectionParametersHasBeenSet = false;
370 bool m_detectionSensitivityHasBeenSet = false;
371};
372
373} // namespace Model
374} // namespace Glue
375} // namespace Aws
const Aws::Vector< Aws::String > & GetEntityTypesToDetect() const
PIIDetection & WithOutputColumnName(OutputColumnNameT &&value)
AWS_GLUE_API PIIDetection(Aws::Utils::Json::JsonView jsonValue)
bool NumRightCharsToExcludeHasBeenSet() const
PIIDetection & WithRedactText(RedactTextT &&value)
PIIDetection & WithPiiType(PiiType value)
void SetMatchPattern(MatchPatternT &&value)
void SetName(NameT &&value)
void SetDetectionParameters(DetectionParametersT &&value)
PIIDetection & WithDetectionParameters(DetectionParametersT &&value)
void SetMaskValue(MaskValueT &&value)
PIIDetection & WithSampleFraction(double value)
void SetDetectionSensitivity(DetectionSensitivityT &&value)
void SetThresholdFraction(double value)
PIIDetection & WithMatchPattern(MatchPatternT &&value)
const Aws::String & GetMatchPattern() const
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetRedactChar() const
const Aws::String & GetDetectionParameters() const
const Aws::String & GetMaskValue() const
void SetSampleFraction(double value)
AWS_GLUE_API PIIDetection()=default
PIIDetection & WithMaskValue(MaskValueT &&value)
void SetNumLeftCharsToExclude(int value)
PIIDetection & WithNumLeftCharsToExclude(int value)
void SetRedactText(RedactTextT &&value)
AWS_GLUE_API PIIDetection & operator=(Aws::Utils::Json::JsonView jsonValue)
PIIDetection & AddEntityTypesToDetect(EntityTypesToDetectT &&value)
void SetPiiType(PiiType value)
void SetNumRightCharsToExclude(int value)
const Aws::String & GetName() const
const Aws::String & GetDetectionSensitivity() const
const Aws::String & GetOutputColumnName() const
PIIDetection & AddInputs(InputsT &&value)
PIIDetection & WithRedactChar(RedactCharT &&value)
void SetOutputColumnName(OutputColumnNameT &&value)
void SetEntityTypesToDetect(EntityTypesToDetectT &&value)
void SetRedactChar(RedactCharT &&value)
const Aws::String & GetRedactText() const
PIIDetection & WithNumRightCharsToExclude(int value)
bool NumLeftCharsToExcludeHasBeenSet() const
PIIDetection & WithName(NameT &&value)
bool EntityTypesToDetectHasBeenSet() const
void SetInputs(InputsT &&value)
PIIDetection & WithInputs(InputsT &&value)
PIIDetection & WithDetectionSensitivity(DetectionSensitivityT &&value)
const Aws::Vector< Aws::String > & GetInputs() const
PIIDetection & WithEntityTypesToDetect(EntityTypesToDetectT &&value)
bool DetectionParametersHasBeenSet() const
bool DetectionSensitivityHasBeenSet() const
PIIDetection & WithThresholdFraction(double value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue