AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
CreateIngestionStreamRequest.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/IngestionStreamSource.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 CreateIngestionStreamRequest() = 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 "CreateIngestionStream"; }
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& GetIngestionStreamName() const { return m_ingestionStreamName; }
61 inline bool IngestionStreamNameHasBeenSet() const { return m_ingestionStreamNameHasBeenSet; }
62 template <typename IngestionStreamNameT = Aws::String>
63 void SetIngestionStreamName(IngestionStreamNameT&& value) {
64 m_ingestionStreamNameHasBeenSet = true;
65 m_ingestionStreamName = std::forward<IngestionStreamNameT>(value);
66 }
67 template <typename IngestionStreamNameT = Aws::String>
69 SetIngestionStreamName(std::forward<IngestionStreamNameT>(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
116 inline const IngestionStreamSource& GetSource() const { return m_source; }
117 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
118 template <typename SourceT = IngestionStreamSource>
119 void SetSource(SourceT&& value) {
120 m_sourceHasBeenSet = true;
121 m_source = std::forward<SourceT>(value);
122 }
123 template <typename SourceT = IngestionStreamSource>
125 SetSource(std::forward<SourceT>(value));
126 return *this;
127 }
129
131
136 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
137 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
138 template <typename RoleArnT = Aws::String>
139 void SetRoleArn(RoleArnT&& value) {
140 m_roleArnHasBeenSet = true;
141 m_roleArn = std::forward<RoleArnT>(value);
142 }
143 template <typename RoleArnT = Aws::String>
145 SetRoleArn(std::forward<RoleArnT>(value));
146 return *this;
147 }
149
151
155 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
156 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
157 template <typename TagsT = Aws::Vector<Tag>>
158 void SetTags(TagsT&& value) {
159 m_tagsHasBeenSet = true;
160 m_tags = std::forward<TagsT>(value);
161 }
162 template <typename TagsT = Aws::Vector<Tag>>
164 SetTags(std::forward<TagsT>(value));
165 return *this;
166 }
167 template <typename TagsT = Tag>
169 m_tagsHasBeenSet = true;
170 m_tags.emplace_back(std::forward<TagsT>(value));
171 return *this;
172 }
174
176
179 inline const Aws::String& GetClientToken() const { return m_clientToken; }
180 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
181 template <typename ClientTokenT = Aws::String>
182 void SetClientToken(ClientTokenT&& value) {
183 m_clientTokenHasBeenSet = true;
184 m_clientToken = std::forward<ClientTokenT>(value);
185 }
186 template <typename ClientTokenT = Aws::String>
188 SetClientToken(std::forward<ClientTokenT>(value));
189 return *this;
190 }
192 private:
193 Aws::String m_collectionId;
194
195 Aws::String m_ingestionStreamName;
196
197 Aws::String m_indexName;
198
199 Aws::String m_failureIndexName;
200
201 IngestionStreamSource m_source;
202
203 Aws::String m_roleArn;
204
205 Aws::Vector<Tag> m_tags;
206
208 bool m_collectionIdHasBeenSet = false;
209 bool m_ingestionStreamNameHasBeenSet = false;
210 bool m_indexNameHasBeenSet = false;
211 bool m_failureIndexNameHasBeenSet = false;
212 bool m_sourceHasBeenSet = false;
213 bool m_roleArnHasBeenSet = false;
214 bool m_tagsHasBeenSet = false;
215 bool m_clientTokenHasBeenSet = true;
216};
217
218} // namespace Model
219} // namespace OpenSearchServerless
220} // namespace Aws
AWS_OPENSEARCHSERVERLESS_API CreateIngestionStreamRequest()=default
AWS_OPENSEARCHSERVERLESS_API Aws::String SerializePayload() const override
CreateIngestionStreamRequest & WithFailureIndexName(FailureIndexNameT &&value)
CreateIngestionStreamRequest & WithIndexName(IndexNameT &&value)
CreateIngestionStreamRequest & WithCollectionId(CollectionIdT &&value)
CreateIngestionStreamRequest & WithIngestionStreamName(IngestionStreamNameT &&value)
CreateIngestionStreamRequest & WithClientToken(ClientTokenT &&value)
AWS_OPENSEARCHSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
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