AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
GetAdapterResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/textract/Textract_EXPORTS.h>
13#include <aws/textract/model/AutoUpdate.h>
14#include <aws/textract/model/FeatureType.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace Textract {
28namespace Model {
30 public:
31 AWS_TEXTRACT_API GetAdapterResult() = default;
34
36
39 inline const Aws::String& GetAdapterId() const { return m_adapterId; }
40 template <typename AdapterIdT = Aws::String>
41 void SetAdapterId(AdapterIdT&& value) {
42 m_adapterIdHasBeenSet = true;
43 m_adapterId = std::forward<AdapterIdT>(value);
44 }
45 template <typename AdapterIdT = Aws::String>
46 GetAdapterResult& WithAdapterId(AdapterIdT&& value) {
47 SetAdapterId(std::forward<AdapterIdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetAdapterName() const { return m_adapterName; }
57 template <typename AdapterNameT = Aws::String>
58 void SetAdapterName(AdapterNameT&& value) {
59 m_adapterNameHasBeenSet = true;
60 m_adapterName = std::forward<AdapterNameT>(value);
61 }
62 template <typename AdapterNameT = Aws::String>
63 GetAdapterResult& WithAdapterName(AdapterNameT&& value) {
64 SetAdapterName(std::forward<AdapterNameT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
74 template <typename CreationTimeT = Aws::Utils::DateTime>
75 void SetCreationTime(CreationTimeT&& value) {
76 m_creationTimeHasBeenSet = true;
77 m_creationTime = std::forward<CreationTimeT>(value);
78 }
79 template <typename CreationTimeT = Aws::Utils::DateTime>
80 GetAdapterResult& WithCreationTime(CreationTimeT&& value) {
81 SetCreationTime(std::forward<CreationTimeT>(value));
82 return *this;
83 }
85
87
90 inline const Aws::String& GetDescription() const { return m_description; }
91 template <typename DescriptionT = Aws::String>
92 void SetDescription(DescriptionT&& value) {
93 m_descriptionHasBeenSet = true;
94 m_description = std::forward<DescriptionT>(value);
95 }
96 template <typename DescriptionT = Aws::String>
97 GetAdapterResult& WithDescription(DescriptionT&& value) {
98 SetDescription(std::forward<DescriptionT>(value));
99 return *this;
100 }
102
104
107 inline const Aws::Vector<FeatureType>& GetFeatureTypes() const { return m_featureTypes; }
108 template <typename FeatureTypesT = Aws::Vector<FeatureType>>
109 void SetFeatureTypes(FeatureTypesT&& value) {
110 m_featureTypesHasBeenSet = true;
111 m_featureTypes = std::forward<FeatureTypesT>(value);
112 }
113 template <typename FeatureTypesT = Aws::Vector<FeatureType>>
114 GetAdapterResult& WithFeatureTypes(FeatureTypesT&& value) {
115 SetFeatureTypes(std::forward<FeatureTypesT>(value));
116 return *this;
117 }
119 m_featureTypesHasBeenSet = true;
120 m_featureTypes.push_back(value);
121 return *this;
122 }
124
126
130 inline AutoUpdate GetAutoUpdate() const { return m_autoUpdate; }
131 inline void SetAutoUpdate(AutoUpdate value) {
132 m_autoUpdateHasBeenSet = true;
133 m_autoUpdate = value;
134 }
136 SetAutoUpdate(value);
137 return *this;
138 }
140
142
146 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
147 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
148 void SetTags(TagsT&& value) {
149 m_tagsHasBeenSet = true;
150 m_tags = std::forward<TagsT>(value);
151 }
152 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
153 GetAdapterResult& WithTags(TagsT&& value) {
154 SetTags(std::forward<TagsT>(value));
155 return *this;
156 }
157 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
158 GetAdapterResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
159 m_tagsHasBeenSet = true;
160 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
161 return *this;
162 }
164
166
167 inline const Aws::String& GetRequestId() const { return m_requestId; }
168 template <typename RequestIdT = Aws::String>
169 void SetRequestId(RequestIdT&& value) {
170 m_requestIdHasBeenSet = true;
171 m_requestId = std::forward<RequestIdT>(value);
172 }
173 template <typename RequestIdT = Aws::String>
174 GetAdapterResult& WithRequestId(RequestIdT&& value) {
175 SetRequestId(std::forward<RequestIdT>(value));
176 return *this;
177 }
179 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
180
181 private:
182 Aws::String m_adapterId;
183
184 Aws::String m_adapterName;
185
186 Aws::Utils::DateTime m_creationTime{};
187
188 Aws::String m_description;
189
190 Aws::Vector<FeatureType> m_featureTypes;
191
192 AutoUpdate m_autoUpdate{AutoUpdate::NOT_SET};
193
195
196 Aws::String m_requestId;
197 Aws::Http::HttpResponseCode m_HttpResponseCode;
198 bool m_adapterIdHasBeenSet = false;
199 bool m_adapterNameHasBeenSet = false;
200 bool m_creationTimeHasBeenSet = false;
201 bool m_descriptionHasBeenSet = false;
202 bool m_featureTypesHasBeenSet = false;
203 bool m_autoUpdateHasBeenSet = false;
204 bool m_tagsHasBeenSet = false;
205 bool m_requestIdHasBeenSet = false;
206};
207
208} // namespace Model
209} // namespace Textract
210} // namespace Aws
GetAdapterResult & WithRequestId(RequestIdT &&value)
GetAdapterResult & WithDescription(DescriptionT &&value)
void SetAdapterName(AdapterNameT &&value)
void SetFeatureTypes(FeatureTypesT &&value)
const Aws::String & GetAdapterId() const
const Aws::Vector< FeatureType > & GetFeatureTypes() const
GetAdapterResult & WithAdapterId(AdapterIdT &&value)
AWS_TEXTRACT_API GetAdapterResult()=default
GetAdapterResult & AddFeatureTypes(FeatureType value)
AWS_TEXTRACT_API GetAdapterResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetAdapterResult & WithFeatureTypes(FeatureTypesT &&value)
GetAdapterResult & WithCreationTime(CreationTimeT &&value)
void SetCreationTime(CreationTimeT &&value)
GetAdapterResult & WithAutoUpdate(AutoUpdate value)
const Aws::String & GetAdapterName() const
GetAdapterResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::String & GetDescription() const
AWS_TEXTRACT_API GetAdapterResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Utils::DateTime & GetCreationTime() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
GetAdapterResult & WithTags(TagsT &&value)
void SetDescription(DescriptionT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::String & GetRequestId() const
GetAdapterResult & WithAdapterName(AdapterNameT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue