AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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#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
34 {
35 public:
36 AWS_COMPREHEND_API EntityLabel();
37 AWS_COMPREHEND_API EntityLabel(Aws::Utils::Json::JsonView jsonValue);
38 AWS_COMPREHEND_API EntityLabel& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const PiiEntityType& GetName() const{ return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 inline void SetName(const PiiEntityType& value) { m_nameHasBeenSet = true; m_name = value; }
49 inline void SetName(PiiEntityType&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
50 inline EntityLabel& WithName(const PiiEntityType& value) { SetName(value); return *this;}
51 inline EntityLabel& WithName(PiiEntityType&& value) { SetName(std::move(value)); return *this;}
53
55
59 inline double GetScore() const{ return m_score; }
60 inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; }
61 inline void SetScore(double value) { m_scoreHasBeenSet = true; m_score = value; }
62 inline EntityLabel& WithScore(double value) { SetScore(value); return *this;}
64 private:
65
66 PiiEntityType m_name;
67 bool m_nameHasBeenSet = false;
68
69 double m_score;
70 bool m_scoreHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace Comprehend
75} // namespace Aws
AWS_COMPREHEND_API EntityLabel()
AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const
EntityLabel & WithName(PiiEntityType &&value)
Definition EntityLabel.h:51
AWS_COMPREHEND_API EntityLabel(Aws::Utils::Json::JsonView jsonValue)
EntityLabel & WithScore(double value)
Definition EntityLabel.h:62
EntityLabel & WithName(const PiiEntityType &value)
Definition EntityLabel.h:50
AWS_COMPREHEND_API EntityLabel & operator=(Aws::Utils::Json::JsonView jsonValue)
const PiiEntityType & GetName() const
Definition EntityLabel.h:46
void SetName(PiiEntityType &&value)
Definition EntityLabel.h:49
void SetName(const PiiEntityType &value)
Definition EntityLabel.h:48
Aws::Utils::Json::JsonValue JsonValue