AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
UpdateHubContentRequest.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
14#include <utility>
15
16namespace Aws {
17namespace SageMaker {
18namespace Model {
19
23 public:
24 AWS_SAGEMAKER_API UpdateHubContentRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "UpdateHubContent"; }
31
32 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
33
35
37
41 inline const Aws::String& GetHubName() const { return m_hubName; }
42 inline bool HubNameHasBeenSet() const { return m_hubNameHasBeenSet; }
43 template <typename HubNameT = Aws::String>
44 void SetHubName(HubNameT&& value) {
45 m_hubNameHasBeenSet = true;
46 m_hubName = std::forward<HubNameT>(value);
47 }
48 template <typename HubNameT = Aws::String>
50 SetHubName(std::forward<HubNameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetHubContentName() const { return m_hubContentName; }
60 inline bool HubContentNameHasBeenSet() const { return m_hubContentNameHasBeenSet; }
61 template <typename HubContentNameT = Aws::String>
62 void SetHubContentName(HubContentNameT&& value) {
63 m_hubContentNameHasBeenSet = true;
64 m_hubContentName = std::forward<HubContentNameT>(value);
65 }
66 template <typename HubContentNameT = Aws::String>
67 UpdateHubContentRequest& WithHubContentName(HubContentNameT&& value) {
68 SetHubContentName(std::forward<HubContentNameT>(value));
69 return *this;
70 }
72
74
80 inline HubContentType GetHubContentType() const { return m_hubContentType; }
81 inline bool HubContentTypeHasBeenSet() const { return m_hubContentTypeHasBeenSet; }
82 inline void SetHubContentType(HubContentType value) {
83 m_hubContentTypeHasBeenSet = true;
84 m_hubContentType = value;
85 }
87 SetHubContentType(value);
88 return *this;
89 }
91
93
97 inline const Aws::String& GetHubContentVersion() const { return m_hubContentVersion; }
98 inline bool HubContentVersionHasBeenSet() const { return m_hubContentVersionHasBeenSet; }
99 template <typename HubContentVersionT = Aws::String>
100 void SetHubContentVersion(HubContentVersionT&& value) {
101 m_hubContentVersionHasBeenSet = true;
102 m_hubContentVersion = std::forward<HubContentVersionT>(value);
103 }
104 template <typename HubContentVersionT = Aws::String>
105 UpdateHubContentRequest& WithHubContentVersion(HubContentVersionT&& value) {
106 SetHubContentVersion(std::forward<HubContentVersionT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::String& GetHubContentDisplayName() const { return m_hubContentDisplayName; }
116 inline bool HubContentDisplayNameHasBeenSet() const { return m_hubContentDisplayNameHasBeenSet; }
117 template <typename HubContentDisplayNameT = Aws::String>
118 void SetHubContentDisplayName(HubContentDisplayNameT&& value) {
119 m_hubContentDisplayNameHasBeenSet = true;
120 m_hubContentDisplayName = std::forward<HubContentDisplayNameT>(value);
121 }
122 template <typename HubContentDisplayNameT = Aws::String>
123 UpdateHubContentRequest& WithHubContentDisplayName(HubContentDisplayNameT&& value) {
124 SetHubContentDisplayName(std::forward<HubContentDisplayNameT>(value));
125 return *this;
126 }
128
130
133 inline const Aws::String& GetHubContentDescription() const { return m_hubContentDescription; }
134 inline bool HubContentDescriptionHasBeenSet() const { return m_hubContentDescriptionHasBeenSet; }
135 template <typename HubContentDescriptionT = Aws::String>
136 void SetHubContentDescription(HubContentDescriptionT&& value) {
137 m_hubContentDescriptionHasBeenSet = true;
138 m_hubContentDescription = std::forward<HubContentDescriptionT>(value);
139 }
140 template <typename HubContentDescriptionT = Aws::String>
141 UpdateHubContentRequest& WithHubContentDescription(HubContentDescriptionT&& value) {
142 SetHubContentDescription(std::forward<HubContentDescriptionT>(value));
143 return *this;
144 }
146
148
152 inline const Aws::String& GetHubContentMarkdown() const { return m_hubContentMarkdown; }
153 inline bool HubContentMarkdownHasBeenSet() const { return m_hubContentMarkdownHasBeenSet; }
154 template <typename HubContentMarkdownT = Aws::String>
155 void SetHubContentMarkdown(HubContentMarkdownT&& value) {
156 m_hubContentMarkdownHasBeenSet = true;
157 m_hubContentMarkdown = std::forward<HubContentMarkdownT>(value);
158 }
159 template <typename HubContentMarkdownT = Aws::String>
160 UpdateHubContentRequest& WithHubContentMarkdown(HubContentMarkdownT&& value) {
161 SetHubContentMarkdown(std::forward<HubContentMarkdownT>(value));
162 return *this;
163 }
165
167
170 inline const Aws::Vector<Aws::String>& GetHubContentSearchKeywords() const { return m_hubContentSearchKeywords; }
171 inline bool HubContentSearchKeywordsHasBeenSet() const { return m_hubContentSearchKeywordsHasBeenSet; }
172 template <typename HubContentSearchKeywordsT = Aws::Vector<Aws::String>>
173 void SetHubContentSearchKeywords(HubContentSearchKeywordsT&& value) {
174 m_hubContentSearchKeywordsHasBeenSet = true;
175 m_hubContentSearchKeywords = std::forward<HubContentSearchKeywordsT>(value);
176 }
177 template <typename HubContentSearchKeywordsT = Aws::Vector<Aws::String>>
178 UpdateHubContentRequest& WithHubContentSearchKeywords(HubContentSearchKeywordsT&& value) {
179 SetHubContentSearchKeywords(std::forward<HubContentSearchKeywordsT>(value));
180 return *this;
181 }
182 template <typename HubContentSearchKeywordsT = Aws::String>
183 UpdateHubContentRequest& AddHubContentSearchKeywords(HubContentSearchKeywordsT&& value) {
184 m_hubContentSearchKeywordsHasBeenSet = true;
185 m_hubContentSearchKeywords.emplace_back(std::forward<HubContentSearchKeywordsT>(value));
186 return *this;
187 }
189
191
194 inline HubContentSupportStatus GetSupportStatus() const { return m_supportStatus; }
195 inline bool SupportStatusHasBeenSet() const { return m_supportStatusHasBeenSet; }
197 m_supportStatusHasBeenSet = true;
198 m_supportStatus = value;
199 }
201 SetSupportStatus(value);
202 return *this;
203 }
205 private:
206 Aws::String m_hubName;
207
208 Aws::String m_hubContentName;
209
210 HubContentType m_hubContentType{HubContentType::NOT_SET};
211
212 Aws::String m_hubContentVersion;
213
214 Aws::String m_hubContentDisplayName;
215
216 Aws::String m_hubContentDescription;
217
218 Aws::String m_hubContentMarkdown;
219
220 Aws::Vector<Aws::String> m_hubContentSearchKeywords;
221
223 bool m_hubNameHasBeenSet = false;
224 bool m_hubContentNameHasBeenSet = false;
225 bool m_hubContentTypeHasBeenSet = false;
226 bool m_hubContentVersionHasBeenSet = false;
227 bool m_hubContentDisplayNameHasBeenSet = false;
228 bool m_hubContentDescriptionHasBeenSet = false;
229 bool m_hubContentMarkdownHasBeenSet = false;
230 bool m_hubContentSearchKeywordsHasBeenSet = false;
231 bool m_supportStatusHasBeenSet = false;
232};
233
234} // namespace Model
235} // namespace SageMaker
236} // namespace Aws
UpdateHubContentRequest & WithHubContentVersion(HubContentVersionT &&value)
void SetSupportStatus(HubContentSupportStatus value)
UpdateHubContentRequest & WithHubName(HubNameT &&value)
UpdateHubContentRequest & WithHubContentSearchKeywords(HubContentSearchKeywordsT &&value)
UpdateHubContentRequest & AddHubContentSearchKeywords(HubContentSearchKeywordsT &&value)
const Aws::Vector< Aws::String > & GetHubContentSearchKeywords() const
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
void SetHubContentDescription(HubContentDescriptionT &&value)
UpdateHubContentRequest & WithHubContentDescription(HubContentDescriptionT &&value)
void SetHubContentSearchKeywords(HubContentSearchKeywordsT &&value)
UpdateHubContentRequest & WithHubContentMarkdown(HubContentMarkdownT &&value)
AWS_SAGEMAKER_API UpdateHubContentRequest()=default
virtual const char * GetServiceRequestName() const override
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateHubContentRequest & WithSupportStatus(HubContentSupportStatus value)
UpdateHubContentRequest & WithHubContentDisplayName(HubContentDisplayNameT &&value)
UpdateHubContentRequest & WithHubContentName(HubContentNameT &&value)
UpdateHubContentRequest & WithHubContentType(HubContentType value)
void SetHubContentMarkdown(HubContentMarkdownT &&value)
void SetHubContentDisplayName(HubContentDisplayNameT &&value)
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