AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ImportHubContentRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/sagemaker/SageMakerRequest.h>
10#include <aws/sagemaker/SageMaker_EXPORTS.h>
11#include <aws/sagemaker/model/HubContentSupportStatus.h>
12#include <aws/sagemaker/model/HubContentType.h>
13#include <aws/sagemaker/model/Tag.h>
14
15#include <utility>
16
17namespace Aws {
18namespace SageMaker {
19namespace Model {
20
24 public:
25 AWS_SAGEMAKER_API ImportHubContentRequest() = 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 "ImportHubContent"; }
32
33 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
34
36
38
41 inline const Aws::String& GetHubContentName() const { return m_hubContentName; }
42 inline bool HubContentNameHasBeenSet() const { return m_hubContentNameHasBeenSet; }
43 template <typename HubContentNameT = Aws::String>
44 void SetHubContentName(HubContentNameT&& value) {
45 m_hubContentNameHasBeenSet = true;
46 m_hubContentName = std::forward<HubContentNameT>(value);
47 }
48 template <typename HubContentNameT = Aws::String>
49 ImportHubContentRequest& WithHubContentName(HubContentNameT&& value) {
50 SetHubContentName(std::forward<HubContentNameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetHubContentVersion() const { return m_hubContentVersion; }
60 inline bool HubContentVersionHasBeenSet() const { return m_hubContentVersionHasBeenSet; }
61 template <typename HubContentVersionT = Aws::String>
62 void SetHubContentVersion(HubContentVersionT&& value) {
63 m_hubContentVersionHasBeenSet = true;
64 m_hubContentVersion = std::forward<HubContentVersionT>(value);
65 }
66 template <typename HubContentVersionT = Aws::String>
67 ImportHubContentRequest& WithHubContentVersion(HubContentVersionT&& value) {
68 SetHubContentVersion(std::forward<HubContentVersionT>(value));
69 return *this;
70 }
72
74
77 inline HubContentType GetHubContentType() const { return m_hubContentType; }
78 inline bool HubContentTypeHasBeenSet() const { return m_hubContentTypeHasBeenSet; }
79 inline void SetHubContentType(HubContentType value) {
80 m_hubContentTypeHasBeenSet = true;
81 m_hubContentType = value;
82 }
84 SetHubContentType(value);
85 return *this;
86 }
88
90
93 inline const Aws::String& GetDocumentSchemaVersion() const { return m_documentSchemaVersion; }
94 inline bool DocumentSchemaVersionHasBeenSet() const { return m_documentSchemaVersionHasBeenSet; }
95 template <typename DocumentSchemaVersionT = Aws::String>
96 void SetDocumentSchemaVersion(DocumentSchemaVersionT&& value) {
97 m_documentSchemaVersionHasBeenSet = true;
98 m_documentSchemaVersion = std::forward<DocumentSchemaVersionT>(value);
99 }
100 template <typename DocumentSchemaVersionT = Aws::String>
101 ImportHubContentRequest& WithDocumentSchemaVersion(DocumentSchemaVersionT&& value) {
102 SetDocumentSchemaVersion(std::forward<DocumentSchemaVersionT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::String& GetHubName() const { return m_hubName; }
112 inline bool HubNameHasBeenSet() const { return m_hubNameHasBeenSet; }
113 template <typename HubNameT = Aws::String>
114 void SetHubName(HubNameT&& value) {
115 m_hubNameHasBeenSet = true;
116 m_hubName = std::forward<HubNameT>(value);
117 }
118 template <typename HubNameT = Aws::String>
120 SetHubName(std::forward<HubNameT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::String& GetHubContentDisplayName() const { return m_hubContentDisplayName; }
130 inline bool HubContentDisplayNameHasBeenSet() const { return m_hubContentDisplayNameHasBeenSet; }
131 template <typename HubContentDisplayNameT = Aws::String>
132 void SetHubContentDisplayName(HubContentDisplayNameT&& value) {
133 m_hubContentDisplayNameHasBeenSet = true;
134 m_hubContentDisplayName = std::forward<HubContentDisplayNameT>(value);
135 }
136 template <typename HubContentDisplayNameT = Aws::String>
137 ImportHubContentRequest& WithHubContentDisplayName(HubContentDisplayNameT&& value) {
138 SetHubContentDisplayName(std::forward<HubContentDisplayNameT>(value));
139 return *this;
140 }
142
144
147 inline const Aws::String& GetHubContentDescription() const { return m_hubContentDescription; }
148 inline bool HubContentDescriptionHasBeenSet() const { return m_hubContentDescriptionHasBeenSet; }
149 template <typename HubContentDescriptionT = Aws::String>
150 void SetHubContentDescription(HubContentDescriptionT&& value) {
151 m_hubContentDescriptionHasBeenSet = true;
152 m_hubContentDescription = std::forward<HubContentDescriptionT>(value);
153 }
154 template <typename HubContentDescriptionT = Aws::String>
155 ImportHubContentRequest& WithHubContentDescription(HubContentDescriptionT&& value) {
156 SetHubContentDescription(std::forward<HubContentDescriptionT>(value));
157 return *this;
158 }
160
162
166 inline const Aws::String& GetHubContentMarkdown() const { return m_hubContentMarkdown; }
167 inline bool HubContentMarkdownHasBeenSet() const { return m_hubContentMarkdownHasBeenSet; }
168 template <typename HubContentMarkdownT = Aws::String>
169 void SetHubContentMarkdown(HubContentMarkdownT&& value) {
170 m_hubContentMarkdownHasBeenSet = true;
171 m_hubContentMarkdown = std::forward<HubContentMarkdownT>(value);
172 }
173 template <typename HubContentMarkdownT = Aws::String>
174 ImportHubContentRequest& WithHubContentMarkdown(HubContentMarkdownT&& value) {
175 SetHubContentMarkdown(std::forward<HubContentMarkdownT>(value));
176 return *this;
177 }
179
181
185 inline const Aws::String& GetHubContentDocument() const { return m_hubContentDocument; }
186 inline bool HubContentDocumentHasBeenSet() const { return m_hubContentDocumentHasBeenSet; }
187 template <typename HubContentDocumentT = Aws::String>
188 void SetHubContentDocument(HubContentDocumentT&& value) {
189 m_hubContentDocumentHasBeenSet = true;
190 m_hubContentDocument = std::forward<HubContentDocumentT>(value);
191 }
192 template <typename HubContentDocumentT = Aws::String>
193 ImportHubContentRequest& WithHubContentDocument(HubContentDocumentT&& value) {
194 SetHubContentDocument(std::forward<HubContentDocumentT>(value));
195 return *this;
196 }
198
200
203 inline HubContentSupportStatus GetSupportStatus() const { return m_supportStatus; }
204 inline bool SupportStatusHasBeenSet() const { return m_supportStatusHasBeenSet; }
206 m_supportStatusHasBeenSet = true;
207 m_supportStatus = value;
208 }
210 SetSupportStatus(value);
211 return *this;
212 }
214
216
219 inline const Aws::Vector<Aws::String>& GetHubContentSearchKeywords() const { return m_hubContentSearchKeywords; }
220 inline bool HubContentSearchKeywordsHasBeenSet() const { return m_hubContentSearchKeywordsHasBeenSet; }
221 template <typename HubContentSearchKeywordsT = Aws::Vector<Aws::String>>
222 void SetHubContentSearchKeywords(HubContentSearchKeywordsT&& value) {
223 m_hubContentSearchKeywordsHasBeenSet = true;
224 m_hubContentSearchKeywords = std::forward<HubContentSearchKeywordsT>(value);
225 }
226 template <typename HubContentSearchKeywordsT = Aws::Vector<Aws::String>>
227 ImportHubContentRequest& WithHubContentSearchKeywords(HubContentSearchKeywordsT&& value) {
228 SetHubContentSearchKeywords(std::forward<HubContentSearchKeywordsT>(value));
229 return *this;
230 }
231 template <typename HubContentSearchKeywordsT = Aws::String>
232 ImportHubContentRequest& AddHubContentSearchKeywords(HubContentSearchKeywordsT&& value) {
233 m_hubContentSearchKeywordsHasBeenSet = true;
234 m_hubContentSearchKeywords.emplace_back(std::forward<HubContentSearchKeywordsT>(value));
235 return *this;
236 }
238
240
243 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
244 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
245 template <typename TagsT = Aws::Vector<Tag>>
246 void SetTags(TagsT&& value) {
247 m_tagsHasBeenSet = true;
248 m_tags = std::forward<TagsT>(value);
249 }
250 template <typename TagsT = Aws::Vector<Tag>>
252 SetTags(std::forward<TagsT>(value));
253 return *this;
254 }
255 template <typename TagsT = Tag>
257 m_tagsHasBeenSet = true;
258 m_tags.emplace_back(std::forward<TagsT>(value));
259 return *this;
260 }
262 private:
263 Aws::String m_hubContentName;
264
265 Aws::String m_hubContentVersion;
266
267 HubContentType m_hubContentType{HubContentType::NOT_SET};
268
269 Aws::String m_documentSchemaVersion;
270
271 Aws::String m_hubName;
272
273 Aws::String m_hubContentDisplayName;
274
275 Aws::String m_hubContentDescription;
276
277 Aws::String m_hubContentMarkdown;
278
279 Aws::String m_hubContentDocument;
280
282
283 Aws::Vector<Aws::String> m_hubContentSearchKeywords;
284
285 Aws::Vector<Tag> m_tags;
286 bool m_hubContentNameHasBeenSet = false;
287 bool m_hubContentVersionHasBeenSet = false;
288 bool m_hubContentTypeHasBeenSet = false;
289 bool m_documentSchemaVersionHasBeenSet = false;
290 bool m_hubNameHasBeenSet = false;
291 bool m_hubContentDisplayNameHasBeenSet = false;
292 bool m_hubContentDescriptionHasBeenSet = false;
293 bool m_hubContentMarkdownHasBeenSet = false;
294 bool m_hubContentDocumentHasBeenSet = false;
295 bool m_supportStatusHasBeenSet = false;
296 bool m_hubContentSearchKeywordsHasBeenSet = false;
297 bool m_tagsHasBeenSet = false;
298};
299
300} // namespace Model
301} // namespace SageMaker
302} // namespace Aws
ImportHubContentRequest & WithHubContentSearchKeywords(HubContentSearchKeywordsT &&value)
ImportHubContentRequest & WithSupportStatus(HubContentSupportStatus value)
void SetHubContentMarkdown(HubContentMarkdownT &&value)
void SetHubContentSearchKeywords(HubContentSearchKeywordsT &&value)
const Aws::Vector< Aws::String > & GetHubContentSearchKeywords() const
ImportHubContentRequest & AddHubContentSearchKeywords(HubContentSearchKeywordsT &&value)
void SetDocumentSchemaVersion(DocumentSchemaVersionT &&value)
ImportHubContentRequest & WithHubContentDescription(HubContentDescriptionT &&value)
void SetSupportStatus(HubContentSupportStatus value)
ImportHubContentRequest & WithTags(TagsT &&value)
void SetHubContentVersion(HubContentVersionT &&value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
ImportHubContentRequest & AddTags(TagsT &&value)
ImportHubContentRequest & WithHubContentMarkdown(HubContentMarkdownT &&value)
ImportHubContentRequest & WithHubContentType(HubContentType value)
ImportHubContentRequest & WithHubContentDisplayName(HubContentDisplayNameT &&value)
ImportHubContentRequest & WithHubContentVersion(HubContentVersionT &&value)
ImportHubContentRequest & WithHubContentName(HubContentNameT &&value)
ImportHubContentRequest & WithDocumentSchemaVersion(DocumentSchemaVersionT &&value)
ImportHubContentRequest & WithHubName(HubNameT &&value)
AWS_SAGEMAKER_API ImportHubContentRequest()=default
void SetHubContentDisplayName(HubContentDisplayNameT &&value)
void SetHubContentDocument(HubContentDocumentT &&value)
void SetHubContentDescription(HubContentDescriptionT &&value)
ImportHubContentRequest & WithHubContentDocument(HubContentDocumentT &&value)
virtual const char * GetServiceRequestName() const override
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