AWS SDK for C++

AWS SDK for C++ Version 1.11.757

Loading...
Searching...
No Matches
DetectEntitiesV2Result.h
1
6#pragma once
7#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
8#include <aws/comprehendmedical/model/Entity.h>
9#include <aws/comprehendmedical/model/UnmappedAttribute.h>
10#include <aws/core/http/HttpResponse.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace ComprehendMedical {
26namespace Model {
28 public:
29 AWS_COMPREHENDMEDICAL_API DetectEntitiesV2Result() = default;
32
34
41 inline const Aws::Vector<Entity>& GetEntities() const { return m_entities; }
42 template <typename EntitiesT = Aws::Vector<Entity>>
43 void SetEntities(EntitiesT&& value) {
44 m_entitiesHasBeenSet = true;
45 m_entities = std::forward<EntitiesT>(value);
46 }
47 template <typename EntitiesT = Aws::Vector<Entity>>
49 SetEntities(std::forward<EntitiesT>(value));
50 return *this;
51 }
52 template <typename EntitiesT = Entity>
53 DetectEntitiesV2Result& AddEntities(EntitiesT&& value) {
54 m_entitiesHasBeenSet = true;
55 m_entities.emplace_back(std::forward<EntitiesT>(value));
56 return *this;
57 }
59
61
65 inline const Aws::Vector<UnmappedAttribute>& GetUnmappedAttributes() const { return m_unmappedAttributes; }
66 template <typename UnmappedAttributesT = Aws::Vector<UnmappedAttribute>>
67 void SetUnmappedAttributes(UnmappedAttributesT&& value) {
68 m_unmappedAttributesHasBeenSet = true;
69 m_unmappedAttributes = std::forward<UnmappedAttributesT>(value);
70 }
71 template <typename UnmappedAttributesT = Aws::Vector<UnmappedAttribute>>
72 DetectEntitiesV2Result& WithUnmappedAttributes(UnmappedAttributesT&& value) {
73 SetUnmappedAttributes(std::forward<UnmappedAttributesT>(value));
74 return *this;
75 }
76 template <typename UnmappedAttributesT = UnmappedAttribute>
77 DetectEntitiesV2Result& AddUnmappedAttributes(UnmappedAttributesT&& value) {
78 m_unmappedAttributesHasBeenSet = true;
79 m_unmappedAttributes.emplace_back(std::forward<UnmappedAttributesT>(value));
80 return *this;
81 }
83
85
89 inline const Aws::String& GetPaginationToken() const { return m_paginationToken; }
90 template <typename PaginationTokenT = Aws::String>
91 void SetPaginationToken(PaginationTokenT&& value) {
92 m_paginationTokenHasBeenSet = true;
93 m_paginationToken = std::forward<PaginationTokenT>(value);
94 }
95 template <typename PaginationTokenT = Aws::String>
96 DetectEntitiesV2Result& WithPaginationToken(PaginationTokenT&& value) {
97 SetPaginationToken(std::forward<PaginationTokenT>(value));
98 return *this;
99 }
101
103
108 inline const Aws::String& GetModelVersion() const { return m_modelVersion; }
109 template <typename ModelVersionT = Aws::String>
110 void SetModelVersion(ModelVersionT&& value) {
111 m_modelVersionHasBeenSet = true;
112 m_modelVersion = std::forward<ModelVersionT>(value);
113 }
114 template <typename ModelVersionT = Aws::String>
115 DetectEntitiesV2Result& WithModelVersion(ModelVersionT&& value) {
116 SetModelVersion(std::forward<ModelVersionT>(value));
117 return *this;
118 }
120
122
123 inline const Aws::String& GetRequestId() const { return m_requestId; }
124 template <typename RequestIdT = Aws::String>
125 void SetRequestId(RequestIdT&& value) {
126 m_requestIdHasBeenSet = true;
127 m_requestId = std::forward<RequestIdT>(value);
128 }
129 template <typename RequestIdT = Aws::String>
131 SetRequestId(std::forward<RequestIdT>(value));
132 return *this;
133 }
135 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
136
137 private:
138 Aws::Vector<Entity> m_entities;
139
140 Aws::Vector<UnmappedAttribute> m_unmappedAttributes;
141
142 Aws::String m_paginationToken;
143
144 Aws::String m_modelVersion;
145
146 Aws::String m_requestId;
147 Aws::Http::HttpResponseCode m_HttpResponseCode;
148 bool m_entitiesHasBeenSet = false;
149 bool m_unmappedAttributesHasBeenSet = false;
150 bool m_paginationTokenHasBeenSet = false;
151 bool m_modelVersionHasBeenSet = false;
152 bool m_requestIdHasBeenSet = false;
153};
154
155} // namespace Model
156} // namespace ComprehendMedical
157} // namespace Aws
AWS_COMPREHENDMEDICAL_API DetectEntitiesV2Result()=default
DetectEntitiesV2Result & AddEntities(EntitiesT &&value)
DetectEntitiesV2Result & AddUnmappedAttributes(UnmappedAttributesT &&value)
AWS_COMPREHENDMEDICAL_API DetectEntitiesV2Result(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DetectEntitiesV2Result & WithEntities(EntitiesT &&value)
DetectEntitiesV2Result & WithUnmappedAttributes(UnmappedAttributesT &&value)
DetectEntitiesV2Result & WithPaginationToken(PaginationTokenT &&value)
DetectEntitiesV2Result & WithModelVersion(ModelVersionT &&value)
AWS_COMPREHENDMEDICAL_API DetectEntitiesV2Result & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DetectEntitiesV2Result & WithRequestId(RequestIdT &&value)
const Aws::Vector< UnmappedAttribute > & GetUnmappedAttributes() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue