AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
Trait.h
1
6#pragma once
7#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
8#include <aws/comprehendmedical/model/AttributeName.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace ComprehendMedical {
20namespace Model {
21
28class Trait {
29 public:
30 AWS_COMPREHENDMEDICAL_API Trait() = default;
31 AWS_COMPREHENDMEDICAL_API Trait(Aws::Utils::Json::JsonView jsonValue);
32 AWS_COMPREHENDMEDICAL_API Trait& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_COMPREHENDMEDICAL_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline AttributeName GetName() const { return m_name; }
40 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
41 inline void SetName(AttributeName value) {
42 m_nameHasBeenSet = true;
43 m_name = value;
44 }
45 inline Trait& WithName(AttributeName value) {
46 SetName(value);
47 return *this;
48 }
50
52
56 inline double GetScore() const { return m_score; }
57 inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; }
58 inline void SetScore(double value) {
59 m_scoreHasBeenSet = true;
60 m_score = value;
61 }
62 inline Trait& WithScore(double value) {
63 SetScore(value);
64 return *this;
65 }
67 private:
69
70 double m_score{0.0};
71 bool m_nameHasBeenSet = false;
72 bool m_scoreHasBeenSet = false;
73};
74
75} // namespace Model
76} // namespace ComprehendMedical
77} // namespace Aws
Trait & WithName(AttributeName value)
Definition Trait.h:45
AWS_COMPREHENDMEDICAL_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_COMPREHENDMEDICAL_API Trait()=default
AttributeName GetName() const
Definition Trait.h:39
void SetName(AttributeName value)
Definition Trait.h:41
void SetScore(double value)
Definition Trait.h:58
AWS_COMPREHENDMEDICAL_API Trait & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_COMPREHENDMEDICAL_API Trait(Aws::Utils::Json::JsonView jsonValue)
Trait & WithScore(double value)
Definition Trait.h:62
Aws::Utils::Json::JsonValue JsonValue