AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
GetAdapterResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/textract/Textract_EXPORTS.h>
12#include <aws/textract/model/AutoUpdate.h>
13#include <aws/textract/model/FeatureType.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace Textract {
27namespace Model {
29 public:
30 AWS_TEXTRACT_API GetAdapterResult() = default;
33
35
38 inline const Aws::String& GetAdapterId() const { return m_adapterId; }
39 template <typename AdapterIdT = Aws::String>
40 void SetAdapterId(AdapterIdT&& value) {
41 m_adapterIdHasBeenSet = true;
42 m_adapterId = std::forward<AdapterIdT>(value);
43 }
44 template <typename AdapterIdT = Aws::String>
45 GetAdapterResult& WithAdapterId(AdapterIdT&& value) {
46 SetAdapterId(std::forward<AdapterIdT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetAdapterName() const { return m_adapterName; }
56 template <typename AdapterNameT = Aws::String>
57 void SetAdapterName(AdapterNameT&& value) {
58 m_adapterNameHasBeenSet = true;
59 m_adapterName = std::forward<AdapterNameT>(value);
60 }
61 template <typename AdapterNameT = Aws::String>
62 GetAdapterResult& WithAdapterName(AdapterNameT&& value) {
63 SetAdapterName(std::forward<AdapterNameT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
73 template <typename CreationTimeT = Aws::Utils::DateTime>
74 void SetCreationTime(CreationTimeT&& value) {
75 m_creationTimeHasBeenSet = true;
76 m_creationTime = std::forward<CreationTimeT>(value);
77 }
78 template <typename CreationTimeT = Aws::Utils::DateTime>
79 GetAdapterResult& WithCreationTime(CreationTimeT&& value) {
80 SetCreationTime(std::forward<CreationTimeT>(value));
81 return *this;
82 }
84
86
89 inline const Aws::String& GetDescription() const { return m_description; }
90 template <typename DescriptionT = Aws::String>
91 void SetDescription(DescriptionT&& value) {
92 m_descriptionHasBeenSet = true;
93 m_description = std::forward<DescriptionT>(value);
94 }
95 template <typename DescriptionT = Aws::String>
96 GetAdapterResult& WithDescription(DescriptionT&& value) {
97 SetDescription(std::forward<DescriptionT>(value));
98 return *this;
99 }
101
103
106 inline const Aws::Vector<FeatureType>& GetFeatureTypes() const { return m_featureTypes; }
107 template <typename FeatureTypesT = Aws::Vector<FeatureType>>
108 void SetFeatureTypes(FeatureTypesT&& value) {
109 m_featureTypesHasBeenSet = true;
110 m_featureTypes = std::forward<FeatureTypesT>(value);
111 }
112 template <typename FeatureTypesT = Aws::Vector<FeatureType>>
113 GetAdapterResult& WithFeatureTypes(FeatureTypesT&& value) {
114 SetFeatureTypes(std::forward<FeatureTypesT>(value));
115 return *this;
116 }
118 m_featureTypesHasBeenSet = true;
119 m_featureTypes.push_back(value);
120 return *this;
121 }
123
125
129 inline AutoUpdate GetAutoUpdate() const { return m_autoUpdate; }
130 inline void SetAutoUpdate(AutoUpdate value) {
131 m_autoUpdateHasBeenSet = true;
132 m_autoUpdate = value;
133 }
135 SetAutoUpdate(value);
136 return *this;
137 }
139
141
145 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
146 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
147 void SetTags(TagsT&& value) {
148 m_tagsHasBeenSet = true;
149 m_tags = std::forward<TagsT>(value);
150 }
151 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
152 GetAdapterResult& WithTags(TagsT&& value) {
153 SetTags(std::forward<TagsT>(value));
154 return *this;
155 }
156 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
157 GetAdapterResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
158 m_tagsHasBeenSet = true;
159 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
160 return *this;
161 }
163
165
166 inline const Aws::String& GetRequestId() const { return m_requestId; }
167 template <typename RequestIdT = Aws::String>
168 void SetRequestId(RequestIdT&& value) {
169 m_requestIdHasBeenSet = true;
170 m_requestId = std::forward<RequestIdT>(value);
171 }
172 template <typename RequestIdT = Aws::String>
173 GetAdapterResult& WithRequestId(RequestIdT&& value) {
174 SetRequestId(std::forward<RequestIdT>(value));
175 return *this;
176 }
178 private:
179 Aws::String m_adapterId;
180
181 Aws::String m_adapterName;
182
183 Aws::Utils::DateTime m_creationTime{};
184
185 Aws::String m_description;
186
187 Aws::Vector<FeatureType> m_featureTypes;
188
189 AutoUpdate m_autoUpdate{AutoUpdate::NOT_SET};
190
192
193 Aws::String m_requestId;
194 bool m_adapterIdHasBeenSet = false;
195 bool m_adapterNameHasBeenSet = false;
196 bool m_creationTimeHasBeenSet = false;
197 bool m_descriptionHasBeenSet = false;
198 bool m_featureTypesHasBeenSet = false;
199 bool m_autoUpdateHasBeenSet = false;
200 bool m_tagsHasBeenSet = false;
201 bool m_requestIdHasBeenSet = false;
202};
203
204} // namespace Model
205} // namespace Textract
206} // 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)
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