1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 #pragma once
7 #include <aws/comprehend/Comprehend_EXPORTS.h>
8 #include <aws/core/utils/memory/stl/AWSVector.h>
9 #include <aws/comprehend/model/PiiEntity.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 template<typename RESULT_TYPE>
15 class AmazonWebServiceResult;
16 
17 namespace Utils
18 {
19 namespace Json
20 {
21   class JsonValue;
22 } // namespace Json
23 } // namespace Utils
24 namespace Comprehend
25 {
26 namespace Model
27 {
28   class AWS_COMPREHEND_API DetectPiiEntitiesResult
29   {
30   public:
31     DetectPiiEntitiesResult();
32     DetectPiiEntitiesResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
33     DetectPiiEntitiesResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
34 
35 
36     /**
37      * <p>A collection of PII entities identified in the input text. For each entity,
38      * the response provides the entity type, where the entity text begins and ends,
39      * and the level of confidence that Amazon Comprehend has in the detection.</p>
40      */
GetEntities()41     inline const Aws::Vector<PiiEntity>& GetEntities() const{ return m_entities; }
42 
43     /**
44      * <p>A collection of PII entities identified in the input text. For each entity,
45      * the response provides the entity type, where the entity text begins and ends,
46      * and the level of confidence that Amazon Comprehend has in the detection.</p>
47      */
SetEntities(const Aws::Vector<PiiEntity> & value)48     inline void SetEntities(const Aws::Vector<PiiEntity>& value) { m_entities = value; }
49 
50     /**
51      * <p>A collection of PII entities identified in the input text. For each entity,
52      * the response provides the entity type, where the entity text begins and ends,
53      * and the level of confidence that Amazon Comprehend has in the detection.</p>
54      */
SetEntities(Aws::Vector<PiiEntity> && value)55     inline void SetEntities(Aws::Vector<PiiEntity>&& value) { m_entities = std::move(value); }
56 
57     /**
58      * <p>A collection of PII entities identified in the input text. For each entity,
59      * the response provides the entity type, where the entity text begins and ends,
60      * and the level of confidence that Amazon Comprehend has in the detection.</p>
61      */
WithEntities(const Aws::Vector<PiiEntity> & value)62     inline DetectPiiEntitiesResult& WithEntities(const Aws::Vector<PiiEntity>& value) { SetEntities(value); return *this;}
63 
64     /**
65      * <p>A collection of PII entities identified in the input text. For each entity,
66      * the response provides the entity type, where the entity text begins and ends,
67      * and the level of confidence that Amazon Comprehend has in the detection.</p>
68      */
WithEntities(Aws::Vector<PiiEntity> && value)69     inline DetectPiiEntitiesResult& WithEntities(Aws::Vector<PiiEntity>&& value) { SetEntities(std::move(value)); return *this;}
70 
71     /**
72      * <p>A collection of PII entities identified in the input text. For each entity,
73      * the response provides the entity type, where the entity text begins and ends,
74      * and the level of confidence that Amazon Comprehend has in the detection.</p>
75      */
AddEntities(const PiiEntity & value)76     inline DetectPiiEntitiesResult& AddEntities(const PiiEntity& value) { m_entities.push_back(value); return *this; }
77 
78     /**
79      * <p>A collection of PII entities identified in the input text. For each entity,
80      * the response provides the entity type, where the entity text begins and ends,
81      * and the level of confidence that Amazon Comprehend has in the detection.</p>
82      */
AddEntities(PiiEntity && value)83     inline DetectPiiEntitiesResult& AddEntities(PiiEntity&& value) { m_entities.push_back(std::move(value)); return *this; }
84 
85   private:
86 
87     Aws::Vector<PiiEntity> m_entities;
88   };
89 
90 } // namespace Model
91 } // namespace Comprehend
92 } // namespace Aws
93