AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
RxNormAttribute.h
1
6#pragma once
7#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
8#include <aws/comprehendmedical/model/RxNormAttributeType.h>
9#include <aws/comprehendmedical/model/RxNormTrait.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ComprehendMedical {
23namespace Model {
24
34 public:
35 AWS_COMPREHENDMEDICAL_API RxNormAttribute() = default;
36 AWS_COMPREHENDMEDICAL_API RxNormAttribute(Aws::Utils::Json::JsonView jsonValue);
37 AWS_COMPREHENDMEDICAL_API RxNormAttribute& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_COMPREHENDMEDICAL_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
45 inline RxNormAttributeType GetType() const { return m_type; }
46 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
47 inline void SetType(RxNormAttributeType value) {
48 m_typeHasBeenSet = true;
49 m_type = value;
50 }
52 SetType(value);
53 return *this;
54 }
56
58
62 inline double GetScore() const { return m_score; }
63 inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; }
64 inline void SetScore(double value) {
65 m_scoreHasBeenSet = true;
66 m_score = value;
67 }
68 inline RxNormAttribute& WithScore(double value) {
69 SetScore(value);
70 return *this;
71 }
73
75
79 inline double GetRelationshipScore() const { return m_relationshipScore; }
80 inline bool RelationshipScoreHasBeenSet() const { return m_relationshipScoreHasBeenSet; }
81 inline void SetRelationshipScore(double value) {
82 m_relationshipScoreHasBeenSet = true;
83 m_relationshipScore = value;
84 }
85 inline RxNormAttribute& WithRelationshipScore(double value) {
87 return *this;
88 }
90
92
96 inline int GetId() const { return m_id; }
97 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
98 inline void SetId(int value) {
99 m_idHasBeenSet = true;
100 m_id = value;
101 }
102 inline RxNormAttribute& WithId(int value) {
103 SetId(value);
104 return *this;
105 }
107
109
113 inline int GetBeginOffset() const { return m_beginOffset; }
114 inline bool BeginOffsetHasBeenSet() const { return m_beginOffsetHasBeenSet; }
115 inline void SetBeginOffset(int value) {
116 m_beginOffsetHasBeenSet = true;
117 m_beginOffset = value;
118 }
119 inline RxNormAttribute& WithBeginOffset(int value) {
120 SetBeginOffset(value);
121 return *this;
122 }
124
126
130 inline int GetEndOffset() const { return m_endOffset; }
131 inline bool EndOffsetHasBeenSet() const { return m_endOffsetHasBeenSet; }
132 inline void SetEndOffset(int value) {
133 m_endOffsetHasBeenSet = true;
134 m_endOffset = value;
135 }
136 inline RxNormAttribute& WithEndOffset(int value) {
137 SetEndOffset(value);
138 return *this;
139 }
141
143
146 inline const Aws::String& GetText() const { return m_text; }
147 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
148 template <typename TextT = Aws::String>
149 void SetText(TextT&& value) {
150 m_textHasBeenSet = true;
151 m_text = std::forward<TextT>(value);
152 }
153 template <typename TextT = Aws::String>
154 RxNormAttribute& WithText(TextT&& value) {
155 SetText(std::forward<TextT>(value));
156 return *this;
157 }
159
161
166 inline const Aws::Vector<RxNormTrait>& GetTraits() const { return m_traits; }
167 inline bool TraitsHasBeenSet() const { return m_traitsHasBeenSet; }
168 template <typename TraitsT = Aws::Vector<RxNormTrait>>
169 void SetTraits(TraitsT&& value) {
170 m_traitsHasBeenSet = true;
171 m_traits = std::forward<TraitsT>(value);
172 }
173 template <typename TraitsT = Aws::Vector<RxNormTrait>>
174 RxNormAttribute& WithTraits(TraitsT&& value) {
175 SetTraits(std::forward<TraitsT>(value));
176 return *this;
177 }
178 template <typename TraitsT = RxNormTrait>
179 RxNormAttribute& AddTraits(TraitsT&& value) {
180 m_traitsHasBeenSet = true;
181 m_traits.emplace_back(std::forward<TraitsT>(value));
182 return *this;
183 }
185 private:
187
188 double m_score{0.0};
189
190 double m_relationshipScore{0.0};
191
192 int m_id{0};
193
194 int m_beginOffset{0};
195
196 int m_endOffset{0};
197
198 Aws::String m_text;
199
201 bool m_typeHasBeenSet = false;
202 bool m_scoreHasBeenSet = false;
203 bool m_relationshipScoreHasBeenSet = false;
204 bool m_idHasBeenSet = false;
205 bool m_beginOffsetHasBeenSet = false;
206 bool m_endOffsetHasBeenSet = false;
207 bool m_textHasBeenSet = false;
208 bool m_traitsHasBeenSet = false;
209};
210
211} // namespace Model
212} // namespace ComprehendMedical
213} // namespace Aws
AWS_COMPREHENDMEDICAL_API RxNormAttribute()=default
AWS_COMPREHENDMEDICAL_API Aws::Utils::Json::JsonValue Jsonize() const
RxNormAttribute & AddTraits(TraitsT &&value)
AWS_COMPREHENDMEDICAL_API RxNormAttribute & operator=(Aws::Utils::Json::JsonView jsonValue)
RxNormAttribute & WithScore(double value)
const Aws::Vector< RxNormTrait > & GetTraits() const
RxNormAttribute & WithText(TextT &&value)
AWS_COMPREHENDMEDICAL_API RxNormAttribute(Aws::Utils::Json::JsonView jsonValue)
RxNormAttribute & WithTraits(TraitsT &&value)
void SetType(RxNormAttributeType value)
RxNormAttribute & WithRelationshipScore(double value)
RxNormAttribute & WithType(RxNormAttributeType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue