AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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 private:
146
147 Aws::String m_name;
148 bool m_nameHasBeenSet = false;
149
151 bool m_inputsHasBeenSet = false;
152
153 PiiType m_piiType{PiiType::NOT_SET};
154 bool m_piiTypeHasBeenSet = false;
155
156 Aws::Vector<Aws::String> m_entityTypesToDetect;
157 bool m_entityTypesToDetectHasBeenSet = false;
158
159 Aws::String m_outputColumnName;
160 bool m_outputColumnNameHasBeenSet = false;
161
162 double m_sampleFraction{0.0};
163 bool m_sampleFractionHasBeenSet = false;
164
165 double m_thresholdFraction{0.0};
166 bool m_thresholdFractionHasBeenSet = false;
167
168 Aws::String m_maskValue;
169 bool m_maskValueHasBeenSet = false;
170 };
171
172} // namespace Model
173} // namespace Glue
174} // namespace Aws
const Aws::Vector< Aws::String > & GetEntityTypesToDetect() const
PIIDetection & WithOutputColumnName(OutputColumnNameT &&value)
AWS_GLUE_API PIIDetection(Aws::Utils::Json::JsonView jsonValue)
PIIDetection & WithPiiType(PiiType value)
void SetName(NameT &&value)
void SetMaskValue(MaskValueT &&value)
PIIDetection & WithSampleFraction(double value)
void SetThresholdFraction(double value)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetMaskValue() const
void SetSampleFraction(double value)
AWS_GLUE_API PIIDetection()=default
PIIDetection & WithMaskValue(MaskValueT &&value)
AWS_GLUE_API PIIDetection & operator=(Aws::Utils::Json::JsonView jsonValue)
PIIDetection & AddEntityTypesToDetect(EntityTypesToDetectT &&value)
void SetPiiType(PiiType value)
const Aws::String & GetName() const
const Aws::String & GetOutputColumnName() const
PIIDetection & AddInputs(InputsT &&value)
void SetOutputColumnName(OutputColumnNameT &&value)
void SetEntityTypesToDetect(EntityTypesToDetectT &&value)
PIIDetection & WithName(NameT &&value)
bool EntityTypesToDetectHasBeenSet() const
void SetInputs(InputsT &&value)
PIIDetection & WithInputs(InputsT &&value)
const Aws::Vector< Aws::String > & GetInputs() const
PIIDetection & WithEntityTypesToDetect(EntityTypesToDetectT &&value)
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