AWS SDK for C++

AWS SDK for C++ Version 1.11.742

Loading...
Searching...
No Matches
RxNormConcept.h
1
6#pragma once
7#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.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
29 public:
30 AWS_COMPREHENDMEDICAL_API RxNormConcept() = default;
31 AWS_COMPREHENDMEDICAL_API RxNormConcept(Aws::Utils::Json::JsonView jsonValue);
32 AWS_COMPREHENDMEDICAL_API RxNormConcept& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_COMPREHENDMEDICAL_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetDescription() const { return m_description; }
40 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
41 template <typename DescriptionT = Aws::String>
42 void SetDescription(DescriptionT&& value) {
43 m_descriptionHasBeenSet = true;
44 m_description = std::forward<DescriptionT>(value);
45 }
46 template <typename DescriptionT = Aws::String>
47 RxNormConcept& WithDescription(DescriptionT&& value) {
48 SetDescription(std::forward<DescriptionT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetCode() const { return m_code; }
58 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
59 template <typename CodeT = Aws::String>
60 void SetCode(CodeT&& value) {
61 m_codeHasBeenSet = true;
62 m_code = std::forward<CodeT>(value);
63 }
64 template <typename CodeT = Aws::String>
65 RxNormConcept& WithCode(CodeT&& value) {
66 SetCode(std::forward<CodeT>(value));
67 return *this;
68 }
70
72
76 inline double GetScore() const { return m_score; }
77 inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; }
78 inline void SetScore(double value) {
79 m_scoreHasBeenSet = true;
80 m_score = value;
81 }
82 inline RxNormConcept& WithScore(double value) {
83 SetScore(value);
84 return *this;
85 }
87 private:
88 Aws::String m_description;
89
90 Aws::String m_code;
91
92 double m_score{0.0};
93 bool m_descriptionHasBeenSet = false;
94 bool m_codeHasBeenSet = false;
95 bool m_scoreHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace ComprehendMedical
100} // namespace Aws
AWS_COMPREHENDMEDICAL_API RxNormConcept()=default
AWS_COMPREHENDMEDICAL_API RxNormConcept(Aws::Utils::Json::JsonView jsonValue)
AWS_COMPREHENDMEDICAL_API RxNormConcept & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_COMPREHENDMEDICAL_API Aws::Utils::Json::JsonValue Jsonize() const
RxNormConcept & WithDescription(DescriptionT &&value)
RxNormConcept & WithCode(CodeT &&value)
void SetDescription(DescriptionT &&value)
const Aws::String & GetDescription() const
RxNormConcept & WithScore(double value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue