AWS SDK for C++

AWS SDK for C++ Version 1.11.945

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 <aws/crt/cbor/Cbor.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace Comprehend {
20namespace Model {
21
30 public:
31 AWS_COMPREHEND_API EntityLabel() = default;
32 AWS_COMPREHEND_API EntityLabel(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_COMPREHEND_API EntityLabel& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_COMPREHEND_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) 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
PiiEntityType GetName() const
Definition EntityLabel.h:40
void SetName(PiiEntityType value)
Definition EntityLabel.h:42
EntityLabel & WithName(PiiEntityType value)
Definition EntityLabel.h:46
EntityLabel & WithScore(double value)
Definition EntityLabel.h:63
AWS_COMPREHEND_API EntityLabel & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_COMPREHEND_API EntityLabel()=default
AWS_COMPREHEND_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_COMPREHEND_API EntityLabel(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)