AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateAdapterVersionRequest.h
1
6#pragma once
7#include <aws/textract/Textract_EXPORTS.h>
8#include <aws/textract/TextractRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/textract/model/AdapterVersionDatasetConfig.h>
11#include <aws/textract/model/OutputConfig.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace Textract
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_TEXTRACT_API CreateAdapterVersionRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateAdapterVersion"; }
35
36 AWS_TEXTRACT_API Aws::String SerializePayload() const override;
37
39
40
42
46 inline const Aws::String& GetAdapterId() const { return m_adapterId; }
47 inline bool AdapterIdHasBeenSet() const { return m_adapterIdHasBeenSet; }
48 template<typename AdapterIdT = Aws::String>
49 void SetAdapterId(AdapterIdT&& value) { m_adapterIdHasBeenSet = true; m_adapterId = std::forward<AdapterIdT>(value); }
50 template<typename AdapterIdT = Aws::String>
51 CreateAdapterVersionRequest& WithAdapterId(AdapterIdT&& value) { SetAdapterId(std::forward<AdapterIdT>(value)); return *this;}
53
55
61 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
62 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
63 template<typename ClientRequestTokenT = Aws::String>
64 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
65 template<typename ClientRequestTokenT = Aws::String>
66 CreateAdapterVersionRequest& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
68
70
74 inline const AdapterVersionDatasetConfig& GetDatasetConfig() const { return m_datasetConfig; }
75 inline bool DatasetConfigHasBeenSet() const { return m_datasetConfigHasBeenSet; }
76 template<typename DatasetConfigT = AdapterVersionDatasetConfig>
77 void SetDatasetConfig(DatasetConfigT&& value) { m_datasetConfigHasBeenSet = true; m_datasetConfig = std::forward<DatasetConfigT>(value); }
78 template<typename DatasetConfigT = AdapterVersionDatasetConfig>
79 CreateAdapterVersionRequest& WithDatasetConfig(DatasetConfigT&& value) { SetDatasetConfig(std::forward<DatasetConfigT>(value)); return *this;}
81
83
87 inline const Aws::String& GetKMSKeyId() const { return m_kMSKeyId; }
88 inline bool KMSKeyIdHasBeenSet() const { return m_kMSKeyIdHasBeenSet; }
89 template<typename KMSKeyIdT = Aws::String>
90 void SetKMSKeyId(KMSKeyIdT&& value) { m_kMSKeyIdHasBeenSet = true; m_kMSKeyId = std::forward<KMSKeyIdT>(value); }
91 template<typename KMSKeyIdT = Aws::String>
92 CreateAdapterVersionRequest& WithKMSKeyId(KMSKeyIdT&& value) { SetKMSKeyId(std::forward<KMSKeyIdT>(value)); return *this;}
94
96
97 inline const OutputConfig& GetOutputConfig() const { return m_outputConfig; }
98 inline bool OutputConfigHasBeenSet() const { return m_outputConfigHasBeenSet; }
99 template<typename OutputConfigT = OutputConfig>
100 void SetOutputConfig(OutputConfigT&& value) { m_outputConfigHasBeenSet = true; m_outputConfig = std::forward<OutputConfigT>(value); }
101 template<typename OutputConfigT = OutputConfig>
102 CreateAdapterVersionRequest& WithOutputConfig(OutputConfigT&& value) { SetOutputConfig(std::forward<OutputConfigT>(value)); return *this;}
104
106
110 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
111 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
112 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
113 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
114 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
115 CreateAdapterVersionRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
116 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
117 CreateAdapterVersionRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
118 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
119 }
121 private:
122
123 Aws::String m_adapterId;
124 bool m_adapterIdHasBeenSet = false;
125
126 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
127 bool m_clientRequestTokenHasBeenSet = true;
128
129 AdapterVersionDatasetConfig m_datasetConfig;
130 bool m_datasetConfigHasBeenSet = false;
131
132 Aws::String m_kMSKeyId;
133 bool m_kMSKeyIdHasBeenSet = false;
134
135 OutputConfig m_outputConfig;
136 bool m_outputConfigHasBeenSet = false;
137
139 bool m_tagsHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace Textract
144} // 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