AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
InferRxNormResult.h
1
6#pragma once
7#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
8#include <aws/comprehendmedical/model/RxNormEntity.h>
9#include <aws/core/http/HttpResponse.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 {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace ComprehendMedical {
25namespace Model {
27 public:
28 AWS_COMPREHENDMEDICAL_API InferRxNormResult() = default;
31
33
38 inline const Aws::Vector<RxNormEntity>& GetEntities() const { return m_entities; }
39 template <typename EntitiesT = Aws::Vector<RxNormEntity>>
40 void SetEntities(EntitiesT&& value) {
41 m_entitiesHasBeenSet = true;
42 m_entities = std::forward<EntitiesT>(value);
43 }
44 template <typename EntitiesT = Aws::Vector<RxNormEntity>>
45 InferRxNormResult& WithEntities(EntitiesT&& value) {
46 SetEntities(std::forward<EntitiesT>(value));
47 return *this;
48 }
49 template <typename EntitiesT = RxNormEntity>
50 InferRxNormResult& AddEntities(EntitiesT&& value) {
51 m_entitiesHasBeenSet = true;
52 m_entities.emplace_back(std::forward<EntitiesT>(value));
53 return *this;
54 }
56
58
63 inline const Aws::String& GetPaginationToken() const { return m_paginationToken; }
64 template <typename PaginationTokenT = Aws::String>
65 void SetPaginationToken(PaginationTokenT&& value) {
66 m_paginationTokenHasBeenSet = true;
67 m_paginationToken = std::forward<PaginationTokenT>(value);
68 }
69 template <typename PaginationTokenT = Aws::String>
70 InferRxNormResult& WithPaginationToken(PaginationTokenT&& value) {
71 SetPaginationToken(std::forward<PaginationTokenT>(value));
72 return *this;
73 }
75
77
82 inline const Aws::String& GetModelVersion() const { return m_modelVersion; }
83 template <typename ModelVersionT = Aws::String>
84 void SetModelVersion(ModelVersionT&& value) {
85 m_modelVersionHasBeenSet = true;
86 m_modelVersion = std::forward<ModelVersionT>(value);
87 }
88 template <typename ModelVersionT = Aws::String>
89 InferRxNormResult& WithModelVersion(ModelVersionT&& value) {
90 SetModelVersion(std::forward<ModelVersionT>(value));
91 return *this;
92 }
94
96
97 inline const Aws::String& GetRequestId() const { return m_requestId; }
98 template <typename RequestIdT = Aws::String>
99 void SetRequestId(RequestIdT&& value) {
100 m_requestIdHasBeenSet = true;
101 m_requestId = std::forward<RequestIdT>(value);
102 }
103 template <typename RequestIdT = Aws::String>
104 InferRxNormResult& WithRequestId(RequestIdT&& value) {
105 SetRequestId(std::forward<RequestIdT>(value));
106 return *this;
107 }
109 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
110
111 private:
112 Aws::Vector<RxNormEntity> m_entities;
113
114 Aws::String m_paginationToken;
115
116 Aws::String m_modelVersion;
117
118 Aws::String m_requestId;
119 Aws::Http::HttpResponseCode m_HttpResponseCode;
120 bool m_entitiesHasBeenSet = false;
121 bool m_paginationTokenHasBeenSet = false;
122 bool m_modelVersionHasBeenSet = false;
123 bool m_requestIdHasBeenSet = false;
124};
125
126} // namespace Model
127} // namespace ComprehendMedical
128} // namespace Aws
const Aws::Vector< RxNormEntity > & GetEntities() const
InferRxNormResult & WithPaginationToken(PaginationTokenT &&value)
void SetPaginationToken(PaginationTokenT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_COMPREHENDMEDICAL_API InferRxNormResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
InferRxNormResult & WithRequestId(RequestIdT &&value)
InferRxNormResult & WithEntities(EntitiesT &&value)
InferRxNormResult & AddEntities(EntitiesT &&value)
AWS_COMPREHENDMEDICAL_API InferRxNormResult()=default
InferRxNormResult & WithModelVersion(ModelVersionT &&value)
AWS_COMPREHENDMEDICAL_API InferRxNormResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue