AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const RxNormAttributeType& GetType() const{ return m_type; }
52 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
53 inline void SetType(const RxNormAttributeType& value) { m_typeHasBeenSet = true; m_type = value; }
54 inline void SetType(RxNormAttributeType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
55 inline RxNormAttribute& WithType(const RxNormAttributeType& value) { SetType(value); return *this;}
56 inline RxNormAttribute& WithType(RxNormAttributeType&& value) { SetType(std::move(value)); return *this;}
58
60
64 inline double GetScore() const{ return m_score; }
65 inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; }
66 inline void SetScore(double value) { m_scoreHasBeenSet = true; m_score = value; }
67 inline RxNormAttribute& WithScore(double value) { SetScore(value); return *this;}
69
71
75 inline double GetRelationshipScore() const{ return m_relationshipScore; }
76 inline bool RelationshipScoreHasBeenSet() const { return m_relationshipScoreHasBeenSet; }
77 inline void SetRelationshipScore(double value) { m_relationshipScoreHasBeenSet = true; m_relationshipScore = value; }
78 inline RxNormAttribute& WithRelationshipScore(double value) { SetRelationshipScore(value); return *this;}
80
82
86 inline int GetId() const{ return m_id; }
87 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
88 inline void SetId(int value) { m_idHasBeenSet = true; m_id = value; }
89 inline RxNormAttribute& WithId(int value) { SetId(value); return *this;}
91
93
97 inline int GetBeginOffset() const{ return m_beginOffset; }
98 inline bool BeginOffsetHasBeenSet() const { return m_beginOffsetHasBeenSet; }
99 inline void SetBeginOffset(int value) { m_beginOffsetHasBeenSet = true; m_beginOffset = value; }
100 inline RxNormAttribute& WithBeginOffset(int value) { SetBeginOffset(value); return *this;}
102
104
108 inline int GetEndOffset() const{ return m_endOffset; }
109 inline bool EndOffsetHasBeenSet() const { return m_endOffsetHasBeenSet; }
110 inline void SetEndOffset(int value) { m_endOffsetHasBeenSet = true; m_endOffset = value; }
111 inline RxNormAttribute& WithEndOffset(int value) { SetEndOffset(value); return *this;}
113
115
118 inline const Aws::String& GetText() const{ return m_text; }
119 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
120 inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; }
121 inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
122 inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); }
123 inline RxNormAttribute& WithText(const Aws::String& value) { SetText(value); return *this;}
124 inline RxNormAttribute& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;}
125 inline RxNormAttribute& WithText(const char* value) { SetText(value); return *this;}
127
129
134 inline const Aws::Vector<RxNormTrait>& GetTraits() const{ return m_traits; }
135 inline bool TraitsHasBeenSet() const { return m_traitsHasBeenSet; }
136 inline void SetTraits(const Aws::Vector<RxNormTrait>& value) { m_traitsHasBeenSet = true; m_traits = value; }
137 inline void SetTraits(Aws::Vector<RxNormTrait>&& value) { m_traitsHasBeenSet = true; m_traits = std::move(value); }
138 inline RxNormAttribute& WithTraits(const Aws::Vector<RxNormTrait>& value) { SetTraits(value); return *this;}
139 inline RxNormAttribute& WithTraits(Aws::Vector<RxNormTrait>&& value) { SetTraits(std::move(value)); return *this;}
140 inline RxNormAttribute& AddTraits(const RxNormTrait& value) { m_traitsHasBeenSet = true; m_traits.push_back(value); return *this; }
141 inline RxNormAttribute& AddTraits(RxNormTrait&& value) { m_traitsHasBeenSet = true; m_traits.push_back(std::move(value)); return *this; }
143 private:
144
145 RxNormAttributeType m_type;
146 bool m_typeHasBeenSet = false;
147
148 double m_score;
149 bool m_scoreHasBeenSet = false;
150
151 double m_relationshipScore;
152 bool m_relationshipScoreHasBeenSet = false;
153
154 int m_id;
155 bool m_idHasBeenSet = false;
156
157 int m_beginOffset;
158 bool m_beginOffsetHasBeenSet = false;
159
160 int m_endOffset;
161 bool m_endOffsetHasBeenSet = false;
162
163 Aws::String m_text;
164 bool m_textHasBeenSet = false;
165
167 bool m_traitsHasBeenSet = false;
168 };
169
170} // namespace Model
171} // namespace ComprehendMedical
172} // namespace Aws
void SetTraits(Aws::Vector< RxNormTrait > &&value)
AWS_COMPREHENDMEDICAL_API Aws::Utils::Json::JsonValue Jsonize() const
RxNormAttribute & WithType(const RxNormAttributeType &value)
AWS_COMPREHENDMEDICAL_API RxNormAttribute()
void SetTraits(const Aws::Vector< RxNormTrait > &value)
RxNormAttribute & WithTraits(const Aws::Vector< RxNormTrait > &value)
RxNormAttribute & WithText(const char *value)
AWS_COMPREHENDMEDICAL_API RxNormAttribute & operator=(Aws::Utils::Json::JsonView jsonValue)
RxNormAttribute & WithScore(double value)
void SetType(const RxNormAttributeType &value)
RxNormAttribute & WithType(RxNormAttributeType &&value)
RxNormAttribute & AddTraits(const RxNormTrait &value)
const Aws::Vector< RxNormTrait > & GetTraits() const
RxNormAttribute & WithText(Aws::String &&value)
RxNormAttribute & WithTraits(Aws::Vector< RxNormTrait > &&value)
RxNormAttribute & WithText(const Aws::String &value)
const RxNormAttributeType & GetType() const
AWS_COMPREHENDMEDICAL_API RxNormAttribute(Aws::Utils::Json::JsonView jsonValue)
RxNormAttribute & WithRelationshipScore(double value)
RxNormAttribute & AddTraits(RxNormTrait &&value)
void SetType(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