AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
CreateAdapterVersionRequest.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/textract/TextractRequest.h>
11#include <aws/textract/Textract_EXPORTS.h>
12#include <aws/textract/model/AdapterVersionDatasetConfig.h>
13#include <aws/textract/model/OutputConfig.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Textract {
19namespace Model {
20
24 public:
25 AWS_TEXTRACT_API CreateAdapterVersionRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateAdapterVersion"; }
32
33 AWS_TEXTRACT_API Aws::String SerializePayload() const override;
34
36
38
42 inline const Aws::String& GetAdapterId() const { return m_adapterId; }
43 inline bool AdapterIdHasBeenSet() const { return m_adapterIdHasBeenSet; }
44 template <typename AdapterIdT = Aws::String>
45 void SetAdapterId(AdapterIdT&& value) {
46 m_adapterIdHasBeenSet = true;
47 m_adapterId = std::forward<AdapterIdT>(value);
48 }
49 template <typename AdapterIdT = Aws::String>
51 SetAdapterId(std::forward<AdapterIdT>(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>
72 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
73 return *this;
74 }
76
78
82 inline const AdapterVersionDatasetConfig& GetDatasetConfig() const { return m_datasetConfig; }
83 inline bool DatasetConfigHasBeenSet() const { return m_datasetConfigHasBeenSet; }
84 template <typename DatasetConfigT = AdapterVersionDatasetConfig>
85 void SetDatasetConfig(DatasetConfigT&& value) {
86 m_datasetConfigHasBeenSet = true;
87 m_datasetConfig = std::forward<DatasetConfigT>(value);
88 }
89 template <typename DatasetConfigT = AdapterVersionDatasetConfig>
91 SetDatasetConfig(std::forward<DatasetConfigT>(value));
92 return *this;
93 }
95
97
101 inline const Aws::String& GetKMSKeyId() const { return m_kMSKeyId; }
102 inline bool KMSKeyIdHasBeenSet() const { return m_kMSKeyIdHasBeenSet; }
103 template <typename KMSKeyIdT = Aws::String>
104 void SetKMSKeyId(KMSKeyIdT&& value) {
105 m_kMSKeyIdHasBeenSet = true;
106 m_kMSKeyId = std::forward<KMSKeyIdT>(value);
107 }
108 template <typename KMSKeyIdT = Aws::String>
110 SetKMSKeyId(std::forward<KMSKeyIdT>(value));
111 return *this;
112 }
114
116
117 inline const OutputConfig& GetOutputConfig() const { return m_outputConfig; }
118 inline bool OutputConfigHasBeenSet() const { return m_outputConfigHasBeenSet; }
119 template <typename OutputConfigT = OutputConfig>
120 void SetOutputConfig(OutputConfigT&& value) {
121 m_outputConfigHasBeenSet = true;
122 m_outputConfig = std::forward<OutputConfigT>(value);
123 }
124 template <typename OutputConfigT = OutputConfig>
126 SetOutputConfig(std::forward<OutputConfigT>(value));
127 return *this;
128 }
130
132
136 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
137 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
138 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
139 void SetTags(TagsT&& value) {
140 m_tagsHasBeenSet = true;
141 m_tags = std::forward<TagsT>(value);
142 }
143 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
145 SetTags(std::forward<TagsT>(value));
146 return *this;
147 }
148 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
149 CreateAdapterVersionRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
150 m_tagsHasBeenSet = true;
151 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
152 return *this;
153 }
155 private:
156 Aws::String m_adapterId;
157 bool m_adapterIdHasBeenSet = false;
158
159 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
160 bool m_clientRequestTokenHasBeenSet = true;
161
162 AdapterVersionDatasetConfig m_datasetConfig;
163 bool m_datasetConfigHasBeenSet = false;
164
165 Aws::String m_kMSKeyId;
166 bool m_kMSKeyIdHasBeenSet = false;
167
168 OutputConfig m_outputConfig;
169 bool m_outputConfigHasBeenSet = false;
170
172 bool m_tagsHasBeenSet = false;
173};
174
175} // namespace Model
176} // namespace Textract
177} // namespace Aws
AWS_TEXTRACT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateAdapterVersionRequest & WithKMSKeyId(KMSKeyIdT &&value)
CreateAdapterVersionRequest & WithOutputConfig(OutputConfigT &&value)
CreateAdapterVersionRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_TEXTRACT_API CreateAdapterVersionRequest()=default
CreateAdapterVersionRequest & WithDatasetConfig(DatasetConfigT &&value)
CreateAdapterVersionRequest & WithAdapterId(AdapterIdT &&value)
CreateAdapterVersionRequest & WithTags(TagsT &&value)
CreateAdapterVersionRequest & WithClientRequestToken(ClientRequestTokenT &&value)
AWS_TEXTRACT_API Aws::String SerializePayload() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
virtual const char * GetServiceRequestName() const override
const AdapterVersionDatasetConfig & GetDatasetConfig() const
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