AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RedactionConfig.h
1
6#pragma once
7#include <aws/comprehend/Comprehend_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/comprehend/model/PiiEntitiesDetectionMaskMode.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/comprehend/model/PiiEntityType.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Comprehend
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_COMPREHEND_API RedactionConfig();
39 AWS_COMPREHEND_API RedactionConfig(Aws::Utils::Json::JsonView jsonValue);
41 AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const Aws::Vector<PiiEntityType>& GetPiiEntityTypes() const{ return m_piiEntityTypes; }
50 inline bool PiiEntityTypesHasBeenSet() const { return m_piiEntityTypesHasBeenSet; }
51 inline void SetPiiEntityTypes(const Aws::Vector<PiiEntityType>& value) { m_piiEntityTypesHasBeenSet = true; m_piiEntityTypes = value; }
52 inline void SetPiiEntityTypes(Aws::Vector<PiiEntityType>&& value) { m_piiEntityTypesHasBeenSet = true; m_piiEntityTypes = std::move(value); }
54 inline RedactionConfig& WithPiiEntityTypes(Aws::Vector<PiiEntityType>&& value) { SetPiiEntityTypes(std::move(value)); return *this;}
55 inline RedactionConfig& AddPiiEntityTypes(const PiiEntityType& value) { m_piiEntityTypesHasBeenSet = true; m_piiEntityTypes.push_back(value); return *this; }
56 inline RedactionConfig& AddPiiEntityTypes(PiiEntityType&& value) { m_piiEntityTypesHasBeenSet = true; m_piiEntityTypes.push_back(std::move(value)); return *this; }
58
60
64 inline const PiiEntitiesDetectionMaskMode& GetMaskMode() const{ return m_maskMode; }
65 inline bool MaskModeHasBeenSet() const { return m_maskModeHasBeenSet; }
66 inline void SetMaskMode(const PiiEntitiesDetectionMaskMode& value) { m_maskModeHasBeenSet = true; m_maskMode = value; }
67 inline void SetMaskMode(PiiEntitiesDetectionMaskMode&& value) { m_maskModeHasBeenSet = true; m_maskMode = std::move(value); }
68 inline RedactionConfig& WithMaskMode(const PiiEntitiesDetectionMaskMode& value) { SetMaskMode(value); return *this;}
69 inline RedactionConfig& WithMaskMode(PiiEntitiesDetectionMaskMode&& value) { SetMaskMode(std::move(value)); return *this;}
71
73
76 inline const Aws::String& GetMaskCharacter() const{ return m_maskCharacter; }
77 inline bool MaskCharacterHasBeenSet() const { return m_maskCharacterHasBeenSet; }
78 inline void SetMaskCharacter(const Aws::String& value) { m_maskCharacterHasBeenSet = true; m_maskCharacter = value; }
79 inline void SetMaskCharacter(Aws::String&& value) { m_maskCharacterHasBeenSet = true; m_maskCharacter = std::move(value); }
80 inline void SetMaskCharacter(const char* value) { m_maskCharacterHasBeenSet = true; m_maskCharacter.assign(value); }
81 inline RedactionConfig& WithMaskCharacter(const Aws::String& value) { SetMaskCharacter(value); return *this;}
82 inline RedactionConfig& WithMaskCharacter(Aws::String&& value) { SetMaskCharacter(std::move(value)); return *this;}
83 inline RedactionConfig& WithMaskCharacter(const char* value) { SetMaskCharacter(value); return *this;}
85 private:
86
87 Aws::Vector<PiiEntityType> m_piiEntityTypes;
88 bool m_piiEntityTypesHasBeenSet = false;
89
91 bool m_maskModeHasBeenSet = false;
92
93 Aws::String m_maskCharacter;
94 bool m_maskCharacterHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace Comprehend
99} // namespace Aws
RedactionConfig & AddPiiEntityTypes(const PiiEntityType &value)
AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const
RedactionConfig & AddPiiEntityTypes(PiiEntityType &&value)
RedactionConfig & WithMaskCharacter(const char *value)
RedactionConfig & WithPiiEntityTypes(Aws::Vector< PiiEntityType > &&value)
RedactionConfig & WithMaskCharacter(Aws::String &&value)
RedactionConfig & WithMaskCharacter(const Aws::String &value)
RedactionConfig & WithPiiEntityTypes(const Aws::Vector< PiiEntityType > &value)
void SetMaskMode(PiiEntitiesDetectionMaskMode &&value)
RedactionConfig & WithMaskMode(PiiEntitiesDetectionMaskMode &&value)
void SetPiiEntityTypes(Aws::Vector< PiiEntityType > &&value)
RedactionConfig & WithMaskMode(const PiiEntitiesDetectionMaskMode &value)
const PiiEntitiesDetectionMaskMode & GetMaskMode() const
AWS_COMPREHEND_API RedactionConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetMaskMode(const PiiEntitiesDetectionMaskMode &value)
const Aws::String & GetMaskCharacter() const
void SetMaskCharacter(const Aws::String &value)
void SetMaskCharacter(Aws::String &&value)
const Aws::Vector< PiiEntityType > & GetPiiEntityTypes() const
AWS_COMPREHEND_API RedactionConfig(Aws::Utils::Json::JsonView jsonValue)
void SetPiiEntityTypes(const Aws::Vector< PiiEntityType > &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