AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const AttributeName& GetName() const{ return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 inline void SetName(const AttributeName& value) { m_nameHasBeenSet = true; m_name = value; }
48 inline void SetName(AttributeName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
49 inline Trait& WithName(const AttributeName& value) { SetName(value); return *this;}
50 inline Trait& WithName(AttributeName&& value) { SetName(std::move(value)); return *this;}
52
54
58 inline double GetScore() const{ return m_score; }
59 inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; }
60 inline void SetScore(double value) { m_scoreHasBeenSet = true; m_score = value; }
61 inline Trait& WithScore(double value) { SetScore(value); return *this;}
63 private:
64
65 AttributeName m_name;
66 bool m_nameHasBeenSet = false;
67
68 double m_score;
69 bool m_scoreHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace ComprehendMedical
74} // namespace Aws
AWS_COMPREHENDMEDICAL_API Aws::Utils::Json::JsonValue Jsonize() const
const AttributeName & GetName() const
Definition Trait.h:45
void SetName(const AttributeName &value)
Definition Trait.h:47
AWS_COMPREHENDMEDICAL_API Trait()
Trait & WithName(AttributeName &&value)
Definition Trait.h:50
Trait & WithName(const AttributeName &value)
Definition Trait.h:49
void SetScore(double value)
Definition Trait.h:60
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:61
void SetName(AttributeName &&value)
Definition Trait.h:48
Aws::Utils::Json::JsonValue JsonValue