AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PiiEntity.h
1
6#pragma once
7#include <aws/comprehend/Comprehend_EXPORTS.h>
8#include <aws/comprehend/model/PiiEntityType.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Comprehend
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_COMPREHEND_API PiiEntity();
35 AWS_COMPREHEND_API PiiEntity(Aws::Utils::Json::JsonView jsonValue);
36 AWS_COMPREHEND_API PiiEntity& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
45 inline double GetScore() const{ return m_score; }
46 inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; }
47 inline void SetScore(double value) { m_scoreHasBeenSet = true; m_score = value; }
48 inline PiiEntity& WithScore(double value) { SetScore(value); return *this;}
50
52
55 inline const PiiEntityType& GetType() const{ return m_type; }
56 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
57 inline void SetType(const PiiEntityType& value) { m_typeHasBeenSet = true; m_type = value; }
58 inline void SetType(PiiEntityType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
59 inline PiiEntity& WithType(const PiiEntityType& value) { SetType(value); return *this;}
60 inline PiiEntity& WithType(PiiEntityType&& value) { SetType(std::move(value)); return *this;}
62
64
68 inline int GetBeginOffset() const{ return m_beginOffset; }
69 inline bool BeginOffsetHasBeenSet() const { return m_beginOffsetHasBeenSet; }
70 inline void SetBeginOffset(int value) { m_beginOffsetHasBeenSet = true; m_beginOffset = value; }
71 inline PiiEntity& WithBeginOffset(int value) { SetBeginOffset(value); return *this;}
73
75
79 inline int GetEndOffset() const{ return m_endOffset; }
80 inline bool EndOffsetHasBeenSet() const { return m_endOffsetHasBeenSet; }
81 inline void SetEndOffset(int value) { m_endOffsetHasBeenSet = true; m_endOffset = value; }
82 inline PiiEntity& WithEndOffset(int value) { SetEndOffset(value); return *this;}
84 private:
85
86 double m_score;
87 bool m_scoreHasBeenSet = false;
88
89 PiiEntityType m_type;
90 bool m_typeHasBeenSet = false;
91
92 int m_beginOffset;
93 bool m_beginOffsetHasBeenSet = false;
94
95 int m_endOffset;
96 bool m_endOffsetHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace Comprehend
101} // namespace Aws
const PiiEntityType & GetType() const
Definition PiiEntity.h:55
AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const
PiiEntity & WithEndOffset(int value)
Definition PiiEntity.h:82
PiiEntity & WithType(PiiEntityType &&value)
Definition PiiEntity.h:60
AWS_COMPREHEND_API PiiEntity(Aws::Utils::Json::JsonView jsonValue)
AWS_COMPREHEND_API PiiEntity & operator=(Aws::Utils::Json::JsonView jsonValue)
PiiEntity & WithBeginOffset(int value)
Definition PiiEntity.h:71
PiiEntity & WithScore(double value)
Definition PiiEntity.h:48
void SetType(PiiEntityType &&value)
Definition PiiEntity.h:58
void SetScore(double value)
Definition PiiEntity.h:47
AWS_COMPREHEND_API PiiEntity()
void SetType(const PiiEntityType &value)
Definition PiiEntity.h:57
PiiEntity & WithType(const PiiEntityType &value)
Definition PiiEntity.h:59
Aws::Utils::Json::JsonValue JsonValue