AWS SDK for C++

AWS SDK for C++ Version 1.11.817

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 <aws/crt/cbor/Cbor.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace ComprehendMedical {
20namespace Model {
21
30 public:
31 AWS_COMPREHENDMEDICAL_API RxNormTrait() = default;
32 AWS_COMPREHENDMEDICAL_API RxNormTrait(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_COMPREHENDMEDICAL_API RxNormTrait& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_COMPREHENDMEDICAL_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
35
37
40 inline RxNormTraitName GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 inline void SetName(RxNormTraitName value) {
43 m_nameHasBeenSet = true;
44 m_name = value;
45 }
47 SetName(value);
48 return *this;
49 }
51
53
57 inline double GetScore() const { return m_score; }
58 inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; }
59 inline void SetScore(double value) {
60 m_scoreHasBeenSet = true;
61 m_score = value;
62 }
63 inline RxNormTrait& WithScore(double value) {
64 SetScore(value);
65 return *this;
66 }
68 private:
70
71 double m_score{0.0};
72 bool m_nameHasBeenSet = false;
73 bool m_scoreHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace ComprehendMedical
78} // namespace Aws
void SetName(RxNormTraitName value)
Definition RxNormTrait.h:42
RxNormTrait & WithScore(double value)
Definition RxNormTrait.h:63
AWS_COMPREHENDMEDICAL_API RxNormTrait & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_COMPREHENDMEDICAL_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_COMPREHENDMEDICAL_API RxNormTrait(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
RxNormTrait & WithName(RxNormTraitName value)
Definition RxNormTrait.h:46
AWS_COMPREHENDMEDICAL_API RxNormTrait()=default