AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
DescribeHubResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/sagemaker/SageMaker_EXPORTS.h>
12#include <aws/sagemaker/model/HubS3StorageConfig.h>
13#include <aws/sagemaker/model/HubStatus.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace SageMaker {
27namespace Model {
29 public:
30 AWS_SAGEMAKER_API DescribeHubResult() = default;
33
35
38 inline const Aws::String& GetHubName() const { return m_hubName; }
39 template <typename HubNameT = Aws::String>
40 void SetHubName(HubNameT&& value) {
41 m_hubNameHasBeenSet = true;
42 m_hubName = std::forward<HubNameT>(value);
43 }
44 template <typename HubNameT = Aws::String>
45 DescribeHubResult& WithHubName(HubNameT&& value) {
46 SetHubName(std::forward<HubNameT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetHubArn() const { return m_hubArn; }
56 template <typename HubArnT = Aws::String>
57 void SetHubArn(HubArnT&& value) {
58 m_hubArnHasBeenSet = true;
59 m_hubArn = std::forward<HubArnT>(value);
60 }
61 template <typename HubArnT = Aws::String>
62 DescribeHubResult& WithHubArn(HubArnT&& value) {
63 SetHubArn(std::forward<HubArnT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetHubDisplayName() const { return m_hubDisplayName; }
73 template <typename HubDisplayNameT = Aws::String>
74 void SetHubDisplayName(HubDisplayNameT&& value) {
75 m_hubDisplayNameHasBeenSet = true;
76 m_hubDisplayName = std::forward<HubDisplayNameT>(value);
77 }
78 template <typename HubDisplayNameT = Aws::String>
79 DescribeHubResult& WithHubDisplayName(HubDisplayNameT&& value) {
80 SetHubDisplayName(std::forward<HubDisplayNameT>(value));
81 return *this;
82 }
84
86
89 inline const Aws::String& GetHubDescription() const { return m_hubDescription; }
90 template <typename HubDescriptionT = Aws::String>
91 void SetHubDescription(HubDescriptionT&& value) {
92 m_hubDescriptionHasBeenSet = true;
93 m_hubDescription = std::forward<HubDescriptionT>(value);
94 }
95 template <typename HubDescriptionT = Aws::String>
96 DescribeHubResult& WithHubDescription(HubDescriptionT&& value) {
97 SetHubDescription(std::forward<HubDescriptionT>(value));
98 return *this;
99 }
101
103
106 inline const Aws::Vector<Aws::String>& GetHubSearchKeywords() const { return m_hubSearchKeywords; }
107 template <typename HubSearchKeywordsT = Aws::Vector<Aws::String>>
108 void SetHubSearchKeywords(HubSearchKeywordsT&& value) {
109 m_hubSearchKeywordsHasBeenSet = true;
110 m_hubSearchKeywords = std::forward<HubSearchKeywordsT>(value);
111 }
112 template <typename HubSearchKeywordsT = Aws::Vector<Aws::String>>
113 DescribeHubResult& WithHubSearchKeywords(HubSearchKeywordsT&& value) {
114 SetHubSearchKeywords(std::forward<HubSearchKeywordsT>(value));
115 return *this;
116 }
117 template <typename HubSearchKeywordsT = Aws::String>
118 DescribeHubResult& AddHubSearchKeywords(HubSearchKeywordsT&& value) {
119 m_hubSearchKeywordsHasBeenSet = true;
120 m_hubSearchKeywords.emplace_back(std::forward<HubSearchKeywordsT>(value));
121 return *this;
122 }
124
126
129 inline const HubS3StorageConfig& GetS3StorageConfig() const { return m_s3StorageConfig; }
130 template <typename S3StorageConfigT = HubS3StorageConfig>
131 void SetS3StorageConfig(S3StorageConfigT&& value) {
132 m_s3StorageConfigHasBeenSet = true;
133 m_s3StorageConfig = std::forward<S3StorageConfigT>(value);
134 }
135 template <typename S3StorageConfigT = HubS3StorageConfig>
136 DescribeHubResult& WithS3StorageConfig(S3StorageConfigT&& value) {
137 SetS3StorageConfig(std::forward<S3StorageConfigT>(value));
138 return *this;
139 }
141
143
146 inline HubStatus GetHubStatus() const { return m_hubStatus; }
147 inline void SetHubStatus(HubStatus value) {
148 m_hubStatusHasBeenSet = true;
149 m_hubStatus = value;
150 }
152 SetHubStatus(value);
153 return *this;
154 }
156
158
161 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
162 template <typename FailureReasonT = Aws::String>
163 void SetFailureReason(FailureReasonT&& value) {
164 m_failureReasonHasBeenSet = true;
165 m_failureReason = std::forward<FailureReasonT>(value);
166 }
167 template <typename FailureReasonT = Aws::String>
168 DescribeHubResult& WithFailureReason(FailureReasonT&& value) {
169 SetFailureReason(std::forward<FailureReasonT>(value));
170 return *this;
171 }
173
175
178 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
179 template <typename CreationTimeT = Aws::Utils::DateTime>
180 void SetCreationTime(CreationTimeT&& value) {
181 m_creationTimeHasBeenSet = true;
182 m_creationTime = std::forward<CreationTimeT>(value);
183 }
184 template <typename CreationTimeT = Aws::Utils::DateTime>
185 DescribeHubResult& WithCreationTime(CreationTimeT&& value) {
186 SetCreationTime(std::forward<CreationTimeT>(value));
187 return *this;
188 }
190
192
195 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
196 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
197 void SetLastModifiedTime(LastModifiedTimeT&& value) {
198 m_lastModifiedTimeHasBeenSet = true;
199 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
200 }
201 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
202 DescribeHubResult& WithLastModifiedTime(LastModifiedTimeT&& value) {
203 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
204 return *this;
205 }
207
209
210 inline const Aws::String& GetRequestId() const { return m_requestId; }
211 template <typename RequestIdT = Aws::String>
212 void SetRequestId(RequestIdT&& value) {
213 m_requestIdHasBeenSet = true;
214 m_requestId = std::forward<RequestIdT>(value);
215 }
216 template <typename RequestIdT = Aws::String>
217 DescribeHubResult& WithRequestId(RequestIdT&& value) {
218 SetRequestId(std::forward<RequestIdT>(value));
219 return *this;
220 }
222 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
223
224 private:
225 Aws::String m_hubName;
226
227 Aws::String m_hubArn;
228
229 Aws::String m_hubDisplayName;
230
231 Aws::String m_hubDescription;
232
233 Aws::Vector<Aws::String> m_hubSearchKeywords;
234
235 HubS3StorageConfig m_s3StorageConfig;
236
237 HubStatus m_hubStatus{HubStatus::NOT_SET};
238
239 Aws::String m_failureReason;
240
241 Aws::Utils::DateTime m_creationTime{};
242
243 Aws::Utils::DateTime m_lastModifiedTime{};
244
245 Aws::String m_requestId;
246 Aws::Http::HttpResponseCode m_HttpResponseCode;
247 bool m_hubNameHasBeenSet = false;
248 bool m_hubArnHasBeenSet = false;
249 bool m_hubDisplayNameHasBeenSet = false;
250 bool m_hubDescriptionHasBeenSet = false;
251 bool m_hubSearchKeywordsHasBeenSet = false;
252 bool m_s3StorageConfigHasBeenSet = false;
253 bool m_hubStatusHasBeenSet = false;
254 bool m_failureReasonHasBeenSet = false;
255 bool m_creationTimeHasBeenSet = false;
256 bool m_lastModifiedTimeHasBeenSet = false;
257 bool m_requestIdHasBeenSet = false;
258};
259
260} // namespace Model
261} // namespace SageMaker
262} // namespace Aws
AWS_SAGEMAKER_API DescribeHubResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetFailureReason() const
const Aws::String & GetHubDisplayName() const
void SetHubDescription(HubDescriptionT &&value)
DescribeHubResult & WithHubDisplayName(HubDisplayNameT &&value)
const HubS3StorageConfig & GetS3StorageConfig() const
const Aws::Utils::DateTime & GetLastModifiedTime() const
void SetS3StorageConfig(S3StorageConfigT &&value)
const Aws::Utils::DateTime & GetCreationTime() const
DescribeHubResult & WithRequestId(RequestIdT &&value)
void SetFailureReason(FailureReasonT &&value)
const Aws::Vector< Aws::String > & GetHubSearchKeywords() const
DescribeHubResult & WithHubArn(HubArnT &&value)
DescribeHubResult & WithCreationTime(CreationTimeT &&value)
DescribeHubResult & WithHubSearchKeywords(HubSearchKeywordsT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
DescribeHubResult & WithS3StorageConfig(S3StorageConfigT &&value)
void SetHubDisplayName(HubDisplayNameT &&value)
DescribeHubResult & WithHubStatus(HubStatus value)
DescribeHubResult & WithHubName(HubNameT &&value)
DescribeHubResult & WithHubDescription(HubDescriptionT &&value)
DescribeHubResult & WithLastModifiedTime(LastModifiedTimeT &&value)
void SetHubSearchKeywords(HubSearchKeywordsT &&value)
AWS_SAGEMAKER_API DescribeHubResult()=default
DescribeHubResult & WithFailureReason(FailureReasonT &&value)
AWS_SAGEMAKER_API DescribeHubResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetLastModifiedTime(LastModifiedTimeT &&value)
DescribeHubResult & AddHubSearchKeywords(HubSearchKeywordsT &&value)
void SetCreationTime(CreationTimeT &&value)
const Aws::String & GetHubDescription() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue