AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#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 ComprehendMedical
22{
23namespace Model
24{
25
32 class Trait
33 {
34 public:
35 AWS_COMPREHENDMEDICAL_API Trait() = default;
36 AWS_COMPREHENDMEDICAL_API Trait(Aws::Utils::Json::JsonView jsonValue);
37 AWS_COMPREHENDMEDICAL_API Trait& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_COMPREHENDMEDICAL_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline AttributeName GetName() const { return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 inline void SetName(AttributeName value) { m_nameHasBeenSet = true; m_name = value; }
48 inline Trait& WithName(AttributeName value) { SetName(value); return *this;}
50
52
56 inline double GetScore() const { return m_score; }
57 inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; }
58 inline void SetScore(double value) { m_scoreHasBeenSet = true; m_score = value; }
59 inline Trait& WithScore(double value) { SetScore(value); return *this;}
61 private:
62
64 bool m_nameHasBeenSet = false;
65
66 double m_score{0.0};
67 bool m_scoreHasBeenSet = false;
68 };
69
70} // namespace Model
71} // namespace ComprehendMedical
72} // namespace Aws
Trait & WithName(AttributeName value)
Definition Trait.h:48
AWS_COMPREHENDMEDICAL_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_COMPREHENDMEDICAL_API Trait()=default
AttributeName GetName() const
Definition Trait.h:45
void SetName(AttributeName value)
Definition Trait.h:47
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:59
Aws::Utils::Json::JsonValue JsonValue