AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateAdapterRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.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/TextractRequest.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 {
19namespace Textract {
20namespace Model {
21
25 public:
26 AWS_TEXTRACT_API CreateAdapterRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateAdapter"; }
33
34 AWS_TEXTRACT_API Aws::String SerializePayload() const override;
35
37
39
42 inline const Aws::String& GetAdapterName() const { return m_adapterName; }
43 inline bool AdapterNameHasBeenSet() const { return m_adapterNameHasBeenSet; }
44 template <typename AdapterNameT = Aws::String>
45 void SetAdapterName(AdapterNameT&& value) {
46 m_adapterNameHasBeenSet = true;
47 m_adapterName = std::forward<AdapterNameT>(value);
48 }
49 template <typename AdapterNameT = Aws::String>
50 CreateAdapterRequest& WithAdapterName(AdapterNameT&& value) {
51 SetAdapterName(std::forward<AdapterNameT>(value));
52 return *this;
53 }
55
57
63 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
64 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
65 template <typename ClientRequestTokenT = Aws::String>
66 void SetClientRequestToken(ClientRequestTokenT&& value) {
67 m_clientRequestTokenHasBeenSet = true;
68 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
69 }
70 template <typename ClientRequestTokenT = Aws::String>
71 CreateAdapterRequest& WithClientRequestToken(ClientRequestTokenT&& value) {
72 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetDescription() const { return m_description; }
82 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
83 template <typename DescriptionT = Aws::String>
84 void SetDescription(DescriptionT&& value) {
85 m_descriptionHasBeenSet = true;
86 m_description = std::forward<DescriptionT>(value);
87 }
88 template <typename DescriptionT = Aws::String>
89 CreateAdapterRequest& WithDescription(DescriptionT&& value) {
90 SetDescription(std::forward<DescriptionT>(value));
91 return *this;
92 }
94
96
100 inline const Aws::Vector<FeatureType>& GetFeatureTypes() const { return m_featureTypes; }
101 inline bool FeatureTypesHasBeenSet() const { return m_featureTypesHasBeenSet; }
102 template <typename FeatureTypesT = Aws::Vector<FeatureType>>
103 void SetFeatureTypes(FeatureTypesT&& value) {
104 m_featureTypesHasBeenSet = true;
105 m_featureTypes = std::forward<FeatureTypesT>(value);
106 }
107 template <typename FeatureTypesT = Aws::Vector<FeatureType>>
108 CreateAdapterRequest& WithFeatureTypes(FeatureTypesT&& value) {
109 SetFeatureTypes(std::forward<FeatureTypesT>(value));
110 return *this;
111 }
113 m_featureTypesHasBeenSet = true;
114 m_featureTypes.push_back(value);
115 return *this;
116 }
118
120
123 inline AutoUpdate GetAutoUpdate() const { return m_autoUpdate; }
124 inline bool AutoUpdateHasBeenSet() const { return m_autoUpdateHasBeenSet; }
125 inline void SetAutoUpdate(AutoUpdate value) {
126 m_autoUpdateHasBeenSet = true;
127 m_autoUpdate = value;
128 }
130 SetAutoUpdate(value);
131 return *this;
132 }
134
136
139 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
140 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
141 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
142 void SetTags(TagsT&& value) {
143 m_tagsHasBeenSet = true;
144 m_tags = std::forward<TagsT>(value);
145 }
146 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
148 SetTags(std::forward<TagsT>(value));
149 return *this;
150 }
151 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
152 CreateAdapterRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
153 m_tagsHasBeenSet = true;
154 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
155 return *this;
156 }
158 private:
159 Aws::String m_adapterName;
160
161 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
162
163 Aws::String m_description;
164
165 Aws::Vector<FeatureType> m_featureTypes;
166
167 AutoUpdate m_autoUpdate{AutoUpdate::NOT_SET};
168
170 bool m_adapterNameHasBeenSet = false;
171 bool m_clientRequestTokenHasBeenSet = true;
172 bool m_descriptionHasBeenSet = false;
173 bool m_featureTypesHasBeenSet = false;
174 bool m_autoUpdateHasBeenSet = false;
175 bool m_tagsHasBeenSet = false;
176};
177
178} // namespace Model
179} // namespace Textract
180} // namespace Aws
CreateAdapterRequest & AddFeatureTypes(FeatureType value)
virtual const char * GetServiceRequestName() const override
CreateAdapterRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateAdapterRequest & WithAdapterName(AdapterNameT &&value)
CreateAdapterRequest & WithTags(TagsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_TEXTRACT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::String & GetClientRequestToken() const
AWS_TEXTRACT_API Aws::String SerializePayload() const override
CreateAdapterRequest & WithAutoUpdate(AutoUpdate value)
CreateAdapterRequest & WithDescription(DescriptionT &&value)
CreateAdapterRequest & WithClientRequestToken(ClientRequestTokenT &&value)
AWS_TEXTRACT_API CreateAdapterRequest()=default
CreateAdapterRequest & WithFeatureTypes(FeatureTypesT &&value)
const Aws::Vector< FeatureType > & GetFeatureTypes() const
void SetClientRequestToken(ClientRequestTokenT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
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