AWS SDK for C++

AWS SDK for C++ Version 1.11.741

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/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 DetectEntitiesV2Result() = default;
31
33
40 inline const Aws::Vector<Entity>& GetEntities() const { return m_entities; }
41 template <typename EntitiesT = Aws::Vector<Entity>>
42 void SetEntities(EntitiesT&& value) {
43 m_entitiesHasBeenSet = true;
44 m_entities = std::forward<EntitiesT>(value);
45 }
46 template <typename EntitiesT = Aws::Vector<Entity>>
48 SetEntities(std::forward<EntitiesT>(value));
49 return *this;
50 }
51 template <typename EntitiesT = Entity>
52 DetectEntitiesV2Result& AddEntities(EntitiesT&& value) {
53 m_entitiesHasBeenSet = true;
54 m_entities.emplace_back(std::forward<EntitiesT>(value));
55 return *this;
56 }
58
60
64 inline const Aws::Vector<UnmappedAttribute>& GetUnmappedAttributes() const { return m_unmappedAttributes; }
65 template <typename UnmappedAttributesT = Aws::Vector<UnmappedAttribute>>
66 void SetUnmappedAttributes(UnmappedAttributesT&& value) {
67 m_unmappedAttributesHasBeenSet = true;
68 m_unmappedAttributes = std::forward<UnmappedAttributesT>(value);
69 }
70 template <typename UnmappedAttributesT = Aws::Vector<UnmappedAttribute>>
71 DetectEntitiesV2Result& WithUnmappedAttributes(UnmappedAttributesT&& value) {
72 SetUnmappedAttributes(std::forward<UnmappedAttributesT>(value));
73 return *this;
74 }
75 template <typename UnmappedAttributesT = UnmappedAttribute>
76 DetectEntitiesV2Result& AddUnmappedAttributes(UnmappedAttributesT&& value) {
77 m_unmappedAttributesHasBeenSet = true;
78 m_unmappedAttributes.emplace_back(std::forward<UnmappedAttributesT>(value));
79 return *this;
80 }
82
84
88 inline const Aws::String& GetPaginationToken() const { return m_paginationToken; }
89 template <typename PaginationTokenT = Aws::String>
90 void SetPaginationToken(PaginationTokenT&& value) {
91 m_paginationTokenHasBeenSet = true;
92 m_paginationToken = std::forward<PaginationTokenT>(value);
93 }
94 template <typename PaginationTokenT = Aws::String>
95 DetectEntitiesV2Result& WithPaginationToken(PaginationTokenT&& value) {
96 SetPaginationToken(std::forward<PaginationTokenT>(value));
97 return *this;
98 }
100
102
107 inline const Aws::String& GetModelVersion() const { return m_modelVersion; }
108 template <typename ModelVersionT = Aws::String>
109 void SetModelVersion(ModelVersionT&& value) {
110 m_modelVersionHasBeenSet = true;
111 m_modelVersion = std::forward<ModelVersionT>(value);
112 }
113 template <typename ModelVersionT = Aws::String>
114 DetectEntitiesV2Result& WithModelVersion(ModelVersionT&& value) {
115 SetModelVersion(std::forward<ModelVersionT>(value));
116 return *this;
117 }
119
121
122 inline const Aws::String& GetRequestId() const { return m_requestId; }
123 template <typename RequestIdT = Aws::String>
124 void SetRequestId(RequestIdT&& value) {
125 m_requestIdHasBeenSet = true;
126 m_requestId = std::forward<RequestIdT>(value);
127 }
128 template <typename RequestIdT = Aws::String>
130 SetRequestId(std::forward<RequestIdT>(value));
131 return *this;
132 }
134 private:
135 Aws::Vector<Entity> m_entities;
136
137 Aws::Vector<UnmappedAttribute> m_unmappedAttributes;
138
139 Aws::String m_paginationToken;
140
141 Aws::String m_modelVersion;
142
143 Aws::String m_requestId;
144 bool m_entitiesHasBeenSet = false;
145 bool m_unmappedAttributesHasBeenSet = false;
146 bool m_paginationTokenHasBeenSet = false;
147 bool m_modelVersionHasBeenSet = false;
148 bool m_requestIdHasBeenSet = false;
149};
150
151} // namespace Model
152} // namespace ComprehendMedical
153} // 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