AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RxNormTrait.h
1
6#pragma once
7#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
8#include <aws/comprehendmedical/model/RxNormTraitName.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
34 {
35 public:
36 AWS_COMPREHENDMEDICAL_API RxNormTrait();
37 AWS_COMPREHENDMEDICAL_API RxNormTrait(Aws::Utils::Json::JsonView jsonValue);
38 AWS_COMPREHENDMEDICAL_API RxNormTrait& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_COMPREHENDMEDICAL_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const RxNormTraitName& GetName() const{ return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 inline void SetName(const RxNormTraitName& value) { m_nameHasBeenSet = true; m_name = value; }
49 inline void SetName(RxNormTraitName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
50 inline RxNormTrait& WithName(const RxNormTraitName& value) { SetName(value); return *this;}
51 inline RxNormTrait& WithName(RxNormTraitName&& 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 RxNormTrait& WithScore(double value) { SetScore(value); return *this;}
64 private:
65
66 RxNormTraitName m_name;
67 bool m_nameHasBeenSet = false;
68
69 double m_score;
70 bool m_scoreHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace ComprehendMedical
75} // namespace Aws
void SetName(RxNormTraitName &&value)
Definition RxNormTrait.h:49
RxNormTrait & WithScore(double value)
Definition RxNormTrait.h:62
const RxNormTraitName & GetName() const
Definition RxNormTrait.h:46
AWS_COMPREHENDMEDICAL_API RxNormTrait(Aws::Utils::Json::JsonView jsonValue)
AWS_COMPREHENDMEDICAL_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_COMPREHENDMEDICAL_API RxNormTrait()
void SetName(const RxNormTraitName &value)
Definition RxNormTrait.h:48
RxNormTrait & WithName(const RxNormTraitName &value)
Definition RxNormTrait.h:50
AWS_COMPREHENDMEDICAL_API RxNormTrait & operator=(Aws::Utils::Json::JsonView jsonValue)
RxNormTrait & WithName(RxNormTraitName &&value)
Definition RxNormTrait.h:51
Aws::Utils::Json::JsonValue JsonValue