AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateAdapterRequest.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/textract/model/AutoUpdate.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/textract/model/FeatureType.h>
14#include <utility>
15#include <aws/core/utils/UUID.h>
16
17namespace Aws
18{
19namespace Textract
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_TEXTRACT_API CreateAdapterRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateAdapter"; }
36
37 AWS_TEXTRACT_API Aws::String SerializePayload() const override;
38
40
41
43
46 inline const Aws::String& GetAdapterName() const{ return m_adapterName; }
47 inline bool AdapterNameHasBeenSet() const { return m_adapterNameHasBeenSet; }
48 inline void SetAdapterName(const Aws::String& value) { m_adapterNameHasBeenSet = true; m_adapterName = value; }
49 inline void SetAdapterName(Aws::String&& value) { m_adapterNameHasBeenSet = true; m_adapterName = std::move(value); }
50 inline void SetAdapterName(const char* value) { m_adapterNameHasBeenSet = true; m_adapterName.assign(value); }
51 inline CreateAdapterRequest& WithAdapterName(const Aws::String& value) { SetAdapterName(value); return *this;}
52 inline CreateAdapterRequest& WithAdapterName(Aws::String&& value) { SetAdapterName(std::move(value)); return *this;}
53 inline CreateAdapterRequest& WithAdapterName(const char* value) { SetAdapterName(value); return *this;}
55
57
63 inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
64 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
65 inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
66 inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
67 inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
69 inline CreateAdapterRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
70 inline CreateAdapterRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
72
74
77 inline const Aws::String& GetDescription() const{ return m_description; }
78 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
79 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
80 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
81 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
82 inline CreateAdapterRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
83 inline CreateAdapterRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
84 inline CreateAdapterRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
86
88
92 inline const Aws::Vector<FeatureType>& GetFeatureTypes() const{ return m_featureTypes; }
93 inline bool FeatureTypesHasBeenSet() const { return m_featureTypesHasBeenSet; }
94 inline void SetFeatureTypes(const Aws::Vector<FeatureType>& value) { m_featureTypesHasBeenSet = true; m_featureTypes = value; }
95 inline void SetFeatureTypes(Aws::Vector<FeatureType>&& value) { m_featureTypesHasBeenSet = true; m_featureTypes = std::move(value); }
97 inline CreateAdapterRequest& WithFeatureTypes(Aws::Vector<FeatureType>&& value) { SetFeatureTypes(std::move(value)); return *this;}
98 inline CreateAdapterRequest& AddFeatureTypes(const FeatureType& value) { m_featureTypesHasBeenSet = true; m_featureTypes.push_back(value); return *this; }
99 inline CreateAdapterRequest& AddFeatureTypes(FeatureType&& value) { m_featureTypesHasBeenSet = true; m_featureTypes.push_back(std::move(value)); return *this; }
101
103
106 inline const AutoUpdate& GetAutoUpdate() const{ return m_autoUpdate; }
107 inline bool AutoUpdateHasBeenSet() const { return m_autoUpdateHasBeenSet; }
108 inline void SetAutoUpdate(const AutoUpdate& value) { m_autoUpdateHasBeenSet = true; m_autoUpdate = value; }
109 inline void SetAutoUpdate(AutoUpdate&& value) { m_autoUpdateHasBeenSet = true; m_autoUpdate = std::move(value); }
110 inline CreateAdapterRequest& WithAutoUpdate(const AutoUpdate& value) { SetAutoUpdate(value); return *this;}
111 inline CreateAdapterRequest& WithAutoUpdate(AutoUpdate&& value) { SetAutoUpdate(std::move(value)); return *this;}
113
115
118 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
119 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
120 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
121 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
122 inline CreateAdapterRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
123 inline CreateAdapterRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
124 inline CreateAdapterRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
125 inline CreateAdapterRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
126 inline CreateAdapterRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
127 inline CreateAdapterRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
128 inline CreateAdapterRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
129 inline CreateAdapterRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
130 inline CreateAdapterRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
132 private:
133
134 Aws::String m_adapterName;
135 bool m_adapterNameHasBeenSet = false;
136
137 Aws::String m_clientRequestToken;
138 bool m_clientRequestTokenHasBeenSet = false;
139
140 Aws::String m_description;
141 bool m_descriptionHasBeenSet = false;
142
143 Aws::Vector<FeatureType> m_featureTypes;
144 bool m_featureTypesHasBeenSet = false;
145
146 AutoUpdate m_autoUpdate;
147 bool m_autoUpdateHasBeenSet = false;
148
150 bool m_tagsHasBeenSet = false;
151 };
152
153} // namespace Model
154} // namespace Textract
155} // namespace Aws
CreateAdapterRequest & AddFeatureTypes(const FeatureType &value)
CreateAdapterRequest & WithFeatureTypes(Aws::Vector< FeatureType > &&value)
CreateAdapterRequest & WithAdapterName(const Aws::String &value)
CreateAdapterRequest & AddTags(const Aws::String &key, Aws::String &&value)
virtual const char * GetServiceRequestName() const override
CreateAdapterRequest & WithClientRequestToken(Aws::String &&value)
CreateAdapterRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateAdapterRequest & AddTags(const char *key, Aws::String &&value)
CreateAdapterRequest & WithDescription(const char *value)
CreateAdapterRequest & WithAdapterName(Aws::String &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateAdapterRequest & WithClientRequestToken(const char *value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateAdapterRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
AWS_TEXTRACT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::String & GetClientRequestToken() const
void SetFeatureTypes(const Aws::Vector< FeatureType > &value)
void SetAdapterName(const Aws::String &value)
CreateAdapterRequest & WithDescription(const Aws::String &value)
AWS_TEXTRACT_API Aws::String SerializePayload() const override
CreateAdapterRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateAdapterRequest & AddTags(Aws::String &&key, const char *value)
void SetFeatureTypes(Aws::Vector< FeatureType > &&value)
CreateAdapterRequest & WithFeatureTypes(const Aws::Vector< FeatureType > &value)
CreateAdapterRequest & AddTags(const Aws::String &key, const Aws::String &value)
void SetClientRequestToken(const Aws::String &value)
void SetDescription(const Aws::String &value)
CreateAdapterRequest & WithClientRequestToken(const Aws::String &value)
CreateAdapterRequest & WithAutoUpdate(const AutoUpdate &value)
CreateAdapterRequest & AddFeatureTypes(FeatureType &&value)
CreateAdapterRequest & AddTags(const char *key, const char *value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateAdapterRequest & WithAutoUpdate(AutoUpdate &&value)
CreateAdapterRequest & AddTags(Aws::String &&key, Aws::String &&value)
const Aws::Vector< FeatureType > & GetFeatureTypes() const
CreateAdapterRequest & WithDescription(Aws::String &&value)
CreateAdapterRequest & WithAdapterName(const char *value)
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