AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
DescribeArtifactResult.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/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/sagemaker/SageMaker_EXPORTS.h>
12#include <aws/sagemaker/model/ArtifactSource.h>
13#include <aws/sagemaker/model/MetadataProperties.h>
14#include <aws/sagemaker/model/UserContext.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace SageMaker {
28namespace Model {
30 public:
31 AWS_SAGEMAKER_API DescribeArtifactResult() = default;
34
36
39 inline const Aws::String& GetArtifactName() const { return m_artifactName; }
40 template <typename ArtifactNameT = Aws::String>
41 void SetArtifactName(ArtifactNameT&& value) {
42 m_artifactNameHasBeenSet = true;
43 m_artifactName = std::forward<ArtifactNameT>(value);
44 }
45 template <typename ArtifactNameT = Aws::String>
46 DescribeArtifactResult& WithArtifactName(ArtifactNameT&& value) {
47 SetArtifactName(std::forward<ArtifactNameT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetArtifactArn() const { return m_artifactArn; }
57 template <typename ArtifactArnT = Aws::String>
58 void SetArtifactArn(ArtifactArnT&& value) {
59 m_artifactArnHasBeenSet = true;
60 m_artifactArn = std::forward<ArtifactArnT>(value);
61 }
62 template <typename ArtifactArnT = Aws::String>
63 DescribeArtifactResult& WithArtifactArn(ArtifactArnT&& value) {
64 SetArtifactArn(std::forward<ArtifactArnT>(value));
65 return *this;
66 }
68
70
73 inline const ArtifactSource& GetSource() const { return m_source; }
74 template <typename SourceT = ArtifactSource>
75 void SetSource(SourceT&& value) {
76 m_sourceHasBeenSet = true;
77 m_source = std::forward<SourceT>(value);
78 }
79 template <typename SourceT = ArtifactSource>
81 SetSource(std::forward<SourceT>(value));
82 return *this;
83 }
85
87
90 inline const Aws::String& GetArtifactType() const { return m_artifactType; }
91 template <typename ArtifactTypeT = Aws::String>
92 void SetArtifactType(ArtifactTypeT&& value) {
93 m_artifactTypeHasBeenSet = true;
94 m_artifactType = std::forward<ArtifactTypeT>(value);
95 }
96 template <typename ArtifactTypeT = Aws::String>
97 DescribeArtifactResult& WithArtifactType(ArtifactTypeT&& value) {
98 SetArtifactType(std::forward<ArtifactTypeT>(value));
99 return *this;
100 }
102
104
107 inline const Aws::Map<Aws::String, Aws::String>& GetProperties() const { return m_properties; }
108 template <typename PropertiesT = Aws::Map<Aws::String, Aws::String>>
109 void SetProperties(PropertiesT&& value) {
110 m_propertiesHasBeenSet = true;
111 m_properties = std::forward<PropertiesT>(value);
112 }
113 template <typename PropertiesT = Aws::Map<Aws::String, Aws::String>>
115 SetProperties(std::forward<PropertiesT>(value));
116 return *this;
117 }
118 template <typename PropertiesKeyT = Aws::String, typename PropertiesValueT = Aws::String>
119 DescribeArtifactResult& AddProperties(PropertiesKeyT&& key, PropertiesValueT&& value) {
120 m_propertiesHasBeenSet = true;
121 m_properties.emplace(std::forward<PropertiesKeyT>(key), std::forward<PropertiesValueT>(value));
122 return *this;
123 }
125
127
130 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
131 template <typename CreationTimeT = Aws::Utils::DateTime>
132 void SetCreationTime(CreationTimeT&& value) {
133 m_creationTimeHasBeenSet = true;
134 m_creationTime = std::forward<CreationTimeT>(value);
135 }
136 template <typename CreationTimeT = Aws::Utils::DateTime>
137 DescribeArtifactResult& WithCreationTime(CreationTimeT&& value) {
138 SetCreationTime(std::forward<CreationTimeT>(value));
139 return *this;
140 }
142
144
145 inline const UserContext& GetCreatedBy() const { return m_createdBy; }
146 template <typename CreatedByT = UserContext>
147 void SetCreatedBy(CreatedByT&& value) {
148 m_createdByHasBeenSet = true;
149 m_createdBy = std::forward<CreatedByT>(value);
150 }
151 template <typename CreatedByT = UserContext>
153 SetCreatedBy(std::forward<CreatedByT>(value));
154 return *this;
155 }
157
159
162 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
163 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
164 void SetLastModifiedTime(LastModifiedTimeT&& value) {
165 m_lastModifiedTimeHasBeenSet = true;
166 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
167 }
168 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
169 DescribeArtifactResult& WithLastModifiedTime(LastModifiedTimeT&& value) {
170 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
171 return *this;
172 }
174
176
177 inline const UserContext& GetLastModifiedBy() const { return m_lastModifiedBy; }
178 template <typename LastModifiedByT = UserContext>
179 void SetLastModifiedBy(LastModifiedByT&& value) {
180 m_lastModifiedByHasBeenSet = true;
181 m_lastModifiedBy = std::forward<LastModifiedByT>(value);
182 }
183 template <typename LastModifiedByT = UserContext>
184 DescribeArtifactResult& WithLastModifiedBy(LastModifiedByT&& value) {
185 SetLastModifiedBy(std::forward<LastModifiedByT>(value));
186 return *this;
187 }
189
191
192 inline const MetadataProperties& GetMetadataProperties() const { return m_metadataProperties; }
193 template <typename MetadataPropertiesT = MetadataProperties>
194 void SetMetadataProperties(MetadataPropertiesT&& value) {
195 m_metadataPropertiesHasBeenSet = true;
196 m_metadataProperties = std::forward<MetadataPropertiesT>(value);
197 }
198 template <typename MetadataPropertiesT = MetadataProperties>
199 DescribeArtifactResult& WithMetadataProperties(MetadataPropertiesT&& value) {
200 SetMetadataProperties(std::forward<MetadataPropertiesT>(value));
201 return *this;
202 }
204
206
209 inline const Aws::String& GetLineageGroupArn() const { return m_lineageGroupArn; }
210 template <typename LineageGroupArnT = Aws::String>
211 void SetLineageGroupArn(LineageGroupArnT&& value) {
212 m_lineageGroupArnHasBeenSet = true;
213 m_lineageGroupArn = std::forward<LineageGroupArnT>(value);
214 }
215 template <typename LineageGroupArnT = Aws::String>
216 DescribeArtifactResult& WithLineageGroupArn(LineageGroupArnT&& value) {
217 SetLineageGroupArn(std::forward<LineageGroupArnT>(value));
218 return *this;
219 }
221
223
224 inline const Aws::String& GetRequestId() const { return m_requestId; }
225 template <typename RequestIdT = Aws::String>
226 void SetRequestId(RequestIdT&& value) {
227 m_requestIdHasBeenSet = true;
228 m_requestId = std::forward<RequestIdT>(value);
229 }
230 template <typename RequestIdT = Aws::String>
232 SetRequestId(std::forward<RequestIdT>(value));
233 return *this;
234 }
236 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
237
238 private:
239 Aws::String m_artifactName;
240
241 Aws::String m_artifactArn;
242
243 ArtifactSource m_source;
244
245 Aws::String m_artifactType;
246
248
249 Aws::Utils::DateTime m_creationTime{};
250
251 UserContext m_createdBy;
252
253 Aws::Utils::DateTime m_lastModifiedTime{};
254
255 UserContext m_lastModifiedBy;
256
257 MetadataProperties m_metadataProperties;
258
259 Aws::String m_lineageGroupArn;
260
261 Aws::String m_requestId;
262 Aws::Http::HttpResponseCode m_HttpResponseCode;
263 bool m_artifactNameHasBeenSet = false;
264 bool m_artifactArnHasBeenSet = false;
265 bool m_sourceHasBeenSet = false;
266 bool m_artifactTypeHasBeenSet = false;
267 bool m_propertiesHasBeenSet = false;
268 bool m_creationTimeHasBeenSet = false;
269 bool m_createdByHasBeenSet = false;
270 bool m_lastModifiedTimeHasBeenSet = false;
271 bool m_lastModifiedByHasBeenSet = false;
272 bool m_metadataPropertiesHasBeenSet = false;
273 bool m_lineageGroupArnHasBeenSet = false;
274 bool m_requestIdHasBeenSet = false;
275};
276
277} // namespace Model
278} // namespace SageMaker
279} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetProperties() const
AWS_SAGEMAKER_API DescribeArtifactResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeArtifactResult & WithLastModifiedBy(LastModifiedByT &&value)
DescribeArtifactResult & WithMetadataProperties(MetadataPropertiesT &&value)
DescribeArtifactResult & WithCreatedBy(CreatedByT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
DescribeArtifactResult & WithLineageGroupArn(LineageGroupArnT &&value)
DescribeArtifactResult & WithArtifactArn(ArtifactArnT &&value)
DescribeArtifactResult & WithArtifactType(ArtifactTypeT &&value)
DescribeArtifactResult & WithRequestId(RequestIdT &&value)
AWS_SAGEMAKER_API DescribeArtifactResult()=default
DescribeArtifactResult & WithArtifactName(ArtifactNameT &&value)
const Aws::Utils::DateTime & GetLastModifiedTime() const
DescribeArtifactResult & AddProperties(PropertiesKeyT &&key, PropertiesValueT &&value)
const Aws::Utils::DateTime & GetCreationTime() const
DescribeArtifactResult & WithSource(SourceT &&value)
AWS_SAGEMAKER_API DescribeArtifactResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeArtifactResult & WithProperties(PropertiesT &&value)
DescribeArtifactResult & WithLastModifiedTime(LastModifiedTimeT &&value)
DescribeArtifactResult & WithCreationTime(CreationTimeT &&value)
const MetadataProperties & GetMetadataProperties() const
void SetMetadataProperties(MetadataPropertiesT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue