AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
DetectPHIResult.h
1
6#pragma once
7#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
8#include <aws/comprehendmedical/model/Entity.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 DetectPHIResult() = default;
31
33
39 inline const Aws::Vector<Entity>& GetEntities() const { return m_entities; }
40 template <typename EntitiesT = Aws::Vector<Entity>>
41 void SetEntities(EntitiesT&& value) {
42 m_entitiesHasBeenSet = true;
43 m_entities = std::forward<EntitiesT>(value);
44 }
45 template <typename EntitiesT = Aws::Vector<Entity>>
46 DetectPHIResult& WithEntities(EntitiesT&& value) {
47 SetEntities(std::forward<EntitiesT>(value));
48 return *this;
49 }
50 template <typename EntitiesT = Entity>
51 DetectPHIResult& AddEntities(EntitiesT&& value) {
52 m_entitiesHasBeenSet = true;
53 m_entities.emplace_back(std::forward<EntitiesT>(value));
54 return *this;
55 }
57
59
64 inline const Aws::String& GetPaginationToken() const { return m_paginationToken; }
65 template <typename PaginationTokenT = Aws::String>
66 void SetPaginationToken(PaginationTokenT&& value) {
67 m_paginationTokenHasBeenSet = true;
68 m_paginationToken = std::forward<PaginationTokenT>(value);
69 }
70 template <typename PaginationTokenT = Aws::String>
71 DetectPHIResult& WithPaginationToken(PaginationTokenT&& value) {
72 SetPaginationToken(std::forward<PaginationTokenT>(value));
73 return *this;
74 }
76
78
83 inline const Aws::String& GetModelVersion() const { return m_modelVersion; }
84 template <typename ModelVersionT = Aws::String>
85 void SetModelVersion(ModelVersionT&& value) {
86 m_modelVersionHasBeenSet = true;
87 m_modelVersion = std::forward<ModelVersionT>(value);
88 }
89 template <typename ModelVersionT = Aws::String>
90 DetectPHIResult& WithModelVersion(ModelVersionT&& value) {
91 SetModelVersion(std::forward<ModelVersionT>(value));
92 return *this;
93 }
95
97
98 inline const Aws::String& GetRequestId() const { return m_requestId; }
99 template <typename RequestIdT = Aws::String>
100 void SetRequestId(RequestIdT&& value) {
101 m_requestIdHasBeenSet = true;
102 m_requestId = std::forward<RequestIdT>(value);
103 }
104 template <typename RequestIdT = Aws::String>
105 DetectPHIResult& WithRequestId(RequestIdT&& value) {
106 SetRequestId(std::forward<RequestIdT>(value));
107 return *this;
108 }
110 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
111
112 private:
113 Aws::Vector<Entity> m_entities;
114
115 Aws::String m_paginationToken;
116
117 Aws::String m_modelVersion;
118
119 Aws::String m_requestId;
120 Aws::Http::HttpResponseCode m_HttpResponseCode;
121 bool m_entitiesHasBeenSet = false;
122 bool m_paginationTokenHasBeenSet = false;
123 bool m_modelVersionHasBeenSet = false;
124 bool m_requestIdHasBeenSet = false;
125};
126
127} // namespace Model
128} // namespace ComprehendMedical
129} // namespace Aws
AWS_COMPREHENDMEDICAL_API DetectPHIResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< Entity > & GetEntities() const
DetectPHIResult & AddEntities(EntitiesT &&value)
DetectPHIResult & WithRequestId(RequestIdT &&value)
void SetPaginationToken(PaginationTokenT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
DetectPHIResult & WithPaginationToken(PaginationTokenT &&value)
AWS_COMPREHENDMEDICAL_API DetectPHIResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DetectPHIResult & WithModelVersion(ModelVersionT &&value)
DetectPHIResult & WithEntities(EntitiesT &&value)
AWS_COMPREHENDMEDICAL_API DetectPHIResult()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue