AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename AdapterNameT = Aws::String>
49 void SetAdapterName(AdapterNameT&& value) { m_adapterNameHasBeenSet = true; m_adapterName = std::forward<AdapterNameT>(value); }
50 template<typename AdapterNameT = Aws::String>
51 CreateAdapterRequest& WithAdapterName(AdapterNameT&& value) { SetAdapterName(std::forward<AdapterNameT>(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 CreateAdapterRequest& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
68
70
73 inline const Aws::String& GetDescription() const { return m_description; }
74 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
75 template<typename DescriptionT = Aws::String>
76 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
77 template<typename DescriptionT = Aws::String>
78 CreateAdapterRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
80
82
86 inline const Aws::Vector<FeatureType>& GetFeatureTypes() const { return m_featureTypes; }
87 inline bool FeatureTypesHasBeenSet() const { return m_featureTypesHasBeenSet; }
88 template<typename FeatureTypesT = Aws::Vector<FeatureType>>
89 void SetFeatureTypes(FeatureTypesT&& value) { m_featureTypesHasBeenSet = true; m_featureTypes = std::forward<FeatureTypesT>(value); }
90 template<typename FeatureTypesT = Aws::Vector<FeatureType>>
91 CreateAdapterRequest& WithFeatureTypes(FeatureTypesT&& value) { SetFeatureTypes(std::forward<FeatureTypesT>(value)); return *this;}
92 inline CreateAdapterRequest& AddFeatureTypes(FeatureType value) { m_featureTypesHasBeenSet = true; m_featureTypes.push_back(value); return *this; }
94
96
99 inline AutoUpdate GetAutoUpdate() const { return m_autoUpdate; }
100 inline bool AutoUpdateHasBeenSet() const { return m_autoUpdateHasBeenSet; }
101 inline void SetAutoUpdate(AutoUpdate value) { m_autoUpdateHasBeenSet = true; m_autoUpdate = value; }
102 inline CreateAdapterRequest& WithAutoUpdate(AutoUpdate value) { SetAutoUpdate(value); return *this;}
104
106
109 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
110 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
111 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
112 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
113 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
114 CreateAdapterRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
115 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
116 CreateAdapterRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
117 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
118 }
120 private:
121
122 Aws::String m_adapterName;
123 bool m_adapterNameHasBeenSet = false;
124
125 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
126 bool m_clientRequestTokenHasBeenSet = true;
127
128 Aws::String m_description;
129 bool m_descriptionHasBeenSet = false;
130
131 Aws::Vector<FeatureType> m_featureTypes;
132 bool m_featureTypesHasBeenSet = false;
133
134 AutoUpdate m_autoUpdate{AutoUpdate::NOT_SET};
135 bool m_autoUpdateHasBeenSet = false;
136
138 bool m_tagsHasBeenSet = false;
139 };
140
141} // namespace Model
142} // namespace Textract
143} // 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