AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
CreateIngestionJobRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/opensearchserverless/OpenSearchServerlessRequest.h>
11#include <aws/opensearchserverless/OpenSearchServerless_EXPORTS.h>
12#include <aws/opensearchserverless/model/IngestionJobSource.h>
13#include <aws/opensearchserverless/model/Tag.h>
14
15#include <utility>
16
17namespace Aws {
18namespace OpenSearchServerless {
19namespace Model {
20
24 public:
25 AWS_OPENSEARCHSERVERLESS_API CreateIngestionJobRequest() = 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 "CreateIngestionJob"; }
32
33 AWS_OPENSEARCHSERVERLESS_API Aws::String SerializePayload() const override;
34
35 AWS_OPENSEARCHSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
38
41 inline const Aws::String& GetCollectionId() const { return m_collectionId; }
42 inline bool CollectionIdHasBeenSet() const { return m_collectionIdHasBeenSet; }
43 template <typename CollectionIdT = Aws::String>
44 void SetCollectionId(CollectionIdT&& value) {
45 m_collectionIdHasBeenSet = true;
46 m_collectionId = std::forward<CollectionIdT>(value);
47 }
48 template <typename CollectionIdT = Aws::String>
50 SetCollectionId(std::forward<CollectionIdT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetIngestionJobName() const { return m_ingestionJobName; }
61 inline bool IngestionJobNameHasBeenSet() const { return m_ingestionJobNameHasBeenSet; }
62 template <typename IngestionJobNameT = Aws::String>
63 void SetIngestionJobName(IngestionJobNameT&& value) {
64 m_ingestionJobNameHasBeenSet = true;
65 m_ingestionJobName = std::forward<IngestionJobNameT>(value);
66 }
67 template <typename IngestionJobNameT = Aws::String>
68 CreateIngestionJobRequest& WithIngestionJobName(IngestionJobNameT&& value) {
69 SetIngestionJobName(std::forward<IngestionJobNameT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetIndexName() const { return m_indexName; }
79 inline bool IndexNameHasBeenSet() const { return m_indexNameHasBeenSet; }
80 template <typename IndexNameT = Aws::String>
81 void SetIndexName(IndexNameT&& value) {
82 m_indexNameHasBeenSet = true;
83 m_indexName = std::forward<IndexNameT>(value);
84 }
85 template <typename IndexNameT = Aws::String>
87 SetIndexName(std::forward<IndexNameT>(value));
88 return *this;
89 }
91
93
97 inline const Aws::String& GetFailureIndexName() const { return m_failureIndexName; }
98 inline bool FailureIndexNameHasBeenSet() const { return m_failureIndexNameHasBeenSet; }
99 template <typename FailureIndexNameT = Aws::String>
100 void SetFailureIndexName(FailureIndexNameT&& value) {
101 m_failureIndexNameHasBeenSet = true;
102 m_failureIndexName = std::forward<FailureIndexNameT>(value);
103 }
104 template <typename FailureIndexNameT = Aws::String>
106 SetFailureIndexName(std::forward<FailureIndexNameT>(value));
107 return *this;
108 }
110
112
115 inline const IngestionJobSource& GetSource() const { return m_source; }
116 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
117 template <typename SourceT = IngestionJobSource>
118 void SetSource(SourceT&& value) {
119 m_sourceHasBeenSet = true;
120 m_source = std::forward<SourceT>(value);
121 }
122 template <typename SourceT = IngestionJobSource>
124 SetSource(std::forward<SourceT>(value));
125 return *this;
126 }
128
130
134 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
135 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
136 template <typename TagsT = Aws::Vector<Tag>>
137 void SetTags(TagsT&& value) {
138 m_tagsHasBeenSet = true;
139 m_tags = std::forward<TagsT>(value);
140 }
141 template <typename TagsT = Aws::Vector<Tag>>
143 SetTags(std::forward<TagsT>(value));
144 return *this;
145 }
146 template <typename TagsT = Tag>
148 m_tagsHasBeenSet = true;
149 m_tags.emplace_back(std::forward<TagsT>(value));
150 return *this;
151 }
153
155
158 inline const Aws::String& GetClientToken() const { return m_clientToken; }
159 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
160 template <typename ClientTokenT = Aws::String>
161 void SetClientToken(ClientTokenT&& value) {
162 m_clientTokenHasBeenSet = true;
163 m_clientToken = std::forward<ClientTokenT>(value);
164 }
165 template <typename ClientTokenT = Aws::String>
167 SetClientToken(std::forward<ClientTokenT>(value));
168 return *this;
169 }
171 private:
172 Aws::String m_collectionId;
173
174 Aws::String m_ingestionJobName;
175
176 Aws::String m_indexName;
177
178 Aws::String m_failureIndexName;
179
180 IngestionJobSource m_source;
181
182 Aws::Vector<Tag> m_tags;
183
185 bool m_collectionIdHasBeenSet = false;
186 bool m_ingestionJobNameHasBeenSet = false;
187 bool m_indexNameHasBeenSet = false;
188 bool m_failureIndexNameHasBeenSet = false;
189 bool m_sourceHasBeenSet = false;
190 bool m_tagsHasBeenSet = false;
191 bool m_clientTokenHasBeenSet = true;
192};
193
194} // namespace Model
195} // namespace OpenSearchServerless
196} // namespace Aws
AWS_OPENSEARCHSERVERLESS_API CreateIngestionJobRequest()=default
CreateIngestionJobRequest & WithCollectionId(CollectionIdT &&value)
CreateIngestionJobRequest & WithIndexName(IndexNameT &&value)
AWS_OPENSEARCHSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_OPENSEARCHSERVERLESS_API Aws::String SerializePayload() const override
CreateIngestionJobRequest & WithFailureIndexName(FailureIndexNameT &&value)
CreateIngestionJobRequest & WithClientToken(ClientTokenT &&value)
CreateIngestionJobRequest & WithIngestionJobName(IngestionJobNameT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector