AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
EntityLabel.h
1
6#pragma once
7#include <aws/comprehend/Comprehend_EXPORTS.h>
8#include <aws/comprehend/model/PiiEntityType.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Comprehend {
20namespace Model {
21
30 public:
31 AWS_COMPREHEND_API EntityLabel() = default;
32 AWS_COMPREHEND_API EntityLabel(Aws::Utils::Json::JsonView jsonValue);
33 AWS_COMPREHEND_API EntityLabel& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline PiiEntityType GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 inline void SetName(PiiEntityType value) {
43 m_nameHasBeenSet = true;
44 m_name = value;
45 }
47 SetName(value);
48 return *this;
49 }
51
53
57 inline double GetScore() const { return m_score; }
58 inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; }
59 inline void SetScore(double value) {
60 m_scoreHasBeenSet = true;
61 m_score = value;
62 }
63 inline EntityLabel& WithScore(double value) {
64 SetScore(value);
65 return *this;
66 }
68 private:
70
71 double m_score{0.0};
72 bool m_nameHasBeenSet = false;
73 bool m_scoreHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace Comprehend
78} // namespace Aws
AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const
PiiEntityType GetName() const
Definition EntityLabel.h:40
void SetName(PiiEntityType value)
Definition EntityLabel.h:42
AWS_COMPREHEND_API EntityLabel(Aws::Utils::Json::JsonView jsonValue)
EntityLabel & WithName(PiiEntityType value)
Definition EntityLabel.h:46
EntityLabel & WithScore(double value)
Definition EntityLabel.h:63
AWS_COMPREHEND_API EntityLabel()=default
AWS_COMPREHEND_API EntityLabel & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue