AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/comprehendmedical/model/RxNormTrait.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace ComprehendMedical
25{
26namespace Model
27{
28
38 {
39 public:
40 AWS_COMPREHENDMEDICAL_API RxNormAttribute() = default;
41 AWS_COMPREHENDMEDICAL_API RxNormAttribute(Aws::Utils::Json::JsonView jsonValue);
42 AWS_COMPREHENDMEDICAL_API RxNormAttribute& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_COMPREHENDMEDICAL_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
51 inline RxNormAttributeType GetType() const { return m_type; }
52 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
53 inline void SetType(RxNormAttributeType value) { m_typeHasBeenSet = true; m_type = value; }
54 inline RxNormAttribute& WithType(RxNormAttributeType value) { SetType(value); return *this;}
56
58
62 inline double GetScore() const { return m_score; }
63 inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; }
64 inline void SetScore(double value) { m_scoreHasBeenSet = true; m_score = value; }
65 inline RxNormAttribute& WithScore(double value) { SetScore(value); return *this;}
67
69
73 inline double GetRelationshipScore() const { return m_relationshipScore; }
74 inline bool RelationshipScoreHasBeenSet() const { return m_relationshipScoreHasBeenSet; }
75 inline void SetRelationshipScore(double value) { m_relationshipScoreHasBeenSet = true; m_relationshipScore = value; }
76 inline RxNormAttribute& WithRelationshipScore(double value) { SetRelationshipScore(value); return *this;}
78
80
84 inline int GetId() const { return m_id; }
85 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
86 inline void SetId(int value) { m_idHasBeenSet = true; m_id = value; }
87 inline RxNormAttribute& WithId(int value) { SetId(value); return *this;}
89
91
95 inline int GetBeginOffset() const { return m_beginOffset; }
96 inline bool BeginOffsetHasBeenSet() const { return m_beginOffsetHasBeenSet; }
97 inline void SetBeginOffset(int value) { m_beginOffsetHasBeenSet = true; m_beginOffset = value; }
98 inline RxNormAttribute& WithBeginOffset(int value) { SetBeginOffset(value); return *this;}
100
102
106 inline int GetEndOffset() const { return m_endOffset; }
107 inline bool EndOffsetHasBeenSet() const { return m_endOffsetHasBeenSet; }
108 inline void SetEndOffset(int value) { m_endOffsetHasBeenSet = true; m_endOffset = value; }
109 inline RxNormAttribute& WithEndOffset(int value) { SetEndOffset(value); return *this;}
111
113
116 inline const Aws::String& GetText() const { return m_text; }
117 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
118 template<typename TextT = Aws::String>
119 void SetText(TextT&& value) { m_textHasBeenSet = true; m_text = std::forward<TextT>(value); }
120 template<typename TextT = Aws::String>
121 RxNormAttribute& WithText(TextT&& value) { SetText(std::forward<TextT>(value)); return *this;}
123
125
130 inline const Aws::Vector<RxNormTrait>& GetTraits() const { return m_traits; }
131 inline bool TraitsHasBeenSet() const { return m_traitsHasBeenSet; }
132 template<typename TraitsT = Aws::Vector<RxNormTrait>>
133 void SetTraits(TraitsT&& value) { m_traitsHasBeenSet = true; m_traits = std::forward<TraitsT>(value); }
134 template<typename TraitsT = Aws::Vector<RxNormTrait>>
135 RxNormAttribute& WithTraits(TraitsT&& value) { SetTraits(std::forward<TraitsT>(value)); return *this;}
136 template<typename TraitsT = RxNormTrait>
137 RxNormAttribute& AddTraits(TraitsT&& value) { m_traitsHasBeenSet = true; m_traits.emplace_back(std::forward<TraitsT>(value)); return *this; }
139 private:
140
142 bool m_typeHasBeenSet = false;
143
144 double m_score{0.0};
145 bool m_scoreHasBeenSet = false;
146
147 double m_relationshipScore{0.0};
148 bool m_relationshipScoreHasBeenSet = false;
149
150 int m_id{0};
151 bool m_idHasBeenSet = false;
152
153 int m_beginOffset{0};
154 bool m_beginOffsetHasBeenSet = false;
155
156 int m_endOffset{0};
157 bool m_endOffsetHasBeenSet = false;
158
159 Aws::String m_text;
160 bool m_textHasBeenSet = false;
161
163 bool m_traitsHasBeenSet = false;
164 };
165
166} // namespace Model
167} // namespace ComprehendMedical
168} // 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