AWS SDK for C++

AWS SDK for C++ Version 1.11.635

Loading...
Searching...
No Matches
PIIDetection.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/glue/model/PiiType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Glue
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_GLUE_API PIIDetection() = default;
41
42
44
47 inline const Aws::String& GetName() const { return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 template<typename NameT = Aws::String>
50 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
51 template<typename NameT = Aws::String>
52 PIIDetection& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_inputsHasBeenSet = true; m_inputs = std::forward<InputsT>(value); }
63 template<typename InputsT = Aws::Vector<Aws::String>>
64 PIIDetection& WithInputs(InputsT&& value) { SetInputs(std::forward<InputsT>(value)); return *this;}
65 template<typename InputsT = Aws::String>
66 PIIDetection& AddInputs(InputsT&& value) { m_inputsHasBeenSet = true; m_inputs.emplace_back(std::forward<InputsT>(value)); return *this; }
68
70
73 inline PiiType GetPiiType() const { return m_piiType; }
74 inline bool PiiTypeHasBeenSet() const { return m_piiTypeHasBeenSet; }
75 inline void SetPiiType(PiiType value) { m_piiTypeHasBeenSet = true; m_piiType = value; }
76 inline PIIDetection& WithPiiType(PiiType value) { SetPiiType(value); return *this;}
78
80
89 inline const Aws::Vector<Aws::String>& GetEntityTypesToDetect() const { return m_entityTypesToDetect; }
90 inline bool EntityTypesToDetectHasBeenSet() const { return m_entityTypesToDetectHasBeenSet; }
91 template<typename EntityTypesToDetectT = Aws::Vector<Aws::String>>
92 void SetEntityTypesToDetect(EntityTypesToDetectT&& value) { m_entityTypesToDetectHasBeenSet = true; m_entityTypesToDetect = std::forward<EntityTypesToDetectT>(value); }
93 template<typename EntityTypesToDetectT = Aws::Vector<Aws::String>>
94 PIIDetection& WithEntityTypesToDetect(EntityTypesToDetectT&& value) { SetEntityTypesToDetect(std::forward<EntityTypesToDetectT>(value)); return *this;}
95 template<typename EntityTypesToDetectT = Aws::String>
96 PIIDetection& AddEntityTypesToDetect(EntityTypesToDetectT&& value) { m_entityTypesToDetectHasBeenSet = true; m_entityTypesToDetect.emplace_back(std::forward<EntityTypesToDetectT>(value)); return *this; }
98
100
104 inline const Aws::String& GetOutputColumnName() const { return m_outputColumnName; }
105 inline bool OutputColumnNameHasBeenSet() const { return m_outputColumnNameHasBeenSet; }
106 template<typename OutputColumnNameT = Aws::String>
107 void SetOutputColumnName(OutputColumnNameT&& value) { m_outputColumnNameHasBeenSet = true; m_outputColumnName = std::forward<OutputColumnNameT>(value); }
108 template<typename OutputColumnNameT = Aws::String>
109 PIIDetection& WithOutputColumnName(OutputColumnNameT&& value) { SetOutputColumnName(std::forward<OutputColumnNameT>(value)); return *this;}
111
113
117 inline double GetSampleFraction() const { return m_sampleFraction; }
118 inline bool SampleFractionHasBeenSet() const { return m_sampleFractionHasBeenSet; }
119 inline void SetSampleFraction(double value) { m_sampleFractionHasBeenSet = true; m_sampleFraction = value; }
120 inline PIIDetection& WithSampleFraction(double value) { SetSampleFraction(value); return *this;}
122
124
128 inline double GetThresholdFraction() const { return m_thresholdFraction; }
129 inline bool ThresholdFractionHasBeenSet() const { return m_thresholdFractionHasBeenSet; }
130 inline void SetThresholdFraction(double value) { m_thresholdFractionHasBeenSet = true; m_thresholdFraction = value; }
131 inline PIIDetection& WithThresholdFraction(double value) { SetThresholdFraction(value); return *this;}
133
135
138 inline const Aws::String& GetMaskValue() const { return m_maskValue; }
139 inline bool MaskValueHasBeenSet() const { return m_maskValueHasBeenSet; }
140 template<typename MaskValueT = Aws::String>
141 void SetMaskValue(MaskValueT&& value) { m_maskValueHasBeenSet = true; m_maskValue = std::forward<MaskValueT>(value); }
142 template<typename MaskValueT = Aws::String>
143 PIIDetection& WithMaskValue(MaskValueT&& value) { SetMaskValue(std::forward<MaskValueT>(value)); return *this;}
145
147
151 inline const Aws::String& GetRedactText() const { return m_redactText; }
152 inline bool RedactTextHasBeenSet() const { return m_redactTextHasBeenSet; }
153 template<typename RedactTextT = Aws::String>
154 void SetRedactText(RedactTextT&& value) { m_redactTextHasBeenSet = true; m_redactText = std::forward<RedactTextT>(value); }
155 template<typename RedactTextT = Aws::String>
156 PIIDetection& WithRedactText(RedactTextT&& value) { SetRedactText(std::forward<RedactTextT>(value)); return *this;}
158
160
164 inline const Aws::String& GetRedactChar() const { return m_redactChar; }
165 inline bool RedactCharHasBeenSet() const { return m_redactCharHasBeenSet; }
166 template<typename RedactCharT = Aws::String>
167 void SetRedactChar(RedactCharT&& value) { m_redactCharHasBeenSet = true; m_redactChar = std::forward<RedactCharT>(value); }
168 template<typename RedactCharT = Aws::String>
169 PIIDetection& WithRedactChar(RedactCharT&& value) { SetRedactChar(std::forward<RedactCharT>(value)); return *this;}
171
173
177 inline const Aws::String& GetMatchPattern() const { return m_matchPattern; }
178 inline bool MatchPatternHasBeenSet() const { return m_matchPatternHasBeenSet; }
179 template<typename MatchPatternT = Aws::String>
180 void SetMatchPattern(MatchPatternT&& value) { m_matchPatternHasBeenSet = true; m_matchPattern = std::forward<MatchPatternT>(value); }
181 template<typename MatchPatternT = Aws::String>
182 PIIDetection& WithMatchPattern(MatchPatternT&& value) { SetMatchPattern(std::forward<MatchPatternT>(value)); return *this;}
184
186
191 inline int GetNumLeftCharsToExclude() const { return m_numLeftCharsToExclude; }
192 inline bool NumLeftCharsToExcludeHasBeenSet() const { return m_numLeftCharsToExcludeHasBeenSet; }
193 inline void SetNumLeftCharsToExclude(int value) { m_numLeftCharsToExcludeHasBeenSet = true; m_numLeftCharsToExclude = value; }
194 inline PIIDetection& WithNumLeftCharsToExclude(int value) { SetNumLeftCharsToExclude(value); return *this;}
196
198
203 inline int GetNumRightCharsToExclude() const { return m_numRightCharsToExclude; }
204 inline bool NumRightCharsToExcludeHasBeenSet() const { return m_numRightCharsToExcludeHasBeenSet; }
205 inline void SetNumRightCharsToExclude(int value) { m_numRightCharsToExcludeHasBeenSet = true; m_numRightCharsToExclude = value; }
206 inline PIIDetection& WithNumRightCharsToExclude(int value) { SetNumRightCharsToExclude(value); return *this;}
208
210
214 inline const Aws::String& GetDetectionParameters() const { return m_detectionParameters; }
215 inline bool DetectionParametersHasBeenSet() const { return m_detectionParametersHasBeenSet; }
216 template<typename DetectionParametersT = Aws::String>
217 void SetDetectionParameters(DetectionParametersT&& value) { m_detectionParametersHasBeenSet = true; m_detectionParameters = std::forward<DetectionParametersT>(value); }
218 template<typename DetectionParametersT = Aws::String>
219 PIIDetection& WithDetectionParameters(DetectionParametersT&& value) { SetDetectionParameters(std::forward<DetectionParametersT>(value)); return *this;}
221
223
227 inline const Aws::String& GetDetectionSensitivity() const { return m_detectionSensitivity; }
228 inline bool DetectionSensitivityHasBeenSet() const { return m_detectionSensitivityHasBeenSet; }
229 template<typename DetectionSensitivityT = Aws::String>
230 void SetDetectionSensitivity(DetectionSensitivityT&& value) { m_detectionSensitivityHasBeenSet = true; m_detectionSensitivity = std::forward<DetectionSensitivityT>(value); }
231 template<typename DetectionSensitivityT = Aws::String>
232 PIIDetection& WithDetectionSensitivity(DetectionSensitivityT&& value) { SetDetectionSensitivity(std::forward<DetectionSensitivityT>(value)); return *this;}
234 private:
235
236 Aws::String m_name;
237 bool m_nameHasBeenSet = false;
238
240 bool m_inputsHasBeenSet = false;
241
242 PiiType m_piiType{PiiType::NOT_SET};
243 bool m_piiTypeHasBeenSet = false;
244
245 Aws::Vector<Aws::String> m_entityTypesToDetect;
246 bool m_entityTypesToDetectHasBeenSet = false;
247
248 Aws::String m_outputColumnName;
249 bool m_outputColumnNameHasBeenSet = false;
250
251 double m_sampleFraction{0.0};
252 bool m_sampleFractionHasBeenSet = false;
253
254 double m_thresholdFraction{0.0};
255 bool m_thresholdFractionHasBeenSet = false;
256
257 Aws::String m_maskValue;
258 bool m_maskValueHasBeenSet = false;
259
260 Aws::String m_redactText;
261 bool m_redactTextHasBeenSet = false;
262
263 Aws::String m_redactChar;
264 bool m_redactCharHasBeenSet = false;
265
266 Aws::String m_matchPattern;
267 bool m_matchPatternHasBeenSet = false;
268
269 int m_numLeftCharsToExclude{0};
270 bool m_numLeftCharsToExcludeHasBeenSet = false;
271
272 int m_numRightCharsToExclude{0};
273 bool m_numRightCharsToExcludeHasBeenSet = false;
274
275 Aws::String m_detectionParameters;
276 bool m_detectionParametersHasBeenSet = false;
277
278 Aws::String m_detectionSensitivity;
279 bool m_detectionSensitivityHasBeenSet = false;
280 };
281
282} // namespace Model
283} // namespace Glue
284} // 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